stm32f767 无操作系统 LwIP 移植 (二)
Build started: Project: stm32f767 *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'stm32f767' compiling ethernetif.c... ..\LwIP-2.0.3\config\ethernetif.c(153): warning: #177-D: variable "regvalue" was declared but never referenced uint32_t regvalue = 0; ..\LwIP-2.0.3\config\ethernetif.c: 1 warning, 0 errors linking... .\Objects\stm32f767.axf: Error: L6218E: Undefined symbol sio_open (referred from slipif.o). .\Objects\stm32f767.axf: Error: L6218E: Undefined symbol sio_send (referred from slipif.o). .\Objects\stm32f767.axf: Error: L6218E: Undefined symbol sio_tryread (referred from slipif.o). Not enough information to list image symbols. Not enough information to list load addresses in the image map. Finished: 2 information, 0 warning and 3 error messages. ".\Objects\stm32f767.axf" - 3 Error(s), 1 Warning(s).
未定义符号 sio_open
解决:别引进来 slipif.c。
![](https://img2020.cnblogs.com/blog/597675/202104/597675-20210430201418022-778513636.png)
去除 slipif.c 再编译,通过。
Build started: Project: stm32f767 *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'stm32f767' compiling main.c... ..\User\../Middlewares/inc/dma.h(18): warning: #1-D: last line of file ends without a newline ..\User\main.c(84): warning: #223-D: function "Netif_Config" declared implicitly Netif_Config();//网络接口配置 ..\User\main.c(44): warning: #177-D: variable "TransferStatus" was declared but never referenced uint8_t TransferStatus; //定义存放比较结果变量 ..\User\main.c: 3 warnings, 0 errors linking... Program Size: Code=30932 RO-data=992 RW-data=212 ZI-data=392180 FromELF: creating hex file... ".\Objects\stm32f767.axf" - 0 Error(s), 3 Warning(s). Build Time Elapsed: 00:00:09
编译通过,烧写。
Load "E:\\GITEE_2021\\stm32f767template\\MDK-ARM\\Objects\\stm32f767.axf" Erase Done. Programming Done. Verify OK. Application running ... Flash Load finished at 20:28:00
烧写通过,测试:
打开串口助手,和,命令提示符窗口,进行ping命令测试,测试通过。
列举最终的文件目录: