Last active
February 26, 2022 08:52
-
-
Save lupyuen/cc21385ecc66b5c02d15affd776a64af to your computer and use it in GitHub Desktop.
Build, Flash and Run NuttX on BL602 from macOS (See https://lupyuen.github.io/articles/nuttx)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## macOS script to build, flash and run BL602 NuttX Firmware | |
set -e # Exit when any command fails | |
set -x # Echo commands | |
## Build the firmware | |
make -j | |
## Flash the firmware | |
blflash flash nuttx.bin \ | |
--port /dev/tty.usbserial-14* \ | |
--initial-baud-rate 230400 \ | |
--baud-rate 230400 | |
sleep 5 | |
## Run the firmware | |
open -a CoolTerm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment