Skip to main content

Module boot_request

Module boot_request 

Source
Expand description

Boot request signaling and boot mode selection.

Three schemes selected automatically by chip capabilities and flash mode:

  • reg: BOOT_MODE register (system-flash, chips without boot_pin)
  • ram: RAM magic word (user-flash, all chips)
  • gpio: RAM magic word + GPIO pin (system-flash, chips with boot_pin)

Scheme cfgs (boot_req_reg, boot_req_ram, boot_req_gpio) are set by the build script. ram and gpio are both active for system-flash + boot_pin.

Structs§

Config
Boot control hardware configuration (no-op for reg and ram schemes).

Functions§

init
Initialize boot control hardware. Call once at startup.
is_boot_requested
Check whether a boot-to-bootloader request is pending.
set_boot_request
Signal (or clear) boot intent for the next reset.