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
被浏覽
1.9k
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要如何使用。

撰寫答案

請登錄後再發布答案,點擊登錄

發布
問題

分享
好友

手機
浏覽

掃碼手機浏覽