This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Undesirable reset of nrf51822

Hello, I am using PCA10028 and sdk12.2. My challenge is nrf51822 resets after it executes the code for the first time.

I am storing few values in flash. After that I am using function for advertising. But after advertising for few seconds my nrf51 resets. I am attaching my code with New Text Document (2).txt

Please let me know suggestions.

Thanks, Shailav

Parents
  • Hi,

    A reset indicates that you are running into the error handler, where the default behavior is to do a reset. You should then debug in order to find the reason for the reset. See this post about debugging.


    Doing a quick test with the code you posted, I got the error FDS_ERR_NO_SPACE_IN_QUEUESfrom the fds_test_write() in the main() function.

    From infocenter:

    FDS_OP_QUEUE_SIZE: The size of the internal queue of FDS operations. Increase the size if there are many users, or if your application will queue many operations at a time without waiting for the previous operations to complete. In general, you should increase the queue size if you frequently receive FDS_ERR_NO_SPACE_IN_QUEUES errors.

    FDS_CHUNK_QUEUE_SIZE: The number of record chunks (pieces of record data) that can be buffered. Increase the queue size if you frequently receive FDS_ERR_NO_SPACE_IN_QUEUES errors and your data is typically composed of many chunks.

Reply
  • Hi,

    A reset indicates that you are running into the error handler, where the default behavior is to do a reset. You should then debug in order to find the reason for the reset. See this post about debugging.


    Doing a quick test with the code you posted, I got the error FDS_ERR_NO_SPACE_IN_QUEUESfrom the fds_test_write() in the main() function.

    From infocenter:

    FDS_OP_QUEUE_SIZE: The size of the internal queue of FDS operations. Increase the size if there are many users, or if your application will queue many operations at a time without waiting for the previous operations to complete. In general, you should increase the queue size if you frequently receive FDS_ERR_NO_SPACE_IN_QUEUES errors.

    FDS_CHUNK_QUEUE_SIZE: The number of record chunks (pieces of record data) that can be buffered. Increase the queue size if you frequently receive FDS_ERR_NO_SPACE_IN_QUEUES errors and your data is typically composed of many chunks.

Children
No Data
Related