AnsweredAssumed Answered

MPC5777M flexray startup fails

Question asked by Bi weiping on May 9, 2019
Latest reply on May 9, 2019 by Martin Kovar

I want to test flexray communication on MPC5777M EVB. So I take the flexray-channel A on board as channel A of FR_0 and take flexray-channel B as channel A of FR_1 by connecting J30 to PN[12] PN[14] PN[6]. FR_0 and FR_1 only work for single channel mode. I connect channel A of FR_0 to channel A of FR_1. 

 

 

 

when i test the flexy communition like this, flexray startup fails:

1. CSA_IF in PIFR0 is set;

2. CSAA in PSR1 is set;

3. STARTUPSTATE in PSR0 is 5 (POC:integration listen)

 

my configurations are:

 

#define gdActionPointOffset 3
#define gdStaticSlot 50
#define gdMinislot 40
#define gNumberOfStaticSlots_1 60
#define gColdstartAttempts 28
#define gdMinislotActionPointOffset 3
#define gdWakeupSymbolRxLow 50
#define gdCASRxLowMax 83u
#define gdWakeupSymbolRxWindow 301u
#define gdTSSTransmitter 11
#define gdWakeupSymbolRxIdle 59
#define gdWakeupSymbolTxLow 60
#define gdSymbolWindow 13
#define pMacroInitialOffsetA 5
#define pMicroPerMacroNom 40
#define pDecodingCorrection 56
#define gdWakeupSymbolTxIdle 180
#define gMaxWithoutClockCorrectionFatal 14
#define gMaxWithoutClockCorrectionPassive 10
#define gNumberOfMinislotsEnable 1
#define gdSymbolWindowEnable 1
#define pOffsetCorrectionOut 1201
#define gMacroPerCycle 5000
#define pSingleSlotEnabled 1
#define pWakeupChannel 0
#define gOffsetCorrectionStart 4920//(gMacroPerCycle - adOffsetCorrection)
#define pKeySlotUsedForStartup 1
#define pKeySlotUsedForSync 1
#define pAllowPassiveToActive 20
#define headerCRCForKeySlot 242


#define pRateCorrectionOut 600
#define pMacroInitialOffsetB 5
#define pKeySlotId 1
#define pWakeupPattern 16
#define gPayloadLengthStatic 16
#define pDecodingCorrection 56
#define pMicroInitialOffsetA 23
#define pMicroInitialOffsetB 23
#define pLatestTx 21
#define pExternRateCorrection 0
#define pdAcceptedStartupRange 300
#define pDelayCompensationA 1
#define pPayloadLengthDynMax 8
#define pClusterDriftDamping 1
#define pAllowHaltDueToClock 0
#define pdAcceptedStartupRange 300
#define pDelayCompensationB 1
#define gdDynamicSlotIdlePhase 0

#define gNumberOfMinislots 22
#define pExternOffsetCorrection 0
#define gSyncNodeMax 5
#define pdListenTimeout 401202
#define gListenNoise 2
#define pMicroPerCycle 200000
#define pdMaxDrift 601

#define gNetworkManagementVectorLength 2

 

I try to change flexray clock to 40Hz frim 80Hz, but it does't work. Petr Stancik Martin Kovar

Outcomes