On Fri, Jul 31, 2009 at 8:24 PM, Xiaofan Chen<xiaof...@gmail.com> wrote: > 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. > > mc...@ubuntu904:~/Desktop/build/openocd/lm3s1968$ 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 >> flash write_image erase >> ./StellarisWare/boards/ek-lm3s1968/graphics/gcc/graphics.bin > auto erase enabled > Algorithm flash write 1710 words to 0x0, 1710 remaining > timed out while waiting for target halted > error executing stellaris flash write algorithm > flash writing failed with CRIS: 0x0 > error writing to flash at address 0x00000000 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 >
Running with -d 3 and the relevant part on the flashing. Debug: 203 45983 command.c:68 script_debug(): command - write_image Debug: 204 45983 command.c:77 script_debug(): write_image - argv[0]=ocd_flash_write_image Debug: 205 45983 command.c:77 script_debug(): write_image - argv[1]=erase Debug: 206 45983 command.c:77 script_debug(): write_image - argv[2]=./StellarisWare/boards/ek-lm3s1968/graphics/gcc/graphics.bin User : 207 45983 command.c:396 command_print(): auto erase enabled Debug: 208 45983 configuration.c:83 find_file(): found ./StellarisWare/boards/ek-lm3s1968/graphics/gcc/graphics.bin Debug: 209 45983 configuration.c:83 find_file(): found ./StellarisWare/boards/ek-lm3s1968/graphics/gcc/graphics.bin Debug: 210 45990 target.c:1342 target_read_u32(): address: 0x400fe000, value: 0x10010002 Debug: 211 45997 target.c:1342 target_read_u32(): address: 0x400fe004, value: 0x10b8402d Debug: 212 46004 target.c:1342 target_read_u32(): address: 0x400fe008, value: 0x00ff007f Debug: 213 46011 target.c:1342 target_read_u32(): address: 0x400fe010, value: 0x001133ff Debug: 214 46011 stellaris.c:468 stellaris_read_part_info(): did0 0x10010002, did1 0x10b8402d, dc0 0xff007f, dc1 0x1133ff Debug: 215 46018 target.c:1342 target_read_u32(): address: 0x400fe134, value: 0xffffffff Debug: 216 46025 target.c:1342 target_read_u32(): address: 0x400fe060, value: 0x078e3ad1 Debug: 217 46025 stellaris.c:364 stellaris_read_clock_info(): Stellaris RCC 78e3ad1 Debug: 218 46032 target.c:1342 target_read_u32(): address: 0x400fe064, value: 0x00000640 Debug: 219 46032 stellaris.c:366 stellaris_read_clock_info(): Stellaris PLLCFG 640 Debug: 220 46032 stellaris.c:414 stellaris_set_flash_mode(): usecrl = 21 Debug: 221 46032 target.c:1419 target_write_u32(): address: 0x400fe140, value: 0x00000015 Debug: 222 46046 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000000 Debug: 223 46053 target.c:1342 target_read_u32(): address: 0x400fe060, value: 0x078e3ad1 Debug: 224 46053 stellaris.c:364 stellaris_read_clock_info(): Stellaris RCC 78e3ad1 Debug: 225 46060 target.c:1342 target_read_u32(): address: 0x400fe064, value: 0x00000640 Debug: 226 46060 stellaris.c:366 stellaris_read_clock_info(): Stellaris PLLCFG 640 Debug: 227 46060 stellaris.c:414 stellaris_set_flash_mode(): usecrl = 21 Debug: 228 46060 target.c:1419 target_write_u32(): address: 0x400fe140, value: 0x00000015 Debug: 229 46067 stellaris.c:414 stellaris_set_flash_mode(): usecrl = 21 Debug: 230 46067 target.c:1419 target_write_u32(): address: 0x400fe140, value: 0x00000015 Debug: 231 46074 target.c:1419 target_write_u32(): address: 0x400fd010, value: 0x00000000 Debug: 232 46081 target.c:1419 target_write_u32(): address: 0x400fd014, value: 0x00000003 Debug: 233 46088 target.c:1419 target_write_u32(): address: 0x400fd000, value: 0x00000000 Debug: 234 46095 target.c:1419 target_write_u32(): address: 0x400fd008, value: 0xa4420002 Debug: 235 46109 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 236 46116 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 237 46123 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 238 46130 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 239 46137 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000000 Debug: 240 46144 target.c:1342 target_read_u32(): address: 0x400fd00c, value: 0x00000002 Debug: 241 46144 target.c:1419 target_write_u32(): address: 0x400fd000, value: 0x00000400 Debug: 242 46151 target.c:1419 target_write_u32(): address: 0x400fd008, value: 0xa4420002 Debug: 243 46165 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 244 46172 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 245 46179 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 246 46186 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 247 46193 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000000 Debug: 248 46200 target.c:1342 target_read_u32(): address: 0x400fd00c, value: 0x00000002 Debug: 249 46200 target.c:1419 target_write_u32(): address: 0x400fd000, value: 0x00000800 Debug: 250 46207 target.c:1419 target_write_u32(): address: 0x400fd008, value: 0xa4420002 Debug: 251 46221 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 252 46228 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 253 46235 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 254 46242 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 255 46249 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000000 Debug: 256 46256 target.c:1342 target_read_u32(): address: 0x400fd00c, value: 0x00000002 Debug: 257 46256 target.c:1419 target_write_u32(): address: 0x400fd000, value: 0x00000c00 Debug: 258 46263 target.c:1419 target_write_u32(): address: 0x400fd008, value: 0xa4420002 Debug: 259 46277 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 260 46284 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 261 46291 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 262 46298 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 263 46305 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000000 Debug: 264 46312 target.c:1342 target_read_u32(): address: 0x400fd00c, value: 0x00000002 Debug: 265 46312 target.c:1419 target_write_u32(): address: 0x400fd000, value: 0x00001000 Debug: 266 46319 target.c:1419 target_write_u32(): address: 0x400fd008, value: 0xa4420002 Debug: 267 46333 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 268 46340 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 269 46347 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 270 46354 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 271 46361 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000000 Debug: 272 46368 target.c:1342 target_read_u32(): address: 0x400fd00c, value: 0x00000002 Debug: 273 46368 target.c:1419 target_write_u32(): address: 0x400fd000, value: 0x00001400 Debug: 274 46375 target.c:1419 target_write_u32(): address: 0x400fd008, value: 0xa4420002 Debug: 275 46389 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 276 46396 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 277 46403 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 278 46410 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 279 46417 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000000 Debug: 280 46424 target.c:1342 target_read_u32(): address: 0x400fd00c, value: 0x00000002 Debug: 281 46424 target.c:1419 target_write_u32(): address: 0x400fd000, value: 0x00001800 Debug: 282 46431 target.c:1419 target_write_u32(): address: 0x400fd008, value: 0xa4420002 Debug: 283 46445 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 284 46452 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 285 46459 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 286 46466 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000002 Debug: 287 46473 target.c:1342 target_read_u32(): address: 0x400fd008, value: 0x00000000 Debug: 288 46480 target.c:1342 target_read_u32(): address: 0x400fd00c, value: 0x00000002 Debug: 289 46480 stellaris.c:844 stellaris_write(): (bank=0x86c1780 buffer=0x86daf40 offset=00000000 count=00001ab8 Debug: 290 46487 target.c:1342 target_read_u32(): address: 0x400fe060, value: 0x078e3ad1 Debug: 291 46487 stellaris.c:364 stellaris_read_clock_info(): Stellaris RCC 78e3ad1 Debug: 292 46494 target.c:1342 target_read_u32(): address: 0x400fe064, value: 0x00000640 Debug: 293 46494 stellaris.c:366 stellaris_read_clock_info(): Stellaris PLLCFG 640 Debug: 294 46494 stellaris.c:414 stellaris_set_flash_mode(): usecrl = 21 Debug: 295 46494 target.c:1419 target_write_u32(): address: 0x400fe140, value: 0x00000015 Debug: 296 46501 stellaris.c:414 stellaris_set_flash_mode(): usecrl = 21 Debug: 297 46501 target.c:1419 target_write_u32(): address: 0x400fe140, value: 0x00000015 Debug: 298 46508 target.c:1419 target_write_u32(): address: 0x400fd010, value: 0x00000000 Debug: 299 46515 target.c:1419 target_write_u32(): address: 0x400fd014, value: 0x00000003 Debug: 300 46522 stellaris.c:758 stellaris_write_block(): (bank=0x86c1780 buffer=0x86daf40 offset=00000000 wcount=000006ae Debug: 301 46522 target.c:971 target_alloc_working_area(): allocating new working area Debug: 302 46522 target.c:1117 target_write_buffer(): writing buffer of 40 byte at 0x20000000 Debug: 303 46529 target.c:971 target_alloc_working_area(): allocating new working area Debug: 304 46529 target.c:1117 target_write_buffer(): writing buffer of 6840 byte at 0x20000028 Info : 305 46841 stellaris.c:802 stellaris_write_block(): Algorithm flash write 1710 words to 0x0, 1710 remaining Debug: 306 46841 stellaris.c:803 stellaris_write_block(): Algorithm flash write 1710 words to 0x0, 1710 remaining Debug: 307 46855 cortex_m3.c:956 cortex_m3_set_breakpoint(): BPID: 0, Type: 1, Address: 0x2000001e Length: 2 (set=17) Debug: 308 46855 breakpoints.c:104 breakpoint_add(): added software breakpoint at 0x2000001e of length 0x00000002, (BPID: 0) Debug: 309 46855 armv7m.c:125 armv7m_restore_context(): Debug: 310 46869 cortex_m3.c:1359 cortex_m3_store_core_reg_u32(): write special reg 19 value 0x1 Debug: 311 46869 armv7m.c:234 armv7m_write_core_reg(): write core reg 19 value 0x1 Debug: 312 46876 cortex_m3.c:1330 cortex_m3_store_core_reg_u32(): write core reg 16 value 0x1000000 Debug: 313 46876 armv7m.c:234 armv7m_write_core_reg(): write core reg 16 value 0x1000000 Debug: 314 46883 cortex_m3.c:1330 cortex_m3_store_core_reg_u32(): write core reg 15 value 0x20000000 Debug: 315 46883 armv7m.c:234 armv7m_write_core_reg(): write core reg 15 value 0x20000000 Debug: 316 46890 cortex_m3.c:1330 cortex_m3_store_core_reg_u32(): write core reg 2 value 0x1ab8 Debug: 317 46890 armv7m.c:234 armv7m_write_core_reg(): write core reg 2 value 0x1ab8 Debug: 318 46897 cortex_m3.c:1330 cortex_m3_store_core_reg_u32(): write core reg 1 value 0x0 Debug: 319 46897 armv7m.c:234 armv7m_write_core_reg(): write core reg 1 value 0x0 Debug: 320 46904 cortex_m3.c:1330 cortex_m3_store_core_reg_u32(): write core reg 0 value 0x20000028 Debug: 321 46904 armv7m.c:234 armv7m_write_core_reg(): write core reg 0 value 0x20000028 Debug: 322 46911 target.c:838 target_call_event_callbacks(): target event 23 (debug-resumed) Debug: 323 46911 target.c:3414 target_handle_event(): event: 23 debug-resumed - no action Debug: 324 46911 cortex_m3.c:696 cortex_m3_resume(): target debug resumed at 0x20000000 Debug: 325 46918 target.c:1934 target_wait_state(): waiting for target halted... Debug: 326 47423 log.c:401 keep_alive(): keep_alive() was not invoked in the 1000ms timelimit (1449). This may cause trouble with GDB connections. Error: 346 56922 target.c:1945 target_wait_state(): timed out while waiting for target halted Debug: 347 56922 cortex_m3.c:535 cortex_m3_halt(): target->state: debug-running Debug: 348 56944 cortex_m3.c:507 cortex_m3_poll(): Debug: 349 56944 cortex_m3.c:385 cortex_m3_debug_entry(): Debug: 350 56965 cortex_m3.c:178 cortex_m3_clear_halt(): NVIC_DFSR 0x1 Debug: 351 56979 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 0 value 0x20000028 Debug: 352 56986 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 1 value 0x0 Debug: 353 56994 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 2 value 0x1ab8 Debug: 354 57001 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 3 value 0x1fdc Debug: 355 57008 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 4 value 0x2c Debug: 356 57015 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 5 value 0xcf710148 Debug: 357 57023 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 6 value 0x1ce30a50 Debug: 358 57029 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 7 value 0x92044240 Debug: 359 57036 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 8 value 0x81244082 Debug: 360 57043 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 9 value 0xd949b514 Debug: 361 57050 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 10 value 0xbb10a088 Debug: 362 57057 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 11 value 0x11e50a01 Debug: 363 57064 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 12 value 0x3 Debug: 364 57071 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 13 value 0xffffffdc Debug: 365 57079 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 14 value 0xfffffff9 Debug: 366 57085 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 15 value 0xfffffffe Debug: 367 57092 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 16 value 0x1000002 Debug: 368 57099 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 17 value 0xffffffdc Debug: 369 57106 cortex_m3.c:1265 cortex_m3_load_core_reg_u32(): load from core reg 18 value 0xfa018010 Debug: 370 57113 cortex_m3.c:1291 cortex_m3_load_core_reg_u32(): load from special reg 19 value 0x1 Debug: 371 57120 cortex_m3.c:1291 cortex_m3_load_core_reg_u32(): load from special reg 20 value 0x0 Debug: 372 57127 cortex_m3.c:1291 cortex_m3_load_core_reg_u32(): load from special reg 21 value 0x0 Debug: 373 57134 cortex_m3.c:1291 cortex_m3_load_core_reg_u32(): load from special reg 22 value 0x0 Debug: 374 57142 cortex_m3.c:370 cortex_m3_examine_exception_reason(): NMI SHCSR 0x20000, SR 0xe000edf0, CFSR 0xffffffff, AR 0xffffffff Debug: 375 57142 cortex_m3.c:447 cortex_m3_debug_entry(): entered debug state in core mode: Handler at PC 0xfffffffe, target->state: halted Debug: 376 57142 target.c:838 target_call_event_callbacks(): target event 22 (debug-halted) Debug: 377 57142 target.c:3414 target_handle_event(): event: 22 debug-halted - no action Debug: 378 57143 cortex_m3.c:980 cortex_m3_unset_breakpoint(): BPID: 0, Type: 1, Address: 0x2000001e Length: 2 (set=17) Debug: 379 57150 breakpoints.c:128 breakpoint_free(): BPID: 0 Error: 380 57150 stellaris.c:806 stellaris_write_block(): error executing stellaris flash write algorithm Debug: 381 57157 target.c:1342 target_read_u32(): address: 0x400fd00c, value: 0x00000000 Error: 382 57157 stellaris.c:891 stellaris_write(): flash writing failed with CRIS: 0x0 Error: 383 57158 flash.c:98 flash_driver_write(): error writing to flash at address 0x00000000 at offset 0x00000000 (-902) Debug: 384 57158 command.c:440 run_command(): Command failed with error code -902 User : 385 57158 command.c:642 openocd_jim_vfprintf(): User : 387 57158 command.c:642 openocd_jim_vfprintf(): User : 389 57158 command.c:642 openocd_jim_vfprintf(): User : 391 57158 command.c:642 openocd_jim_vfprintf(): User : 393 57158 command.c:642 openocd_jim_vfprintf(): -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development