Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bw): bootloader not working with F407xG targets and > 512kb fw #4991

Merged
merged 1 commit into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions radio/src/targets/taranis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion radio/src/targets/taranis/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down