diff --git a/radio/src/targets/taranis/CMakeLists.txt b/radio/src/targets/taranis/CMakeLists.txt index 4147342c3..409f03ca3 100644 --- a/radio/src/targets/taranis/CMakeLists.txt +++ b/radio/src/targets/taranis/CMakeLists.txt @@ -500,6 +500,7 @@ elseif ((CPU_TYPE_FULL STREQUAL STM32F407xE) OR (CPU_TYPE_FULL STREQUAL STM32F40 set(TARGET_LINKER_DIR stm32f40x) if (CPU_TYPE_FULL STREQUAL STM32F407xG) set(TARGET_FLASH_SIZE 1M) + add_definitions(-DSTM32F407xG) endif() elseif (CPU_TYPE_FULL STREQUAL STM32F413xG) set(CPU_TYPE STM32F4) diff --git a/radio/src/targets/taranis/board.h b/radio/src/targets/taranis/board.h index 06f51e6f2..124558c9c 100644 --- a/radio/src/targets/taranis/board.h +++ b/radio/src/targets/taranis/board.h @@ -41,7 +41,7 @@ void rotaryEncoderInit(); void rotaryEncoderCheck(); #endif -#if defined(STM32F413xx) +#if defined(STM32F413xx) || defined(STM32F407xG) #define FLASHSIZE 0x100000 // 1M #else #define FLASHSIZE 0x80000 // 512k