MRCANHUBK344 FLEXCAN PROBLEM

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

MRCANHUBK344 FLEXCAN PROBLEM

Jump to solution
851 Views
vinmotion
Contributor III

Hello Experts , im using board MRCANHUB K344 but got problem cannot receive data in Logic analyzer although turn on pin STB and EN . Then connect yellow and white cable to logic analyzer. Hopefully you can check my zip test program where's wrong, and do i need to use the Drone Can term provided with MRCANHUBK344

 

 

MRCANHUB_k344_can.jpg

0 Kudos
Reply
1 Solution
794 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi, 

I used the same connection. With just Saleae logic connected I see CAN message still, as there is no ACK, no CAN node connected. 
With PCAN tool connected, I see message transmitted each 200ms 

PetrS_0-1769088240349.png

In the code I overlooked ";" on while loop

PetrS_2-1769088402819.png

 

BR, Petr

View solution in original post

3 Replies
803 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the usage of Siul2_Dio_Ip_WritePin is wrong. You should have 

PetrS_0-1769080195226.png

or if pin labels are defined in Pins tool you can use

PetrS_1-1769080237044.png

If you are connecting just logic analyzer, then the termination (e.g. Drone Can term) is needed otherwise no CAN message will be seen. Moreover as logic analyzer does not ACK message it will be sent repeatedly and you never pass while statement for checking transfer. Also with TX polling mode used you need to call FlexCAN_Ip_MainFunctionWrite repeatedly. It can be used as

PetrS_2-1769080492781.png

Finally, do not use FIRC as CAN protocol clock, rather select FXOSC or system clock. 

With above changes and terminated bus I see this one using analyzer

PetrS_3-1769081029316.png

BR, Petr

 

 

 

801 Views
vinmotion
Contributor III

Image (1).jpg

Thank you Sir, but after config like you said above i still got can error, can you please check that is this wiring correct , i connect can0A to Logic and can0B with drone can term... it would be helpful if i can see how you wiring test with MRCANHUBK344

0 Kudos
Reply
795 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi, 

I used the same connection. With just Saleae logic connected I see CAN message still, as there is no ACK, no CAN node connected. 
With PCAN tool connected, I see message transmitted each 200ms 

PetrS_0-1769088240349.png

In the code I overlooked ";" on while loop

PetrS_2-1769088402819.png

 

BR, Petr