Цитата(Сергей Борщ @ May 7 2015, 09:39)

спасибо за ответ - сделал по Вашей рекомендации.
вывод openocd
CODE
C:\Users\vvs>openocd -f board/lpcxpresso-lpc1769.cfg
Open On-Chip Debugger 0.9.0-rc1 (2015-04-24-22:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.htmlInfo : JLink SWD mode enabled
adapter speed: 100 kHz
adapter speed: 10 kHz
adapter_nsrst_delay: 200
cortex_m reset_config sysresetreq
cortex_m reset_config sysresetreq
Info : J-Link ARM V7 compiled Jun 20 2012 19:45:53
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 70000
Info : J-Link hw type J-Link
Info : J-Link max mem block 9000
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0x0
Info : Vref = 3.112 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 1 TRST = 1
Info : J-Link JTAG Interface ready
Info : clock speed 10 kHz
Info : SWD IDCODE 0x2ba01477
Info : lpc17xx.cpu: hardware has 6 breakpoints, 4 watchpoints
Error: lpc17xx.cpu -- clearing lockup after double fault
target state: halted
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x21000003 pc: 0xfffffffe msp: 0xffffffd8
Polling target lpc17xx.cpu failed, trying to reexamine
Info : lpc17xx.cpu: hardware has 6 breakpoints, 4 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1fff0080 msp: 0x10001ffc
дальше ждет подключения gdb, если в настройках gdb выбрано Load Image - выхлоп следующий, после чего все надо начинать сначала
CODE
Info : accepting 'gdb' connection on tcp/3333
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1fff0080 msp: 0x10001ffc
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1293). Workaround: increase "set remotetimeout" in GDB
Error: usb_bulk_read failed (requested=1730, result=0)
Error: jlink_swd_run_queue failed USB io (-107)
Error: usb_bulk_write failed (requested=3462, result=0)
Error: jlink_swd_run_queue failed USB io (-107)
Error: usb_bulk_write failed (requested=3462, result=0)
Error: jlink_swd_run_queue failed USB io (-107)
Error: usb_bulk_write failed (requested=3462, result=0)
Error: jlink_swd_run_queue failed USB io (-107)
Error: usb_bulk_write failed (requested=34, result=0)
Error: jlink_swd_run_queue failed USB io (-107)
Error: usb_bulk_write failed (requested=102, result=0)
Error: jlink_swd_run_queue failed USB io (-107)
Error: usb_bulk_write failed (requested=88, result=0)
Error: jlink_swd_run_queue failed USB io (-107)
Error: usb_bulk_write failed (requested=84, result=0)
Error: jlink_swd_run_queue failed USB io (-107)
Error: usb_bulk_write failed (requested=34, result=0)
Error: jlink_swd_run_queue failed USB io (-107)
Error: usb_bulk_write failed (requested=34, result=0)
Error: jlink_swd_run_queue failed USB io (-107)
без Load Image шатко-валко заработало, но...
запускается отладка, останавливается на main (как и прошу), делаю пару раз Step Over - получаю в gdb:
CODE
Temporary breakpoint 1, main () at main.c:44
44 Init();
No breakpoint number 2.
Program received signal SIGINT, Interrupt.
0xfffffffe in ?? ()
при этом таргет отваливается от отладки - программа выполняется с перезапуском (циклически), в openocd бесконечно:
CODE
target state: halted
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x21000003 pc: 0xfffffffe psp: 0xffffffd8
Polling target lpc17xx.cpu failed, trying to reexamine
Info : lpc17xx.cpu: hardware has 6 breakpoints, 4 watchpoints
Error: lpc17xx.cpu -- clearing lockup after double fault
target state: halted
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x21000003 pc: 0xfffffffe msp: 0xffffffd8
Polling target lpc17xx.cpu failed, trying to reexamine
Info : lpc17xx.cpu: hardware has 6 breakpoints, 4 watchpoints
Error: lpc17xx.cpu -- clearing lockup after double fault
target state: halted
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x21000003 pc: 0xfffffffe psp: 0xffffffd8
Polling target lpc17xx.cpu failed, trying to reexamine
Info : lpc17xx.cpu: hardware has 6 breakpoints, 4 watchpoints
добиться стабильности пока не получается