b-parasite-esp32/code/b-parasite
2021-04-01 14:45:35 +02:00
..
config Mass cleanup 2021-04-01 14:45:35 +02:00
src Corrects the raw ADC soil mesasure given the current input voltage 2021-03-31 20:12:47 +02:00
.gitignore Initial b_parasite code - a fork from playground 2021-03-13 14:56:37 +01:00
b_parasite_gcc_nrf52.ld Initial b_parasite code - a fork from playground 2021-03-13 14:56:37 +01:00
Makefile Sets MAC address to a random static value 2021-03-26 17:18:38 +01:00
README.md Mass cleanup 2021-04-01 14:45:35 +02:00

Overview

This is the b-parasite formware based on Nordic's nRF5 SDK.

It uses Nordic's SoftDevice, which should additionally be flashed to the chip before running our firmware.

I use a JLink probe for flashing and debugging.

Configuration

The b-parasite specific configuration, such as active/sleep time and transmitting power are defined in config/prst_config.h.

Flashing SoftDevice and Firmware

# Flash softdevice
$ SDK_ROOT=~/dev/nrf52/sdk/nRF5_SDK_17.0.2_d674dde make flash_softdevice
# Compile annd flash our firmware
$ SDK_ROOT=~/dev/nrf52/sdk/nRF5_SDK_17.0.2_d674dde make flash

Debugging

Calls to NRF_LOG will be readable on the console using JLinkRTTLogger. This is the handy one-liner I use for pulling log messages:

$ echo "\n\n\n\n0\n/dev/stdout" | JLinkRTTLogger | sed 's/^.*app: //'