Where are global arrays stored? Flash or SRAM or?
Suppose I define a global array called DATA in a .c file for an STM32F103 like so:
#include ...
uint32_t DATA[0x1000] = {
// data goes here
};
int main(){
// main
}Questions.
0) Where does DATA get stored? Flash or SRAM? Or somewhere else? (Is there somewhere else?)
1) If it's stored in SRAM does that mean that SRAM is persistent storage?
2) How can I control where it is stored? Eg. how can I store it at position 0x08004000 in Flash or at position 0x20004000 is SRAM?
