Hi! i have use p89c669 microcontroller and am29f040b [512 kb] flash.When i using the external code memory i can't initialize the array that have more than 4 values.if i initialize more than that the program will not be executed.if i comment the array the program was executed.the code was
const char red [256] = {0x00,0x00...0x00,0x00};
please help me!
regrads, K.T.Venkatesan.
I don't know what your problem is, but just want to inform you that for many compilers, it is better to not add any initialization for variables that are expected to be zero on startup. Unless you make special arrangements, the startup code will automatically zero-fill all variables that haven't got specific initialization values.
"the startup code will automatically zero-fill all variables that haven't got specific initialization values."
That is to say, all non-automatic variables...
View all questions in Keil forum