Reduce nRF7002dk image size

Hello, I'm in the development stage of a product and currently evaluating the nRF5340 as our main processor and nRF7002 as a companion IC for WiFi. Our application can be used in a wide variety of connectivity environments, so we require a WiFi interface, Ethernet interface, a cellular/GPS modem, and BLE. Also, we want to make MQTTS/HTTPS connections to our cloud provider. I've gotten a lot of these individual components to work individually by building our app to run on a nRF7002dk; however, I'm running into issues with the size of the image being too big when I try to include all of the necessary config variables in my build. Is what I'm attempting to do infeasible? My current build is overflowing RAM by 71,272 bytes and Flash is overflowed by 10,160 bytes. I can share my board overlays and configuration files. To be clear, I'm using NCS version 2.8.0, and building an application with nrf/7002dk/nrf5340/cpuapp/ns board as the target.

4336.prj.conf sysbuild.conf 3731.nrf7002dk_nrf5340_cpuapp_ns.conf nrf7002dk_nrf5340_cpuapp_ns.overlay

Parents Reply
  • Hi Ethan,

    Nicely spotted, I didn't think that was an option. You'd typically just have the SDC on the network core which would save flash space and CPU, though I see that with this sample you can keep the entire stack there. Though you still need the communication between the Host and the SDC binary that uses RPC libraries and architecture, and now in addition to that you need the communication between the netcore and appcore, which also requires RPC etc. 

    So it would make sense if the space you need is a bit more than what just the application takes up. Though I would expect this to still take up less flash than what it would've with some of the BLE stack there as well. Are you saying that moving the entire stack to the netcore made your app bigger than it was with app+host? If so could you try generating a memory report.

    I should also mention that this sample is currently supported for development only and does not support all Bluetooth Host APIs.

    Regards,

    Elfving

Children
No Data
Related