7、从STM32F401RE项目中,选中thumb_crt0.s,按右键,选择Exclude from Build,然后在项目中再添加$(StudioDir)/samples/SEGGER_THUMB_Startup.s文件。
8、现在我们从Embedded Studio的菜单上选择 Build->Rebuild STM32F401RE进行构建。
9、构建完成后,提示Flash重复定义:
-------------------------------------------------------------------------
1> D:/Users/jiang/Documents/SEGGER Embedded Studio for ARM Projects/STM32F401RE/SEGGER_Flash.icf:48:21: error: region 'FLASH' is already defined Build failed
-------------------------------------------------------------------------
10、查看文件SEGGER_Flash.icf,发现这个语句 define region FLASH = FLASH1;
11、再查看项目目录中STM32F401RE_MemoryMap.xml文件,发现其中:
-------------------------------------------------------------------------