打印
[单片机芯片]

CH32V307 使用以太网库libwchnet.a不能开启FPU吗

[复制链接]
1072|8
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
CH32V307 使用以太网库libwchnet.a不能开启FPU吗 ?
riscv-none-embed-gcc -march=rv32imafc -mabi=ilp32f -msmall-data-limit=8 -mno-save-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wunused -Wuninitialized  -g -T "D:\work\V307VC\EXAM\ETH\UdpServer\Ld\Link.ld" -nostartfiles -Xlinker --gc-sections -L"D:\work\V307VC\EXAM\ETH\NetLib" -Wl,-Map,"UdpServer.map" --specs=nano.specs --specs=nosys.specs -o "UdpServer.elf"  ./User/cJSON.o ./User/ch32v30x_it.o ./User/main.o ./User/system_ch32v30x.o  ./Startup/startup_ch32v30x_D8C.o  ./Peripheral/src/ch32v30x_adc.o ./Peripheral/src/ch32v30x_bkp.o ./Peripheral/src/ch32v30x_can.o ./Peripheral/src/ch32v30x_crc.o ./Peripheral/src/ch32v30x_dac.o ./Peripheral/src/ch32v30x_dbgmcu.o ./Peripheral/src/ch32v30x_dma.o ./Peripheral/src/ch32v30x_dvp.o ./Peripheral/src/ch32v30x_eth.o ./Peripheral/src/ch32v30x_exti.o ./Peripheral/src/ch32v30x_flash.o ./Peripheral/src/ch32v30x_fsmc.o ./Peripheral/src/ch32v30x_gpio.o ./Peripheral/src/ch32v30x_i2c.o ./Peripheral/src/ch32v30x_iwdg.o ./Peripheral/src/ch32v30x_misc.o ./Peripheral/src/ch32v30x_opa.o ./Peripheral/src/ch32v30x_pwr.o ./Peripheral/src/ch32v30x_rcc.o ./Peripheral/src/ch32v30x_rng.o ./Peripheral/src/ch32v30x_rtc.o ./Peripheral/src/ch32v30x_sdio.o ./Peripheral/src/ch32v30x_spi.o ./Peripheral/src/ch32v30x_tim.o ./Peripheral/src/ch32v30x_usart.o ./Peripheral/src/ch32v30x_wwdg.o  ./NetLib/eth_driver.o  ./Debug/board.o ./Debug/debug.o  ./Core/core_riscv.o   -lwchnet -lprintf
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(eth_api.o): can't link soft-float modules with single-float modules
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: failed to merge target specific data of file D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(eth_api.o)
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(ipcheck.o): can't link soft-float modules with single-float modules
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: failed to merge target specific data of file D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(ipcheck.o)
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(net_dhcp.o): can't link soft-float modules with single-float modules
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: failed to merge target specific data of file D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(net_dhcp.o)
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(net_dns.o): can't link soft-float modules with single-float modules
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: failed to merge target specific data of file D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(net_dns.o)
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(socket.o): can't link soft-float modules with single-float modules
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: failed to merge target specific data of file D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(socket.o)
d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\work\V307VC\EXAM\ETH\NetLib\libwchnet.a(etharp.o): can't link soft-float modules with single-float modules
d:/mounriver/

使用特权

评论回复
沙发
caigang13| | 2022-8-2 20:00 | 只看该作者
没玩过 帮顶一下。

使用特权

评论回复
板凳
54212脑白金|  楼主 | 2022-8-3 11:09 | 只看该作者
原厂给重新编译一个开FPU的lib库呗

使用特权

评论回复
地板
WCHTech2| | 2022-8-3 13:47 | 只看该作者
54212脑白金 发表于 2022-8-3 11:09
原厂给重新编译一个开FPU的lib库呗

您好,开启FPU需要进行如下配置,如下图。附件为带浮点的以太网库


lib.zip

69.35 KB

使用特权

评论回复
5
54212脑白金|  楼主 | 2022-8-3 17:53 | 只看该作者
WCHTech2 发表于 2022-8-3 13:47
您好,开启FPU需要进行如下配置,如下图。附件为带浮点的以太网库

感谢 感谢,我去试试看

使用特权

评论回复
6
daichaodai| | 2022-8-4 08:05 | 只看该作者
可以的,需要单独配置。

使用特权

评论回复
7
54212脑白金|  楼主 | 2022-8-4 13:54 | 只看该作者
daichaodai 发表于 2022-8-4 08:05
可以的,需要单独配置。

搞定了,需要楼上版主提供的那个lib 就可以了

使用特权

评论回复
8
asmine| | 2022-8-13 14:12 | 只看该作者
这么一堆,都看不懂,
居然有人能给解决
厉害了

使用特权

评论回复
9
54212脑白金|  楼主 | 2022-8-15 10:51 | 只看该作者
asmine 发表于 2022-8-13 14:12
这么一堆,都看不懂,
居然有人能给解决
厉害了

主要是我描述的清楚

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

12

主题

103

帖子

2

粉丝