Hi,
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?
Thanks
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.
Regards,
Haixiao
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.
http://processors.wiki.ti.com/index.php/TMS570_MDK_Kit
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?
Martin,
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.
Abhishek
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,
Chuck Davenport
If this response answers your question, please indicate it by verifying the suggested answer when provided.