LPC55S16 MCAN MRBA issue

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

LPC55S16 MCAN MRBA issue

556件の閲覧回数
jmorel
Contributor II

we've been having issue with can where sometimes our data or stack gets overwritten and hard faults. we found that the mcan is locked to sram base 0x02000000. if we try to change the MRBA to any other location the mcan module stops working. we've had to reserve the first 4 pages for the mcan to get it to not override our stack. is the mcan modules just permanently set to that location?

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

544件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @jmorel 

Which address are you located at? Please note that the address must be 64KB-aligned.

Alice_Yang_0-1751019585840.png

 

BR

Alice

0 件の賞賛
返信

538件の閲覧回数
jmorel
Contributor II

we created a buffer for the can and we set the offset to it, but it duplicates the data to the first 4 pages of 0x20000000(meant this addr from the first question). when we try moving it to 0x20010000 the can module transmit just zeros for the id and data and no longer receives. the only thing that has worked was reserving the first 4 pages of 0x20000000 and placing the can buffer there.

0 件の賞賛
返信

466件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @jmorel 

Yes, this memory cannot be used as CAN RAM. It is allocated for USB RAM.

Alice_Yang_0-1751854312961.png

 

Due to the alignment constraint (64KB-aligned), only the address starting from 0x20000000 can be used as CAN RAM.

 

BR

Alice

0 件の賞賛
返信