stack guard section control

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

stack guard section control

810 Views
emerging
Contributor II

Hello,

Now i am in a project using MPC5746.In it i need to monitor stack overflow.I get an idea of stack overflow monitoring.First create a guard section and fill it with any particular pattern before execution start.After execution check the guard section if there is any other value than stored pattern then we can understand an overflow happened.But i don't have any idea about how we do this in a coding point of view.

Could anyone can give me a support to get how we do this stack overflow monitoring in a coding point of view? Thank you very much

Labels (1)
0 Kudos
2 Replies

573 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

we have already solved very similar question. Please see the link below and let me know, if it helps you.

https://community.nxp.com/message/857066 

Regards,

Martin

0 Kudos

573 Views
emerging
Contributor II

Sorry Martin.Actually it is not able to give me a clear idea.I want to get how to create a guard section in stack and how to fill values in guard section and how to read guard section values and what are the instructions and registers used for this.

I kindly request you to give me a support for that.

0 Kudos