Initialization SRAM in S32G

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

Initialization SRAM in S32G

2,472 次查看
Forest_Hoang
Contributor I

Could you show me how to determine start address PRAMIAS[IAS] and end address PRAMIAE[IAE] when initial SRAM in S32G

I don't get 2 examples in S32G_RM document

local_bus_addr[31:0] = bus_addr - base_addr
mem_addr[16:0] = local_bus_addr[31:0] > 3

local_bus_addr[31:0] = bus_addr - base_addr
mem_addr[16:0] = local_bus_addr[31:0] > 4

when we use shift 3 or 4?

Thanks!

0 项奖励
回复
2 回复数

2,413 次查看
Forest_Hoang
Contributor I

As Document, SRAM range from 0x3400_0000 to 0x347F_FFFF, If I want to configure the memory region from 0x3420_0000 to 0x342F_FFFF, what is the value I can fill in PRAMIAS[IAS] and PRAMIAE[IAE]? Because If shift right 2 bit, the length of PRAMIAS[IAS] and PRAMIAE[IAE] is not enough to fill.

Thanks!

0 项奖励
回复

2,436 次查看
bpe
NXP Employee
NXP Employee

Initialization examples in S32GRM, Chapter 35 are generic and given to aid in
understanding the memory controller organization principle rather than a specific
implementation. None of these examples is directly applicable to S32G2.

On S32G2, Standby RAM is 32-bit wide plus 7 bits ECC, thus address offsets as
visible to the local processor should be shifted right two bits to produce the
proper value for PRAMIAS[IAS] and PRAMIAE[IAE]

Hope this Helps,
Platon

0 项奖励
回复