Dwm1001C NRF52832 nrf storage write error after BLE initializations.

Hello im using Dwm1001C with NRF SDK 14.2 for uwb localization measurements. I have a example project that measures the position of the tag. Inside this project at some places i do fstorage write operations succesfully.

In addition to this project, I implemented the ble template example inside my localization project with SoftDevice 5. But after BLE initializations, after my fstorage write operations the device resets itself. I use nrf_fstorage_sd and I initialize BLE first. Any ideas what may cause in BLE blocks my fstorage write operations?

Thanks in advance.

Parents
  • Hello,

    I assume the program is entering the app_error_fault_handler() due to a runtime error since you are observing resets (Error handling). To confirm this, please enable debug logging and the DEBUG flag (DEBUG flag is automatically set if you select the Debug build configuration when using Segger embedded studio). The debug log should include a crashlog with information about the error.

    Best regards,

    Vidar

Reply
  • Hello,

    I assume the program is entering the app_error_fault_handler() due to a runtime error since you are observing resets (Error handling). To confirm this, please enable debug logging and the DEBUG flag (DEBUG flag is automatically set if you select the Debug build configuration when using Segger embedded studio). The debug log should include a crashlog with information about the error.

    Best regards,

    Vidar

Children
  • Hello Vidar thank you for your response.

    I believe somehow i removed debug configuration in my project. So can you help me that how can i create a debug configuration and which flags should i enable. I looked into sdk_config.h file but there are lots of debug enable flags. As you can understand I'm a novice at these things. So i would appreciate that you can explain me this things detailed.

    Best regards.

    Salih

  • Hello Salih,

    Is the example you based your project publically available? If so, could you point me to it? Also, are you using Segger Embedded studio v.5? 

  • Hi Vidar, 

    I based my work on the TWR (Two-Way Ranging) examples from https://github.com/Decawave/dwm1001-examples. Also i am using SEGGER Embedded Studio for ARM 5.50d as IDE.

  • Hi,

    It looks like these example projects don't include a separate debug build configuration, but you can add the 'DEBUG' flag here in the project settings:

    Best regards,

    Vidar