Hi there
Im pretty new to embedded programming and so I stumbled upon a problem. I do:
int i; char foo[2048]; char bar[3000]; for (i = 0; i < sizeof(foo); i++) foo[i] = bar[i];
The code seems ok and the compiler doesnt complain, but when I load that program to the microcontroller it hangs up. I noticed that when I decrease the size of foo to about 900 it all works fine. So that looked like a RAM problem to me. But Im able to access the last element of foo without having any trouble (foo[2047] = bar[2047]) which shouldnt work if foo where partly located out of RAM, right?
So why isnt the code working? What am I doing wrong?
Im using a LPC2478 from NXP.
Could anybody please provide some help for me?
Sincerely, Oli
--------------------------------------- Posted through