Erase the config of a Portal with the debug port available.
You need to install openocd
and nc
.
You will need some kind of debug probe, in this example we will show the ST-Link which is very common. You will also need a TC-2030NL Tag-Connect cable, and dupont wires to wire them up together as follows:
Connect four male-to-female dupont wires to the debug probe. You will need the following signals:
- SWDIO
- SWCLK
- GND
- 3.3V
Note that on this specific kind of debugger the signals are on the second row of pins:
Connect the other end of the dupont wires to the Tag-Connect cable as follows. Note the orientation of the cable, which is very important (the "notch" is at the bottom).
Locate the debug port on the back of your Portal and connect the cable to it. The cable has spring loaded pins, so you may have to manually apply a bit of pressure to form a good connection.
If you've wired up everything correctly you will see the display power on.
You are now ready to run the script, which will only take a few seconds.
Clone this project, enter the directory and run ./run.sh
.
If you get permission problems you can try running it with sudo: sudo ./run.sh
If successful your device will reboot into the initialization screen. You may have to perform a "cold boot" (remove and re-apply power) for the init screen to appear.
This project is licensed under MIT