Hello friends,
I just got a Olimex LPC-E2294 board with a Parallel Port JTAG to start learning ARM7 programming.
After a research I decided to work with Openocd, YAGARTO and Eclipse. Firstly, modifying an example, I debugged a blink lcd backlight example.
Now, my problem is: How to program the internal flash with this example?
The most useful reference that I’ve found was http://www.siwawi.arubi.uni-kl.de/avr_p … lpc2000int.
But still there is a problem because nothing happens when I execute openocd_go_flash.cmd. Only the info message is displayed and the application start to listen 4444 and 3333 TCP ports.
I think that the flash script is ignored because if I change the file name there is no error messages.
Follow the slightly modified files from Martin Thomas web site.
openocd_lpc2294_flash_wiggler.cfg
telnet_port 4444
gdb_port 3333
#interface
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 0
#use combined on interfaces or targets that can’t set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
#target configuration
daemon_startup reset
#target
#target arm7tdmi
target arm7tdmi little run_and_init 0 arm7tdmi-s_r4
run_and_halt_time 0 30
flash-options modified to LPC2294
target_script 0 reset openocd_lpc2294_flash.script
working_area 0 0x40000000 0x4000 nobackup
LPC2138 @ 12MHz / 0x7D000 from 500*1024 (not 512!)
#flash bank lpc2000 0x0 0x7D000 0 0 lpc2000_v2 0 12000 calc_checksum # used to lpc2138. Below to lpc2294
flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
And the (probably ignored) flash script:
openocd_lpc2294_flash.script
arm7_9 dcc_downloads enable
wait_halt
sleep 10
poll
flash probe 0
flash erase 0 0 0
flash write 0 main.bin 0x0
reset run
sleep 10
shutdown
Anybody can point me the error? Where I’m making a mistake?
Thanks in advance!