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.

Flexray Interrupts

Other Parts Discussed in Thread: TMS570LC4357, HALCOGEN

Greetings TI !

I see that Flexray support is not available in HALCoGen for TMS570LC4357. I have a trouble in writing ISR to this module. In Flexray Module, what is Flexray High, Flexray Low , Flexray TU, Flexray T0C and Flexray T1C ? Kindly explain when these interrupts exactly occur and its purpose.

Thanks in advance.

Sindhu

  • Sindhu,

    It looks like your question is regarding the names in the HalCoGen VIM tabs.

    These don't match exactly with the TRM / Datasheet names so I can understand the difficulty you are having.

    You can match up the channel # between HalCoGen and the table 5.15.3 Interrupt Request Assignments of the device datasheet -- for example "FlexRay high" HalCoGen name defaults to channel 18. In Table 5.15.3 this channel 18 is called "Flexray level 0 interrupt".

    In theory you could match these names up to the names in the flexray chapter of SPNU563 but I don't have any luck with this. So we'll need to research this further.
  • Hi Sindhu,

    As Seely said, the HalCoGen uses HighLevel (or LowLevel) in the ISR name for the Level 0 interrupt (level 1 interrupt) defined in the datasheet. In Datasheet VIM request tables, there are 5 interrupt channels for FlexRay.

    • 18 -- FlexRay level 0 interrupt
    • 32 -- FlexRay level 1 interrupt
    • 48 -- FlexRay TU Transfer Status interrupt
    • 58 -- FlexRay TU Error interrupt
    • 52 -- FlexRay T0C interrupt
    • 62 -- FlexRay T1C interrupt

    The FTU (FlexRay Transfer Unit) has an internal intelligent state-machine to transfer data between the Input and Output Buffer Interfaces of the FlexRay core module and the system memory of the microcontroller without CPU interaction. It operates in a similar manner to a DMA module. The FTU transfer interrupts are enabled by writing 1 to TSMIES and TCCIES registers, and FTU error interrupts are enabled by writing 1 to TEIRES register. The status flags are in TSMO, TCCO, and TEIF.

    RTI module in Hercules MCU provides a mechanism to sync the OS to the flexray communication cycle. RTI counter block 0 can be clocked in addition by either the flexray macrotick (NTU0) or the flexray start of cycle (NTU1).

    Regards,

    QJ

  • Thanks Seely and QJ ! The Answers are of great help.