Hi guys!
I am trying to program an lpc1768 device using an oocdlink
(Ft2232-based) programmer.
Only every other programming works, which is very strange.
After the first programming, the uC seems to be in a lockup state.
After second programming, it always works as a charm.
I'm pretty much sure the problem is with my program script, but can
anyone please help me out with this?
Regards,
Ákos Vandra
my openocd.cfg:
debug_level 1
source [find interface/oocdlink.cfg]
source [find target/lpc1768.cfg]
jtag_khz 200
my programming script:
akos at FM12BQ
<https://lists.berlios.de/mailman/listinfo/openocd-development>:~/projects/ARM/falcoeye/Debug$
cat `which burnjtag`
#!/bin/sh
FILE=`ls *.elf`;
#OPENOCD='/home/akos/Downloads/openocd-0.5.0/src/openocd -s
/home/akos/Downloads/openocd-0.5.0/tcl'
OPENOCD=openocd
echo $FILE;
if [ -f $FILE]; then
echo "No ELF file found...";
exit
fi
#lpcfixchecksum takes only binary files, so
#make a binary file from the elf, and fix the checksum.
arm-eabi-objcopy -O binary $FILE tmp.bin
lpcfixchecksum tmp.bin
$OPENOCD -f "./openocd.cfg" -c "init" -c "reset run" -c "mwb
0x400FC040 0x01" -c "halt" -c "flash write_image erase unlock tmp.bin
0x0 bin" -c "reset run" -c "mwb 0x400FC040 0x01" -c "exit"
$OPENOCD -f "./openocd.cfg" -c "init" -c "reset run" -c "mwb
0x400FC040 0x01" -c "halt" -c "flash write_image erase unlock tmp.bin
0x0 bin" -c "reset run" -c "mwb 0x400FC040 0x01" -c "exit"
rm tmp.bin
play /usr/share/sounds/ubuntu/stereo/bell.ogg -q&
first prog. from a blank device, or first prog. just after connecting
your debugger / programmer to your device ?
That's not the same ?
Laurent
http://www.amontec.com/
Amontec JTAGkey-2 : High speed USB JTAG interface
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development