STM32F429 SRAM3
Posted: Mon Apr 16, 2018 10:22 pm
I am working with the SRAM in a STM32F429 that has 256K of ram on chip.
The 429 discovery board doesn't have this memory and moving the .ld file from 192K to the 256K doesn't seem to work.
0x2002 0000 - 0x2002 FFFF SRAM3 (64 KB)
0x2001 C000 - 0x2001 FFFF SRAM2 (16 KB)
0x2000 0000 - 0x2001 BFFF SRAM1 (112 KB)
I am not really worried about having the mem in general RAM usage. After looking at the memory access method for the 4K of nv ram associated with the RTC I was thinking of a simple accessor for the sram based on that.
specifically
would this be the proper way? or is it already defined?
STM32F429VIT6
The 429 discovery board doesn't have this memory and moving the .ld file from 192K to the 256K doesn't seem to work.
0x2002 0000 - 0x2002 FFFF SRAM3 (64 KB)
0x2001 C000 - 0x2001 FFFF SRAM2 (16 KB)
0x2000 0000 - 0x2001 BFFF SRAM1 (112 KB)
I am not really worried about having the mem in general RAM usage. After looking at the memory access method for the 4K of nv ram associated with the RTC I was thinking of a simple accessor for the sram based on that.
specifically
Code: Select all
import stm
class buffer(object):
start=0x20020000
def __getitem__(self, idx):
assert idx >= 0 and idx <= 0x4000, "Index must be between 0 and 16384"
return stm.mem32[self.start + idx * 4]
def __setitem__(self, idx, val):
assert idx >= 0 and idx <= 0x4000, "Index must be between 0 and 16384"
stm.mem32[self.start + idx * 4] = val
STM32F429VIT6