Does not have enough internal flash memory on nrf5340DK + nrf7002EK to have an application that has an immutable bootloader, mcuboot as platform bootloader and a wifi example code. How to resolve this issue.

Hi,

I am using an nrf5340DK + nrf7002EK. i am able to run an example helloworld application with an immutable bootloader and mcuboot as platform bootloader. When i try to add the wifi code, im getting an error stating that the internal flash doesnt have enough memory to run the application, which is understandable. So i tried to have XIP enabled. What i see here from the memory report is that ncs folder is consuming a lot of space. Is there a way where i can relocate the entire application code and ncs code to the external flash and run the application?

This is my prj.conf. I have disabled the wifi related code for now. its just the XIP and Bootloader code that is enabled

This is my CMakeFile

Screenshot of the memory report

This is the code.

/cfs-file/__key/communityserver-discussions-components-files/4/1586.Test.zip

Parents
  • Hello,

    I tried building your sample with the extra CMake argument you mentioned, and I was able to build it successfully, though with some warnings. I am sharing the build logs I obtained.

    Kind regards,
    Abhijith

Reply Children
  • Hi Arjun,

    I am filling in for Abhijith a little while he is out of office.

    Are you certain you are building the same project you attached in the opening post?

    I also tried it, and it built just fine.

    Hieu

  • Hey apologies for the delayed response. 

    Im building the same code and still gettting the error i posted in the previous comment. im not sure why.

    This is my build config

    Everything other than the -DSHILED='nrf7002ek' was auto generated

  • Your screenshot also shows that perhaps your nRF Connect extension is outdated. Please update it.

    After that, could you please try to delete that build configuration and create a fresh one?

    If push comes to shove, we might have to consider reinstalling the SDK, but let's try the recommendation above first.

  • I am able to build the code now, but as per my memory report, i cant see the mcuboot secondary in the external flash.

      

  • My apology, I am mostly out of office this week, so haven't been able to reply until now.

    Could you please share your prj.conf, compiled .config, and compiled zephyr.dts?