Hi,
I'm trying to flash the Olinuxino-RT5350F with ARM-USB-OCD.
I connected both components as described here : https://www.olimex.com/wiki/images/5/51/Arm-usb-ocd.png
Note: didn't take the FSM050 component into consideration (what is it? is it important ?)
When I flash I get the following errors:
flashrom v0.9.9-r1954 on Linux 4.4.0-79-generic (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Eon flash chip "EN25Q64" (8192 kB, SPI) on ft2232_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... FAILED at 0x000006d6! Expected=0xff, Found=0xe0, failed byte count from 0x00000000-0x00000fff: 0xd3
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase function.
FAILED at 0x0000076c! Expected=0xff, Found=0xfc, failed byte count from 0x00000000-0x0000ffff: 0x273f
ERASE FAILED!
...
I tried lowering the clock with the divisor option up to 100 !!! No change.
I've run the following command twice and got two different files read from flash.
sudo ./flashrom -p ft2232_spi:type=arm-usb-ocd -VVV -r dat.bin
My wires are 15cm male to female jumper wires. I changed them, no change.
What is wrong ?
Thanks.
I figured out the error was bad voltage.
The voltage between Vref and GND showed 2.6 V.
I moved the blue wire (GND) to the UART (GND) and now it shows 3.3 V.
New output :
flashrom v0.9.9-r1954 on Linux 4.4.0-79-generic (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Eon flash chip "EN25Q64" (8192 kB, SPI) on ft2232_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.
SUCCESS!!
To the Olimex staff, you should update the cabling ... ;)
Great. Thanks for sharing your experience.
In the picture the blue wire goes to GND (pins #4, #6, #8, #10, #12, #14, #16, #18, #20); did you connect it to pin #19 initially?
Maybe the picture is not clear.
Hi Lub,
I connected GND to the pin #20 only initially. I didn't connect the other pins, because I thought they are all connected internally. Did I think wrong?
Here's my current cabling :
http://hpics.li/f90f4c4
http://hpics.li/b4b8c08
Cheers,
vinczo