View previous topic :: View next topic |
Author |
Message |
microlo75
Joined: 13 Apr 2010 Posts: 23
|
Bootloader 24F "concept" |
Posted: Wed Apr 21, 2010 10:29 am |
|
|
Hello everyone,
Seeking advice...
I looked at the examples to use the bootloader, but I do not understand something.
Question:
Load the bootloader on Micro.
Initiate the procedure for downloading with Siow.exe.
If the firmware upload is interrupted, what happens? Bootloader restart ?
I can not understand the operation.
Thanks for the information to all.
ps.
I'm waiting for aid to the TCP stack to 24F ... REMEMBER ME ..
|
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Wed Apr 21, 2010 11:54 am |
|
|
A fail-safe bootloader must protect the bootloader area, interrupt vectors and configuration. With PIC24, protection
of interrupt vectors isn't easy, because it implies, that either all interrupt function addresses must be fixed or the
interrupt calls have to be redirected by the bootloader code through function pointers. The second variant is
effectively impossible with present PCD versions, so you have to rely on the first one. The PCD bootloader example
has no application interrupts at all and is skipping (respectively hiding) the problem. |
|
|
microlo75
Joined: 13 Apr 2010 Posts: 23
|
Solved |
Posted: Thu Apr 22, 2010 7:22 am |
|
|
I moved "main and bootloader " the end of memory, the rest of memory remains unchanged also the INT! if there is an interruption during the bootloader, can repeat the procedure ... tested and working
bye |
|
|
|