Hello,
I am currently trying to create a FlexRay node with the TMS570LC43x Hercules development kit, and the FlexRay interface board provided here : http://processors.wiki.ti.com/images/f/f5/HDK_FlexrayCanLin_Daughter_Crad.zip
I am running the demo code provided at the following link :http://processors.wiki.ti.com/index.php/TMS570LS31x_HDK_Kit#Example_Expansion_Board_Design
What I changed in it are the configuration parameters, because those are different for the network I am trying to connect, and I have removed the part where the controller enters the ColdStart mode, because since the network is already up, there is no need for this.
The network is produced by a VN7600 :https://www.vector.com/int/en/products/products-a-z/hardware/network-interfaces/vn7610/
which says that, as a feature, it does not need another node for coldstarting the network. I can inside of CANoe that flexray messages are being sent.
My problem then is this, how to integrate a new node using the TMS570LC43x in this network?
In my initial experiment the code stops at the following line:
while ((Fray_PST->SIR_UN.SIR_UL & 0x4) == 0x0); // wait for CYCS interrupt flag
I tried removing this check, since I though it was mainly useful when transmitting some data, and with this node I only want to read data from the bus.
Upon doing so, I checked most of the registers, and found that in the CCSV under POCS, the value was 39d = 0x27.
Under the documentation this state refers to the INTEGRATION_LISTEN state. Looking at the state diagram and at the conditions for which the node could exit that state, it says that it listens for a startup frame, and then exits to the following state.
This feels somewhat weird to me. Since the FlexRay network is already up and running, and the startup frames have already been sent, does this mean that it is not possible to add a new node after the network has already been started up? How could I configure my TMS570LC43x in order to integrate itself into a network that has already been coldstarted?
There is a lot of scattered information on flexray and I might be just missing out on something easy, but it would be great if somebody would have an idea about this.
Thank you,
Adrian.