Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_dfu.c
1 #include <stm32l0xx.h>
2 
3 void bc_dfu_jump(void)
4 {
5  // Set magic code, the rest is in the system_stm32l0xx.c file
6  *((unsigned long *)0x20000000) = 0xDEADBEEF;
7 
8  // Reset the processor
9  NVIC_SystemReset();
10 }
void bc_dfu_jump(void)
Reset the CPU and jump to the USB DFU bootloader.
Definition: bc_dfu.c:3