i have micro which has around 2KB of ram 16KB FRAM
what would happen if i declare something like this
static uint8_t mydata[1500]; // it simply goes to bss , and consume 1500 bytes in ram
void main()
{
uint8_t data2[5000]; // it goes where ? compiler don't seems to be giving me any error or warning at all
}
another confusion is
static uint8_t mydata[1500]; // it simply goes to bss , and consume 1500 bytes in ram
void main()
{
------
uint8_t data2[250]; // i can see from map file of my microcontroller, stack is of only 160 byte , what happen if i declare variable of size 250 byte?
-------
}