-
Notifications
You must be signed in to change notification settings - Fork 0
Circuit Python
thetazero edited this page Apr 11, 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.uf2 into the the
PYCUBEDBOOT
drive (do this). However, renaming it toCURRENT.uf2
and replacing the currentCURRENT.uf2
file 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
lib
directory 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.