Bootloader self protection and automatic file update

Post your requests and ideas on the future development of mikroPascal PRO for PIC.
Post Reply
Author
Message
Andreas
Posts: 139
Joined: 05 Feb 2005 12:43
Location: Germany

Bootloader self protection and automatic file update

#1 Post by Andreas » 26 Dec 2011 13:32

Hi,
it would be great if the bootloader would refuse to overwrite itself.

I'm on vacation and didn't bring my burner. My program got so big that it reached into the bootloader memory location and the bootloader excepted that and overwrote itself. Now I'm stuck and can't work on my project any more till I get home.

It would also be great if the PC program would automaticaly load the latest version HEX file for each upload. It is quite nagging to have to select the same file again and again while developing new versions.

I think the better sequence for the buttons in the PC program would be "Select", "Connect", "Upload".

Thanks
Andreas

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

Re: Bootloader self protection and automatic file update

#2 Post by filip » 29 Dec 2011 11:23

Hi,

Please, can you tell me which bootloader firmware, bootloader application and MCU are you using ?

Regards,
Filip.

Andreas
Posts: 139
Joined: 05 Feb 2005 12:43
Location: Germany

Re: Bootloader self protection and automatic file update

#3 Post by Andreas » 29 Dec 2011 12:44

Firmware: //mikroPascal PRO for PIC501\Examples\Other\Bootloader\P18\8K\boot_test.mpppi
Application: MikroElektronika Bootloader v2.1.0.0
PIC: 18F2320

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

Re: Bootloader self protection and automatic file update

#4 Post by filip » 04 Jan 2012 11:45

Hi,

Unfortunately, you are right.
If you place your code above the address 0x1D68 (where the bootloader main routine begins), you will overwrite a part of the bootloader code, which may lead to unpredictable results.

I will pass this to our software developers, and see if there is any fix of workaround.

I apologize for the inconvenience caused by this.

Regards,
Filip.

Post Reply

Return to “mikroPascal PRO for PIC Wish List”