nRF52832 will restart accidentally, I have checked code, but I haven't fixed it so far;
Because restart is random, it is hard to reappear;
my question is
1, How do I find the reason of restart?
2, How do I keep the time after restart?
Thanks!
nRF52832 will restart accidentally, I have checked code, but I haven't fixed it so far;
Because restart is random, it is hard to reappear;
my question is
1, How do I find the reason of restart?
2, How do I keep the time after restart?
Thanks!
I would focus on finding the cause of your restart. If you don't want your timer to be reset, do not reset the chip. How does you Hardfault handler looks like? How do you handle asserts? How does your SD assert handler looks like?
Maybe it's even a hardware problem. Try to make the issue (more) reproducable. Try different hardware.
let's focus on the cause of restart;
I used app_error_handler function to handle asserts and SD assert. ,It will restart systerm ;
How often does it happen? It does not happen if you run your application under control of a debugger? Have you tried to expose all available information? (using an UART for example)
It happens seldom; and It doesn't happen when debugger;
Hi,
visionwang said:I used app_error_handler function to handle asserts and SD assert. ,It will restart systerm
You need to provide more information regarding your application if you want us to be able to help you. Which function causes the application to assert? What error code is printed by the error handler? Could you share your main file? Have you tried reading the RESETREAS register after a reset to determine the reset reason?
regards
Jared