Function lpc55_hal::boot_to_bootrom [−][src]
pub fn boot_to_bootrom() -> !
Expand description
This is a hack to jump to the bootrom without needing to assert ISP pin or destroy current firmware.
- Resets all peripherals & disconnect all interrupts (like in a soft reset)
- Enable Iocon and set the INVERT attribute for Pio0_5 (ISP pin).
- Jump to bootrom, which will think ISP pin is asserted.
Other prerequisites for this to work:
- Must not be called from an interrupt handler.
- TrustZone must not be disabled (unless you can find a way to re-enable it here).