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?

Parents
  • It is possible to create longer messages on this forum - and notice it's a forum and not a blog.

    The issue is that there have been lots of spam issues. And for some reason, the word w_a_t_c_h_d_o_g just happens to trig their spam filter, giving you the error messages you are seeing. Or you might have accidentally found some other trigger word.

    I think this was one of several threads where I did try to warn about the w-dog issues but wasn't allowed to post.

Reply
  • It is possible to create longer messages on this forum - and notice it's a forum and not a blog.

    The issue is that there have been lots of spam issues. And for some reason, the word w_a_t_c_h_d_o_g just happens to trig their spam filter, giving you the error messages you are seeing. Or you might have accidentally found some other trigger word.

    I think this was one of several threads where I did try to warn about the w-dog issues but wasn't allowed to post.

Children
No data