Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => RT5350F => Topic started by: pradeepsysargus on July 30, 2016, 04:02:18 PM

Title: 'Flashrom tool' command has failed to write to NOR Flash using ARM-USB-OCD
Post by: pradeepsysargus on July 30, 2016, 04:02:18 PM
I am able to detect my flash chip when I use the command:

    ./flashrom -p ft2232_spi:type=arm-usb-ocd -c EN25Q64



If use the below command to write binary file to the flash memory using JTAG - ARM-USB-OCD debugger for my target board RT5350F-OLinuXino-EVB, I am getting an error.


    ./flashrom -p ft2232_spi:type=arm-usb-ocd -w FlashImage_RT5350F_OLinuXino_EVB.bin


The error is:

QuoteFound Eon flash chip "EN25Q64" (8192 kB, SPI) on ft2232_spi.
    ftdi_write_data: -110, usb bulk write failed
    send_buf failed before read: 1
    Reading old flash chip contents... ftdi_read_data: -110, usb bulk read failed
    get_buf failed: 1
    FAILED.

Please let me know,

Thanks.
Title: Re: 'Flashrom tool' command has failed to write to NOR Flash using ARM-USB-OCD
Post by: wouter on January 26, 2017, 01:34:33 PM

You can try the next command for reading the flash.

flashrom -p ft2232_spi:type=arm-usb-ocd,divisor=8 -VVV -r dat.bin

Be sure you have shorten the RST_RT pins.
Title: Re: 'Flashrom tool' command has failed to write to NOR Flash using ARM-USB-OCD
Post by: Syd on February 15, 2017, 03:18:05 PM


unfortunately , with ARM-USB-OCD , i have this nice message :

Quote
EMS returned 0x00 0x00. probe_spi_rems: id1 0x0, id2 0x0
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found automatically.

... with EVB or the SPI GPIO connection.

:-\