Hi,
I'm running out of data memory in an MSP430F547A running Z-Stack 2.5.1 and GrLib. And compiling with IAR EW430 5.52
Everything was compiling and running fine, but we had to replace the fonts in GrLib with new ones with the full character set for ISO-8859-1 (mainly due to acute accents and the similar).
We are using 4 different sizes of fonts and we are building them with ftrasterize. The output of the tool, counting the 4 fonts, is approximately 29-30KB, which make the linker complain about data not fitting into DATA16 segments. All this data is defined as const as it won't change at all.
We have tried changing the data model to medium or large, but that's not possible with Z-Stack, as some pre-compiled modules are set up with the small data model, so we get an error as described in this old post:
http://e2e.ti.com/support/low_power_rf/f/158/t/117107.aspx
I've been trying to solve this issue for a couple of weeks and I'm running out of ideas. I've tried everything I can think of and read from the compilers manuals & forums in order to force those large constants into upper flash, but I'm restricted to the DATA16 area (i.e. <0xFFFF).
I don't see how I could use __data20_read & write instructions other than downloading the fonts over the air and writing them to upper flash, and then modifying grlib to transparently use __data20_read instructions for using the fonts, but this seems to me like an overkill for the functionality.
Any idea will be welcome, I'm sort of desperate here.... lots of memory unused in the chip and I'm running out of memory! :-(
Thanks a lot for your help.
Asier.