w801平台移植以太网网卡编译问题

发布于 2022-11-30 17:24:19
         ^~~~~~~~~~~~~~~~

csky-elfabiv2-gcc -o Obj/w800.elf -Wl,-zmax-page-size=1024 -mhard-float -Wl,--ckmap=.//Lst/w800.map @W800_SDK.txt -mcpu=ck804ef -mhard-float -nostartfiles -Wl,--gc-sections -T"./../../../../../../../ld/w800/gcc_csky.ld" -L../../../../../../../lib/w800 -Wl,--start-group -Wl,--end-group -lbtcontroller -lwlan -ldsp
Obj/app_test_ch392f.o: In function `CH392SocketInitOpen':
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:129: undefined reference to `CH392SetSocketDesIP'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:129:(.text.CH392SocketInitOpen+0x8): relocation truncated to fit: R_CKCORE_PCREL_IMM26BY2 against undefined symbol `CH392SetSocketDesIP'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:130: undefined reference to `CH392SetSocketProtType'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:130:(.text.CH392SocketInitOpen+0x10): relocation truncated to fit: R_CKCORE_PCREL_IMM26BY2 against undefined symbol `CH392SetSocketProtType'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:131: undefined reference to `CH392SetSocketDesPort'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:131:(.text.CH392SocketInitOpen+0x18): relocation truncated to fit: R_CKCORE_PCREL_IMM26BY2 against undefined symbol `CH392SetSocketDesPort'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:132: undefined reference to `CH392SetSocketSourPort'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:132:(.text.CH392SocketInitOpen+0x20): relocation truncated to fit: R_CKCORE_PCREL_IMM26BY2 against undefined symbol `CH392SetSocketSourPort'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:133: undefined reference to `CH392OpenSocket'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:133:(.text.CH392SocketInitOpen+0x26): relocation truncated to fit: R_CKCORE_PCREL_IMM26BY2 against undefined symbol `CH392OpenSocket'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:135: undefined reference to `CH392TCPConnect'
D:w801wm_sdk_w80x_20211115toolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../app/test_ch392f.c:135:(.text.CH392SocketInitOpen+0x2e): relocation truncated to fit: R_CKCORE_PCREL_IMM26BY2 against undefined symbol `CH392TCPConnect'
collect2.exe: error: ld returned 1 exit status
make: * [Obj/w800] Error 1
W800_SDK.mk:144: recipe for target 'Obj/w800' failed
Build process terminated with exit code: 2.
====9 error(s), 1121 warning(s), total time : 13s847ms====
请问该如何解决?

查看更多

关注者
0
被浏览
2k
3 个回答
ZYQ
ZYQ 2022-12-01
我已不再支持W80X任何相关问题的回复,请大家不要私信,有问题找 isme 谢谢

image.png
看错误,你这个CDK 找不到你的这个实现,可能没有添加到编译目录中去

isme
isme 认证专家 2022-12-01
冰镇大西瓜

在这提醒一下编译不过的小伙伴,可以看下函数的文件名后缀有没有大写,如果写错成.C .H会被CDK识别成C++,单独编译可以通过,但是一起编译是链接会出错。

jevian
jevian 2024-03-02
这家伙很懒,什么也没写!

w801支持蓝牙与wifi,唯独不支持以太网,但是以太网作为稳定传输协议很多情况也是不可少的。
sdk已经自带了lwip以及mbedtls,我希望不用wifi,用spi获取的以太网网包送给lwip,这样就能支持以太网了。
但是没看到sdk要如何使用。

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览