Hello,
We are using MPC5777CEVB and MPC57XXMB.
IDE : s32ds for Power Architecture
OS : Windows 10
Is there any External SRAM test example running on 32ds for Power Architecture?
Regards,
Jinus
Solved! Go to Solution.
I have just shared example code prepared with Design Studio. it works fine.
You can download it here:
Could you show me MMU table sccrenshot as follows?
Hi David,
Thanks.
I don't know where i can find this tool. I am sorry.I only have startup_MPC5777C.S file.
MMU configuration shows blow:
#if defined(MMU_CONFIG)
;#****************************** MMU configuration ********************************
#TLB1 = internal flash @ 0x0000_0000, VLE
e_lis r3,0x1001
mtspr 624,r3
e_lis r3,0xC000
e_or2i r3,0x0700
mtspr 625,r3
e_lis r3,0x0000
e_or2i r3,0x0020
mtspr 626,r3
e_lis r3,0x0000
e_or2i r3,0x003F
mtspr 627,r3
msync # Synchronize in case running from flash
tlbwe
se_isync # Synchronize in case running from flash
#TLB3 = internal SRAM @ 0x4000_0000, VLE, Write-Through Cache
e_lis r3,0x1003
mtspr 624,r3
e_lis r3,0xC000
e_or2i 3,0x0480
mtspr 625,r3
e_lis r3,0x4000
e_or2i r3,0x0030
mtspr 626,r3
e_lis r3,0x4000
e_or2i r3,0x003F
mtspr 627,r3
msync # Synchronize in case running from SRAM
tlbwe
se_isync # Synchronize in case running from SRAM
#TLB0 = pbridgeB @ 0xFFE0_0000, Cache inhibited, Guarded
e_lis r3,0x1000
mtspr 624,r3
e_lis r3,0xC000
e_or2i r3,0x0580
mtspr 625,r3
e_lis r3,0xFFE0
e_or2i r3,0x000A
mtspr 626,r3
e_lis r3,0xFFE0
e_or2i r3,0x003F
mtspr 627,r3
tlbwe
#TLB2 = external bus @ 0x2000_0000, VLE
e_lis r3,0x1002
mtspr 624,r3
e_lis r3,0xC000
e_or2i r3,0x0980
mtspr 625,r3
e_lis r3,0x2000
e_or2i r3,0x0038
mtspr 626,r3
e_lis r3,0x0000
e_or2i r3,0x003F
mtspr 627,r3
tlbwe
#TLB4 = pbridgeA @ 0xC3E0_0000, Cache inhibited, Guarded
e_lis r3,0x1004
mtspr 624,r3
e_lis r3,0xC000
e_or2i r3,0x0580
mtspr 625,r3
e_lis r3,0xC3E0
e_or2i r3,0x000A
mtspr 626,r3
e_lis r3,0xC3E0
e_or2i r3,0x003F
mtspr 627,r3
tlbwe
#TLB5 = 4k stack for each core (will be locked in cache)
# (Note: located just after 512k TLB3 entry for SRAM)
e_lis r3,0x1005
mtspr 624,r3
e_lis r3,0xC000
e_or2i r3,0x0180
mtspr 625,r3
e_lis r3,0x4008
e_or2i r3,0x0000
mtspr 626,r3
e_lis r3,0x4008
e_or2i r3,0x003F
mtspr 627,r3
tlbwe
#endif
Regards,
Jinus
I have just shared example code prepared with Design Studio. it works fine.
You can download it here:
Problem solved. Thanks very much!!
Unfortunately not. But it should not be difficult to port it as the whole setting in located in main.c file.