[单片机芯片]

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

[复制链接]
296|6
手机看帖
扫描二维码
随时随地手机跟帖
54212脑白金|  楼主 | 2022-8-2 11:25 | 显示全部楼层 |阅读模式
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需要进行如下配置,如下图。附件为带浮点的以太网库
图片1.png

lib.zip

69.35 KB

使用特权

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

感谢 感谢,我去试试看

使用特权

评论回复
daichaodai| | 2022-8-4 08:05 | 显示全部楼层
可以的,需要单独配置。

使用特权

评论回复
54212脑白金|  楼主 | 2022-8-4 13:54 | 显示全部楼层
daichaodai 发表于 2022-8-4 08:05
可以的,需要单独配置。

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

使用特权

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

本版积分规则