This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Array initialization in c8051F320

I'm trying to fill an array in xdata with zeros as follows:

unsigned char n; //Index to scan the array
unsigned char xdata bt[100]; //The array to fill

for(n=0;n<100;n++){ bt[n]=0; }

But when the array size is bigger than 38 elements the MCU hangs.
Does anybody know the reason why this happens?

0