diff --git a/CMakeLists.txt b/CMakeLists.txt index bf0031d..d13af41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,7 @@ add_definitions(-DDEBUG -DUSE_HAL_DRIVER -DSTM32F407xx) file(GLOB_RECURSE SOURCES "Core/*.*" "Drivers/*.*") -set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/) +set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/STM32F407VGTX_FLASH.ld) add_link_options(-Wl,-gc-sections,--print-memory-usage,-Map=${PROJECT_BINARY_DIR}/${PROJECT_NAME}.map) add_link_options(-mcpu=cortex-m4 -mthumb -mthumb-interwork)