- Linux host
- Docker
- ESP32 board needs to be connected to your laptop before starting the Docker container, otherwise it will throw an error that /dev/ttyUSB0 couldn't be found.
docker build -t nuttx .devcontainer
docker run -it --device=/dev/ttyUSB0 -v nuttx:/root/nuttxspace/nuttx -v apps:/root/nuttxspace/apps nuttx
Now you can attach vscode to this running container, or you can use Dev Containers (no need to build/run the docker container)
- Clone this repo:
git clone --recurse-submodules [email protected]:nan-dre/nuttx-dev-env.git
- Open inside vscode:
code nuttx-dev-env
- Install Dev Containers extension
- Ctrl+Shift+P -> Dev Containers: Rebuild and Reopen in Container