Hi converse
Thanks for the clarification - according to the below, I should be able to place the array .text into a specific memory section instead?
Placing code/rodata into different FLASH blocks
Using code such as:
__RODATA(Flash2) const int roarray[] = {10,20,30,40,50};
I've tried this (with the suggested gpio_led_output demo:
__RODATA(RAM2) static const unsigned char array[]={
0x00,0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x20,0x00,0x00,
0x00,0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x20,0x00,0x00,
0x00,0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x20,0x00,0x00,
0x00,0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x20,0x00,0x00,
};
If I use static const - i don't see memory allocated for this array anywhere.
If I use volatile, the RAM2 destination is ignored..
Any idea as to why I wouldn't see any apparent allocation when using __RODATA with static const vs volatile ignoring the specifier?