nRF5340: RAM consumption on net-core

Hi Support team,

The RAM consumption on the net-core of nRF5340 is a little high. I tried to manage the buffer and stack and minimized the configuration in prj.conf, but still a little high.

Could you help give some suggestions for the RAM reducing, especially on Link Time Optimization and compiler setting sides?

Thank you very much.

Best regards,

Yanpeng Wu

Parents Reply
  • Hi Håkon,

    Thank you for your guidance, I will try it.

    Currently, I enabled log, console and RTT, UART was used for the communication between a cellular modem and net-core of nRF5340.
    the main function of net-core is to use the modem driver, net stack, mqtt to send and receive data.

    if I use 'ninja ram_report', I can see ZEPHYR_BASE consumed 52k(89.66%), the biggest parts are net and ip subsystem (32k)
    now the compiled result is
    Memory region Used Size Region Size %age Used
    FLASH: 181524 B 256 KB 69.25%
    RAM: 58512 B 64 KB 89.28%
    SRAM1: 0 GB 64 KB 0.00%
    IDT_LIST: 0 GB 2 KB 0.00%

    Best regards,
    Yanpeng Wu

Children
Related