How to enable Master Access of SWT in MPC5748G?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable Master Access of SWT in MPC5748G?

585 Views
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?

Labels (1)
0 Kudos
1 Reply

437 Views
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 Kudos