We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi Guys
How am i able to assign values to a variable i have stored in flash so that it is included in the hex file?
For example: i have declared a variable volatile unsigned char code err_msgs[10][20] _at_ FLASHSTART;
but cannot assign an initial value to it and have to write it's value to flash when my program starts.
Xarion
"The 'volatile' will indicate that the compiler will not optimize out the array if it isn't initialized..." www.nxp.com/.../AN10342_1.pdf
No, I think that's wrong!
volatile does not affect the allocation of variables; it just prevents optimisation of the access to variables!
yes sorry, had some brain failure there i cant just strcpy ok i'll take a look at some books