LPC55S16 MCAN MRBA issue

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

LPC55S16 MCAN MRBA issue

549 次查看
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 回复数

537 次查看
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 项奖励
回复

531 次查看
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 项奖励
回复

459 次查看
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 项奖励
回复