Hi,
How can I write to a flash address without using NVM? I want to place the code version on a flash memory address. Can I do it through Toolchain in Atmel Studio? Has anyone tried it?
Hi,
How can I write to a flash address without using NVM? I want to place the code version on a flash memory address. Can I do it through Toolchain in Atmel Studio? Has anyone tried it?
You can use a command line tool, e.g., atprogram is included with Atmel Studio, doc here:
http://ww1.microchip.com/downloa...
But I expect the version can only change when the program is updated so just include the version in the code.
https://stackoverflow.com/questi...
/Lars
Thank you for your reply. I was also trying the following-
4. https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/Common-Variable-Attributes.html
To view first 3 links, you will have to create an account on Microchip. Actually I want to insert bootloader version and application version on a memory location. I tried these but somehow its not working in main source file.