fix(bw): bootloader not working with F407xG targets and > 512kb fw (#4991)
This commit is contained in:
@@ -500,6 +500,7 @@ elseif ((CPU_TYPE_FULL STREQUAL STM32F407xE) OR (CPU_TYPE_FULL STREQUAL STM32F40
|
|||||||
set(TARGET_LINKER_DIR stm32f40x)
|
set(TARGET_LINKER_DIR stm32f40x)
|
||||||
if (CPU_TYPE_FULL STREQUAL STM32F407xG)
|
if (CPU_TYPE_FULL STREQUAL STM32F407xG)
|
||||||
set(TARGET_FLASH_SIZE 1M)
|
set(TARGET_FLASH_SIZE 1M)
|
||||||
|
add_definitions(-DSTM32F407xG)
|
||||||
endif()
|
endif()
|
||||||
elseif (CPU_TYPE_FULL STREQUAL STM32F413xG)
|
elseif (CPU_TYPE_FULL STREQUAL STM32F413xG)
|
||||||
set(CPU_TYPE STM32F4)
|
set(CPU_TYPE STM32F4)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ void rotaryEncoderInit();
|
|||||||
void rotaryEncoderCheck();
|
void rotaryEncoderCheck();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(STM32F413xx)
|
#if defined(STM32F413xx) || defined(STM32F407xG)
|
||||||
#define FLASHSIZE 0x100000 // 1M
|
#define FLASHSIZE 0x100000 // 1M
|
||||||
#else
|
#else
|
||||||
#define FLASHSIZE 0x80000 // 512k
|
#define FLASHSIZE 0x80000 // 512k
|
||||||
|
|||||||
Reference in New Issue
Block a user