43typedef enum : uintptr_t {
49typedef enum : uint32_t {
78 *counter = *counter + 1U;
89[[gnu::section(
".vectors"), gnu::used]]
static const uintptr_t
s_vectors[2] = {
uint32_t g_ra8_ls_stack_top
payload_sentinel_t
Sentinel value ("#97 1 code"): this payload ran via copy-to-run.
@ k_payload_sentinel_value
Distinctive proof-of-run value.
static const uintptr_t s_vectors[2]
2-entry vector table: initial MSP + reset, at the image base.
payload_probe_t
Fixed SRAM probe words the bootloader leaves untouched.
@ k_payload_probe_counter
Heartbeat counter (liveness).
@ k_payload_probe_sentinel
Sentinel word (proof-of-run).
void payload_reset(void)
Payload reset entry: set the sentinel, then advance a heartbeat forever.