Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Where's the best place to store fonts and lookup tables?

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Yokablasta

Bascom Member



Joined: 13 Dec 2017
Posts: 19

PostPosted: Sun Aug 19, 2018 5:35 pm    Post subject: Where's the best place to store fonts and lookup tables? Reply with quote

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.

(BASCOM-AVR version : 2.0.8.1 )
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6197
Location: Holland

blank.gif
PostPosted: Mon Aug 20, 2018 10:21 am    Post subject: Reply with quote

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
Back to top
View user's profile Visit poster's website
Yokablasta

Bascom Member



Joined: 13 Dec 2017
Posts: 19

PostPosted: Tue Aug 21, 2018 3:25 am    Post subject: Reply with quote

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.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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