[Avrora] How to increase the RAM available
daniel.minder at uni-due.de
Mon Oct 11 08:03:13 PDT 2010
> Is that possible to increase the available RAM to say 8KB instead of 4KB
> while simulating in Avrora?
Change ATMEGA128_SRAM_SIZE in avrora\sim\mcu\ATMega128.java and re-make
BUT: At the beginning of the init code for each AVR program the stack
pointer is set to the end of the RAM which is hardcoded. So, if the
error is caused by a stack overflow increasing the RAM size in Avrora
won't help, but you have to change the program as well. I don't know
how, but maybe the "-minit-stack=N" gcc parameter works. Or you could
try to change the RAMEND define, probably in iom128.h, which is
somewhere in the avr includes.
University of Duisburg-Essen, Networked Embedded Systems
Bismarckstr. 90, 47057 Duisburg, Germany
More information about the Avrora