From b7b3792e1dded9edfc8739aa907ed420c40bef5b Mon Sep 17 00:00:00 2001 From: Nate Gay Date: Tue, 22 Oct 2024 09:55:20 -0700 Subject: [PATCH 1/4] No more button pushing to upload new firmware --- README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e6d98f4..e4a0c8f 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ git --version ```sh pip install -r fprime/requirements.txt ``` -2. Install the arduino-cli +1. Install the arduino-cli ```sh curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=$VIRTUAL_ENV/bin sh ``` @@ -96,7 +96,7 @@ git --version ```sh pip install arduino-cli-cmake-wrapper ``` -2. Install the RP2040 board +1. Install the RP2040 board ```sh arduino-cli config init ``` @@ -106,22 +106,30 @@ git --version ```sh arduino-cli core install rp2040:rp2040@3.9.5 ``` -3. Install additional arduino-cli dependencies: +1. Install additional arduino-cli dependencies: ```sh arduino-cli lib install Time ``` ```sh arduino-cli lib install RadioHead ``` +1. Generate the initial fprime build cache + ```sh + fprime-util generate + ``` ### Deploy onto the RP2040 1. Build the binary ```sh - fprime-util generate && fprime-util build -j20 + fprime-util build -j20 + ``` + +1. Upload the firmware to the proves board over USB + ```sh + arduino-cli upload -v -b 115200 --fqbn rp2040:rp2040:rpipico -p /dev/ttyACM0 -i build-artifacts/rpipico/BroncoDeployment/bin/BroncoDeployment.uf2 ``` -2. Move the binary from 'build-artifacts/rpipico/BroncoDeployment/bin/BroncoDeployment' into the Proves board over USB after it has been intialized in boot loader mode (Press both Boot loader and Reset button at the same time). This should reinit the board automatically and will run the deployment. -3. Run GDS over serial: +1. Run GDS over serial: ```sh fprime-gds -n --dictionary build-artifacts/rpipico/BroncoDeployment/dict/BroncoDeploymentTopologyAppDictionary.xml --comm-adapter uart --uart-baud 115200 --uart-device /dev/ttyACM0 --output-unframed-data - ``` From 422a8367f0b261b1d8a0b08f6bb343af4f8597b1 Mon Sep 17 00:00:00 2001 From: Nate Gay Date: Tue, 22 Oct 2024 19:05:21 -0700 Subject: [PATCH 2/4] Add instructions for finding board mount point --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e4a0c8f..b8d9c1a 100644 --- a/README.md +++ b/README.md @@ -124,13 +124,17 @@ git --version fprime-util build -j20 ``` +1. Find your board's mount location + > For the next steps you'll need to know where your board is mounted. To find your board's mount location run `ls -lah /dev/tyy*` for a list of all possible paths. On Linux and WSL your board's mount location will look like `/dev/ttyACM0`. On Mac your board's mount location will look like `/dev/tty.usbmodem101`. + 1. Upload the firmware to the proves board over USB + > Don't forget to replace the board mount location after the `-p` flag ```sh arduino-cli upload -v -b 115200 --fqbn rp2040:rp2040:rpipico -p /dev/ttyACM0 -i build-artifacts/rpipico/BroncoDeployment/bin/BroncoDeployment.uf2 ``` 1. Run GDS over serial: + > Don't forget to replace the board mount location after the `--uard-device` flag ```sh fprime-gds -n --dictionary build-artifacts/rpipico/BroncoDeployment/dict/BroncoDeploymentTopologyAppDictionary.xml --comm-adapter uart --uart-baud 115200 --uart-device /dev/ttyACM0 --output-unframed-data - ``` - > **Note:** Be sure to replace '--uart-device /dev/ttyACM0' to the proper port you connect to the board! From 1c71b0846406a6f43ff0e736bde6a9f5eb1111ad Mon Sep 17 00:00:00 2001 From: Nate Gay Date: Tue, 22 Oct 2024 20:04:12 -0700 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b8d9c1a..2696b85 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ git --version ``` 1. Run GDS over serial: - > Don't forget to replace the board mount location after the `--uard-device` flag + > Don't forget to replace the board mount location after the `--uart-device` flag ```sh fprime-gds -n --dictionary build-artifacts/rpipico/BroncoDeployment/dict/BroncoDeploymentTopologyAppDictionary.xml --comm-adapter uart --uart-baud 115200 --uart-device /dev/ttyACM0 --output-unframed-data - ``` From f259711075b271902338649befb1cd98e516f0f5 Mon Sep 17 00:00:00 2001 From: Nate Gay Date: Tue, 22 Oct 2024 20:05:39 -0700 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2696b85..f91ea44 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ git --version ``` 1. Find your board's mount location - > For the next steps you'll need to know where your board is mounted. To find your board's mount location run `ls -lah /dev/tyy*` for a list of all possible paths. On Linux and WSL your board's mount location will look like `/dev/ttyACM0`. On Mac your board's mount location will look like `/dev/tty.usbmodem101`. + > For the next steps you'll need to know where your board is mounted. To find your board's mount location run `ls -lah /dev/tty*` for a list of all possible paths. On Linux and WSL your board's mount location will look like `/dev/ttyACM0`. On Mac your board's mount location will look like `/dev/tty.usbmodem101`. 1. Upload the firmware to the proves board over USB > Don't forget to replace the board mount location after the `-p` flag