Hi,
Thanks for sharing the example project for FlexRay 6837.TMS570LS3137_FlexRay_Example.zip
I am trying to get FlexRay working on my Hercules connected to a Vector VN7640.
However, I have the following queries, as I couldn't get this setup working.
1. Is it possible to cold start in a Point-to-Point topology with only a TI Hercules node (containing Fr_AllowColdStart(Fray_PST) function) and a Vector VN7640 device?
Vector does mention "Startup + asynchronous monitoring allows detection of FlexRay frames and symbols, even before the communication controller has synchronized itself to the bus."
2. The code gets stuck at the wait for CYCS interrupt flag. What could be the possible causes?
// wait for cycle start interrupt flag Fray_PST->SIR_UN.SIR_UL = 0xFFFFFFFF; // clear all status int. flags while ((Fray_PST->SIR_UN.SIR_UL & 0x4) == 0x0); // wait for CYCS interrupt flag Fray_PST->SIR_UN.SIR_UL = 0xFFFFFFFF; // clear all status int. flags
3. Is the Fr_AllowColdStart(Fray_PST); function call enough to make a node a cold-start node?
4. Where do the sync_data[31][2] values come from? Are these just some random values that need to be on transmitted by all the sync nodes in the cluster?
5. Is the trans_data[31][6] just sample data to be transferred and needs to be replaced with the user data?
Thank you