TI E2E Community
Hercules™ Safety Microcontrollers
Hercules™ Safety Microcontrollers Forum
Enabling the FlexRay controller
I've been coding for the FR controller for some time now and I've hit a snag that doesn't necessarily have to have a cause in setting the controller itself. I've set up my controller and checked all the parameters multiple times and still there is absolutely no signal coming out of the physical layer (checked with FR-ready DPO).
When I issue the startup command the POC of my coldstart node gets stuck in COLDSTART_LISTEN phase, which I find odd sice this state should be left after the respective timers expire. My coldstart node isn't yet connected to a network, but that shouldn't matter since it at least ought try and transmit the CAS followed by the startup frames (resulting into activity in the physical layer).
So, the problem might be with enabling the function of the controller as a whole. I've been using HalCoGen to generate all the MCU startup code, so I don't know much about the TMS570 itself. I've connected the controller to the 80MHz and HalCoGen seems to enable and power-up all peripherals, so now I wonder are there any others steps I need to do? Pinmuxing (probably not, since FR pins aren't muxed)? Perihperal enable? Pin enable? etc...there could be something I haven't set. And since HalCoGen doesn't support FR, in which HalCoGen-generated files would I set what I need to set? Or do you think the problem is in the settings of the controller?
I'd be grateful for any advice.
We are reviewing this with our FlexRay expert. In the meantime, you may find an FlexRay example at this link: Media:FlexRay_Communication_CCSv4.zip
Hopefully this will help.
Thank you for taking the time.
(I've studied the example already.) Just to clarify, I'm starting the node with coldstart inhibit flag reset as it should be for a coldstart node.
So it turns out that the lack of the physical layer was indeed the problem. It's working now.
glad to hear that the problem is resolved.
If a post answers your question, please mark it with the "verify answer" button.
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.