Open victoryred opened 10 months ago
I found this in openocd/scripts/test/syntax1.cfg-
$_TARGETNAME configure -event reset-init { soft_reset_halt mvb 0xE01FC040 0x01 }
The Arduino-ide v2.2.1 throws the following notification after halting as stated above-
"Request 2 cancelled on connection close"
Is there a reset-init script for the rp2040 microcontroller in the pico? This is in the Openocd documentation...
Terminal 1 openocd -s /home/penta/.arduino15/packages/rp2040/hardware/rp2040/3.6.2/lib/ -f picoprobe_cmsis_dap.tcl
Terminal 2 gdb-multiarch /tmp/arduino/sketches/8CF8FC96861539E476DC0E8FD09DD06D/sha1.ino.elf target remote localhost:3333
/* (gdb) monitor reset init [rp2040.core0] halted due to debug-request, current mode: Thread xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00 [rp2040.core1] halted due to debug-request, current mode: Thread xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00 (gdb)
However; (gdb) monitor reset (gdb) monitor init // Equiv. works without halting (gdb)
*/
Does Raspberrypi have the reset-init script? If not where can I find it? When I'm running manually in a terminal I have control over what I type, in the Arduino-ide 2.2.1 or VSCode not so much.
9.1 Types of Reset
There are many kinds of reset possible through JTAG, but they may not all work with a given board and adapter. That’s part of why reset configuration can be error prone.
In the best case, OpenOCD can hold SRST, then reset the TAPs via TRST and send commands through JTAG to halt the CPU at the reset vector before the 1st instruction is executed. Then when it finally releases the SRST signal, the system is halted under debugger control before any code has executed. This is the behavior required to support the reset halt and reset init commands; after reset init a board-specific script might do things like setting up DRAM. (See Reset Command.)
This IS the Reset doc... Command: reset Command: reset run Command: reset halt Command: reset init
Regards-