TI E2E Community
Hercules™ Safety Microcontrollers
Hercules™ Safety Microcontrollers Forum
IAR stack outside of range
I've tried compiling the demo project on IAR for the TMS570LS3137 using the HDK kit. For programming I used the XDS100v2 JTAG.
The whole thing acts a bit weird, sice sometimes it works and sometimes it hangs on the abort handler with no apparent reason.
Then I get the following messages:
"The stack pointer for stack 'FIQ_STACK' (currently 0x8000200) is outside of range (0x8000400 to 0x8000500) "
"The stack pointer for stack 'CSTACK' (currently 0x8000500) is outside of range (0x8000000 to 0x8000200) "
... and so on...
The code is the same, nothing's changed.
Any idea what might be causing this?
The demo project is for CCS only. We have NOT tested for IAR.
You can try to increase the stack size to see if the problem is solved.
Well, I meant the demo project that is included in IAR for TMS570LS3137, so I suppose it's tailored for it. The assembly files are correct
and so are the definitions of register structures (which are different from CCS definitions). I wouldn't mind using CCS
but the problem is it doesn't have .h files for flexray controller (halcogen can't generate it).
Here is an example of flexray in ccs include the .h files.
A website containing MDK example programs for the KEIL IDE can be found here: Example Programs
The MDK Confidence Test & Demo Application source code for CCSv4.x may be downloaded here: Confidence Test & Demo Source Code (CCSv4.x)
The flexray demo source code for CCSv4.x may be downloaded here:Media:FlexRay_Communication_CCSv4.zip
I don't an IAR licence and can not repeat what you said.
I've reviewed the FlexRay example code and it seems to me that there are plenty of errors. Has anyone tried to run an actual network with this code?
The FlexRay example code is very basic and is not meant to be used in a real world application, though the communication does work. As HALCoGen currently does not support the FlexRay module, it is mainly meant to fill that gap and provide a .h file and can be used as a starting point.
If a post answers your question, please mark it with the "verify answer" button.
Given the time since the last post to this thread, it is assumed that the suggested answer resolved the problem. This thread will be closed at this time. If there continues to be an issue or further questions, please open a new thread.
Thanks and Regards,
If this response answers your question, please indicate it by verifying the suggested answer when provided.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.