Now for something completely different…
I’m having an issue with the stack that is stored when vTaskStartScheduler() is run is evidently restored as if a call to vPortEndScheduler() has been done - but my app. isn’t calling any scheduler exit functions.
I’ve been able to catch with my debugger the exit and looked at the IRQ settings and they appear to be the same as when the scheduler is started. I change the settings once the app. is running.
Any ideas on what can be causing this to happen?
The crash can occur relatively quickly or can take 24+ hours to see. The intermittant ones are always the most fun - correct?
It’s almost as if a portSAVE_CONTEXT was missed or an extra portRESTORE_CONTEXT is run which could have this affect. What could cause that?
One app. uses 3 DMA channels w/o IRQ’s and doesn’t have problems. The other app. uses 2 DMA channels but only 1 DMA IRQ - and that is the app. with the issue. I’ve tried disabling/enabling the DMA channels when portENTER_CRITICAL() and portEXIT_CRITICAL() were run - but that didn’t solve the issue.
Thanks In Advance,