This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Not able to execute while (1) loop after soft reset using GPIO interrupt

Hi,

I am developing project using nrf52840 and currently developing  using SDK 3.0. (Once I complete my feature I will update to SDK4.1).

I am using the light bulb firmware (using ZigBee) available in the SDK

I wish to soft reset the device and start again using GPIO interrupt.
For this I have configured 1 on board dev-kit button and configured interrupt handler for same.
To reset I used NVIC_SystemReset() function. When I press button my interrupt get executed and also NVIC_SystemReset() function.
I can see that my variables are getting default values but while(1) loop is not executing after soft reset.
And In while(1) loop I have written my state machine State_Ready to State_End where I do some data handling tasks as per my requirement.
But due to while(1) loop not executing after NVIC_SystemReset() unable to execute state_machine also.

Any help will be greatly appreciated.

Thanks and regards

Ankeet Gugale

Related