How to enable Master Access of SWT in MPC5748G?

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

How to enable Master Access of SWT in MPC5748G?

1,062 次查看
ruuxi1h4cx
Contributor II

149622_149622.pngpastedImage_0.png

Master access of SWT is disabled in  Startup.S as follows.

e_lis      r3, 0x7F00       // -> 0xFF00, master access enable
e_or2i    r3, 0x010A

So I have to modify Startup.S file if I want to access SWT control register. Obviously, this is not a good idea.

But, how to enable Master Access of SWT in MPC5748G apart from that way?

标签 (1)
0 项奖励
回复
1 回复

914 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

in startup code modify e_lis r3,0x7F00 to e_lis r3, 0xFF00. This enable access for Master 0.

Regards,

Martin

0 项奖励
回复