rep_new return -ENOMEM

Hello,Nordic team

I am programming with nrf52833 and ncs v2.9.0 

While bonding with peripheral ,central report No memory to create new report.But my soc flash and ram are enough.Do there any way to expand this mem?

Best regard

  • Hi

    When building the project you're working on, the build window should tell you approximately how much flash/RAM you have free in your application, so first off check that you have some RAM/Flash left to go on. 

    You can also check your project's Kconfig and prj.conf files and see what the HEAP configs are set to there. It might be that 

    CONFIG_HEAP_MEM_POOL_SIZE, CONFIG_MAIN_STACK_SIZE or BT_NUS_THREAD_STACK_SIZE are too small to fit the memory report you're trying to create here. But to me it seems like the the rep_new should allocate memory as part of the function, so please share some more information on what you're doing in your project.

    Best regards,

    Simon

Related