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

error 4 (no memory) SDK13

Hi!

I have read a lot of topics, but there is no answear of my question.

I added HID services in my project but now project fall with error 4- no memory.

nRF52832, SDK13, S132.

How to increase (suppose in a sdk_config.h) this memory? My be need to increase some services?

Now in a RTT debug was message that should increase RAM to 0x20002D70 and to 0xD290.

Since there is no warning in the RTT but project still fall with same error-4.

Parents Reply
  • Have you set the optimization to -O0 and set the DEBUG flag as described here and hereapp_error_fault_handler() is not the source of the error, but rather a function that might show you the source. If you debug correctly you should get a stack window like below, showing you the error code and source of origin:

    Then you can figure out which function returned the error, and if you look up the function documentation in the infocenter or in the header files you might get the cause of it too. 

Children
  • Hi!

     have set the optimization to -O0 and have set the DEBUG.

    The reason of error is:

        err_code = ble_hids_init(&m_hids, &hids_init_obj);
        APP_ERROR_CHECK(err_code);

    I seen that my problem in the one more added service (hid). When I comment one of services before:

    static void services_init()
    {
    	dis_init();
    	tps_init();
    	sls_init();
    //	bls_init();
    	tis_init();
    	nus_init();
        hids_init();
    }

    bls_init(); for ex., project works wo fall. therefore, when one additional service added, memory runs out.

    And I don't know how to increase it?

    In the SDK 15 was need to increase count of services. But in the SDK13 there is no same parametr.

  • You should try to step into ble_hids_init() with your debugger and then single-step through the function to pinpoint exactly which function returns your error. You are likely right in that it is a memory issue due to your extra UUID though, so if you step into the function you will probably see that it is a function called sd_ble_uuid_vs_add() that returns the error. If you then search for that function name and error code on this forum you will likely find threads like this.

    This tutorial also has an SDK 13 release version that might be helpful. 

Related