I would like declare variables in the flash memory, Is it possible?
I would like declare variables in the flash memory, Is it possible?
Hello,
I assume you don't want the variable to be loaded to RAM? In that case, you can use the 'const' keyword when declaring the variable. The linker will then place the variable into the .rodata section in flash.
Best regards,
Vidar
Hello,
I assume you don't want the variable to be loaded to RAM? In that case, you can use the 'const' keyword when declaring the variable. The linker will then place the variable into the .rodata section in flash.
Best regards,
Vidar