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

RAM Memory issue

Hi,

I am using nrf42840 dk board,sdk 14.2 and keil IDE.I have integrated bmp180 sensor code with ble_app_proximity code.I have no errors.After loading the code,I am getting the following error:

<error> app: Fatal error
<warning> app: System reset

I also changed the RAM start value from 0x20002088 to 0x20002A98,

ans its size from 0x3DF78 to 0xD568.

But i am getting ram memory issue.I dont know how to change this value.Please help me out!

Thanks in advance!!

  • int main(void)
    {
        bool erase_bonds;
    
        // Initialize.
        log_init();
    	  lfclk_config();
    	  twi_init();
    	  timers_init();
        buttons_leds_init(&erase_bonds);
        ble_stack_init();
        adc_configure();
        gap_params_init();
        gatt_init();
        advertising_init();
        db_discovery_init();
        services_init();
        conn_params_init();
        peer_manager_init();
    		uint32_t err_code = app_timer_init();
    	 // Start execution.
      NRF_LOG_INFO("Proximity example started.");
    	 advertising_start(erase_bonds);
     NRF_LOG_INFO("MPU BLE simple example.");
    		NRF_LOG_INFO("TWI master example\r\n");
    NRF_LOG_INFO("%x",BMP180_DEVICE_ADDR);
    // Enter main loop.
     NRF_LOG_INFO("TWI master example112\r\n");
    //rtc_config();
    NRF_LOG_INFO("TWI master example11\r\n");
     bmp180_drv_begin(sensor_callback);
    NRF_LOG_INFO("TWI master example12\r\n");
    bmp180_drv_start_sensor(&sensor, &m_twi, 0);
    	
    		 
    		for (;;)
        {
    			
            if (NRF_LOG_PROCESS() == false)
            {
    					
                power_manage();
            }
    			}

    I  have fixed the previously mentioned error.But now,in main, i have the problem of calling these two functions.

    bmp180_drv_begin(sensor_callback);

    bmp180_drv_start_sensor(&sensor, &m_twi, 0);

    It won't print the temperature and pressure value.I don't know how to solve this issue.Please help me out!!

    Thanks in advance!

  • static void sensor_callback(bmp180_evt_data_t * event_data)
    {//SEGGER_RTT_WriteString(0,"hello25\r\n");
    	NRF_LOG_INFO("TWI master example init67\r\n");
        if(event_data->evt_type == BMP180_EVT_DATA_READY)
        {
            NRF_LOG_INFO("T = %d | P = %d\n", event_data->bmp180->temperature/100, event_data->bmp180->pressure);
        }
    }

    This is the sensor call back function

  • What are these functions bmp180_drv_begin(sensor_callback) and bmp180_drv_start_sensor(&sensor, &m_twi, 0). I can't find them in the sdk.

  • Actually these functions are present in sdk 12.3.I converted sdk 12.3 to sdk 14.2.While uploading bmp180 code alone in sdk14.2,I got answer.But while integrating to proximity code,when i include rtc_config() function,I got fatal error.Also I tried changing the location of rtc_config(),but again getting fatal error.

    Please help me out!!

Related