stm32f207 emwin + freertos 调试过程问题简要记录
链接出错,超出地址范围
现象
添加emwin后编译能够通过,链接的时候报错,符号超出地址范围
错误打印类似如下
.\Objects\printer.axf: Error: L6406E: No space in execution regions with .ANY selector matching guiconf.o(.bss).
.\Objects\printer.axf: Error: L6406E: No space in execution regions with .ANY selector matching heap_4.o(.bss).
.\Objects\printer.axf: Error: L6406E: No space in execution regions with .ANY selector matching startup_stm32f2xx.o(STACK).
解决方法
GUIConf.c 中定义了GUI可用的flash字节数,默认很大,改小即可
// Define the available number of bytes available for the GUI
// the orign GUI_NUMBYTES is too larger
//#define GUI_NUMBYTES 0x200000
#define GUI_NUMBYTES 0xc800
FRAMEWIN 界面在freertos调度之前初始化可以正常显示,在任务中无法正常运行
现象
xTaskCreate(task_helloworld, "hello world", 64,