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

SOFTDEVICE:INVALID MEMROY ACCESS, the softdevice has conflicts with the temperature sensor on-chip??

Hi, all.

I'm in trouble in solving a question when i learned NRF52832 recentlly.(SD s132, V5.0, SDK15.0)

I want to read the temperature data from the sensor on-chip and send it to my phone by bluetooth.

But once the code ran to "temp_read" function, the code would ran to "__WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)",and then got stuck in

"NRF_BREAKPOINT_COND".

What interesting is, everything was ok when i annotated the code which related to "temperature".So i wonder if  i forgot to set  something so that there're some conflicts between softdevice and "temperature_read" moudle?

I totally got crazy about this, if anyone have suggestions?Please help me

thanks a lot

Parents Reply
  • Hi, 

    you absolutely right, my logic was wrong, it didn't have time to connect by the time i call data_upload_immdeiate(). 

    Indeed, i think i should know the err_code,which returns from sd_ble_gatts_hvx().

    Now i try to use  printf()   to show me the err_code, because i can't see err_code in the watch window under the debug mode , and this is because the code will run to app_error_fault_handler when i call data_upload_imdediate() to send something.

Children
No Data
Related