Firmware for the CommonSense project.
Go to file
2024-11-01 19:23:04 +01:00
.cargo Add dockerfile; modify readme; add aliases to .cargo/config.toml 2024-11-01 18:26:54 +01:00
src Add link to README; add print statement to main 2024-11-01 19:23:04 +01:00
.gitignore Add embassy-nrf blinky example 2024-11-01 16:31:14 +01:00
build.rs Add embassy-nrf blinky example 2024-11-01 16:31:14 +01:00
Cargo.lock Add embassy-nrf blinky example 2024-11-01 16:31:14 +01:00
Cargo.toml Add embassy-nrf blinky example 2024-11-01 16:31:14 +01:00
Dockerfile Add dockerfile; modify readme; add aliases to .cargo/config.toml 2024-11-01 18:26:54 +01:00
LICENSE Initial commit 2023-08-24 19:13:43 +00:00
memory.x Add embassy-nrf blinky example 2024-11-01 16:31:14 +01:00
README.md Add link to README; add print statement to main 2024-11-01 19:23:04 +01:00

CommonSense_SW

Firmware for the CommonSense project.

Compiling and running

  1. Build the docker image
    $ docker build . -t commonsense
    
  2. Build the firmware
    $ docker run --rm -v $PWD:$PWD -w $PWD -u $(id -u):$(id -g) commonsense cargo build --release
    
  3. Flash / run the firmware
    $ docker run --privileged -v /dev/bus/usb/:/dev/bus/usb --rm -v $PWD:$PWD -w $PWD -u $(id -u):$(id -g) commonsense cargo fr
    $ # OR
    $ docker run --privileged -v /dev/bus/usb/:/dev/bus/usb --rm -v $PWD:$PWD -w $PWD -u $(id -u):$(id -g) commonsense cargo run --release
    

Notes