pub(crate) unsafe extern "C" fn jump_to_bootloader()
Expand description
Entry point used for debugger
When loaded using gdb, the Raspberry Pi Pico is not reset by default. Without this function, gdb sets the PC to the beginning of the flash. This is not correct, as the RP2040 has a more complex boot process.
This function is set to be the entry point for gdb and is used to send the RP2040 back in the bootloader so that all the boot sequence is performed.