Stack error

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
KieranFoot

Stack error

Post by KieranFoot »

I am having a problem implamenting the scheduling system from the OSD tutorials, I have made simple chqnges to the scheduler system by adding two function add_task() and destroy_task().

It seems that somewhere along the line ESP is being zeroed ???

I have checked and it seems that when the timer interrupt is being called whilst multitasking is enabled the ESP value is being skrewed with and ends up above bounds, crossing into the top of the next tasks stack...

However I have allways had this problem with the OSD tutorial's schedule() system...
paulbarker

Re:Stack error

Post by paulbarker »

Is the timer interrupt executing correctly?

Have you remapped external interrupts to avoid builtin exceptions?

Have you tried dumping the stored registers to the screen before reloading them?
KieranFoot

Re:Stack error

Post by KieranFoot »

That would be done in setjump???
Post Reply