bigbigmdm / IMSProg

IMSProg - software for CH341A-based programmers to work with I2C, SPI and MicroWire EEPROM/Flash chips
https://antenna-dvb-t2.ru/IMSProg.php
GNU General Public License v3.0
215 stars 38 forks source link

32Mb spi flash #37

Closed VasiliyTurchenko closed 7 months ago

VasiliyTurchenko commented 8 months ago

IMSProg fails when trying to read 32Mb spi flash. This happens because of null pointer in spi_nor_flash.c

static int snor_4byte_mode(int enable)
{
    int retval;

    if (snor_wait_ready(1))
        return -1;

    if (spi_chip_info->id == 0x1) /* Spansion */
    {

The spi_chip_info does not exist.

bigbigmdm commented 8 months ago

yes, the spi_chip_info does not exist. I need time to compare datasheets...

bigbigmdm commented 8 months ago

After we get this program up and running, do you want to do CH347?

VasiliyTurchenko commented 8 months ago
do you want to do CH347?

What do you mean? Everyhing has started after I wanted to fix a laptop and read its 32MB BIOS chip. I rememered IMSProg from Habr and I tried to use it, but it failed. I started investigation why and yesterday have found unrelated issued and today I am moving to 4 byte addressing problem to finally get my BIOS ) Such a long way...

bigbigmdm commented 8 months ago

Unfortunately I didn't have chips of that size on hand, hence the problem.

bigbigmdm commented 7 months ago

The problem has been fixed in version 1.1.4.