Memory Allocation - Arduino

Posted by Joey Arnold Andres on Stack Overflow See other posts from Stack Overflow or by Joey Arnold Andres
Published on 2012-11-13T10:50:13Z Indexed on 2012/11/13 11:00 UTC
Read the original article Hit count: 278

I'm new to this low level stuff. I'm currently learning arduino. I'm currently using an Arduino Mega 2560 and in our course we are practicing memory management. I'm a pro at memory management in pc but somehow I'm having crazy problems here in arduino. For instance:

The arduino have 8192B, I'm trying to overflow it with uint_16 so I made an array of 8192/16 which is 512. so I did

uint16_t A[512+1];

Well I expected that to cause an overflow.

What is wrong with my concept?

© Stack Overflow or respective owner

Related posts about c++

Related posts about memory