@@ -21,10 +21,7 @@ Finally there is **Y**et **A**nother **Picoprobe** around, the YAPicoprobe.
2121NOTE: Pico2 / RP2350 can also be used as probe hardware.
2222 This is an experimental feature.
2323
24- WARNING: Pico2 / RP2350 targets are currently not supported.
25-
26- WARNING: Pico2 target is only working at <= 300kHz reliably. +
27- ``time /home/hardy/.pico-sdk/openocd/0.12.0+dev/openocd.exe -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /home/hardy/.pico-sdk/openocd/0.12.0+dev/scripts -f /home/hardy/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl -f interface/cmsis-dap.cfg -f target/rp2350.cfg -c "adapter speed 349" -c "program {pio_blink.elf} verify reset; shutdown;"``
24+ WARNING: Pico2 / RP2350 targets are under development and experimental.
2825
2926
3027## Features
@@ -125,6 +122,7 @@ NOTE: For best RP2040 support, OpenOCD bundled with PlatformIO is recommended.
125122 See <<platformio>>
126123
127124
125+ [[dap-optimization]]
128126#### Parameter Optimization
129127
130128YAPicoprobe tries to identify the connecting tool and sets some internal parameters for best performance.
@@ -157,6 +155,8 @@ DAP_PACKET_SIZE=64
157155DAP_PACKET_SIZE=64
158156|===
159157
158+ Both parameters are also user settable, see <<runtime-configuration>>.
159+
160160
161161#### SWD Adapter Speed
162162The tools above allow specification of the adapter speed. This is the clock frequency between probe and target device.
@@ -339,6 +339,7 @@ The Pico Debug Probe has four additional LEDs. Assignment is as follows:
339339
340340## Configuration
341341
342+ [[runtime-configuration]]
342343### Runtime Configuration of Probe Parameters
343344
344345Several parameters can be configured via the Debug CDC of the probe. These parameters include
@@ -351,26 +352,40 @@ Following procedure applies:
351352* connect with a terminal program to the Debug CDC of the probe
352353* unlock configuration thru hitting <enter>, this works as long there is no `pwd`
353354* commands: `<cmd>`
354- ** `lock` - lock the configuration parameters
355- ** `killall` - kill all current configuration parameters
356- ** `reset` - restart the probe
357- ** `show` - shows the current configuration (initially empty)
355+ +
356+ [%autowidth]
357+ |====
358+ | `help` | show available variables/cmds
359+ | `lock` | lock the configuration parameters
360+ | `killall` | kill all current configuration parameters
361+ | `reset` | restart the probe
362+ | `show` | show the current configuration (initially empty)
363+ |====
358364* variables: `<variable>=<value>`
359- ** `f_cpu` - set CPU frequency in MHz
360- ** `f_swd` - set SWD frequency in kHz
361- ** `net` - set the net of the probes IP address `192.168.<net>.1`
362- ** `nick` - set nickname of the probe. Use this with care because it also changes
363- the USB serial number (which might be intended)
364- ** `pwd` - set a password for locking the configuration. Unlocking is done subsequently
365- with `pwd:<your-pwd>`
366- ** `r_start` / `r_end` - RAM start/end for generic target to override default 0x20000000..0x20040000.
367- ** `rtt` - enable/disable RTT access, default is RTT enabled (0: disable, 1:enable).
365+ +
366+ [%autowidth]
367+ |====
368+ | `f_cpu` | set CPU frequency in MHz
369+ | `f_swd` | set SWD frequency in kHz
370+ | `net` | set the net of the probes IP address `192.168.<net>.1` , defaults to "14"
371+ | `nick` | set nickname of the probe. Use this with care because it also changes
372+ the USB serial number (which might be intended)
373+ | `pwd` | set a password for locking the configuration. Unlocking is done subsequently with `pwd:<your-pwd>`
374+ | `ram_start` +
375+ `ram_end` | RAM start/end for generic target to override default 0x20000000..0x20040000. This is mainly for
376+ RTT detection
377+ | `rtt` | enable/disable RTT access, default is RTT enabled (0: disable, 1:enable)
378+ | `dap_psize` +
379+ `dap_pcnt` | set `DAP_PACKET_SIZE` and `DAP_PACKET_COUNT` , see <<dap-optimization>>. If only one of those values
380+ is set, the other goes to a default (64/1)
381+ |====
368382* special characters:
369383** CR/LF - end the line
370384** BS - backspace one character
371- * unknown commands / variables are ignored
385+ * unknown commands / variables are ignored and lock configuration
372386* if configuration is locked, all commands are ignored (except `pwd:<your-pwd>` )
373387
388+
374389[NOTE]
375390====
376391* the interface is far from perfect
0 commit comments