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 Children
  • Hi Saiff

    How you solved that?

    have you tried wififund_less2_exer3_solution? I am facing the same issue that you mentioned! 

    thanks and regards,

  • 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,

  • Hi Saiff!

    Thank you so much for your time and support! 

    Sorry,  I am unable to connect (wififund_less2_exer3_solution )with the AP when trying to connect via Android app.

    For simplicity, I tried wififund_less2_exer2_solution to bypass the android app 

    but still, the output is the same i tested with static CREDENTIALS as well as via command shell but same error -134

    Is it possible for you to test wififund_less2_exer2_solution  at your end?

    Yes, I am using nrf52840dk + nrf7002ek

    Thanks & Regards,

    Muhammad Usman

  • Hi Muhammad,

    wififund_less2_exer2_solution is working perfectly fine at my end, in steps 12.2 and 12.3 try doing what i told you in my first reply, and set

    CONFIG_HEAP_MEM_POOL_SIZE=129023 (in the memory section, in your prj.conf file, change it from the original value 153600 to 129023) .
    that way it should be working good.
    Regards,

    Saif

  • Hi Saiff

    Thank you much again for your time and concern, I followed your instructions, and when I set 

    CONFIG_HEAP_MEM_POOL_SIZE=129023

    in Cmakelist.txt set(SHIELD nrf7002ek)

    This time error message is different, Multiple OK and err=-22

    it makes no difference in the output, whether I add .conf file or not as mentioned in the below image.

     

    Is it possible for you to share your project with me without building conf ?

    or Further Help regarding that

    Again Thanks & Regards,

    Muhammad Usman

Related