This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ERROR 4 [NRF_ERROR_NO_MEM] when connecting to nRF connect mobile application

I'm trying to merge the ble_Central example project with ble_app_template project. I've added 3 Custom services in the ble_app_template project by setting UUIDs and trying to send and receive data using nRF connect Mobile application. Everything works fine in with ble_app_template project alone.

When I merged it with ble central scanner project.it starts advertising and I am able to see the nRF device advertising in the nRF Connect app , however, whenever I try to establish connection with the device, it crashes and gives me ERROR 4 [NRF_ERROR_NO_MEM]. I'm using nRF52480 with SDK17.0.0. Can any one help me what causes this error.

Thanks in advance.  

Parents
  • Hi

    Please note that if you're using SDK v17.0.0 it is strongly recommended to switch to v17.0.2, as it is a bug fix release replacing v17.0.0. 

    This error seems to be due to the SoftDevice not having enough memory, so I would suggest increasing it further to make some room. If that doesn't help either I would try debugging step by step to see where exactly this goes wrong, but I'm guessing it doesn't have room to store the connection information.

    Best regards,

    Simon

Reply
  • Hi

    Please note that if you're using SDK v17.0.0 it is strongly recommended to switch to v17.0.2, as it is a bug fix release replacing v17.0.0. 

    This error seems to be due to the SoftDevice not having enough memory, so I would suggest increasing it further to make some room. If that doesn't help either I would try debugging step by step to see where exactly this goes wrong, but I'm guessing it doesn't have room to store the connection information.

    Best regards,

    Simon

Children
Related