Posted: Sun Aug 19, 2018 5:35 pm Post subject: Where's the best place to store fonts and lookup tables?
Hello,
I\'m working on a project that uses the Atmega328P, which has 32kb prog memory, 2k RAM, and 1k EEPROM. There\'s an I2C display on the board, which displays the value of the current parameter pot being moved. I have a couple of lookup tables of parameter names like
datatable:
data \"menu item \" , \"menu item \" , \"menu item \" , etc.
and there\'s a splash screen and a couple of fonts. I \'m using $include fontname.font to include the fonts at the end of the file. I notice that the chip won\'t program if I\'ve included too much stuff at the end of my file. I \'m wondering if I ought to be putting the lookup tables and include files in EEPROM or some other specific memory location to allow the 2 fonts, splash screen, and lookup tables to be used. I had an issue like this a few years back with a lookup table that overlapped pages in memory, which caused issues. I\'m trying to understand if that\'s the same thing that\'s happening here.
at the end of your code is a good place.
when you include more data than will fit into the chip you will get programming errors.
the data should be placed into normal flash memory. _________________ Mark
Thanks Mark. I figured out why I was having the issue. I thought that it had to do with the fonts being too large, but what it actually was, was that I was using a string that was larger than what my framespace setting would allow. Increasing that fixed the issue.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum