Creating an array filled by compile time values and storing in SPI flash without allocating any RAM


(Hasan) #1

I’m trying to create an array starts from 0x20500000(length: 256KByte) and want to access them using fixed address. But I’m not able to achieve this without RAM allocation. I defined a section starting from 0x2050000 in linker script. The space is allocated properly and reading 0xff which means clean SPI flash region. I want to fill the region with some constant values.


(Hasan) #2

const int arr[2] = {1,2}; seems working.