diff options
author | Paul Selkirk <paul@psgd.org> | 2016-06-07 11:59:43 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-06-07 11:59:43 -0400 |
commit | 2dd70b171bde90620a631b6ba8d129acc911f93e (patch) | |
tree | 11c0c83e21c34dea4f9d6914908d03dce8835add /projects/bootloader/stm-init.c | |
parent | ea4eda95284cd3d34b9956bf1e27046a0d8c3cf6 (diff) |
Check the HARDWARE_EARLY_DFU_JUMP flag as soon as possible in the boot process.
This avoids the situation where the bootloader systick happens during
firmware initialization, and freaks out.
Also build the bootloader with the minimum resources needed (no RTOS, no
SPI, no I2C).
Diffstat (limited to 'projects/bootloader/stm-init.c')
-rw-r--r-- | projects/bootloader/stm-init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/projects/bootloader/stm-init.c b/projects/bootloader/stm-init.c new file mode 100644 index 0000000..209dc8c --- /dev/null +++ b/projects/bootloader/stm-init.c @@ -0,0 +1,8 @@ +/* Disable modules that the bootloader doesn't need. */ + +#include "stm32f4xx_hal.h" + +#undef HAL_I2C_MODULE_ENABLED +#undef HAL_SPI_MODULE_ENABLED + +#include "../../stm-init.c" |