MPU FAULT occurs when discovering attributes of client

Hi,

I am a newbie to the world of nRF. I am trying to develop a gateway using nRF52840dk using nRF connect  SDKv2.0.0. 

While I am trying to create a freestanding application from central_hr samples, it is possible to build and flash the code successfully. 

But the code crashes while discovering client attributes. On debugging, I found that the issue is arises inside the 

bt_gatt_discover(conn, &discover_params); function.
 
When I flashed the sample code it works fine.

Thanks in advance
Parents Reply
  • Hi,

    Vishnu Vijayan said:
    before adding the CONFIG_THREAD_NAME=y in prj.conf , the thread name is available in the error code (Current thread:0x20001ae0 (BT RX)) But how can I found out the location of this thread?

    Ah, good, I looked at the screenshot to quickly. In that case, try to add CONFIG_BT_RX_STACK_SIZE=2048 (or even higher if needed) to your prj.conf.

    Vishnu Vijayan said:
    I created a .c file and .h file inside a new folder in the src. I have added all the ble part to this c file and declare functions in .h file.

    Knowing exactly which changes you made could be relevant, so if the above does not solve it please explain that in detail all the changes/additions you made (for instance by sharing the full project or a diff).

Children
Related