|
|
@ -36,6 +36,20 @@
|
|
|
|
#include "messages.h"
|
|
|
|
#include "messages.h"
|
|
|
|
// #include "mpu.h"
|
|
|
|
// #include "mpu.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
* Avoid accidental build with gcc versions having broken stack protector 9.2.1 - 10.2
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if defined(__GNUC__) && !defined(__llvm__)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define GCC_VERSION (__GNUC__ * 10000 \
|
|
|
|
|
|
|
|
+ __GNUC_MINOR__ * 100 \
|
|
|
|
|
|
|
|
+ __GNUC_PATCHLEVEL__)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if GCC_VERSION >= 90201 && GCC_VERSION <= 100200
|
|
|
|
|
|
|
|
#error "ARM GCC versions 9.2.1 - 10.2 have broken stack smash protector, preventing build"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
const uint8_t BOOTLOADER_KEY_M = 2;
|
|
|
|
const uint8_t BOOTLOADER_KEY_M = 2;
|
|
|
|
const uint8_t BOOTLOADER_KEY_N = 3;
|
|
|
|
const uint8_t BOOTLOADER_KEY_N = 3;
|
|
|
|
static const uint8_t * const BOOTLOADER_KEYS[] = {
|
|
|
|
static const uint8_t * const BOOTLOADER_KEYS[] = {
|
|
|
|