b-parasite-esp32/code/b-parasite/README.md
2021-04-01 14:45:35 +02:00

1 KiB

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: //'