Around half a year ago I built a board using LPC4330 and one using LPC4310.
I connected a SPIFI and tried compiling and flashing a program onto the SPIFI.
Unfortunately I did not succeed.
I also tried the example sources from Freddie Chopin, but I never succeeded in getting things working.
As I had a bunch of problems getting this to work, I decided to ‘step back’ and practice on the LPC1768 while waiting for the LPC4337 to become available in my area.
I now got the LPC4337, and I can do a lot of things with OpenOCD 0.7.0:
Here’s what I did via Telnet; reset fails, which is probably why I cannot write to the device:
$ openocd -c "telnet_port 4444" -f interface/olimex-arm-usb-tiny-h.cfg -f target/lpc4337.cfg
Open On-Chip Debugger 0.7.0 (2013-06-01-21:38)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 500 kHz
cortex_m3 reset_config vectreset
Info : max TCK change to: 30000 kHz
Info : clock speed 500 kHz
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b, part: 0xba01, ver: 0x0)
Info : lpc4337.m4: hardware has 6 breakpoints, 4 watchpoints
Info : lpc4337.m0: hardware has 2 breakpoints, 1 watchpoints
Info : accepting 'telnet' connection from 4444
> adapter_khz 500
adapter speed: 500 kHz
> reset halt
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b, part: 0xba01, ver: 0x0)
Warn : Only resetting the Cortex-M3 core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
Warn : Only resetting the Cortex-M3 core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x10403e00 msp: 0x10089ff0
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
TARGET: lpc4337.m0 - Not halted
in procedure 'reset'
> flash banks
> echo "hello?"
hello?
> dump_image old_img_a.bin 0x1a000000 0x80000
dumped 524288 bytes in 18.955248s (27.011 KiB/s)
> dump_image old_img_b.bin 0x1b000000 0x80000
dumped 524288 bytes in 19.290758s (26.541 KiB/s)
> poll
background polling: on
TAP: lpc4337.m4 (enabled)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x10403e00 msp: 0x10089ff0
> flash write_image erase LEDBlink-4339.bin 0x1a000000 bin
flash write_image erase LEDBlink-4339.bin 0x1a000000 bin: command requires more arguments
in procedure 'flash'
I also tried writing to the chip(s) using the “program” convenience procedure; it didn’t succeed either.
Here’s the -d3 log for the “reset halt” command:
Debug: 532 83791 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_reset halt
Debug: 533 83791 command.c:145 script_debug(): command - reset ocd_reset halt
Debug: 535 83797 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 536 83797 command.c:145 script_debug(): command - ocd_target ocd_target names
Debug: 537 83797 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 invoke-event reset-start
Debug: 538 83797 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 invoke-event reset-start
Debug: 539 83797 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 invoke-event reset-start
Debug: 540 83797 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 invoke-event reset-start
Debug: 541 83797 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init-reset
Debug: 542 83797 command.c:145 script_debug(): command - ocd_jtag ocd_jtag arp_init-reset
Debug: 543 83797 core.c:1525 jtag_init_reset(): Initializing with hard TRST+SRST reset
Debug: 544 83797 core.c:732 jtag_add_reset(): JTAG reset with TLR instead of TRST
Debug: 545 83797 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 546 83798 core.c:1417 jtag_init_inner(): Init JTAG chain
Debug: 547 83798 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 548 83799 core.c:1048 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 549 83799 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 550 83801 core.c:951 jtag_examine_chain_display(): JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : 551 83801 core.c:951 jtag_examine_chain_display(): JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b, part: 0xba01, ver: 0x0)
Debug: 552 83801 core.c:1208 jtag_validate_ircapture(): IR capture validation scan
Debug: 553 83802 core.c:1267 jtag_validate_ircapture(): lpc4337.m4: IR capture 0x01
Debug: 554 83802 core.c:1267 jtag_validate_ircapture(): lpc4337.m0: IR capture 0x01
Debug: 555 83803 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 cget -chain-position
Debug: 556 83803 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 cget -chain-position
Debug: 557 83803 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled lpc4337.m4
Debug: 558 83803 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled lpc4337.m4
Debug: 559 83803 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 invoke-event examine-start
Debug: 560 83803 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 invoke-event examine-start
Debug: 561 83803 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 arp_examine
Debug: 562 83803 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 arp_examine
Debug: 563 83803 arm_adi_v5.c:1086 ahbap_debugport_init():
Debug: 564 83806 arm_adi_v5.c:1048 dap_syssec(): DAP: mdmap_init for idcode: 4ba00477
Debug: 565 83809 arm_adi_v5.c:945 dap_syssec_kinetis_mdmap(): id doesn't match 00000000 != 0x001C0000
Debug: 566 83809 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 invoke-event examine-end
Debug: 567 83809 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 invoke-event examine-end
Debug: 568 83809 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 cget -chain-position
Debug: 569 83809 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 cget -chain-position
Debug: 570 83809 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled lpc4337.m0
Debug: 571 83809 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled lpc4337.m0
Debug: 572 83809 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 invoke-event examine-start
Debug: 573 83809 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 invoke-event examine-start
Debug: 574 83810 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 arp_examine
Debug: 575 83810 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 arp_examine
Debug: 576 83810 arm_adi_v5.c:1086 ahbap_debugport_init():
Debug: 577 83813 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 invoke-event examine-end
Debug: 578 83813 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 invoke-event examine-end
Debug: 579 83813 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 invoke-event reset-assert-pre
Debug: 580 83813 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 invoke-event reset-assert-pre
Debug: 581 83813 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 invoke-event reset-assert-pre
Debug: 582 83813 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 invoke-event reset-assert-pre
Debug: 583 83813 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 cget -chain-position
Debug: 584 83813 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 cget -chain-position
Debug: 585 83813 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled lpc4337.m4
Debug: 586 83813 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled lpc4337.m4
Debug: 587 83814 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 arp_reset assert 1
Debug: 588 83814 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 arp_reset assert 1
Debug: 589 83814 target.c:1615 target_free_all_working_areas_restore(): freeing all working areas
Debug: 590 83814 cortex_m.c:973 cortex_m3_assert_reset(): target->state: halted
Debug: 591 83820 cortex_m.c:1064 cortex_m3_assert_reset(): Using Cortex-M3 VECTRESET
Warn : 592 83820 cortex_m.c:1068 cortex_m3_assert_reset(): Only resetting the Cortex-M3 core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
Debug: 593 83822 cortex_m.c:596 cortex_m3_halt(): target->state: reset
Debug: 594 83823 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 cget -chain-position
Debug: 595 83823 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 cget -chain-position
Debug: 596 83823 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled lpc4337.m0
Debug: 597 83823 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled lpc4337.m0
Debug: 598 83823 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 arp_reset assert 1
Debug: 599 83823 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 arp_reset assert 1
Debug: 600 83823 target.c:1615 target_free_all_working_areas_restore(): freeing all working areas
Debug: 601 83823 cortex_m.c:973 cortex_m3_assert_reset(): target->state: reset
Debug: 602 83880 cortex_m.c:1064 cortex_m3_assert_reset(): Using Cortex-M3 VECTRESET
Warn : 603 83881 cortex_m.c:1068 cortex_m3_assert_reset(): Only resetting the Cortex-M3 core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
Debug: 604 83884 cortex_m.c:596 cortex_m3_halt(): target->state: reset
Debug: 605 83885 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 invoke-event reset-assert-post
Debug: 606 83885 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 invoke-event reset-assert-post
Debug: 607 83885 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 invoke-event reset-assert-post
Debug: 608 83885 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 invoke-event reset-assert-post
Debug: 609 83885 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 invoke-event reset-deassert-pre
Debug: 610 83885 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 invoke-event reset-deassert-pre
Debug: 611 83885 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 invoke-event reset-deassert-pre
Debug: 612 83885 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 invoke-event reset-deassert-pre
Debug: 613 83885 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 cget -chain-position
Debug: 614 83885 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 cget -chain-position
Debug: 615 83886 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled lpc4337.m4
Debug: 616 83886 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled lpc4337.m4
Debug: 617 83886 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 arp_reset deassert 1
Debug: 618 83886 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 arp_reset deassert 1
Debug: 619 83886 target.c:1615 target_free_all_working_areas_restore(): freeing all working areas
Debug: 620 83886 cortex_m.c:1100 cortex_m3_deassert_reset(): target->state: reset
Debug: 621 83886 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 cget -chain-position
Debug: 622 83886 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 cget -chain-position
Debug: 623 83886 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled lpc4337.m0
Debug: 624 83886 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled lpc4337.m0
Debug: 625 83886 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 arp_reset deassert 1
Debug: 626 83886 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 arp_reset deassert 1
Debug: 627 83886 target.c:1615 target_free_all_working_areas_restore(): freeing all working areas
Debug: 628 83886 cortex_m.c:1100 cortex_m3_deassert_reset(): target->state: reset
Debug: 629 83886 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 invoke-event reset-deassert-post
Debug: 630 83886 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 invoke-event reset-deassert-post
Debug: 631 83886 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 invoke-event reset-deassert-post
Debug: 632 83887 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 invoke-event reset-deassert-post
Debug: 633 83887 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 cget -chain-position
Debug: 634 83887 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 cget -chain-position
Debug: 635 83887 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled lpc4337.m4
Debug: 636 83887 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled lpc4337.m4
Debug: 637 83887 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 arp_waitstate halted 1000
Debug: 638 83887 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 arp_waitstate halted 1000
Debug: 639 83942 cortex_m.c:546 cortex_m3_poll(): Exit from reset with dcb_dhcsr 0x30003
Debug: 640 83944 cortex_m.c:233 cortex_m3_endreset_event(): DCB_DEMCR = 0x01000501
Debug: 641 83948 target.c:1978 target_write_u32(): address: 0xe0002000, value: 0x00000003
Debug: 642 83950 target.c:1978 target_write_u32(): address: 0xe0002008, value: 0x00000000
Debug: 643 83952 target.c:1978 target_write_u32(): address: 0xe000200c, value: 0x00000000
Debug: 644 83954 target.c:1978 target_write_u32(): address: 0xe0002010, value: 0x00000000
Debug: 645 83957 target.c:1978 target_write_u32(): address: 0xe0002014, value: 0x00000000
Debug: 646 83959 target.c:1978 target_write_u32(): address: 0xe0002018, value: 0x00000000
Debug: 647 83960 target.c:1978 target_write_u32(): address: 0xe000201c, value: 0x00000000
Debug: 648 83962 target.c:1978 target_write_u32(): address: 0xe0002020, value: 0x00000000
Debug: 649 83964 target.c:1978 target_write_u32(): address: 0xe0002024, value: 0x00000000
Debug: 650 83966 target.c:1978 target_write_u32(): address: 0xe0001020, value: 0x00000000
Debug: 651 83968 target.c:1978 target_write_u32(): address: 0xe0001024, value: 0x00000000
Debug: 652 83970 target.c:1978 target_write_u32(): address: 0xe0001028, value: 0x00000000
Debug: 653 83972 target.c:1978 target_write_u32(): address: 0xe0001030, value: 0x00000000
Debug: 654 83974 target.c:1978 target_write_u32(): address: 0xe0001034, value: 0x00000000
Debug: 655 83976 target.c:1978 target_write_u32(): address: 0xe0001038, value: 0x00000000
Debug: 656 83979 target.c:1978 target_write_u32(): address: 0xe0001040, value: 0x00000000
Debug: 657 83981 target.c:1978 target_write_u32(): address: 0xe0001044, value: 0x00000000
Debug: 658 83982 target.c:1978 target_write_u32(): address: 0xe0001048, value: 0x00000000
Debug: 659 83984 target.c:1978 target_write_u32(): address: 0xe0001050, value: 0x00000000
Debug: 660 83986 target.c:1978 target_write_u32(): address: 0xe0001054, value: 0x00000000
Debug: 661 83988 target.c:1978 target_write_u32(): address: 0xe0001058, value: 0x00000000
Debug: 662 83994 cortex_m.c:412 cortex_m3_debug_entry():
Debug: 663 84000 cortex_m.c:180 cortex_m3_clear_halt(): NVIC_DFSR 0x9
Debug: 664 84006 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 0 value 0x0
Debug: 665 84010 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 1 value 0x0
Debug: 666 84014 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 2 value 0x0
Debug: 667 84018 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 3 value 0x0
Debug: 668 84022 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 4 value 0x0
Debug: 669 84026 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 5 value 0x0
Debug: 670 84030 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 6 value 0x0
Debug: 671 84034 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 7 value 0x0
Debug: 672 84038 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 8 value 0x0
Debug: 673 84044 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 9 value 0x0
Debug: 674 84049 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 10 value 0x0
Debug: 675 84052 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 11 value 0x0
Debug: 676 84057 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 12 value 0x0
Debug: 677 84061 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 13 value 0x10089ff0
Debug: 678 84065 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 14 value 0xffffffff
Debug: 679 84068 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 15 value 0x10403e00
Debug: 680 84072 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 16 value 0x1000000
Debug: 681 84076 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 17 value 0x10089ff0
Debug: 682 84080 cortex_m.c:1487 cortex_m3_load_core_reg_u32(): load from core reg 18 value 0x0
Debug: 683 84084 cortex_m.c:1518 cortex_m3_load_core_reg_u32(): load from special reg 19 value 0x0
Debug: 684 84090 cortex_m.c:1518 cortex_m3_load_core_reg_u32(): load from special reg 20 value 0x0
Debug: 685 84095 cortex_m.c:1518 cortex_m3_load_core_reg_u32(): load from special reg 21 value 0x0
Debug: 686 84100 cortex_m.c:1518 cortex_m3_load_core_reg_u32(): load from special reg 22 value 0x0
Debug: 687 84100 cortex_m.c:483 cortex_m3_debug_entry(): entered debug state in core mode: Thread at PC 0x3e4010, target->state: halted
Debug: 688 84100 target.c:1294 target_call_event_callbacks(): target event 0 (gdb-halt)
Debug: 689 84101 target.c:1294 target_call_event_callbacks(): target event 1 (halted)
User : 690 84101 target.c:1667 target_arch_state(): target state: halted
User : 691 84101 armv7m.c:532 armv7m_arch_state(): target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x10403e00 msp: 0x10089ff0
Debug: 692 84101 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m4 curstate
Debug: 693 84101 command.c:145 script_debug(): command - ocd_lpc4337.m4 ocd_lpc4337.m4 curstate
Debug: 694 84101 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 cget -chain-position
Debug: 695 84101 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 cget -chain-position
Debug: 696 84101 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled lpc4337.m0
Debug: 697 84101 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled lpc4337.m0
Debug: 698 84101 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 arp_waitstate halted 1000
Debug: 699 84101 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 arp_waitstate halted 1000
Debug: 700 84106 target.c:2442 target_wait_state(): waiting for target halted...
Info : 702 84886 target.c:455 target_poll(): Halt timed out, wake up GDB.
Debug: 703 84887 target.c:1294 target_call_event_callbacks(): target event 0 (gdb-halt)
Error: 704 85108 target.c:2450 target_wait_state(): timed out while waiting for target halted
Debug: 705 85109 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_lpc4337.m0 curstate
Debug: 706 85109 command.c:145 script_debug(): command - ocd_lpc4337.m0 ocd_lpc4337.m0 curstate
User : 707 85109 command.c:549 command_print(): TARGET: lpc4337.m0 - Not halted
Debug: 708 85109 command.c:631 run_command(): Command failed with error code -4
User : 709 85109 command.c:669 command_run_line(): in procedure 'reset'
Did anyone succeed in writing to the LPC4337’s Flash memory ?
If so, could I ask you to send me your .cfg file(s) ?
-Actually ANY LPC43x02, LPC43x03, LPC43x05 or LPC43x07 config files will do if they work for you; I’m willing to make the necessary changes myself.