Flexcan test issues on FPGA board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flexcan test issues on FPGA board

994 Views
karsen
Contributor II

Hi dears:

 I have met some flexcan issues on my FPAG board

test enviroment : FPGA core frequency is 32M, flexcan peripheral clock and oscillator clock are both collect to 40M, the software is contiously send canfd frames:

1. when I configure a baudrate with 500K + 2M, there is no problem

2. when I configure a baudrate with 1M + 2M, there are some "unexpected can frames" occured on the bus (I use logic analyzer to watch them),

  2.1 the canfd frames is send out as expected

  2.2 the can frame is immediately(11 bits) followed by the canfd frame

  2.3 flexcan will report bit error when send these can frames

3. when I configure a baudrate with 500K + 4M/5M, the TDC is on, and TDC offset is 3

   there is only one frame send out, and there is no error report , I have watch the MB SRAM, the MB cs code is always "TX DATA," no update .

wish to hear from you, thanks !

Tags (1)
0 Kudos
Reply
1 Reply

950 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

which devices are used in fact? You have some FPGA connected to S32K device, or what?
It would be great you share screenshots for unexpected can frames and errors detected.
A behavior can indicate inconsistent CAN bit timing used on CAN bus. Be sure all nodes connected use a same bit timing.
For 40MHz PE clock and 4Mbps set TDC offset higher, i.e. 6-8.

BR, Petr

0 Kudos
Reply