PIC32MX Bootloader issue (Not Enough ROM Space Error)

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
rb15780
Posts: 2
Joined: 25 May 2019 05:51

PIC32MX Bootloader issue (Not Enough ROM Space Error)

#1 Post by rb15780 » 25 May 2019 06:04

Hi,

Please help me regarding the issue in creating Mikroebootloader Project in PIC32 C compiler.
There is an example of PIC32 for PIC32MX795F512L HID Bootloader, Whenever i change Device from PIC32MX795F512L to any of PIC32MX7 device then it gives error of "There is not enough ROM space" and this error never gone after reselecting PIC32MX795F512L.

I need HID Bootloader for PIC32MX570F512H Device, Please provide me its HEX file or resolve this issue.

Thanks,
Ricky
Attachments
error
error
pic32mx570F512H_hid_bootloder.jpg (275.56 KiB) Viewed 1207 times

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: PIC32MX Bootloader issue (Not Enough ROM Space Error)

#2 Post by stefan.filipovic » 27 May 2019 15:40

Hi Ricky,

I've reproduced the same issue, and I have located a few problems.
Unfortunately, I do not have this specific MCU to test it, but I have managed to compile the project.

Firstly, I noticed that the ROM addresses from the .mlk file are wrong. Press Ctrl+Alt+M to open the .mlk file and set ROM max address to 0x1D07FFFF as below:

Code: Select all

<ROM>
        <MIN_ADDR>0x1D000000</MIN_ADDR>
        <MAX_ADDR>0x1D07FFFF</MAX_ADDR>
</ROM>
Also, the __BOOT_FLASH_SIZE constant from the MCU defs file is wrong. Please press Ctrl+Alt+D to open the definitions file and search for __BOOT_FLASH_SIZE constant and set it to 0x00000BF0.

Code: Select all

const unsigned long __BOOT_FLASH_SIZE = 0x00000BF0;
Then you need to set an EBASE address in the Edit Project Window. Press Ctrl+Shift+E and set EBASE to 0x9FC00000 or 0xBFC00000.

After that, please set the BOOTLOADER_SIZE constant from the Config.c file as described in the comments, and finally you should be able to compile the project.

Also, I suggest you take a look at the following forum posts:
viewtopic.php?f=164&t=66186
viewtopic.php?f=172&t=56173

I apologize for the inconvenience caused by this, I will forward this to our developers.

Kind regards,
Stefan Filipović

rb15780
Posts: 2
Joined: 25 May 2019 05:51

Re: PIC32MX Bootloader issue (Not Enough ROM Space Error)

#3 Post by rb15780 » 28 May 2019 10:31

Thank you very much Stefan Filipović,
It works. Thanks for the help. :D

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: PIC32MX Bootloader issue (Not Enough ROM Space Error)

#4 Post by stefan.filipovic » 29 May 2019 09:41

Hi Ricky,

You're welcome.

I'm glad it works.

Kind regards,
Stefan Filipović

Post Reply

Return to “mikroC PRO for PIC32 General”