TMF882X.Boot (tmf882x v0.1.0)

Module for managing the bootloader interaction. Each time the TMF882X is started, the measurement application must be written to its memory. The actual application is encoded in TMF882X.Firmware.image/0).

Link to this section Summary

Functions

Loads the app from TMF882X.Firmware.image/0 onto the device and starts it.

Checks to see if the device is currently running the bootloader and, if so, writes the measurement application to firmware and starts it.

Link to this section Functions

@spec load_app(reference()) :: :ok

Loads the app from TMF882X.Firmware.image/0 onto the device and starts it.

Link to this function

load_app_if_in_bootloader(pid)

Checks to see if the device is currently running the bootloader and, if so, writes the measurement application to firmware and starts it.