RAM Overflow Error in Nordic WiFi Fundamentals Exercise l5_e2

Hi everyone,

I'm currently following the "WiFi Fundamentals" course provided by Nordic, and I'm encountering issues with this specific exercise (l5_e2):

To ensure I wasn't making any mistakes, I used the solutions provided directly by Nordic (l5_e2_sol).

Additional Context:

  • Board: nrf7002dk_nrf5340

  • IDE: Visual Studio Code with nRF Connect extension

  • SDK and toolchains: 3.0

  • Windows 11 Pro

When trying to build l5_e2, I consistently get the error: region 'RAM' overflowed and `noinit' will not fit in region `RAM' .


Here are the details:

Memory region Used Size Region Size %age Used

FLASH: 114048 B 128 KB 87.01%

RAM: 38876 B 48 KB 79.09%

[...]

c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr\zephyr_pre0.elf section `noinit' will not fit in region `RAM'

c:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: region `RAM' overflowed by 50048 bytes

collect2.exe: error: ld returned 1 exit status

This is not the first time I encounter this problem on the WiFi Fundamentals courses; sometimes it was solved by doing nothing.

Parents
  • Hi, this was fixed in this PR, try pulling the latest version of the repo.

    The issue was that starting from v3.0.0, the Wi-Fi driver now has dedicated heaps and no longer uses the system shared heap (CONFIG_HEAP_MEM_POOL_SIZE).

    If you have other problems with RAM overflow, try tuning CONFIG_NRF_WIFI_CTRL_HEAP_SIZE (default value 20000) and CONFIG_NRF_WIFI_DATA_HEAP_SIZE (default value 130000). Check out the Usage profiles for more specific values.


    If you have any other issues with the courses, feel free to send me a direct message here on DevZone. :)

Reply
  • Hi, this was fixed in this PR, try pulling the latest version of the repo.

    The issue was that starting from v3.0.0, the Wi-Fi driver now has dedicated heaps and no longer uses the system shared heap (CONFIG_HEAP_MEM_POOL_SIZE).

    If you have other problems with RAM overflow, try tuning CONFIG_NRF_WIFI_CTRL_HEAP_SIZE (default value 20000) and CONFIG_NRF_WIFI_DATA_HEAP_SIZE (default value 130000). Check out the Usage profiles for more specific values.


    If you have any other issues with the courses, feel free to send me a direct message here on DevZone. :)

Children
Related