Skip to content
lithochasm edited this page Jul 29, 2024 · 2 revisions

Welcome to the Defcon32-Badge wiki!

Dev Notes

Current rev is with Micropython - hold the button on the pico when plugging it into your computer. A usb drive should appear called RPI-U2F or something similar. Take the firmware from the repo / micropython folder and drop it in. Then reboot the pi. After use something like Thonny to upload all the files in the micropython software directory to the badge.

Troubleshooting

  • Screen is white - Check the cable is plugged in all the way and the black connector to seat the cable is pressed down all the way on both sides. If the right side connecter is not pushed down, it can cause this. If it's still white, check the solder joints on the connector.

Build Single U2F Source: https://forum.micropython.org/viewtopic.php?t=10961 sudo apt-get install git sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi sudo apt-get install build-essential sudo apt-get install cmake git clone git@github.com:micropython/micropython.git cd micropython/mp-cross make cd .. git submodule update --init lib/pico-sdk lib/tinyusb Now put all your python files like main.py, boot.py, ... inside the ports/rp2/modules directory. When finished build this micropython port as shown here: CODE: SELECT ALL cd ports/rp2 make You should now have the output files within ports/rp2/build-PICO Especially helpful is the UF2 file which you can drag and drop onto a Pico while it is booted into its built-in bootloader. This UF2 file now contains MicroPython and all your files frozen into it and your ready 🥳

Clone this wiki locally