Skip to content

Circuit Python

thetazero edited this page Apr 11, 2022 · 17 revisions

Using Vscode

Seting Up VSCode

  1. Install the Circuit Python Extension for VSCode

Trouble shooting

  • 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)

Updating the PyCubedMini Board

Based on the instructions here

  1. Connect the PyCubed-Mini board to your computer via USB.
  2. 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.
  3. Then drag and drop the update_bootloader.uf2 into the the PYCUBEDBOOT drive (do this). However, renaming it to CURRENT.uf2 and replacing the current CURRENT.uf2 file in the drive also worked. The board should automatically reboot and update.
  4. Wait for the board to unmount, then remount in bootloader mode again.
  5. Copy over firmware.uf2
  6. The board should automatically reboot, and remount as CIRCUITPY
  7. If the libraries/code require updating also update the lib directory and the relevant python files.

Most Current Versions

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.

Clone this wiki locally