This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: Flexray Communication End of Communication Cycle CTR Update

Part Number: TMS570LC4357

Hello TI Team,

I have been able to setup all my communication parameters to allow successful communication over Flexray. However I am having trouble implementing a counter in my flexray message. At the end of each communication cycle I would like to increment a 0 to 15 counter and transmit it in a flexray message. However I don't know what is the best way to do this simple task with flexray. In my function transmit_check_node_b(FRAY_ST *Fray_PST) I try to increment the counter at the end of the cycle communication cycle. 

However it looks like my counter has now incremented twice before a transmission and it also looks like the Fray_PST->MTCCV_UN.MTCCV_ST.ccv_B6 (cycle communication counter) increments by 2. 

I've been trying to look at the different configuration registers for flexray to determine how to increment the counter. In the TRM it talks about a TXI Transmit interrupt and Cycle start interrupt CYCS flags. This looks like it could be useful information to have a ISR monitoring these flags and increment the payload counter (0 to 15). But when i try to set up a RTI interrupt to periodically monitor these flags it seems flexray stops working. Possibility flexray is already using some of these RTI counters.https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/908/2577.InverterBoot.7z