Skip to content

Commit 8f425a0

Browse files
committed
add rom-corruption
1 parent 44621df commit 8f425a0

6 files changed

Lines changed: 42 additions & 1 deletion

File tree

_data/sidebars/picoruby_sidebar.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ entries:
2323
url: "/index.html"
2424
output: web, pdf
2525
type: homepage
26+
- title: R2P2 ROM corruption
27+
url: "/rom-corruption"
28+
output: web, pdf
29+
type: homepage
2630
- title: R2P2 WiFi Config
2731
url: "/wifi"
2832
output: web

_data/sidebars/picoruby_sidebar.yml.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ entries:
2626
url: /index.html
2727
output: web, pdf
2828
type: homepage
29+
- title: R2P2 ROM corruption
30+
url: /rom-corruption
31+
output: web, pdf
32+
type: homepage
2933
- title: R2P2 WiFi Config
3034
url: /wifi
3135
output: web

images/r2p2-init-failure.png

112 KB
Loading

images/r2p2-init-success.png

91.3 KB
Loading

index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ Microcontroller programming framework.
5757

5858
#### 1-1 Getting start with R2P2
5959

60-
- Download the latest `R2P2-*.uf2` from the releases page of the repository
60+
- Download the latest `R2P2-*.uf2` from [the releases page of the repository](https://github.com/picoruby/R2P2/releases)
6161
- Drag and drop it into the RPI-RP2 drive
6262
- Open a proper port in your terminal emulator
63+
- Check if the ROM is sane. See [R2P2 ROM corruption on RP2040/RP2350](rom-corruption)
6364

6465
<iframe width="560" height="315" src="https://www.youtube.com/embed/s4M4rBnPSus?si=--2VC4Od8wssmHUs" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
6566

pages/r2p2/rom-corruption.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
keywords: documentation
3+
layout: page
4+
tags: [tips]
5+
title: R2P2 ROM corruption on RP2040/RP2350
6+
sidebar: picoruby_sidebar
7+
permalink: rom-corruption
8+
folder: r2p2
9+
---
10+
11+
R2P2 formats part of the flash ROM as a FAT disk during its first startup and generates the directories and files necessary for the system.
12+
This process may sometimes fail, so please follow the steps below to verify that initialization has been successful.
13+
14+
- Start R2P2 and connect to a terminal emulator
15+
- If initialization is complete, regardless it's successful or not, the shell should be running
16+
- Execute the `reboot` command here
17+
- The microcontroller will restart, and R2P2's initialization process should be displayed on the terminal
18+
- At this time, file integrity checks may fail as shown in the image below
19+
20+
![](/images/r2p2-init-failure.png)
21+
22+
- If this happens, please `reboot` again
23+
- If the same file check fails again, of if another file fails, it is suspected that the flash ROM state has become corrupted
24+
- Download `flash_nuke.uf2` from the page below and install it on the microcontroller
25+
26+
[https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html#resetting-flash-memory](https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html#resetting-flash-memory)
27+
28+
- Since the microcontroller's ROM will be zero-cleared, install R2P2 again and repeat this procedure until all checks pass as shown in the image below
29+
30+
![](/images/r2p2-init-success.png)
31+
32+
Even in cases other than the above, if you feel that the ROM has become corrupted, please refer to this procedure to initialize the microcontroller.

0 commit comments

Comments
 (0)