There are many people looking for Cotex-M3 Lm3s8962 when using OpenOCD.This is the fury_ft2232_flash.cfg that i got from internet and it’s work well with my board cortex-m3 Lm3s8962.
#daemon configuration telnet_port 4444 gdb_port 3333 #interface interface ft2232 #ft2232_device_desc "Stellaris Evaluation Board" ft2232_layout evb_lm3s811 ft2232_vid_pid 0x0403 0xbcd9 jtag_speed 6 # reset scheme reset_config srst_only separate #jtag scan chain #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) jtag newtap myCortex cpu -irlen 4 -ircapture 1 -irmask 0xf #target configuration target create myCortex.cpu cortex_m3 -endian little -chain-position myCortex.cpu -variant lm3s # 4k working area at base of ram myCortex.cpu configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x1000 -work-area-backup 0 #flash configuration flash bank stellaris 0 0 0 0 0
Usage:
1.Open 1 terminal and type:
xxx@pc:~/workspace/cortexm3$ sudo openocd -f fury_ft2232_flash.cfg [sudo] password for xxx: Open On-Chip Debugger 0.2.0-in-development (2009-06-30-01:49) svn:r2403 BUGS? Read /usr/share/doc/openocd/BUGS $URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $ jtag_speed: 6 Info : JTAG tap: myCortex.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
2.Open another terminal
xxx@pc:~$ telnet localhost 4444 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Open On-Chip Debugger >
3.Load you application to chip.For example you have the uart_echo.bin then write it to flash memory please follow below steps
tam@pc:~$ telnet localhost 4444
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> ls
Runtime error, file "command.c", line 469:
Unknown command: ls
> reset halt
JTAG tap: myCortex.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000a1c
> wait_halt
> flash probe 0
flash 'stellaris' found at 0x00000000
> flash erase_sector 0 0 255
erased sectors 0 through 255 on flash bank 0 in 0.787241s
> sleep 200
> flash write_image uart_echo.bin
not enough working area available(requested 8192, free 4056)
not enough working area available(requested 4096, free 4056)
Algorithm flash write 512 words to 0x0, 533 remaining
Algorithm flash write 21 words to 0x800, 21 remaining
wrote 2132 byte from file uart_echo.bin in 0.318710s (6.532683 kb/s)
> reset run
JTAG tap: myCortex.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
AHBAP Cached values: dp_select 0x10, ap_csw 0xa2000002, ap_tar 0xe000edf0
SWJ-DP OVERRUN - check clock or reduce jtag speed
Read MEM_AP_CSW 0x23000040, MEM_AP_TAR 0x0
>
Okie now your application downloaded in the board.If you have any question please comment below thanks.
