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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
324 Views
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
76 Views
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
9 Replies
76 Views
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
76 Views
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
76 Views
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
76 Views
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
76 Views
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.

76 Views
NXP Employee
NXP Employee

Hi Abhishek,

Do you have 120R terminator ?

Best regards,

Daniel

0 Kudos
76 Views
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
77 Views
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
76 Views
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