@@ -21,10 +21,7 @@ Finally there is **Y**et **A**nother **Picoprobe** around, the YAPicoprobe.
21
21
NOTE: Pico2 / RP2350 can also be used as probe hardware.
22
22
This is an experimental feature.
23
23
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.
28
25
29
26
30
27
## Features
@@ -125,6 +122,7 @@ NOTE: For best RP2040 support, OpenOCD bundled with PlatformIO is recommended.
125
122
See <<platformio>>
126
123
127
124
125
+ [[dap-optimization]]
128
126
#### Parameter Optimization
129
127
130
128
YAPicoprobe tries to identify the connecting tool and sets some internal parameters for best performance.
@@ -157,6 +155,8 @@ DAP_PACKET_SIZE=64
157
155
DAP_PACKET_SIZE=64
158
156
|===
159
157
158
+ Both parameters are also user settable, see <<runtime-configuration>>.
159
+
160
160
161
161
#### SWD Adapter Speed
162
162
The 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:
339
339
340
340
## Configuration
341
341
342
+ [[runtime-configuration]]
342
343
### Runtime Configuration of Probe Parameters
343
344
344
345
Several parameters can be configured via the Debug CDC of the probe. These parameters include
@@ -351,26 +352,40 @@ Following procedure applies:
351
352
* connect with a terminal program to the Debug CDC of the probe
352
353
* unlock configuration thru hitting <enter>, this works as long there is no `pwd`
353
354
* 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
+ |====
358
364
* 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
+ |====
368
382
* special characters:
369
383
** CR/LF - end the line
370
384
** BS - backspace one character
371
- * unknown commands / variables are ignored
385
+ * unknown commands / variables are ignored and lock configuration
372
386
* if configuration is locked, all commands are ignored (except `pwd:<your-pwd>` )
373
387
388
+
374
389
[NOTE]
375
390
====
376
391
* the interface is far from perfect
0 commit comments