-
Notifications
You must be signed in to change notification settings - Fork 1
Circuit Python
thetazero edited this page Feb 24, 2022
·
17 revisions
- Install the Circuit Python Extension for VSCode
- Opening the Serial Monitor Won't Work (Ubuntu)
running sudo chmod a+rw /dev/ttyACM0 (or whatever other serial port instead of /dev/ttyACM0 fixed the issue temporarily)
Based on the instructions here
- Connect the PyCubed-Mini board to your computer via USB.
- Quickly double click the "RESET" button on the board (only small black button on the board).
When the board boots into BOOTLOADER mode, the LED should be bright and white.
The board should also mount as
PYCUBEDBOOT. - Then drag and drop the
update_bootloader.uf2into the thePYCUBEDBOOTdrive (do this). However, renaming it toCURRENT.uf2and replacing the currentCURRENT.uf2file in the drive also worked. The board should automatically reboot and update. - Wait for the board to unmount, then remount in bootloader mode again.
- Copy over
firmware.uf2 - The board should automatically reboot, and remount as
CIRCUITPY - If the libraries/code require updating also update the
libdirectory and the relevant python files.
Detailed instructions and troubleshooting here. This page will be replaced with the future PyCubedMini instruction set.
Access the most recent versions of update_bootloader.uf2 and firmware.uf2 from here.
Access the most recent version of flight-software on the max-fsw branch of avionics-motherboard/firmware. Copy entire lib directory from that repo and replace the lib directory on your board. Note: We currently do not have access to this branch. However, copying the "firmware/pycubedminiv01/default/lib" directory here also works.