AnsweredAssumed Answered

Char array of 1024 causes incorrect behaviour

Question asked by griffin.rowan on Jan 5, 2014
Latest reply on Jan 7, 2014 by Clive One

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 STM32F103RB

When 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?