nrf52840 + winc1500 in NCS 2.9.0

Hi

I have a project using winc1500 as WiFi module, base on example wifi shell example and post  NCS and Atmel WINC1500

I add:

CONFIG_WIFI_WINC1500=y
CONFIG_WIFI_WINC1500_REGION_ASIA=y

into prj.conf

add hal_atmel  in west.yml.....etc

but there are some error here seems crush in \modules\hal\atmel\asf\common\components\wifi\winc1500\ and \zephyr\drivers\wifi\winc1500\

FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map C:/ncs1/v2.9.0/nrf/samples/wifi/shell/build/shell/zephyr/zephyr_pre0.map
cmd.exe /C "cd . && C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -Os -DNDEBUG -gdwarf-4 -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf -L"c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m/nofp" -lc -lgcc && cmd.exe /C "cd /D C:\ncs1\v2.9.0\nrf\samples\wifi\shell\build\shell\zephyr && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe -E true""
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `zsock_accept':
C:/ncs1/v2.9.0/nrf/samples/wifi/shell/build/shell/zephyr/include/generated/zephyr/syscalls/socket.h:232: multiple definition of `accept'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:679: first defined here
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `zsock_bind':
C:/ncs1/v2.9.0/nrf/samples/wifi/shell/build/shell/zephyr/include/generated/zephyr/syscalls/socket.h:158: multiple definition of `bind'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:593: first defined here
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `zsock_connect':
C:/ncs1/v2.9.0/nrf/samples/wifi/shell/build/shell/zephyr/include/generated/zephyr/syscalls/socket.h:183: multiple definition of `connect'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:705: first defined here
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `getsockopt':
C:/ncs1/v2.9.0/zephyr/lib/posix/options/net.c:333: multiple definition of `getsockopt'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:1250: first defined here
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `zsock_listen':
C:/ncs1/v2.9.0/nrf/samples/wifi/shell/build/shell/zephyr/include/generated/zephyr/syscalls/socket.h:207: multiple definition of `listen'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:638: first defined here
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `recv':
C:/ncs1/v2.9.0/zephyr/lib/posix/options/net.c:343: multiple definition of `recv'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:853: first defined here
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `recvfrom':
C:/ncs1/v2.9.0/zephyr/lib/posix/options/net.c:349: multiple definition of `recvfrom'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:955: first defined here
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `send':
C:/ncs1/v2.9.0/zephyr/lib/posix/options/net.c:359: multiple definition of `send'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:746: first defined here
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `sendto':
C:/ncs1/v2.9.0/zephyr/lib/posix/options/net.c:370: multiple definition of `sendto'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:798: first defined here
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `setsockopt':
C:/ncs1/v2.9.0/zephyr/lib/posix/options/net.c:375: multiple definition of `setsockopt'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:1202: first defined here
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/lib/posix/options/liblib__posix__options.a(net.c.obj): in function `zsock_socket':
C:/ncs1/v2.9.0/nrf/samples/wifi/shell/build/shell/zephyr/include/generated/zephyr/syscalls/socket.h:60: multiple definition of `socket'; zephyr/libzephyr.a(socket.c.obj):C:/ncs1/v2.9.0/modules/hal/atmel/asf/common/components/wifi/winc1500/socket/source/socket.c:507: first defined here
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FAILED: _sysbuild/sysbuild/images/shell-prefix/src/shell-stamp/shell-build C:/ncs1/v2.9.0/nrf/samples/wifi/shell/build/_sysbuild/sysbuild/images/shell-prefix/src/shell-stamp/shell-build
cmd.exe /C "cd /D C:\ncs1\v2.9.0\nrf\samples\wifi\shell\build\shell && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ."

Parents Reply Children
No Data
Related