Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

AVR-DOS minimum SDRAM usage

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

Bascom Member



Joined: 06 Mar 2006
Posts: 3

germany.gif
PostPosted: Mon Mar 06, 2006 7:44 pm    Post subject: AVR-DOS minimum SDRAM usage Reply with quote

I am also concerned by the out of SRAM Problem using AVR-DOS on a ATMEGA 128 Shocked

I read here that there is a minimum SRAM usage of 1200 bytes.

How can I assure that AVR DOS only uses the minimum SRAM possible?
Only 1 file open at a time? No subdirs? Short file names? FAT16/Fat32? Rolling Eyes

Project is a ATMEGA128 with a GLCD T6963C + 2 Hardware RX/TX + 5 digital I/O + 1 buzzer out + SD-Card (Kingston 256MB)

Thanks in advanve again for your help!
Confused
Back to top
View user's profile
oe9vfj

Moderator



Joined: 17 Jun 2004
Posts: 269
Location: Austria, Hard

austria.gif
PostPosted: Tue Mar 07, 2006 8:30 pm    Post subject: Reply with quote

Hi User123,

You can configure AVR-DOS in the file CONFIG_AVR-DOS.BAS. Please check the comments in this file.

For minimal SRAM usage set following constants:

Code:
Const cFileHandles = 1                              
Const cSepFATHandle = 0      


You can use all features of AVR-DOS. The restriction of this configuration is, that you can open only one file at same time.

_________________
regards Josef

DOS - File System for BASCOM-AVR on http://members.aon.at/voegel
Back to top
View user's profile Visit poster's website
user123

Bascom Member



Joined: 06 Mar 2006
Posts: 3

germany.gif
PostPosted: Tue Mar 07, 2006 8:35 pm    Post subject: I HAVE SOOOOOOO much SRAM now Reply with quote

Dear Josef,

thank you so much for your help.
I have sooo much free SRAM now, I am happy happy happy.
Used to economize every 3 bytes with string lengths and now have around 1000 bytes free space, what a stone falling from my shoulders Smile Laughing
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS 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