ROM Size

General discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
lemiceterrieux
Posts: 39
Joined: 12 Nov 2020 19:51

ROM Size

#1 Post by lemiceterrieux » 29 Apr 2021 06:30

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 ...
From France, SESSENHEIM

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: ROM Size

#2 Post by filip » 05 May 2021 11:02

Hi,

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

Regards,
Filip.

lemiceterrieux
Posts: 39
Joined: 12 Nov 2020 19:51

Re: ROM Size

#3 Post by lemiceterrieux » 05 May 2021 11:31

Hello ... Simply modify Your "LedBlinking" project for Mega8515 and compile with 701 version ...
From France, SESSENHEIM

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: ROM Size

#4 Post by filip » 07 May 2021 10:16

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.

lemiceterrieux
Posts: 39
Joined: 12 Nov 2020 19:51

Re: ROM Size

#5 Post by lemiceterrieux » 07 May 2021 10:31

As far as I know, the MEGA8515 has 8192 bytes of ROM ... So, where are the missing 2048 ?
From France, SESSENHEIM

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: ROM Size

#6 Post by filip » 07 May 2021 10:54

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.

lemiceterrieux
Posts: 39
Joined: 12 Nov 2020 19:51

Re: ROM Size

#7 Post by lemiceterrieux » 07 May 2021 15:26

Thanks, I didn't know this feature ... You must admit that it is "well hidden" ...
From France, SESSENHEIM

Post Reply

Return to “mikroPascal PRO for AVR General”