No Rx data in loopback mode in CAN module for Freertos

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

No Rx data in loopback mode in CAN module for Freertos

1,775 次查看
prashantsathe
Contributor III

Hi,

I am working in CAN module MAC57D5MB. As i am having a single board device So i am checking the CAN in loopback mode. Struggling for three days still i am not able to get an RX data(even RX IFLAG). When i transfer a TX data i am able to get an IFLAG bit(asserted). Here i am taking an reference from stable MQX code.

Could be give me some hint/path to check the same.

below is my memory status for CAN module.

------------------------------------------------------------------------

  0x400F8000 : 0x400F8000 <Hex>

  Address   0 - 3     4 - 7     8 - B     C - F              

  400F8000  0F008200  5630ED02  8A800000  00000000         

  400F8010  00008C04  00000000  00000000  00000000         

  400F8020  80000400  00000000  00020000  00000000         

  400F8030  00200000  00008000  00600000  00000000         

  400F8040  00000000  E2750D00  FFFFFFFF  00000000         

  400F8050  A5184300  00000000  02001600  0F000000         

  400F8060  00000000  00000000  00000000  00000000         

  400F8070  00000000  00000000  00000000  00000000         

  400F8080  00000008  00000000  00000000  00000000         

  400F8090  00000004  00000000  00000000  00000000         

  400F80A0  00000004  00000000  00000000  00000000         

  400F80B0  00000004  00000000  00000000  00000000         

  400F80C0  00000004  00000000  00000000  00000000         

  400F80D0  00000004  00000000  00000000  00000000         

  400F80E0  00000004  00000000  00000000  00000000     

------------------------------------------------------------------------

    RX_mailbox_num  = 9;

    TX_mailbox_num  = 13;

    RX_identifier = 0x123;

    TX_identifier = 0x321;

/* RX fifo needed?                                      */ FALSE,

/* RX message buffer needed?                   */ TRUE

If you need any other information please do let me know.

-Prashant

标记 (2)
0 项奖励
回复
5 回复数

1,468 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Prashant:

Here is a CAN  loop back demo in KSDK 2.0 You can refer to it.

SDK_2.0_TWR-K64F120M\boards\twrk64f120m\driver_examples\flexcan\loopback

You can get KSDK package from http://kex-stage.freescale.net”.

Regards

Daniel

0 项奖励
回复

1,468 次查看
prashantsathe
Contributor III

Site is not reachable ...

0 项奖励
回复

1,468 次查看
danielchen
NXP TechSupport
NXP TechSupport
0 项奖励
回复

1,468 次查看
prashantsathe
Contributor III

Thanks for reply.

This is based on "MK64FN1M0VMD12".  mine is "MAC57D5MB".

So does this helpful to me ?

If yes then i ll go ahead to check this. Otherwise would have no meaning to go ahead.

Your reply is appreciated.

-Prashant

0 项奖励
回复

1,468 次查看
danielchen
NXP TechSupport
NXP TechSupport

Sorry I made a mistake. MAC57D5MB is quite different. The MQX space is mainly focusing on Kinetis devices.  I don't have a demo based on MAC57D5MB. 

You have an option to post your question at Automotive community for quick answers.

Regards

Daniel

0 项奖励
回复