|
| 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 | +  |
| 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 | +  |
| 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