You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 11, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,18 @@ pico-debug runs on one core in a RP2040 and provides a USB CMSIS-DAP interface t
6
6
7
7
Boot the RP2040 with the BOOTSEL button pressed, copy over pico-debug.uf2, and it immediately reboots as a CMSIS-DAP adapter. pico-debug loads as a RAM only .uf2 image, meaning that it is never written to flash and doesn't replace existing user code.
8
8
9
-
*All* 264kBytes of SRAM on the RP2040 is available for running user code; pico-debug shoehorns itself entirely into the 16kBytes of XIP_SRAM (aka flash cache).
9
+
To cater to different user situations, there are two versions of pico-debug: **MAXRAM** and **GIMMECACHE**
10
10
11
-
If viewing this on github, a pre-built binary is available for download on the right under "Releases".
11
+
With **pico-debug-maxram**, *all* 264kBytes of SRAM on the RP2040 is available for running user code; pico-debug shoehorns itself entirely into the 16kBytes of XIP_SRAM (aka flash cache).
12
+
13
+
With **pico-debug-gimmecache**, 248kBytes (94% of total) of SRAM is available for running user code; pico-debug gives plenty of elbow room by occupying only 6% near the very top of SRAM, and unlike MAXRAM, leaves the flash cache operational.
14
+
15
+
If viewing this on github, pre-built binaries are available for download on the right under "Releases".
12
16
13
17
## Caveats whilst using pico-debug
14
18
15
-
- the flash cache cannot be used by the user code, as pico-debug is using this memory
19
+
- MAXRAM only: the flash cache cannot be used by the user code, as pico-debug is using this memory
20
+
- GIMMECACHE only: SRAM 0x2003C000 to 0x2003FFFF must not be used by user code
16
21
- user code cannot reconfigure the PLL and clocks, as the USB peripheral needs this
17
22
- the USB peripheral is used to provide the debugger, so the user code cannot use it as well
0 commit comments