mpc8309 flexcan resister's space can not access

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

mpc8309 flexcan resister's space can not access

475 次查看
databus
Contributor I

I have a mpc8309 board,the version of uboot is "uboot 2010.06".But i can not access the flexcan registers,when i access flexcan registers,there is a "Machine check exception",and i do not know why.Uboot set the IMMR register value 0xe0000000.Please help me ......

Image 7.png

0 项奖励
2 回复数

396 次查看
r8070z
NXP Employee
NXP Employee

I do not see did you try to read IMMR itself? What did return “md  0xe00000000  1”? Notice the memory mapped registers are includes reserved spaces. For example at offset 0xc the CAN memory map shows reserved 4 bytes. Reading from address locations which appear as reserved in the memory map table is not guaranteed to return predictable data.

0 项奖励

396 次查看
databus
Contributor I

This problem have been solved.CAN1_SUP_EN bit of Access Control Register(CAN_DBG_CTRL register)must set 1 before access CAN register space.

Image 9.png

0 项奖励