
-
The specific error information is shown in the figure above

The specific error information is shown in the figure above
Hi,
Which exact sample are you running?
Which nRF Connect SDK version are you building from?
Have you made any modifications to the sample before building?
Can you describe the exact steps you followed to make the board reset?
Did you erase the full board before programming the new application?
Best regards,
Jørgen
Since you are getting a stack overflow, one of the thread stacks is likely set too small.
What is the frequency of your button push, and how many times do you press it before the error occurs?
Just to confirm, you have not changed any configurations of the sample?
Since you are getting a stack overflow, one of the thread stacks is likely set too small.
What is the frequency of your button push, and how many times do you press it before the error occurs?
Just to confirm, you have not changed any configurations of the sample?
I press the button twice a second, it's random sometimes I press it once and sometimes I press it a dozen times and I'm not doing anything with the configuration

I doubled the parameter in the image above. Now the problem is solved and there will be no reset. Will this change have any other effects?
I do not think that changing the stack guard implementation is a good way to solve the stack overflow issue you are seeing. The change you have made will increase RAM usage, and I suspect that you might not actually resolving the issue, but hiding/delaying it by increasing the stack guard area.
You should rather locate the thread that causes the stack overflow and increase its stack size.