I am working on the 10" display with a Teensy 4.1 with added 8MB PSRAM and 256MB Flash mem. On one of the screens I want to add a clock using either ComicSansMS_72 or 96 Fonts however I am getting an "error Program exceeds memory space" I also get this when I try to use the larger fonts or several different sizes. I would like to move the fonts to the Flash Memory.
Ignore The error/warning "Multiple libraries were found for "ILI9341_fonts.h"" it appears that their are multiple libraries in the Teensy Package. I get this anytime I get any error but goes away If I don't have any errors.
In the "ili9488_t3_font_ComicSansMS.c" in the Teensy 1.59.0 package Library in the ILI9488_t3 folder I tried adding PROGMEM to the lines that have:
Before "static" after "[]" and a couple of other places... Also in the "font_ComicSansMS.h" file. Nothing worked. So if its not apparent... I have no idea what I'm doing. I'm not even sure you can move library data to the Flash memory.
Any help would be appreciated,
DJETH
Code:
Memory Usage on Teensy 4.1:
FLASH: code:402832, data:5929992, headers:8804 free for files:1784836
RAM1: variables:98528, code:394184, padding:31800 free for local variables:-224
RAM2: variables:12416 free for malloc/new:511872
EXTRAM: variables:3200
Error program exceeds memory space
Multiple libraries were found for "ILI9341_fonts.h"
Used: C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ILI9488_t3
Not used: C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\ST7735_t3
Not used: C:\Users\sirhu\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\RA8875
exit status 0xffffffff
Compilation error: exit status 0xffffffff
Ignore The error/warning "Multiple libraries were found for "ILI9341_fonts.h"" it appears that their are multiple libraries in the Teensy Package. I get this anytime I get any error but goes away If I don't have any errors.
In the "ili9488_t3_font_ComicSansMS.c" in the Teensy 1.59.0 package Library in the ILI9488_t3 folder I tried adding PROGMEM to the lines that have:
Code:
static const unsigned char ComicSansMS_96_data[] = {
0x00,0x00,0x00,0x00,0x28,0x03,0x9B,0x08,0xFC,0x20,
0x03,0xF1,0x03,0xFF,0x69,0xFF,0xFA,0x7F,0xFE,0x9F,
NOTE:Just a few lines of the ~5000 lines of hex data
Before "static" after "[]" and a couple of other places... Also in the "font_ComicSansMS.h" file. Nothing worked. So if its not apparent... I have no idea what I'm doing. I'm not even sure you can move library data to the Flash memory.
Any help would be appreciated,
DJETH