modem_shell sample comparison nrfSDK 2.9.0 with nrfSDK 2.6.1

Hello team,

I successfully migrate from the SDK 2.6.1 to 2.9.0. 

Now, I am trying to build the modem_shell sample for the nrf9160DK with nrf9160dk_nrf9160_ns.overlay file to support our custom PCB with nrf7000. Previously I successfully did it on the SDK 2.6.1

Sample location \ncs\v2.9.0\nrf\samples\cellular\modem_shell

The only change I did for both sample is to add the nrf9160dk_nrf9160_ns.overlay and CONFIG_WIFI_FIXED_MAC_ADDRESS="f2:01:d5:50:6f:52".

Build both samples with the next options:

  
As I understand this sample in SDK 2.9.0 doesn't support the sysbuild as there is no "sysbuild.conf" or "Kconfig.sysbuild" files am I correct? 

Now I have couple questions: 

1. I was able to build the sample with "No sysbuild" check mark in the build configuration but now I am having this error with WIFI which I don't have if I do the same but in the nrfSDK2.6.1

mosh:~$ *** Booting nRF Connect SDK v2.9.0-7787b2649840 ***
*** Using Zephyr OS v3.7.99-1f8f3dc29142 ***

Reset reason: PIN reset | software

MOSH version:       v2.9.0-7787b2649840
MOSH build id:      custom
MOSH build variant: dev
HW version:         nRF9160 SICA B1A
Modem FW version:   mfw_nrf9160_1.3.7

[00:00:00.424,499] <inf> wifi_nrf_bus: SPIM spi@b000: freq = 8 MHz
mosh:~$ [00:00:00.424,530] <inf> wifi_nrf_bus: SPIM spi@b000: latency = 0
mosh:~$ [00:00:00.561,828] <err> wifi_nrf: nrf_wifi_fmac_rx_cmd_send: No space for allocating RX buffer
mosh:~$ [00:00:00.561,920] <err> wifi_nrf: nrf_wifi_fmac_init_rx: RX init failed for desc_id = 13
mosh:~$ [00:00:00.561,981] <err> wifi_nrf: nrf_wifi_fmac_fw_init: Init RX failed
mosh:~$ [00:00:00.562,896] <err> wifi_nrf: nrf_wifi_fmac_dev_init: nrf_wifi_fmac_fw_init failed
mosh:~$ [00:00:00.562,927] <err> wifi_nrf: nrf_wifi_fmac_dev_add_zep: nrf_wifi_fmac_dev_init failed
mosh:~$ 


mosh:~$ *** Booting nRF Connect SDK v3.5.99-ncs1-1 ***

Reset reason: PIN reset | software

MOSH version:       v2.6.1
MOSH build id:      custom
MOSH build variant: dev

[00:00:00.409,393] <inf> wifi_nrf_bus: SPIM spi@b000: freq = 8 MHz
mosh:~$ [00:00:00.409,423] <inf> wifi_nrf_bus: SPIM spi@b000: latency = 0
mosh:~$ mosh:~$ Network registration status: searching
Currently active system mode: NB-IoT
LTE cell changed: ID: 151107883, Tracking area: 43150

2. The amount of the used FLASH increased significantly in the nrfSDK 2.9.0

SDK2.9.0
[673/675] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      915032 B       960 KB     93.08%
             RAM:      184944 B     219928 B     84.09%
        IDT_LIST:          0 GB        32 KB      0.00%
 
SDK2.6.1
[498/500] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      580420 B       960 KB     59.04%
             RAM:      185520 B     219928 B     84.35%
        IDT_LIST:          0 GB        32 KB      0.00%

3. I don't understand why I need to set the MAC address if I am using only scan option? 

  • Hello,

    Could you share more information about the issue you are facing while trying to build using sysbuild? I tried building the modem_shell sample (without your overlay), and I was able to build it successfully. The image below shows the flash usage when using sysbuild.

    Kind regards,
    Abhijith

  • Ok I delete the .overlay file and try to build with the next options:


    The error is the next:

    C:/ncs/v2.9.0/nrf/lib/location/scan_wifi.c
    In file included from C:/ncs/v2.9.0/zephyr/include/zephyr/toolchain/gcc.h:98,
                     from C:/ncs/v2.9.0/zephyr/include/zephyr/toolchain.h:50,
                     from C:/ncs/v2.9.0/zephyr/include/zephyr/kernel_includes.h:23,
                     from C:/ncs/v2.9.0/zephyr/include/zephyr/kernel.h:17,
                     from C:/ncs/v2.9.0/nrf/lib/location/scan_wifi.c:8:
    C:/ncs/v2.9.0/nrf/lib/location/scan_wifi.c: In function 'scan_wifi_init':
    C:/ncs/v2.9.0/zephyr/include/zephyr/device.h:92:41: error: '__device_dts_ord_DT_CHOSEN_ncs_location_wifi_ORD' undeclared (first use in this function)



    In the .config.sysbuild I see that WIFI_NRF70=n, based on that I did assumption that sysbuild doesn't work for this sample.

     

Related