Home  >  Support  >  Support Forum  >  Anybody ever used the stack protection stuff in the R6000? Not looking for pointers to the processor manual ;-)
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Anybody ever used the stack protection stuff in the R6000? Not looking for pointers to the processor manual ;-)

0 votes
asked Jul 10 in Rabbit Software by daveoman New to the Community (5 points)

Please log in or register to answer this question.

2 Answers

0 votes
This actually is in the processor manual :-)
5.3.7 Stack Protection
The Rabbit 6000 provides stack overflow and underflow protection. Low and high logical address limits
can be set in STKLLR and STKHLR; a Priority 3 stack-violation interrupt occurs when a stack-based
write occurs within the 16 bytes below the upper limit or within the 16 bytes above the lower limit. Note
that the writes will still occur even if they are within the 16 bytes surrounding the limits, but the interrupt
can serve as a warning to the application that the stack is in danger of being over or underrun.
The stack checking can be enabled or disabled by writing to STKCR
answered Jul 10 by MargaretK Veteran of the Digi Community (492 points)
Lol...I've read the processor manual.

If you have some actual code that enables this from an application in C, that would be great.
0 votes
We do not have any code written for this.
answered Jul 10 by MargaretK Veteran of the Digi Community (492 points)
Contact a Digi expert and get started today! CONTACT US
...