Skip to content

Commit ed623c0

Browse files
Panic message is written to RAM, not flash (#28)
Co-authored-by: Jan Niehusmann <[email protected]>
1 parent 70529b5 commit ed623c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ Bus 003 Device 078: ID 32ac:0021 Framework Laptop 16 B1 Display
173173
bcdDevice 0.10
174174
```
175175

176-
## Panic
176+
## Rust Panic
177177

178-
On panic the RP2040 resets itself into bootloader mode.
178+
When the Rust code panics, the RP2040 resets itself into bootloader mode.
179179
This means a new firmware can be written to overwrite the old one.
180180

181-
Additionally the panic message is written to flash, which can be read as follows:
181+
Additionally the panic message is written to XIP RAM, which can be read with [picotool](https://github.com/raspberrypi/picotool):
182182

183183
```sh
184184
sudo picotool save -r 0x15000000 0x15004000 message.bin

0 commit comments

Comments
 (0)