MPC5748G CAN-FD Reception

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5748G CAN-FD Reception

1,946件の閲覧回数
bindu_madhavan
Contributor I

Micontroller: MPC5748G

Peripheral: FlexCAN

Channel: CAN 0

Baudrate: CAN-FD 1000 Kbps

Hardware: DevKit

Software: attached

Question: We are trying to Transmit a message on MB-0 and do an internal loop back to receive it back on MB-1. We do not see the message being received on the MB. Not sure if we are missing anything. Can we get some help?

ラベル(1)
タグ(1)
0 件の賞賛
返信
3 返答(返信)

1,837件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the header file does not distinguish memory partitions for CAN FD and it assumes just 8byte payload.

So when you access MB[1].CS it actually writes/reads MB offset 0x90 and no the correct one 0xC8 which is CS work of MB1 if 64 payload is configured. 

So address the correct memory, see Table 43-16 of the RM.

BR, Petr

0 件の賞賛
返信

1,837件の閲覧回数
bindu_madhavan
Contributor I

Thanks Petr.

Other concern I saw was regarding RXIMR register. I had written 0x1FFFFFFF to most of the RXIMR registers and I see it getting loaded. But after clearing FRZ & HALT bits in MCR and a wait until FRZACK, they surprisingly get reassigned to its memory map address values

RXIMR[0] = 0xFFEC0880

RXIMR[1] = 0xFFEC0884

RXIMR[2] = 0xFFEC0888

RXIMR[3] = 0xFFEC088C

etc.

Any idea why?

0 件の賞賛
返信

1,837件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

RXIMRs are not accessible outside Freeze mode, so maybe debugger shows address value. When you put back to Freeze mode you should see right value again.

BR, Petr

0 件の賞賛
返信