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!!

Parents
  • 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!

Reply
  • 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!

Children
Related