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

Is SD with WDT IRQ set to priority-zero a problem?

The basic question is: if I initialize the SD and then forcibly change the priority of the WDT IRQ to zero via NVIC_EnableIRQ(), will that cause a problem?

I know you don't normally want to do anything which might preempt the SD's radio handler... but since the WDT IRQ should really only fire just before the system goes down anyhow, is there any reason it can't be set to priority-zero? I've tried setting it to zero before initializing the SD, and when you try to initialize the SD, it throws the "NRF_ERROR_SDM_INCORRECT_INTERRUPT_CONFIGURATION" error, which would normally make sense, but like I suggest - the WDT isn't going to be firing under any normal circumstances, so does that really matter?

This is with S110v8 and the v10 SDK.

Related