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

how to define the right RAM or FLASH?

HI 

I'm writing a programm the using a nus as its service, because nus is a custom service there is something that need to be changed, I followed the tutorial about making a custom service and that being said that we need to change the RAM, but my starting RAM is actually bigger than the ram from the tutorial so it should be save right? but problem is I can not find the divece as i scan it with my smartphone.

basically fisrt I'm using ble_template as my base for establishing connection and then add the nus custom service according the tutorial.

my guest is that the problem lies in starting ram. is there any possibility to know tha right starting ram in eclipse?

best regards,

Andhika

Parents Reply
  • yes after softdevice enable, because i enable the softdevice in ble_stack_init. in my case the 11th step in my main is app_timer_init, here is my main structure:

        uint8_t advhandle= BLEHandler::advHandle;
    
        // Initialize.
        log_init();
        timers_init();
    //    power_management_init();
        ble_stack_init();
        gap_params_init();
        gatt_init();
        services_init();
        advertising_init(true);
        conn_params_init();
    //    peer_manager_init();
    	advertising_start();
    
    
        // Start execution.
        NRF_LOG_INFO("Drone is Ready.");
    //    application_timers_start();
    
    
    //    advertising_init(false);
    
    //    Leons Code
    //	NRF_LOG_INIT(NULL);
    //	NRF_LOG_DEFAULT_BACKENDS_INIT();
    //	lfclk_request();
    	app_timer_init();

Children
No Data
Related