Lapsi Stethoscope 0.5.3+471
Lapsi Stethoscope Firmware
Loading...
Searching...
No Matches
Lapsi Stethoscope firmware

Building

  • nRF Connect SDK v2.5.0
  • Board: stethoscope_cpuapp 3.1.0, 3.2.0
  • prj_debug.conf has RTT logging enabled and has higher power consumption.
  • prj_release.conf for release builds.
  • Add hw_v3.0-base.conf fragment
  • Add version.conf fragment, its content is autogenerated in CMake

OTA update

Run ./make_package.sh <build_directory> <build_type> to copy and create a package with hex and DFU files. Build type is just a name. Application DFU file: build/zephyr/app_update.bin Network DFU file: build/zephyr/net_core_app_update.bin Application hex file: build/merged.hex Network core hex file: build/hci_rpmsg/zephyr/merged_CPUNET.hex

Use nRF Connect Device Manager app.

Flashing

How to flash .hex files with nrfjprog, refer to the documentation. The minimum version of nrfjprog supported is 10.21.0.

nrfjprog --recover -f NRF53 --coprocessor CP_NETWORK && nrfjprog --recover -f NRF53
nrfjprog -f NRF53 --program merged_domains.hex --log --verify

Flashing a new device:

nrfjprog --readuicr uicr.hex
nrfjprog -f NRF53 --program merged_domains.hex --log --verify --recover
nrfjprog -f NRF53 --program uicr.hex --log --verify --reset

Notes

version.conf is modified during build for current version number. This creates a dirty git tree unnecessarily. Putting the file to gitgnore isn't enough. To make Git really ignore the file run git update-index --assume-unchanged -- version.conf.

Recover bricked device

west flash --recover