Hot!PIC32 reversed bootloader...

Author
mrpackethead
packet mangler
  • Total Posts : 777
  • Reward points : 0
  • Joined: 2007/04/01 23:33:39
  • Location: 0
  • Status: online
2017/11/12 21:30:51 (permalink)
0

PIC32 reversed bootloader...

If you wanted  update your bootloader,  would it be possible for the application to be able to do this?

The general process would be for you to load ( with the old bootloader ) a new 'application', which had the function of updating the bootloader.?
#1

8 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 14959
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PIC32 reversed bootloader... 2017/11/12 21:44:36 (permalink)
    3 (1)
    It is possible to do it this way. But it is risky. It would be very easy to brick it if is was not properly, or completely.
    It would also assume the boot block was not protected
    #2
    mrpackethead
    packet mangler
    • Total Posts : 777
    • Reward points : 0
    • Joined: 2007/04/01 23:33:39
    • Location: 0
    • Status: online
    Re: PIC32 reversed bootloader... 2017/11/13 01:40:54 (permalink)
    0
    Whats the alternative, if you need to update your bootloader for some reason?
     
    #3
    DarioG
    leaving this planet
    • Total Posts : 53071
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: porcodioland
    • Status: offline
    Re: PIC32 reversed bootloader... 2017/11/13 02:21:54 (permalink)
    0
    Don't! Smile
     
    Seriously, maybe upload a user app that is actually a bootloader and overwrites the real bootloader (provided it's not protected, of course) - then get back to normal mode . Maybe use some security for this.

    Dario Greggio
    --
    how does it feel, never having been loved? as life fades away, day after day, on this planet made of s h i t...

    #4
    NKurzman
    A Guy on the Net
    • Total Posts : 14959
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PIC32 reversed bootloader... 2017/11/13 08:45:27 (permalink)
    4 (1)
    It I one reason to insure the bootloader is correct. That is why I was mad about the garbage bootloader and no support for PIC32MZ. Optimally the bootloader should be write protected. If you are allowing a bootloader update go with what Dariog said. Do not leave this feature in the general code. Have a special bootloader update program.
    #5
    Jim Nickerson
    User 452 _
    • Total Posts : 4267
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: PIC32 reversed bootloader... 2017/11/13 09:01:42 (permalink)
    3 (1)
    As previously said this is a risky move not to be undertaken lightly.
    In my case when it works as expected a site visit is saved http://www.microchip.com/forums/FindPost/1006749
    #6
    mrpackethead
    packet mangler
    • Total Posts : 777
    • Reward points : 0
    • Joined: 2007/04/01 23:33:39
    • Location: 0
    • Status: online
    Re: PIC32 reversed bootloader... 2017/11/14 13:21:29 (permalink)
    0
    in my case,  the product cant' be programed after it is finished, as it is 100% sealed up, and there is no way to the ISCP any longer!
     
    #7
    NKurzman
    A Guy on the Net
    • Total Posts : 14959
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PIC32 reversed bootloader... 2017/11/14 13:40:04 (permalink)
    3 (1)
    Exactly. If replacing the bootloader fails then you have a brick. So while it is possible it should not be taken lightly.
    #8
    RISC
    Super Member
    • Total Posts : 4593
    • Reward points : 0
    • Status: offline
    Re: PIC32 reversed bootloader... 2017/11/14 15:53:35 (permalink)
    0
    Hi,
    IF you want to update the bootloader, then it is better to use a PIC32MZ which has liveupdate capability.
    You can then safely :
    * update the application
    * update the bootloader 
    by using the second flash panel
    Regards
     
    #9
    Jump to:
    © 2017 APG vNext Commercial Version 4.5