Files
mellifera_firmware/README.md

46 lines
1.0 KiB
Markdown

## Installation
### Setting up west
This shouldn't need to be re-done. These files are committed
```bash
west init -l mellifera_firmware
```
###
```bash
pipenv sync
pipenv shell
west update
west zephyr-export
west packages pip --install
west sdk install
```
### NRFUtil (Nordic Semiconductor)
This is required for flashing Nordic Semiconductor devices
This is installed globally, not in the environment
```bash
# dependencies first
sudo apt install -y libusb-1.0-0
wget https://github.com/NordicSemiconductor/nrf-udev/releases/download/v1.0.1/nrf-udev_1.0.1-all.deb
sudo dpkg -i nrf-udev_1.0.1-all.deb
curl https://files.nordicsemi.com/artifactory/swtools/external/nrfutil/executables/x86_64-unknown-linux-gnu/nrfutil -o nrfutil
chmod +x nrfutil
sudo mv nrfutil /usr/bin/nrfutil # I should probably change ownership too... but I'm the only user on this machine so I don't care
nrfutil self-upgrade
nrfutil install device
```
## Building
```bash
west build -p -b nrf52dk/nrf52832 zephyr/samples/basic/blinky
```