Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.51 KB

dev-guide-linux.md

File metadata and controls

37 lines (29 loc) · 1.51 KB

Development Guide for Linux

Setup

To set up your development environment on Linux, follow these steps:

  1. Update your package list and install the necessary packages:
    sudo apt update && sudo apt install make screen zip

You should now be able to run the make command in the root of the repo to get started.

A note on make install

make install is a command that can be used to quickly install the code you're working on onto the board. On linux you can use the findmnt command to locate your board's mount point.

findmnt
...
├─/media/username/SOME-VALUE /dev/sdb1 vfat rw,nosuid,nodev,relatime 0 0

For example, if the board is mounted at /media/username/SOME-VALUE then your install command will look like:

make install BOARD_MOUNT_POINT=/media/username/SOME-VALUE/

Accessing the Serial Console

To see streaming logs and use the on-board repl you must access the Circuit Python serial console. Accessing the serial console starts with finding the tty port for the board. The easiest way to do that is by plugging in your board and running:

ls -lah /dev

Look for the file that was created around the same time that you plugged in the board. For Linux users the port typically looks like /dev/ttyACM0. You can then connect to the board using the screen command:

screen /dev/ttyACM0

For more information visit the Circuit Python Serial Console documentation.