Function lpc55_hal::boot_to_bootrom[][src]

pub fn boot_to_bootrom() -> !

This is a hack to jump to the bootrom without needing to assert ISP pin or destroy current firmware.

  1. Resets all peripherals & disconnect all interrupts (like in a soft reset)
  2. Enable Iocon and set the INVERT attribute for Pio0_5 (ISP pin).
  3. Jump to bootrom, which will think ISP pin is asserted.