c - Arduino, max array size > 255? -


i'm using arduino-irremote code read in ac unit remote on arduino uno r3.

there's unsigned int rawcodes[rawbuf]. when set rawbuf 255 works great. push 256 , uploads fine, there's no response.

is memory limitation? according this, it's not. should able ~400 elements.

also, because limit i'm hitting 255 makes me believe there's else going on.

thanks, justin

you shouldn't have limitation.

you're playing high amounts of memory. sure have enough available memory so? looks you're talking runtime errors(of memory leak/segfault type) here.

you can check total available memory or check this great article (and code) on how debug avr.

also if you're using heavy static strings allocation, can reduce memory usage using progmem storage (and having impact on available size sketch).


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -