Hello Everyone,
Similar to the community post in FlexRay not starting after changing the Protocol settings , I'm trying to change the payload length to decimal '127' to transmit/receive 254 bytes (Maximum) of data. Naturally, this will have implications with other config parameter, I need help in setting other parameters which is affected by the change in G_PAYLOAD_LENGTH_STATIC.
Following is the details of the hardware used:
1. Development board: EVB9S12XF512E (S12XFSTARTERKITE: S12XF 2-Node Starter Kit)
2. Target Processor: MC9S12XF512MLM
3. Code: Low speed FlexRay example from https://www.nxp.com/downloads/en/snippets-boot-code-headers-monitors/EVB9S12XF512E_Node1_LS.zip
I could not find the marked correct answer in similar post, milanbaca indicated changes in payload and CRC in Fr_transmit_buffer_config_type Fr_tx_buffer_slot_XX_cfg structure. Are these the only changes to be done?, since the OP could not resolve their issue with said changes. The constraint for 'gPayloadLengthStatic' mentioned in the FlexRay specs doc is as following:
B.4.40 gPayloadLengthStatic
Consider the following assumption:
• The duration of a static frame transmission shall not exceed the maximum transmission duration of
a CC.
Therefore the following constraint must be met:
Constraint 55:
adTxStat[µs] <= adTxMax[µs]
with adTxStat being the upper bound for the static frame transmission duration, calculated by
[43] adTxStat[µs] = aFrameLengthStatic[gdBit] * adBitMax[µs/gdBit]
with the definition of aFrameLengthStatic as given in equation [22] in B.4.12.
Based on Constraint 55 and equation [43], the following constraint must be met:
Constraint 56:,
gPayloadLengthStatic[two-byte word] <= floor( (adTxMax[µs] / adBitMax[µs/gdBit] -
gdTSSTransmitter[gdBit] - cdFSS[gdBit] - 80 [gdBit] - cdFES[gdBit] ) /
20 [gdBit/two-byte word] ).
Requesting help in getting the config parameters correct, dianabatrlova, RadekS, milanbaca.
Thank you for your time.
Best regards,
Rohit