Hi, my eval board is Phytec KC-161 (with 64k ext RAM, and 256k ext FLASH). Why the target doesn't initialize arrays in free running? Thank you.
if(array[cnt] != 1) putchar('!');
might be wrong. You should better have written
if(array[cnt] != '1') putchar('!');
might be wrong.
No , it was correct. I made just a simple initialization, and tested if it had done...
No, the array is initialized with 1, not '1', so you should also check using 1 (not the ASCII value).
-- Joost
Sorry, maybe I didn't understand. the array is initialized with 1, not '1' Yes, it is... you should also check using 1 (not the ASCII value). So , i did. But not this is the problem , the problem is that after the initialization unsigned char array[6]={1,1,1,1,1,1}; the elements of the array are not values of 1 like I expect, so it isn't initialized. And I think the problem is in the project settings or startup file, where I don't know the solution...