Page 1 of 1

ROM Size

Posted: 29 Apr 2021 06:30
by lemiceterrieux
Hello everybody ...
I compiled a prog for Mega8515, the compiler answered :
Used ROM (bytes) : 2256 (37%) Free ROM (bytes) : 3888 (63%)
This is a total of 6144 bytes ; where are the remaining 2048 ? And if I use Mega162, there are still the same 2048 bytes missing. I tested several settings for the size of the bootloader in AVRFLASH, but this modified nothing, and I was all the way unable to set it to 0. The error does not occur if You compile for the 90S8515.
MikroBasic AVR has the same issues ...

Re: ROM Size

Posted: 05 May 2021 11:02
by filip
Hi,

Can you please attach your project here ?
Which version of the compiler are you using ?

Regards,
Filip.

Re: ROM Size

Posted: 05 May 2021 11:31
by lemiceterrieux
Hello ... Simply modify Your "LedBlinking" project for Mega8515 and compile with 701 version ...

Re: ROM Size

Posted: 07 May 2021 10:16
by filip
Hi,

I get this :
0 1144 Used ROM (bytes): 130 (2%) Free ROM (bytes): 6014 (98%) Used ROM (bytes): 130 (2%) Free ROM (bytes): 6014 (98%)
Regards.
Filip.

Re: ROM Size

Posted: 07 May 2021 10:31
by lemiceterrieux
As far as I know, the MEGA8515 has 8192 bytes of ROM ... So, where are the missing 2048 ?

Re: ROM Size

Posted: 07 May 2021 10:54
by filip
Hi,

It depends on the Boot memory section size that is set in the Edit Project, please consult the datasheet :
https://ww1.microchip.com/downloads/en/ ... oc2512.pdf

Regards,
Filip.

Re: ROM Size

Posted: 07 May 2021 15:26
by lemiceterrieux
Thanks, I didn't know this feature ... You must admit that it is "well hidden" ...