Hello. I am developing using the FRDM KE02 and I have the following problem. In my project, I have a printer in which I need the ascii characters from the 0x20 (space) to the 0x7A (z). This is a total of 91 characters. In orden to print them correctly, each character is a vector of 16 bytes. This is why I need a 91x16 matrix to describe all the characters I need.
However, when I want to declare this static matrix as:
unsigned int MATRIX_CHARACTERS[91][16 ] = {{},{},...,.{}}; as a global variable, it doesn't compile.
The error is: "c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/ld.exe: region `m_data' overflowed by 2660 bytes"
How can I solve this problem?
I need this matrix to be static and to be in memory code.
Thank you, Juan Ignacio Troisi
已解决! 转到解答。
Hi Juan,
the error means that you are using more RAM than you have available.
Why is your array an array of int? char should be enough? that would be 4 times less memory :-)
Erich