Implementing MQTT on nrf52840DK and nrf7002ek

Hi,

I've been trying to test the "wififund_less4_exer1_solution" on my nrf52840dk + nrf7002ek but i keep getting these results

I tried creating a "nrf52840dk_nrf52840_cpuapp_ns.conf" and "nrf52840dk_nrf52840_cpuapp.conf" as follows

But then i got a new error "region `RAM' overflowed by 1420 bytes" even tho my board has 256Mb of RAM which i thought should be enough for MQTT implementation

So finally i tried reducing  CONFIG_HEAP_MEM_POOL_SIZE from 153600 to 88064, the building went fine but when i flashed it to the board this is what i got

So now i dont really know what should i do to make it work.

Thanks in advance

Parents Reply
  • Hi muhammad,

    i haven't tried that exemple yet, but if you're working on an nrf52840dk and faced this same error, create a folder named "boards", create a file and name it "nrf52840dk_nrf52840.conf". in this file copy and paste this: 

    CONFIG_WIFI_CREDENTIALS_BACKEND_SETTINGS=y
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_FLASH_MAP=y
    CONFIG_NVS=y
    CONFIG_SETTINGS=y
    CONFIG_SETTINGS_NVS=y

    then don't forget to add it as a kconfig fragment in the build page like this: 

    Let me know if this sloves your problem,

    regards,

Children
Related