flexcan issue

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

flexcan issue

830 Views
aksh9354
Contributor I

hello, I am using i.mx8qm mek for adas project. when the board sent the first message on can bus, the bus is going in off state if another node send the first message the system is working fine

log files

flexcan_log (1).png

 error getting is

 

imx_to_hostpc.png

normal can status

can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
    link/can  promiscuity 0
    can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
          bitrate 500000 sample-point 0.875
          tq 50 prop-seg 17 phase-seg1 17 phase-seg2 5 sjw 1
          flexcan: tseg1 2..64 tseg2 1..32 sjw 1..32 brp 1..1024 brp-inc 1
          flexcan: dtseg1 1..39 dtseg2 1..8 dsjw 1..8 dbrp 1..1024 dbrp-inc 1
          clock 40000000numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535

 

 

thanks & regards

0 Kudos
4 Replies

812 Views
aksh9354
Contributor I

hello,

the mentioned step is already done, but the issue is still there .

issue only from i.mx side while initiating the communication.

if the first message sends by the board that time bus is going in off state.

 

 

0 Kudos

809 Views
igorpadykov
NXP Employee
NXP Employee

since you are using not default configuration and changed sources, for

helping with this issue please proceed with help of NXP Professional Services:
https://contact.nxp.com/new-prof-svcs-sw-tech

 

Best regards
igor

0 Kudos

816 Views
aksh9354
Contributor I

The device tree would still need to be modified to configure the pads and FlexCAN resources.

as per the above line mentioned in the modification of default device configuration   which modification we need to do in the device tree and what modification we need to do

0 Kudos

824 Views
igorpadykov
NXP Employee
NXP Employee

Hi aksh9354

 

in nxp linux releases flexcan is used by m4, so necessary to perform steps below:

 

1.jpg

 

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Resource-...

Also please try latest nxp linux releases described on

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

0 Kudos