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
PIC32MX Bootloader issue (Not Enough ROM Space Error)
PIC32MX Bootloader issue (Not Enough ROM Space Error)
- Attachments
-
- error
- pic32mx570F512H_hid_bootloder.jpg (275.56 KiB) Viewed 1238 times
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: PIC32MX Bootloader issue (Not Enough ROM Space Error)
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:
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.
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,
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>
Code: Select all
const unsigned long __BOOT_FLASH_SIZE = 0x00000BF0;
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ć
Re: PIC32MX Bootloader issue (Not Enough ROM Space Error)
Thank you very much Stefan Filipović,
It works. Thanks for the help.
It works. Thanks for the help.
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: PIC32MX Bootloader issue (Not Enough ROM Space Error)
Hi Ricky,
You're welcome.
I'm glad it works.
Kind regards,
You're welcome.
I'm glad it works.
Kind regards,
Stefan Filipović