On Fri, Jul 31, 2009 at 8:24 PM, Xiaofan Chen<xiaof...@gmail.com> wrote: >>>> I am also having problem with J-Link with the EK-LM3S1968. It >>>> is not able to flash the flash. I've tried V3 and V6 IAR OEM version of >>>> J-Link. Take note the on-board ftdi interface works fine with the same >>>> svn version 2570. >>>> >>> >>> Not really. It seems that some Ubuntu 9.04 updates yesterday messed up with >>> OpenOCD now. Actually it crashed now with ftdi interface. >>> >> >> So I went back to V0.2.0 release version and it works. > > V0.2.0 release works with the on-board ftdi interface. But it still has the > same problem with J-Link. Firstly I have to reduce jtag_khz to around > 1000. Secondly it still does not work with flashing.
Interestingly the J-Link flashing problem is also fixed after the segmentation problem of the fidi interface is fixed by Spen. Tested under Ubuntu 9.04 32bit using SVN 2578. I have to reduce jtag_khz to 1200 for J-Link. The speed is still faster the on-board ftdi interface at jtag_khz=3000. mc...@ubuntu904:~/Desktop/build/openocd/lm3s1968$ openocd -f ek-lm3s1968_jlink.cfg Open On-Chip Debugger 0.3.0-in-development (2009-08-07-21:11) svn:2578 $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ For bug reports, read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS 1200 kHz jtag_nsrst_delay: 100 jtag_ntrst_delay: 100 Info : J-Link initialization started / target CPU reset initiated Info : J-Link compiled Feb 20 2006 18:20:20 -- Update -- Info : JLink caps 0x3 Info : JLink hw version 30000 Info : Vref = 3.290 TCK = 1 TDI = 1 TDO = 1 TMS = 1 SRST = 0 TRST = 255 Info : J-Link JTAG Interface ready Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) Info : JTAG Tap/device matched Info : accepting 'telnet' connection from 0 Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) Info : JTAG Tap/device matched target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00000470 msp: 0x20000198 flash 'stellaris' found at 0x00000000 auto erase enabled Info : Algorithm flash write 1710 words to 0x0, 1710 remaining wrote 6840 byte from file ./StellarisWare/boards/ek-lm3s1968/graphics/gcc/graphics.bin in 0.879946s (7.591020 kb/s) Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) Info : JTAG Tap/device matched Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) Info : JTAG Tap/device matched target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00000470 msp: 0x20000198 flash 'stellaris' found at 0x00000000 auto erase enabled Info : Algorithm flash write 2048 words to 0x0, 30257 remaining Info : Algorithm flash write 2048 words to 0x2000, 28209 remaining Info : Algorithm flash write 2048 words to 0x4000, 26161 remaining Info : Algorithm flash write 2048 words to 0x6000, 24113 remaining Info : Algorithm flash write 2048 words to 0x8000, 22065 remaining Info : Algorithm flash write 2048 words to 0xa000, 20017 remaining Info : Algorithm flash write 2048 words to 0xc000, 17969 remaining Info : Algorithm flash write 2048 words to 0xe000, 15921 remaining Info : Algorithm flash write 2048 words to 0x10000, 13873 remaining Info : Algorithm flash write 2048 words to 0x12000, 11825 remaining Info : Algorithm flash write 2048 words to 0x14000, 9777 remaining Info : Algorithm flash write 2048 words to 0x16000, 7729 remaining Info : Algorithm flash write 2048 words to 0x18000, 5681 remaining Info : Algorithm flash write 2048 words to 0x1a000, 3633 remaining Info : Algorithm flash write 1585 words to 0x1c000, 1585 remaining wrote 121029 byte from file ./StellarisWare/boards/ek-lm3s1968/qs_ek-lm3s1968/gcc/qs_ek-lm3s1968.bin in 13.964152s (8.463986 kb/s) Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) Info : JTAG Tap/device matched mc...@ubuntu904:~$ telnet localhost 4444 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Open On-Chip Debugger > init > reset halt JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) JTAG Tap/device matched target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00000470 msp: 0x20000198 > flash probe 0 flash 'stellaris' found at 0x00000000 > flash write_image erase > ./StellarisWare/boards/ek-lm3s1968/graphics/gcc/graphics.bin auto erase enabled Algorithm flash write 1710 words to 0x0, 1710 remaining wrote 6840 byte from file ./StellarisWare/boards/ek-lm3s1968/graphics/gcc/graphics.bin in 0.879946s (7.591020 kb/s) > reset run JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) JTAG Tap/device matched > reset halt JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) JTAG Tap/device matched target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00000470 msp: 0x20000198 > flash probe 0 flash 'stellaris' found at 0x00000000 > flash write_image erase > ./StellarisWare/boards/ek-lm3s1968/qs_ek-lm3s1968/gcc/qs_ek-lm3s1968.bin auto erase enabled Algorithm flash write 2048 words to 0x0, 30257 remaining Algorithm flash write 2048 words to 0x2000, 28209 remaining Algorithm flash write 2048 words to 0x4000, 26161 remaining Algorithm flash write 2048 words to 0x6000, 24113 remaining Algorithm flash write 2048 words to 0x8000, 22065 remaining Algorithm flash write 2048 words to 0xa000, 20017 remaining Algorithm flash write 2048 words to 0xc000, 17969 remaining Algorithm flash write 2048 words to 0xe000, 15921 remaining Algorithm flash write 2048 words to 0x10000, 13873 remaining Algorithm flash write 2048 words to 0x12000, 11825 remaining Algorithm flash write 2048 words to 0x14000, 9777 remaining Algorithm flash write 2048 words to 0x16000, 7729 remaining Algorithm flash write 2048 words to 0x18000, 5681 remaining Algorithm flash write 2048 words to 0x1a000, 3633 remaining Algorithm flash write 1585 words to 0x1c000, 1585 remaining wrote 121029 byte from file ./StellarisWare/boards/ek-lm3s1968/qs_ek-lm3s1968/gcc/qs_ek-lm3s1968.bin in 13.964152s (8.463986 kb/s) > reset run JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) JTAG Tap/device matched -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development