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 example code queries

I am running the 5 nodes flexray demo source code for CCSv5.x on the TMS570LS MDK, and while it is running fine I have a number of questions regarding some the register settings:

  1. 8 static frames defined when there are only 5 nodes.
  2. Over long static frame length of 86 macroticks - for the defined payload the required time is 26 MacroTicks (by my calculations).
  3. Under filled static frame - frame payload is 18 bytes, but only 8 bytes are filled (similarly for the dynamic frames).
  4. Over long symbol window - the typical example in the Flexray protocol specification gives a symbol window of 138 MacroTicks, 714 are defined in the example.
  5. Over long network idle time - the Flexray protocol specifies an idle time of 2-805 MacroTicks, 2814 are defined in the example. Further, the calculated NIT start in the comments gives an NIT start of 0xAE3, but 0x578 is set to the register, effectively starting the NIT in the middle of the dynamic segment.
  6. The defined offset correction start far exceeds the criteria - in the comments the calculation for the OCS gives a value of 0xAE4 which is then defined in the register, but the NIT value in the register is only 0x578.

Each of these points is basically needing to know why you have done them. As there is no readme file with the example it is hard to figure out your design decisions. A readme file specifying the parameters of the network, and what the example will do would have been very useful.

Cheers,

Paul Bremner