Hi,
I’m having troubles erasing the memory of an aduc7026 (arm7tdmi) based card. The thing is it works about once every 5 attempts (after power-cycling everything).
While the solution to the problem might be simple, but we are beginners with openocd and we have been stuck on it for a few days now.
The error we are getting is:
failed erasing sectors 0 to 123 in procedure ‘flash’
All the details have been enclosed bellow.
Thanks for your time and your help,
Yannick
HARDWARE WE ARE USING:
The card we are using is: Olimex ADUC-P7026
details: https://www.olimex.com/dev/aduc-p7026.html
content of our custom board card config file: board/Olimex_ADuCP7026.cfg
jtag_rclk 10
source [find target/aduc702x.cfg]
reset_config trst_and_srst
the JTAG dongle interface we use is: Olimex ARM-USB-OCD
(interface/olimex-arm-usb-ocd.cfg)
https://www.olimex.com/dev/arm-usb-ocd.html
interface/olimex-arm-usb-ocd.cfg
OPENOCD / LIFBTDI / OPERATING SYSTEM VERSIONS:
OpenOCD 0.6 (current version on git repository)
Libftdi: libftdi-0.20.tar.gz from http://www.intra2net.com
Operating systems (the tools have been installed on 2 different machines):
-
Linux Debian sqeeze on 64bit x86 machine
-
Mac OS X Snow Leopard 10.6.8 on 64bit x86 machine
openocd startup messages:
Open On-Chip Debugger 0.6.0-dev-00640-g40801d2 (2012-08-01-21:09)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect ‘jtag’
RCLK - adaptive
adapter_nsrst_delay: 200
jtag_ntrst_delay: 200
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
Info : RCLK (adaptive clock speed) not supported - fallback to 10 kHz
Info : JTAG tap: aduc702x.cpu tap/device found: 0x3f0f0f0f (mfg:
0x787, part: 0xf0f0, ver: 0x3)
Info : Embedded ICE version 1
Info : aduc702x.cpu: hardware has 2 breakpoint/watchpoint units
flash information grabbing and failing erasing attempt:
tnx@gozer:pts/3 ~> telnet rhea 4444
Trying 192.168.1.22…
Connected to rhea.
Escape character is ‘^]’.
Open On-Chip Debugger
halt
target state: halted
target halted in ARM state due to debug-request, current mode: Abort
cpsr: 0x600000d7 pc: 0x0000013c
flash banks
#0 : aduc702x.flash (aduc702x) at 0x00080000, size 0x0000f800,
buswidth 0, chipwidth 0
flash list
{name aduc702x base 524288 size 63488 bus_width 0 chip_width 0}
flash probe 0
flash ‘aduc702x’ found at 0x00080000
flash info 0
#0 : aduc702x at 0x00080000, size 0x0000f800, buswidth 0, chipwidth 0
0: 0x00000000 (0x200 0kB) not protected
1: 0x00000200 (0x200 0kB) not protected
2: 0x00000400 (0x200 0kB) not protected
3: 0x00000600 (0x200 0kB) not protected
4: 0x00000800 (0x200 0kB) not protected
5: 0x00000a00 (0x200 0kB) not protected
6: 0x00000c00 (0x200 0kB) not protected
[…]
#118: 0x0000ec00 (0x200 0kB) not protected
#119: 0x0000ee00 (0x200 0kB) not protected
#120: 0x0000f000 (0x200 0kB) not protected
#121: 0x0000f200 (0x200 0kB) not protected
#122: 0x0000f400 (0x200 0kB) not protected
#123: 0x0000f600 (0x200 0kB) not protected
aduc702x flash driver info
flash erase_address 0x00080000 0x0000f800
failed to erase sector at address 0x00080000
failed erasing sectors 0 to 123
in procedure ‘flash’