Hi , I am unable to upload any sketch to my Nicla Sense ME.
Here's the verbose upload output:
Open On-Chip Debugger 0.11.0+dev-gab95bac57-dirty (2021-05-11-10:57)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
adapter speed: 1000 kHz
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: FW Version = v1.0
Info : CMSIS-DAP: Serial# = 367A6B55
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Error: Error connecting DP: cannot read IDR
the selected serial port
does not exist or your board is not connected
I also tried the 'tap reset button twice to enter dfu mode' nothing ... I read somewhere that after pressing this button the rgb led should blink green for a sec then const red , but it's not lighting up at all
Conclusion : I picked up the board again after almost two years and tried troubleshooting this only to realise the IC U9 BQ25120AYFPR
responsible for powering the ANNAB112
is literally broken.
Also most of my research on this pointed to some kind of connectivity(faulty cable) issue or power issue so if you've just stumbled on this maybe verify those things first.
in0
February 26, 2022, 4:36am
2
After pressing the reset button quickly twice, my Nicla does three blinks of the green LED and then blinks the red LED forever (until I upload a sketch or power cycle it)
Unfortunately it does nothing for me.
I also tried using the bhy tool.
Note: I might be uploading the wrong file but I think the problem is that the board isn't acknowledging the sent packets
❯ ./bhy dfu -t nicla -bin ~/Documents/Arduino/blink_nicla_fw/blink_nicla_fw.ino.with_bootloader.NICLA.bin -p /dev/cu.usbmodem367A6B552 -v
The firmware is 120216 bytes long
DEBU[0000] Sending packet 0
DEBU[0000] [0 0 0 0 0 0 1 32 13 110 0 0 69 110 0 0 253 36 0 0 73 110 0 0 9 37 0 0 15 37 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 79 110 0 0 81 110 0 0 0 0 0 0 83 110 0 0 85 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 17 153 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 0 0 0 0 0 0 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 87 110 0 0 16 181 5 76 35 120 51 185 4 75 19 177]
DEBU[0000] Waiting for ack
^C
╭─ ~/Esys/bhy INT ✘ took 5m 11s
╰─
Something similar happens with opened.
❯ openocd -f interface/cmsis-dap.cfg -f target/nrf52.cfg -d
Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 3 options.c:63 configuration_output_handler(): debug_level: 3
User : 14 3 options.c:63 configuration_output_handler():
Debug: 15 3 options.c:244 add_default_dirs(): bindir=/opt/homebrew/Cellar/open-ocd/0.11.0/bin
Debug: 16 3 options.c:245 add_default_dirs(): pkgdatadir=/opt/homebrew/Cellar/open-ocd/0.11.0/share/openocd
Debug: 17 3 options.c:246 add_default_dirs(): exepath=/opt/homebrew/Cellar/open-ocd/0.11.0/bin
Debug: 18 3 options.c:247 add_default_dirs(): bin2data=../share/openocd
Debug: 19 3 configuration.c:42 add_script_search_dir(): adding /Users/shubhsboson/Library/Preferences/org.openocd
Debug: 20 3 configuration.c:42 add_script_search_dir(): adding /Users/shubhsboson/.config/openocd
Debug: 21 3 configuration.c:42 add_script_search_dir(): adding /Users/shubhsboson/.openocd
Debug: 22 3 configuration.c:42 add_script_search_dir(): adding /opt/homebrew/Cellar/open-ocd/0.11.0/bin/../share/openocd/site
Debug: 23 3 configuration.c:42 add_script_search_dir(): adding /opt/homebrew/Cellar/open-ocd/0.11.0/bin/../share/openocd/scripts
Debug: 24 3 configuration.c:97 find_file(): found /opt/homebrew/Cellar/open-ocd/0.11.0/bin/../share/openocd/scripts/interface/cmsis-dap.cfg
Debug: 25 3 command.c:146 script_debug(): command - adapter driver cmsis-dap
Debug: 27 3 configuration.c:97 find_file(): found /opt/homebrew/Cellar/open-ocd/0.11.0/bin/../share/openocd/scripts/target/nrf52.cfg
Debug: 28 3 configuration.c:97 find_file(): found /opt/homebrew/Cellar/open-ocd/0.11.0/bin/../share/openocd/scripts/target/swj-dp.tcl
Debug: 29 4 command.c:146 script_debug(): command - transport select
Info : 30 4 transport.c:276 jim_transport_select(): auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
Debug: 31 4 command.c:146 script_debug(): command - transport select
Debug: 32 4 command.c:146 script_debug(): command - transport select
Debug: 33 4 command.c:146 script_debug(): command - swd newdap nrf52 cpu -expected-id 0x2ba01477
Debug: 34 4 tcl.c:572 jim_newtap_cmd(): Creating New Tap, Chip: nrf52, Tap: cpu, Dotted: nrf52.cpu, 2 params
Debug: 35 4 core.c:1488 jtag_tap_init(): Created Tap: nrf52.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 36 4 command.c:146 script_debug(): command - dap create nrf52.dap -chain-position nrf52.cpu
Debug: 37 4 command.c:146 script_debug(): command - target create nrf52.cpu cortex_m -dap nrf52.dap
Debug: 38 4 command.c:376 register_command(): command 'rtt' is already registered in '<global>' context
Debug: 39 4 command.c:146 script_debug(): command - adapter speed 1000
Debug: 41 4 core.c:1822 jtag_config_khz(): handle jtag khz
Debug: 42 4 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 43 4 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 44 4 command.c:146 script_debug(): command - nrf52.cpu configure -work-area-phys 0x20000000 -work-area-size 0x4000 -work-area-backup 0
Debug: 45 4 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
Debug: 46 4 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
Debug: 47 4 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
Debug: 48 4 command.c:146 script_debug(): command - transport select
Debug: 49 4 command.c:146 script_debug(): command - cortex_m reset_config sysresetreq
Debug: 51 4 command.c:146 script_debug(): command - nrf52.cpu configure -event examine-fail nrf52_check_ap_lock
Debug: 52 4 command.c:146 script_debug(): command - flash bank nrf52.flash nrf5 0x00000000 0 1 1 nrf52.cpu
Debug: 54 5 tcl.c:1319 handle_flash_bank_command(): 'nrf5' driver usage field missing
Debug: 55 5 command.c:146 script_debug(): command - flash bank nrf52.uicr nrf5 0x10001000 0 1 1 nrf52.cpu
Debug: 57 5 command.c:376 register_command(): command 'nrf5' is already registered in '<global>' context
Debug: 58 5 command.c:376 register_command(): command 'mass_erase' is already registered in 'nrf5' context
Debug: 59 5 command.c:376 register_command(): command 'info' is already registered in 'nrf5' context
Debug: 60 5 command.c:376 register_command(): command 'nrf51' is already registered in '<global>' context
Debug: 61 5 command.c:376 register_command(): command 'mass_erase' is already registered in 'nrf51' context
Debug: 62 5 command.c:376 register_command(): command 'info' is already registered in 'nrf51' context
Debug: 63 5 tcl.c:1319 handle_flash_bank_command(): 'nrf5' driver usage field missing
Debug: 64 5 command.c:146 script_debug(): command - add_help_text nrf52_recover Mass erase and unlock nRF52 device
Debug: 66 5 command.c:1115 help_add_command(): added 'nrf52_recover' help text
Info : 67 5 server.c:312 add_service(): Listening on port 6666 for tcl connections
Info : 68 5 server.c:312 add_service(): Listening on port 4444 for telnet connections
Debug: 69 5 command.c:146 script_debug(): command - init
Debug: 71 5 command.c:146 script_debug(): command - target init
Debug: 73 5 command.c:146 script_debug(): command - target names
Debug: 74 5 command.c:146 script_debug(): command - nrf52.cpu cget -event gdb-flash-erase-start
Debug: 75 5 command.c:146 script_debug(): command - nrf52.cpu configure -event gdb-flash-erase-start reset init
Debug: 76 5 command.c:146 script_debug(): command - nrf52.cpu cget -event gdb-flash-write-end
Debug: 77 5 command.c:146 script_debug(): command - nrf52.cpu configure -event gdb-flash-write-end reset halt
Debug: 78 5 command.c:146 script_debug(): command - nrf52.cpu cget -event gdb-attach
Debug: 79 5 command.c:146 script_debug(): command - nrf52.cpu configure -event gdb-attach halt 1000
Debug: 80 5 target.c:1639 handle_target_init_command(): Initializing targets...
Debug: 81 5 semihosting_common.c:99 semihosting_common_init():
Debug: 82 10 cmsis_dap_usb_bulk.c:157 cmsis_dap_usb_open(): found product string of 0x2341:0x0060 'Nicla Sense CMSIS-DAP'
Debug: 83 10 cmsis_dap_usb_bulk.c:177 cmsis_dap_usb_open(): enumerating interfaces of 0x2341:0x0060
Debug: 84 12 cmsis_dap_usb_bulk.c:224 cmsis_dap_usb_open(): found interface 0 string 'CMSIS-DAP Adapter'
Debug: 85 12 cmsis_dap_usb_bulk.c:244 cmsis_dap_usb_open(): skipping interface 0, endpoint[0] is not bulk out
Debug: 86 12 cmsis_dap_usb_bulk.c:237 cmsis_dap_usb_open(): skipping interface 1, has only 1 endpoints
Debug: 87 12 cmsis_dap_usb_bulk.c:244 cmsis_dap_usb_open(): skipping interface 2, endpoint[0] is not bulk out
Info : 88 20 cmsis_dap.c:788 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD Supported
Info : 89 22 cmsis_dap.c:768 cmsis_dap_get_version_info(): CMSIS-DAP: FW Version = v1.0
Info : 90 24 cmsis_dap.c:753 cmsis_dap_get_serial_info(): CMSIS-DAP: Serial# = 367A6B55
Info : 91 26 cmsis_dap.c:881 cmsis_dap_swd_open(): CMSIS-DAP: Interface Initialised (SWD)
Debug: 92 28 cmsis_dap.c:953 cmsis_dap_init(): CMSIS-DAP: Packet Size = 64
Debug: 93 30 cmsis_dap.c:966 cmsis_dap_init(): CMSIS-DAP: Packet Count = 1
Debug: 94 30 cmsis_dap.c:969 cmsis_dap_init(): Allocating FIFO for 1 pending packets
Info : 95 32 cmsis_dap.c:809 cmsis_dap_get_status(): SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : 96 42 cmsis_dap.c:1023 cmsis_dap_init(): CMSIS-DAP: Interface ready
Debug: 97 42 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 98 42 core.c:1789 adapter_khz_to_speed(): have interface set up
Debug: 99 44 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 100 44 core.c:1789 adapter_khz_to_speed(): have interface set up
Info : 101 44 core.c:1565 adapter_init(): clock speed 1000 kHz
Debug: 102 44 openocd.c:143 handle_init_command(): Debug Adapter init complete
Debug: 103 44 command.c:146 script_debug(): command - transport init
Debug: 105 44 transport.c:229 handle_transport_init(): handle_transport_init
Debug: 106 44 command.c:146 script_debug(): command - dap init
Debug: 108 44 arm_dap.c:106 dap_init_all(): Initializing all DAPs ...
Debug: 109 48 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 110 54 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 111 59 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 112 65 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 113 70 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 114 76 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 115 81 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 116 87 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 117 92 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 118 98 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 119 103 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 120 109 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 121 114 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 122 120 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 123 125 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 124 131 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 125 136 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 126 142 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 127 147 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 128 153 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 129 158 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 130 164 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 131 169 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 132 175 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 133 180 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 134 186 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 135 191 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 136 197 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 137 202 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 138 208 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 139 213 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 140 219 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 141 224 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 142 230 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 143 235 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 144 241 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 145 246 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 146 252 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 147 257 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 148 263 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 149 268 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 150 274 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 151 279 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 152 285 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 153 290 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 154 296 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 155 301 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 156 307 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 157 312 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 158 318 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 159 323 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 160 329 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 161 334 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 162 340 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 163 345 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 164 351 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 165 356 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 166 362 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 167 367 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 168 373 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 169 378 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 170 384 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 171 389 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 172 395 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 173 400 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 174 406 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 175 411 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 176 417 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 177 422 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 178 428 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 179 433 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 180 439 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 181 444 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 182 450 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 183 455 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 184 461 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 185 466 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 186 472 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 187 477 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 188 483 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 189 488 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 190 494 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 191 499 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 192 505 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 194 510 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 195 516 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 196 521 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 197 527 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 198 532 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 199 538 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Debug: 200 543 cmsis_dap.c:843 cmsis_dap_swd_switch_seq(): JTAG-to-SWD
Debug: 201 549 cmsis_dap.c:647 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK
Error: 202 550 adi_v5_swd.c:144 swd_connect(): Error connecting DP: cannot read IDR
Debug: 203 550 command.c:629 run_command(): Command 'dap init' failed with error code -4
User : 204 551 command.c:694 command_run_line():
Debug: 205 551 command.c:629 run_command(): Command 'init' failed with error code -4
User : 206 551 command.c:694 command_run_line():
Debug: 207 551 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
Debug: 208 555 cmsis_dap.c:848 cmsis_dap_swd_switch_seq(): SWD-to-JTAG
Note: I am not a hardware expert [yet] , so please let me know if I am doing something wrong or stupid.
I encountered this problem as well. I was connecting via a USB hub and am guessing this causes problems. When I switched to a real USB port on my PC, I had no problems uploading my sketch.
1 Like
Was this problem sorted?
I have a similar error. The IDE says "Done uploading" when I tried to upload, but nothing happens. No LEDs, no serial communication nothing.
Note: Board gets recognized when I plug it into the system
Error: nrf52.cpu -- clearing lockup after double fault
Polling target nrf52.cpu failed, trying to reexamine
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
** Programming Finished **
Error: nrf52.cpu -- clearing lockup after double fault
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x01000003 pc: 0xfffffffe msp: 0xffffffd8
Polling target nrf52.cpu failed, trying to reexamine
shutdown command invoked
I tried with multiple laptops still doesn't work , I also received a replacement for this and it works, at least worked the one time I tested it.
This looks different then my issue , In my case the programmer is not getting any acknowledgment packets in return.
system
Closed
December 20, 2022, 11:19am
11
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.