MCF5271 Call Stack Organization

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCF5271 Call Stack Organization

2,689 次查看
TrickTronic
Contributor I
Hello,

I am working with the mcf5271 and Cdewarrior 5.6.1.1570

How can I get a description of how is the stack is organized.
I need that for my application in case of an exception to know what happened to cause this exception.
I can save the16kByte from the stack on a disk, but I have no glue whats the content and how to read it.

Thank you for helping hands,
Alex
标签 (1)
0 项奖励
回复
3 回复数

1,174 次查看
RichTestardi
Senior Contributor II
Hi,
 
You can look in C:\Program Files\Freescale\CodeWarrior for ColdFire V7.0\Help.
 
You'll see ColdFire_Build_Tools_Reference.chm which has the calling conventions info.
 
There is also Targeting_ColdFire.chm which has some of that information as well.
 
You might also find these in PDF format in C:\Program Files\Freescale\CodeWarrior for ColdFire V7.0\Help\PDF, though some of mine appear to be corrupt after installation.  I have found uncorrupt PDFs searching the freescale.com website.
 
For information on the exception frames (for after you crash), check out chapter 11 of "ColdFire® Family Programmer’s Reference Manual" -- that'll tell you the details of why you crashed.
 
Good luck!
 
-- Rich
 
 
0 项奖励
回复

1,174 次查看
RichTestardi
Senior Contributor II
0 项奖励
回复

1,174 次查看
TrickTronic
Contributor I
The build tools reference was the best one to look at!

Exception handling and what was the reason of exceptions was not the problem.
I have for example an own implementation of an ASSERT-Function to determine programming errors within abstracted components.
Now I want to know which function called the component that caused the error. I think with that description it is possible.

Thank you!



0 项奖励
回复