Question
Char array of 1024 causes incorrect behaviour
Posted on January 05, 2014 at 18:36
Hi,
We have a simple bit of code simply turning on an LED, however when initialising a char array of 1024 anywhere in the code the project is still built, but fails to enable the LED (or anything else, but we've stripped it back to the simplest code possible for debugging). If the array is reduced to 512 in size, everything works as expected.This is being built in CoIDE (win8) and the ARM GNU GCC compiler v4.7 on an STM32F103RBWhen compiled under linux (ubuntu) with eclipse and the same compiler it works as expected (with the 1024 array). This makes us suspect a memory mapping issue?Unfortunately we need to get it compiling under windows, and working around it by using smaller arrays would be awkward - any ideas?