[En-Nut-Discussion] problems making binairy to burn in flash
Faas, Hylke
Hylke.Faas at echostar.com
Mon Sep 7 17:19:52 CEST 2009
Hi All,
I'm trying to make a new bootloader to burn in flash. before I always
used the tftp to get my applications to run, so I haven't tried burning
new applications.
I have the problem that I can't flash any application that I have
compiled myself.
For example; If I try to compile and burn the bootmon 1.0.6 version
(downloaded from ethernut.de) I get a time out error form openocd, but
when I burn the bootmon (version 1.0.2) binairy that is already compiled
It just work.
I could not find any information about it on the internet I've already
updated the openocd version because I thought openocd was buggy (read
something about it on the internet). Strangely enough I think it has
something to do with the compile proccess. Have I overseen something?
Does any one had something similar and how did he/she fixed it?
Detailed operation and error:
[OpenOCD]:
For bug reports, read
http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
10 kHz
jtag_nsrst_delay: 200
jtag_ntrst_delay: 200
Info : JTAG tap: at9r40008.cpu tap/device found: 0x1f0f0f0f (mfg: 0x787,
part: 0xf0f0, ver: 0x1)
Info : JTAG Tap/device matched
Info : JTAG tap: at9r40008.cpu tap/device found: 0x1f0f0f0f (mfg: 0x787,
part: 0xf0f0, ver: 0x1)
Info : JTAG Tap/device matched
Warn : srst pulls trst - can not reset into halted mode. Issuing halt
after reset.
target state: halted
target halted in ARM state due to debug-request, current mode:
Supervisor
cpsr: 0x200000d3 pc: 0x100021dc
6000 kHz
Info : accepting 'telnet' connection from 0
Info : Flash Manufacturer/Device: 0x001f 0x0090
flash 'cfi' found at 0x10000000
erased sectors 0 through 10 on flash bank 0 in 4.718750s
Error: timed out while waiting for target halted
Error: error writing to flash at address 0x10000000 at offset 0x00000000
(-902)
[Telnet calls]:
Open On-Chip Debugger
> halt
> flash probe 0
Flash Manufacturer/Device: 0x001f 0x0090
flash 'cfi' found at 0x10000000
> flash erase_sector 0 0 10
erased sectors 0 through 10 on flash bank 0 in 4.718750s
> flash write_bank 0 D:/hylke/temp/bootmon/bootmon.bin 0
timed out while waiting for target halted
error writing to flash at address 0x10000000 at offset 0x00000000 (-902)
called at file "command.c", line 469
called at file "embedded:startup.tcl", line 89
called at file "embedded:startup.tcl", line 91
called at file "embedded:startup.tcl", line 93
Regards,
Hylke Faas
More information about the En-Nut-Discussion
mailing list