Flexcan error in IMX8QM MEK

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

Flexcan error in IMX8QM MEK

Jump to solution
1,021 Views
vinothkumars
Senior Contributor IV

Hi All,

I am working in FlexCan with IMX8QM-MEK. But, I unable to assign the clock

 

mek_8q:/ # dmesg | grep -i can
[ 1.198605] Can't support > 32 bit dma.
[ 1.253895] CAN device driver interface
[ 1.258545] clk: couldn't get clock 0 for /can@5a8d0000
[ 1.849809] can: controller area network core (rev 20170425 abi 9)
[ 1.860490] can: raw protocol (rev 20170425)
[ 1.864773] can: broadcast manager protocol (rev 20170425 t)
[ 1.870448] can: netlink gateway (rev 20170425) max_hops=1

 

Regards,
Vinothkumar Sekar
0 Kudos
1 Solution
1,011 Views
vinothkumars
Senior Contributor IV

Thank you Igor for the reply.

 

I commented CAN resource in allocation for M4 Core1 in SCFW firmware. And also I disabled in M4 Core1 Free RTOS code.

 

Regards,
Vinothkumar Sekar

View solution in original post

Tags (1)
0 Kudos
3 Replies
1,016 Views
igorpadykov
NXP Employee
NXP Employee

Hi Vinothkumar

 

what bsp used in the case. If default images for Linux and Android were used, one can check if M4 was started. In affirmative case, CAN Resources are assigned to M4 and this can determine Linux CAN driver not to probe.

If this is the case, there are 2 possibilities:

1. M4 is not needed ==> use a flash.bin without M4 firmware (imx-boot-imx8qmmek-sd.bin-flash_linux)

2. Otherwise, M4 Resources has to be unassigned from M4 partition (board.c of SCFW).

Example can be found on

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

 

Best regards
igor

0 Kudos
1,012 Views
vinothkumars
Senior Contributor IV

Thank you Igor for the reply.

 

I commented CAN resource in allocation for M4 Core1 in SCFW firmware. And also I disabled in M4 Core1 Free RTOS code.

 

Regards,
Vinothkumar Sekar
Tags (1)
0 Kudos
999 Views
vinothkumars
Senior Contributor IV

Ablt to get can0 link. Removed all CAN related changes from M4. Please close this ticket 

Regards,
Vinothkumar Sekar
0 Kudos