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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,725 次查看
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 解答
2,477 次查看
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 项奖励
回复
10 回复数
977 次查看
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 项奖励
回复
2,477 次查看
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 项奖励
回复
2,477 次查看
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 项奖励
回复
2,477 次查看
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 项奖励
回复
2,477 次查看
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 项奖励
回复
2,477 次查看
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,477 次查看
Daniel_Popa
NXP Employee
NXP Employee

Hi Abhishek,

Do you have 120R terminator ?

Best regards,

Daniel

0 项奖励
回复
2,477 次查看
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 项奖励
回复
2,478 次查看
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 项奖励
回复
2,477 次查看
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 项奖励
回复