SmartGLCD and MicroSD

General discussion on Visual GLCD Software.
Post Reply
Author
Message
sci-fi-guru
Posts: 4
Joined: 23 Mar 2012 18:25

SmartGLCD and MicroSD

#1 Post by sci-fi-guru » 23 Mar 2012 20:06

I have a lot of screens and graphics and I am trying to use a MicroSD card to free up program space on the MCU on SmartGLCD 240x128. I have formatted the MicroSD to FAT16 and copied the resource file to it. I still get a "not enough RAM" message when compiling in mikroBasic Pro.

I noticed the message "Use %FILE_NAME for resource file name in code" - what does this mean?

Are there step-by-step Visual GLCD instructions or examples for using a MicroSD card on SmartGLCD?

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: SmartGLCD and MicroSD

#2 Post by janko.kaljevic » 26 Mar 2012 14:19

Hello,

When you generate code with external resources enabled it will store all your pictures and fonts on SD card.
You only need to format your SD card as FAT16 and copy res file on it.

If you need to free more RAM on your controller, you should consider declaring some screens and objects as static.
This means that they will be stored in ROM and thus free your RAM.
Do this only for screens and object that will not be modified in run time.

Best regards.

Post Reply

Return to “Visual GLCD General”