Skip to main content

Project Based Engineering Instrumentation High Level Coding and Microcontrollers

Section 7.3 Reformatting your CPX/CPB

If your CPX/CPX is completely bricked you can completely reformat it. In order to do that you simply put the CPX/CPB into CPLAYBOOT mode. Then drag either the CPX eraser tool or the CPB eraser tool. After that, you can reinstall the CircuitPython UF2 and start fresh (See Chapter 6) [32]. If you have a linux computer you can also access the REPL of your CPX/CPB using the commands below
sudo screen /dev/ttyACM0
import storage
storage.erase_filesystem()
Then you would proceed with installing the CircuitPython UF2 again and starting fresh. Note that this will erase everything on your CPX/CPB so make sure you have a backup of your code and files before doing this. If you feel like you’ve tried everything this troubleshooting guide may have some other steps outlined to help you. However, I have had great experience with the eraser tool above [32].