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

How to define a variable whose value survives a reset?

I want to define a variable whose value can survives a reset. Is it possible?

Parents
  • I am not sure whether I should open a new question and will describe what my problem really is: I need to disable softdevice for my application to send a uninterrupted pulse trains on a general-purpose output pin. A sd_softdevice_disable() is issued before I send the pulse trains and sd_softdevice_enable(clock_source, NULL) is issued to re-enable softdevice. But I found that the chip seems to be reset. So my solution might be how to re-enable softdevice.

Reply
  • I am not sure whether I should open a new question and will describe what my problem really is: I need to disable softdevice for my application to send a uninterrupted pulse trains on a general-purpose output pin. A sd_softdevice_disable() is issued before I send the pulse trains and sd_softdevice_enable(clock_source, NULL) is issued to re-enable softdevice. But I found that the chip seems to be reset. So my solution might be how to re-enable softdevice.

Children
No Data
Related