Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8005

General • openocd does not restartpico_w properly

$
0
0
I have a web server on a pico_w. It works correctly. One problem.

When I make a change and reprogram with openocd, the pico_w does not restart properly. A browser on a local PC will not load the web page until I power-cycle the pico_w.

Code:

> sudo openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program mycode.elf verify reset exit"Open On-Chip Debugger 0.12.0+dev-g8b8c9731a (2025-06-19-01:48)Licensed under GNU GPL v2...embedded:startup.tcl:1427: Error: args[i] option value ('CX') is not validin procedure 'program' in procedure 'ocd_process_reset' in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 1427** Programming Started **Info : Padding image section 1 at 0x1004c324 with 220 bytes (bank write end alignment)Warn : Adding extra erase range, 0x1004c400 .. 0x1004cfffInfo :   Erase chunk: 0x00000000 -> 0x0001ffffInfo :   Erase chunk: 0x00020000 -> 0x0003ffffInfo :   Erase chunk: 0x00040000 -> 0x0004cfff** Programming Finished **** Verify Started **** Verified OK **** Resetting Target **shutdown command invoked
But, the target is not properly reset. A local browser will not load the page.
If I cycle power, the local browser will always load the page.

What am I doing wrong? Any ideas?

Tom Dean

Statistics: Posted by tomdean — Thu Jun 19, 2025 1:58 am



Viewing all articles
Browse latest Browse all 8005

Trending Articles