IMSProg

IMSProg - I2C, MicroWire and SPI EEPROM/Flash chip Programmer - is a program to read, write EEPROM chips use the CH341A programmer device.

CH341A black CH341A green

The IMSProg makes respect to QHexEdit2 hex editor and SNANDer programmer. The format of the chip database is based on the format used in EZP2019, EZP2020, EZP2023, Minpro I, XP866+ programmers. Warning, format is not the same!

IMSProg is a collection of tools:

  1. IMSProg - the chip programmer (it’s the main part).

  2. IMSProg_editor - chip database editor.

  3. IMSProg_database_update - script to update chip database using external web-server.

CH341A EEPROM programmer
CH341A EEPROM programmer

Compiling programmer

git clone https://github.com/bigbigmdm/IMSProg.git && cd IMSProg
cd IMSProg_programmer
mkdir build
cd build
cmake ..
make -j`nproc`
sudo make install

Compiling editor

cd IMSProg_editor
mkdir build
cd build
cmake ..
make -j`nproc`
sudo make install

These commands are included in the build_all.sh file.

System software requirements

Linux

For build are needed: - g++ or clang - CMake - libusb 1.0 - Qt5 - Qt5 Qt5LinguistTools - pkgconf or pkg-config - udev

On Debian and derivatives:

sudo apt-get install cmake g++ libusb-1.0-0-dev qtbase5-dev qttools5-dev pkgconf

On Debian >=13 and Ubuntu >=23.10:

sudo apt-get install systemd-dev

On older:

sudo apt-get install udev

Optionally if you want to use IMSProg_database_update script: - zenity - wget

sudo apt-get install zenity wget

:information_source: Debian < 11 and Ubuntu < 20.04 are not supported, you may unable to have it working on them.

macOS

if using Homebrew then Xcode Command Line Tools will install by default, if not then install manually from terminal:

xcode-select --install

install the required packages

using brew:

brew install qt@5 libusb cmake pkgconf

if not using the build_all.sh script then make sure libusb is in your C_INCLUDE_PATH

export C_INCLUDE_PATH=/usr/local/opt/libusb/include

Optionally if you want to use IMSProg_database_update script:

brew install wget zenity

How to use:

Note: for macOS use CMD instead of CTRL for keyboard shortcuts.

Chip programmer

Launching

Can be launched from Terminal by running the command

$ IMSProg

Connecting

Adapter
Adapter

Chip type selecting

Select the type of chip used from the Type pop-up menu: SPI FLASH when using SPI NOR FLASH chips of the 25xxx series, 24_EEPROM when using I2C EEPROM of the 24xxx series, 93_EEPROM when using MicroWire EEPROM of the 93xxx series, 45_EEPROM when using DataFlash chips AT45DBxxx series. When using 25xxx series SPI NOR FLASH chips (Menu item type -> SPI_FLASH), or AT45DBxx series SPI FLASH (Menu item type -> 45_EEPROM) the Detect button will be available. When the Detect button or Detect or <Ctrl+D> is pressed, the JEDEC information is read from the chip and all parameters of that chip are loaded from the chip database. Any parameter (size, page size, block size, VCC voltage, and 4-bit address length) can be changed manually. You can manually enter the Manufacture and Name pop-up menu data - all other parameters will be automatically loaded from the chip database. When using 24xxx or 93xxx or 95xxx or 25xxx SPI EEPROM (non NOR FLASH) series chips, it is necessary to manually enter the Manufacture and Name pop-up menu data - all other parameters will be automatically loaded from the chip database.

File operations

Basic programmer operations

The progress bar shows the progress of the read, erase, and verify operations.

SFDP

If the SPI NOR FLASH chip is detected normally, but is not read (gives the message Error reading sector 0), then in the Chip info window you can change bits BP4 and BP3 to zero and press the Write registers button. Then repeat the chip reading operation.

SFDP

If the SPI NOR FLASH chip is read unreliably (with a different checksum each time) and Status Register 2 is available in the chip, you can change bits DRV0 and DRV1 to zero and press the Write Registers button. This will increase the power of the output stage of the DO pin of the chip. Then repeat the chip read operation.

For 25xxx, 95xxx and 45xxx series chips that have only one status register, the Chip info form is as follows:

SFDP