Atmel winc 1500 with NCS

My goal is to use the atmel winc1500 wifi module with the nrf5340.
 
- NRF5340
- NCS V1.9.0/Windows 11
- Atmel winc 1500

I started from the http_client sample (ncs\v1.9.0\zephyr\samples\net\sockets\http_client).
I added these lines in the prj.conf file

CONFIG_WIFI=y
CONFIG_WIFI_WINC1500=y
CONFIG_WIFI_WINC1500_REGION_EUROPE=y


However, I have an error that appears at compile time: a missing file "fatal error: driver/include/m2m_wifi.h: No such file or directory"

While doing my research, one hypothesis was that the driver is not available with ncs and that it was necessary to modify the file nrf/west.yaml then to update the sdk with the command west update but I do not know if it is possible on windows.

Best regards,

Hichem

###Building http_client
west build --build-dir c:\Users\hiche\workspace\http_client\build c:\Users\hiche\workspace\http_client

[0/130] Performing build step for 'spm_subimage'
ninja: no work to do.
[2/128] Linking C static library zephyr\subsys\random\libsubsys__random.a
[3/128] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
[4/128] Linking C static library zephyr\drivers\serial\libdrivers__serial.a
[5/128] Linking C static library zephyr\subsys\net\ip\libsubsys__net__ip.a
[6/128] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/Users/hiche/ncs/v1.9.0/modules/crypto/mbedtls/library/aesni.c.obj
[7/128] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/Users/hiche/ncs/v1.9.0/modules/crypto/mbedtls/library/aria.c.obj
[8/128] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/Users/hiche/ncs/v1.9.0/modules/crypto/mbedtls/library/asn1parse.c.obj
[9/128] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[10/128] Building C object zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500_nm_bus_wrapper.c.obj
FAILED: zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500_nm_bus_wrapper.c.obj 
C:\Users\hiche\ncs\v1.9.0\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.7.99-ncs1 -DEXT_API_MAGIC=0x281ee6de,0xb845acea,13570 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,13570 -DKERNEL -DMBEDTLS_CONFIG_FILE=\"config-tls-generic.h\" -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/Users/hiche/ncs/v1.9.0/zephyr/drivers/wifi/winc1500/. -IC:/Users/hiche/ncs/v1.9.0/zephyr/include -Izephyr/include/generated -IC:/Users/hiche/ncs/v1.9.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/Users/hiche/ncs/v1.9.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/Users/hiche/ncs/v1.9.0/zephyr/subsys/net/lib/sockets/. -IC:/Users/hiche/ncs/v1.9.0/zephyr/subsys/net/ip -IC:/Users/hiche/ncs/v1.9.0/nrf/include -IC:/Users/hiche/ncs/v1.9.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/Users/hiche/ncs/v1.9.0/modules/hal/nordic/nrfx -IC:/Users/hiche/ncs/v1.9.0/modules/hal/nordic/nrfx/drivers/include -IC:/Users/hiche/ncs/v1.9.0/modules/hal/nordic/nrfx/mdk -IC:/Users/hiche/ncs/v1.9.0/zephyr/modules/hal_nordic/nrfx/. -IC:/Users/hiche/ncs/v1.9.0/modules/crypto/mbedtls/include -IC:/Users/hiche/ncs/v1.9.0/zephyr/modules/mbedtls/configs -isystem C:/Users/hiche/ncs/v1.9.0/zephyr/lib/libc/minimal/include -isystem c:/users/hiche/ncs/v1.9.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/users/hiche/ncs/v1.9.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -Og -imacros C:/Users/hiche/workspace/http_client/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/Users/hiche/ncs/v1.9.0/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/Users/hiche/workspace/http_client=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Users/hiche/ncs/v1.9.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Users/hiche/ncs/v1.9.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500_nm_bus_wrapper.c.obj -MF zephyr\drivers\wifi\CMakeFiles\drivers__wifi.dir\winc1500\wifi_winc1500_nm_bus_wrapper.c.obj.d -o zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500_nm_bus_wrapper.c.obj -c C:/Users/hiche/ncs/v1.9.0/zephyr/drivers/wifi/winc1500/wifi_winc1500_nm_bus_wrapper.c
In file included from C:\Users\hiche\ncs\v1.9.0\zephyr\drivers\wifi\winc1500\wifi_winc1500_nm_bus_wrapper.c:19:
C:\Users\hiche\ncs\v1.9.0\zephyr\drivers\wifi\winc1500\wifi_winc1500_nm_bsp_internal.h:15:10: fatal error: bus_wrapper/include/nm_bus_wrapper.h: No such file or directory
   15 | #include <bus_wrapper/include/nm_bus_wrapper.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[11/128] Building C object zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500_nm_bsp.c.obj
FAILED: zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500_nm_bsp.c.obj 
C:\Users\hiche\ncs\v1.9.0\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.7.99-ncs1 -DEXT_API_MAGIC=0x281ee6de,0xb845acea,13570 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,13570 -DKERNEL -DMBEDTLS_CONFIG_FILE=\"config-tls-generic.h\" -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/Users/hiche/ncs/v1.9.0/zephyr/drivers/wifi/winc1500/. -IC:/Users/hiche/ncs/v1.9.0/zephyr/include -Izephyr/include/generated -IC:/Users/hiche/ncs/v1.9.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/Users/hiche/ncs/v1.9.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/Users/hiche/ncs/v1.9.0/zephyr/subsys/net/lib/sockets/. -IC:/Users/hiche/ncs/v1.9.0/zephyr/subsys/net/ip -IC:/Users/hiche/ncs/v1.9.0/nrf/include -IC:/Users/hiche/ncs/v1.9.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/Users/hiche/ncs/v1.9.0/modules/hal/nordic/nrfx -IC:/Users/hiche/ncs/v1.9.0/modules/hal/nordic/nrfx/drivers/include -IC:/Users/hiche/ncs/v1.9.0/modules/hal/nordic/nrfx/mdk -IC:/Users/hiche/ncs/v1.9.0/zephyr/modules/hal_nordic/nrfx/. -IC:/Users/hiche/ncs/v1.9.0/modules/crypto/mbedtls/include -IC:/Users/hiche/ncs/v1.9.0/zephyr/modules/mbedtls/configs -isystem C:/Users/hiche/ncs/v1.9.0/zephyr/lib/libc/minimal/include -isystem c:/users/hiche/ncs/v1.9.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/users/hiche/ncs/v1.9.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -Og -imacros C:/Users/hiche/workspace/http_client/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/Users/hiche/ncs/v1.9.0/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/Users/hiche/workspace/http_client=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Users/hiche/ncs/v1.9.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Users/hiche/ncs/v1.9.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500_nm_bsp.c.obj -MF zephyr\drivers\wifi\CMakeFiles\drivers__wifi.dir\winc1500\wifi_winc1500_nm_bsp.c.obj.d -o zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500_nm_bsp.c.obj -c C:/Users/hiche/ncs/v1.9.0/zephyr/drivers/wifi/winc1500/wifi_winc1500_nm_bsp.c
In file included from C:\Users\hiche\ncs\v1.9.0\zephyr\drivers\wifi\winc1500\wifi_winc1500_nm_bsp.c:7:
C:\Users\hiche\ncs\v1.9.0\zephyr\drivers\wifi\winc1500\wifi_winc1500_nm_bsp_internal.h:15:10: fatal error: bus_wrapper/include/nm_bus_wrapper.h: No such file or directory
   15 | #include <bus_wrapper/include/nm_bus_wrapper.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[12/128] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[13/128] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/zephyr_init.c.obj
[14/128] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/C_/Users/hiche/ncs/v1.9.0/nrf/drivers/entropy/entropy_cc310.c.obj
[15/128] Building C object modules/nrf/subsys/fw_info/CMakeFiles/..__nrf__subsys__fw_info.dir/fw_info.c.obj
[16/128] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[17/128] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/Users/hiche/ncs/v1.9.0/modules/crypto/mbedtls/library/asn1write.c.obj
[18/128] Building C object zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500.c.obj
FAILED: zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500.c.obj 
C:\Users\hiche\ncs\v1.9.0\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.7.99-ncs1 -DEXT_API_MAGIC=0x281ee6de,0xb845acea,13570 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,13570 -DKERNEL -DMBEDTLS_CONFIG_FILE=\"config-tls-generic.h\" -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/Users/hiche/ncs/v1.9.0/zephyr/drivers/wifi/winc1500/. -IC:/Users/hiche/ncs/v1.9.0/zephyr/include -Izephyr/include/generated -IC:/Users/hiche/ncs/v1.9.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/Users/hiche/ncs/v1.9.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/Users/hiche/ncs/v1.9.0/zephyr/subsys/net/lib/sockets/. -IC:/Users/hiche/ncs/v1.9.0/zephyr/subsys/net/ip -IC:/Users/hiche/ncs/v1.9.0/nrf/include -IC:/Users/hiche/ncs/v1.9.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/Users/hiche/ncs/v1.9.0/modules/hal/nordic/nrfx -IC:/Users/hiche/ncs/v1.9.0/modules/hal/nordic/nrfx/drivers/include -IC:/Users/hiche/ncs/v1.9.0/modules/hal/nordic/nrfx/mdk -IC:/Users/hiche/ncs/v1.9.0/zephyr/modules/hal_nordic/nrfx/. -IC:/Users/hiche/ncs/v1.9.0/modules/crypto/mbedtls/include -IC:/Users/hiche/ncs/v1.9.0/zephyr/modules/mbedtls/configs -isystem C:/Users/hiche/ncs/v1.9.0/zephyr/lib/libc/minimal/include -isystem c:/users/hiche/ncs/v1.9.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/users/hiche/ncs/v1.9.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -Og -imacros C:/Users/hiche/workspace/http_client/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/Users/hiche/ncs/v1.9.0/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/Users/hiche/workspace/http_client=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Users/hiche/ncs/v1.9.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Users/hiche/ncs/v1.9.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500.c.obj -MF zephyr\drivers\wifi\CMakeFiles\drivers__wifi.dir\winc1500\wifi_winc1500.c.obj.d -o zephyr/drivers/wifi/CMakeFiles/drivers__wifi.dir/winc1500/wifi_winc1500.c.obj -c C:/Users/hiche/ncs/v1.9.0/zephyr/drivers/wifi/winc1500/wifi_winc1500.c
C:\Users\hiche\ncs\v1.9.0\zephyr\drivers\wifi\winc1500\wifi_winc1500.c:37:10: fatal error: driver/include/m2m_wifi.h: No such file or directory
   37 | #include <driver/include/m2m_wifi.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[19/128] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/Users/hiche/ncs/v1.9.0/modules/crypto/mbedtls/library/aes.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\Users\hiche\ncs\v1.9.0\toolchain\opt\bin\cmake.EXE' --build 'c:\Users\hiche\workspace\http_client\build'
 

Parents Reply Children
No Data
Related