Add in Project Settings-Device - Use full size flash memory!

Post your requests and ideas on the future development of mikroPascal PRO for AVR.
Post Reply
Author
Message
awtoap
Posts: 39
Joined: 10 Oct 2007 10:24

Add in Project Settings-Device - Use full size flash memory!

#1 Post by awtoap » 23 Dec 2009 17:01

Add in Project Settings-Device checkbox - Use full size flash memory!!!

Has bothered each time to adjust MCU description files.

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

#2 Post by tihomir.losic » 24 Dec 2009 15:46

Hello,

I'm not sure I understand what you mean by "Use full size flash memory". Please, could you explain a little more please?

Thanks.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

awtoap
Posts: 39
Joined: 10 Oct 2007 10:24

#3 Post by awtoap » 24 Dec 2009 17:07

Example: ATMega88 Flash Memory Size=$1FFF (8192 bytes).
MikroPascal-Statistics->ROM Memory Usage->Total = $0BFF (6142 bytes).

Too most for all MCU with bootloader section. But if I do not use bootloader!!! All size is necessary to me (8192 bytes). :D

Read datasheet and I see that bootloader section it is not disabled, but it is possible to select the section size (the most minimum makes 128 words that is better than 1024 words). Accordingly other part Flash Memory is taken away under a code.

Add possibility to select the bootloader size.

User avatar
marko.ziv
mikroElektronika team
Posts: 531
Joined: 06 Dec 2007 10:11
Contact:

#4 Post by marko.ziv » 25 Dec 2009 14:08

Hi,
Example: ATMega88 Flash Memory Size=$1FFF (8192 bytes).
MikroPascal-Statistics->ROM Memory Usage->Total = $0BFF (6142 bytes).
If you press Ctrl+Alt+M (while ATMEGA88 selected in our compiler), you will be presented with mlk file for ATMEGA88. There we can see

Code: Select all

        <ROM>
                <MIN_ADDR>0x0000</MIN_ADDR>
                <MAX_ADDR>0x0BFF</MAX_ADDR>
        </ROM>
which is 6142 exactly (actual number multiplied by 2). The reason for this is that, at this moment in our definition files, boot loader section is excluded from whole ROM size. We are aware of this, and solution for this is planned to be implemented in future releases.
However this can be fixed if you manually change the value of MAX_ADDR, according to data sheet of course.

Best Regards

Post Reply

Return to “mikroPascal PRO for AVR Wish List”