I want to define a variable whose value can survives a reset. Is it possible?
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.