uCOS-II, SAM7 port V. 1.84 oddity.

This forum is for users of Atmel's SAM Series and who are interested in using µC/OS-II, The Real-Time Kernel.

Moderator: nferre

cfranck
Posts: 18
Joined: Mon Mar 05, 2007 10:28 pm

uCOS-II, SAM7 port V. 1.84 oddity.

Mon Dec 15, 2008 5:46 pm

Hello,

I just "updated" to the latest V. 1.84 port of uCOS-II.

The application note states that in the new version, all exceptions are eventually processed in
supervisor (SVC) mode and that the stack sizes for the other exception stacks (FIQ/IRQ/Abort/etc) only need to be 16 bytes large to hold R0-R3.

However, all OS_CPU_ARM_ExceptXXXXHndlr functions except for
OS_CPU_ARM_ExceptIrqHndlr start with pushing R0-R12, LR to the stack
(STMFD SP!, {R0-R12, LR} ) without switching the processor mode.

Am I missing something here, or will this behavior cause a stack overflow if the
exception stacks are only 16 bytes large as stated in the application note?

Return to “- µC/OS-II - Real-Time Kernel”

Who is online

Users browsing this forum: No registered users and 1 guest