At this point, even any guesses would be more than welcome!Thanks!
You asked for guesses: the problem might have nothing to do with the array size, etc., your uart... function might be failing sometimes for unknown reason and you are just looking for a problem in a wrong place.FWIW.
Just tried another way. It works beyond 4 elements if I use single quotes:Code 1:char chartest2[12]={'H','E','L','L','O',' ','W','O','R','L','D'};[snip]Result 1:HELLO WORLDThis problem is confusing me even more!
I would also tryconst char chartest[5]="HELL";to see what happens.
Had tried that too. It doesn't work.So arrays over 4 elements don't work. Pointers don't work. Something to do with data allocation...?
void main(){ char x; //some code if(x>0) { //some code }}