ch579同时用以太网和U盘功能,编译一直报错,单独用其中一个就可以,是内存不够吗

ch579同时用以太网和U盘功能,编译一直报错,单独用其中一个就可以,是内存不够吗


compiling CH57x_uart2.c...

compiling CH57x_uart3.c...

linking...

.\Objects\project.axf: Error: L6218E: Undefined symbol CopySetupReqPkg (referred from CH579MAI.o).

.\Objects\project.axf: Error: L6218E: Undefined symbol CtrlClearEndpStall (referred from CH579MAI.o).

.\Objects\project.axf: Error: L6218E: Undefined symbol CtrlGetConfigDescr (referred from CH579MAI.o).

.\Objects\project.axf: Error: L6218E: Undefined symbol CtrlSetUsbConfig (referred from CH579MAI.o).

.\Objects\project.axf: Error: L6218E: Undefined symbol HostCtrlTransfer (referred from CH579MAI.o).

.\Objects\project.axf: Error: L6218E: Undefined symbol USBHostTransact (referred from CH579MAI.o).

Not enough information to list image symbols.

Finished: 1 information, 0 warning and 6 error messages.

".\Objects\project.axf" - 6 Error(s), 6 Warning(s).

Target not created.

Build Time Elapsed:  00:00:04


是在一个正常使用的带以太网的程序上改的,只加上U盘支持的3个文件。还没写功能就编译不下去了

无标题.png


去掉3个文件,编译通过

main.c: 5 warnings, 0 errors

linking...

Program Size: Code=30080 RO-data=376 RW-data=352 ZI-data=19224  

FromELF: creating hex file...

".\Objects\project.axf" - 0 Error(s), 5 Warning(s).

Build Time Elapsed:  00:00:01



image.png

这个是调用了未声明的函数,

image.png

工程需要包含上述C文件


多谢,编译通过了




只有登录才能回复,可以选择微信账号登录