FlexCAN functions for MBD (MPC57xx) does not works as intended

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

FlexCAN functions for MBD (MPC57xx) does not works as intended

Jump to solution
2,709 Views
abhishek_kumar1
Contributor IV

Hello

I am using MPC5744P DEVKIT (Link)with 144LQFP micro.

I want to use the CAN to send and receive message.

Step 1

I changed the jumper setting of the DEVKIT to use 12V Power supply.

Step 2

Used the flexCAN master example project but on the oscilloscope, both high and low pins stay recessive.

I also used VECTOR CAN Tool to see if messages are being sent on the bus but there is nothing. Not even Error Frames. 

Step 3

I adapted the model (attached) where I used PIT to make sure messages are sent periodically. But still CAN high and Low are recessive. 

Please provide your input.

Best Regards,

Abhishek

1 Solution
2,461 Views
constantinrazva
NXP Employee
NXP Employee

Hello abhishek.kumar@chassisbrakes.com‌,

Your example worked in my current setup:

pastedImage_1.png

Do other applications work on the board? I would try to flash a simple LED toggle example. If that works, could you share the jumper settings?

Kind regards,

Razvan

View solution in original post

0 Kudos
Reply
10 Replies
961 Views
Even1
Contributor I

Hello:

    Has this problem been solved? I also encountered the same problem, there are no messages on the CAN bus, and the configuration is as follows:

Even1_0-1714462607359.png

Best Regards

0 Kudos
Reply
2,461 Views
ssuyakov
Contributor II

Hi guys.

I've just got same issue which was described. I tested the attached example and it was perfectly working on my DEVKIT-MPC5744P Board and I captured same data in CanAnalyzer3 like on screenshot. But when I changed Bit Rate to 500 Kbit/s, recompiled project and upload to board I saw that LED has been stopped blinking and there is no traffic on CAN bus. Is it bug in MBD or something wrong on hardware level? sshot-2019-07-01-[10-07-58].jpg

0 Kudos
Reply
2,461 Views
constantinrazva
NXP Employee
NXP Employee

Hello ssuyakov@tae.com‌,

Could you share the generated code with us? And could you make sure you double-check the baud rate you've set in the USB-2-CAN application?

Kind regards,

Razvan.

0 Kudos
Reply
2,461 Views
abhishek_kumar1
Contributor IV

Dear Sergey

Is it possible that you did not change the BaudRate at Canalyzer 3 side.This is one reason to have an error. 

0 Kudos
Reply
2,461 Views
abhishek_kumar1
Contributor IV

Dear constantinrazvan.chivu

It has been solved. It works, and I don't know why it works. I tried the same code again. 

0 Kudos
Reply
2,461 Views
constantinrazva
NXP Employee
NXP Employee

Hello abhishek.kumar@chassisbrakes.com‌,

I checked the settings you provided, and everything was ok, and also the model worked. I'm glad it worked on your side in the end.

Kind regards,

Razvan.

2,461 Views
Daniel_Popa
NXP Employee
NXP Employee

Hi Abhishek,

Do you have 120R terminator ?

Best regards,

Daniel

0 Kudos
Reply
2,461 Views
abhishek_kumar1
Contributor IV

Dear dumitru-daniel.popa‌ and  mariuslucianandrei

We are using 120 ohm termination over CANH and CANL. 

Also, 120 ohm at the other transceiver which is VECTOR CAN USB Interface.

I have tried with 2 different DEVKITS, just to be sure. 

Do we need any new patch?

Best Regards

Abhishek

0 Kudos
Reply
2,462 Views
constantinrazva
NXP Employee
NXP Employee

Hello abhishek.kumar@chassisbrakes.com‌,

Your example worked in my current setup:

pastedImage_1.png

Do other applications work on the board? I would try to flash a simple LED toggle example. If that works, could you share the jumper settings?

Kind regards,

Razvan

0 Kudos
Reply
2,461 Views
abhishek_kumar1
Contributor IV

Dear constantinrazvan.chivu

The LED example works well. 

Jumper Settings

J13 -> 1-2

J31 -> Not connected

J38 -> 1-2

J22 -> 2-3

J26 -> 1-2

J20 -> 1-2

J28 -> 1-2

J24 -> 1-2

J04 -> 2-3

J40 -> 2-3

J32 -> 1-2

J19 -> 1-2

Best Regards,

Abhishek

0 Kudos
Reply