Welcome, Guest

Author Topic: [SOLVED] flashing Olinuxino-RT5350F with ARM-USB-OCD  (Read 1197 times)

vinczo

  • Newbie
  • *
  • Posts: 19
  • Karma: +2/-0
[SOLVED] flashing Olinuxino-RT5350F with ARM-USB-OCD
« on: June 08, 2017, 12:49:33 PM »
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:
Code: [Select]
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.
Code: [Select]
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.
« Last Edit: August 06, 2018, 07:45:25 PM by vinczo »

vinczo

  • Newbie
  • *
  • Posts: 19
  • Karma: +2/-0
Re: flashing Olinuxino-RT5350F with ARM-USB-OCD
« Reply #1 on: June 08, 2017, 02:40:06 PM »
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 :
Code: [Select]
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 ... ;)

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1817
  • Karma: +46/-2
Re: flashing Olinuxino-RT5350F with ARM-USB-OCD
« Reply #2 on: June 08, 2017, 03:05:48 PM »
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.
Technical support and documentation manager at Olimex

vinczo

  • Newbie
  • *
  • Posts: 19
  • Karma: +2/-0
Re: flashing Olinuxino-RT5350F with ARM-USB-OCD
« Reply #3 on: June 12, 2017, 01:20:49 PM »
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
« Last Edit: June 12, 2017, 01:40:24 PM by vinczo »