• AVR Freaks

Hot!PIC18F27K42 Bootloader

Author
keto
Starting Member
  • Total Posts : 58
  • Reward points : 0
  • Joined: 2018/08/28 06:30:20
  • Location: 0
  • Status: offline
2019/04/10 05:09:02 (permalink)
0

PIC18F27K42 Bootloader

Hello,
where i can find the Bootloader from microchip or from other company?and an application note if it exist?I googling it but don't find anything.
Thanks
#1

6 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 17349
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: PIC18F27K42 Bootloader 2019/04/10 06:05:48 (permalink)
    +1 (1)
    Did you look at EZ bootloader or in MCC?
    #2
    keto
    Starting Member
    • Total Posts : 58
    • Reward points : 0
    • Joined: 2018/08/28 06:30:20
    • Location: 0
    • Status: offline
    Re: PIC18F27K42 Bootloader 2019/04/10 06:23:50 (permalink)
    0
    Now that you mention it,yesgrin: grin.I found this:
    http://www.microchip.com/promo/8-bit-bootloader
    Can i start with the documentation and the source code or i will end up in dead end?
    #3
    mbrowning
    Just a Member
    • Total Posts : 1356
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: online
    Re: PIC18F27K42 Bootloader 2019/04/10 06:34:03 (permalink)
    +1 (1)
    https://www.microchip.com/promo/8-bit-bootloader
     
    But current version of MCC bootloader generator says "Module is unsupported" for K42 devices. Best advice I can give is start with a K83 device, generate the bootloader, then modify as necessary for your device.
     
    The unifiedhost-0.1.4 has been reported (search the forums) as problematic with K42 and a 0.1.5 update has been hinted at. I used a serial monitor on the PC and debugger on the bootloader to get it all working properly. It was an effort.
     
    I got my K42 bootloader working over a year ago when MCC really didn't support K42 very well and a lot of changes to the generated code were necessary just to compile, let alone function. I ended up writing my own Windows command-line host applications and making modifications to the protocol for my own purposes.
     
    But generally, the protocol described in the User's Guide is reasonably good.

    Oh well - there's always next year
    #4
    keto
    Starting Member
    • Total Posts : 58
    • Reward points : 0
    • Joined: 2018/08/28 06:30:20
    • Location: 0
    • Status: offline
    Re: PIC18F27K42 Bootloader 2019/04/10 06:40:18 (permalink)
    0
    So as i understand,there is not something ready and i must read and understand all of the bootloader logic to make the appropriate changes.Thanks for the information.
    #5
    mbrowning
    Just a Member
    • Total Posts : 1356
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: online
    Re: PIC18F27K42 Bootloader 2019/04/10 06:56:10 (permalink)
    +2 (2)
    keto
    So as i understand,there is not something ready and i must read and understand all of the bootloader logic to make the appropriate changes.Thanks for the information.
    I believe this is an accurate summary.


    I believe one of the problems is that the newer devices can have more flash than the unified host protocol was designed to handle. The 27K42 is such a device. If you can restrict to half the flash you can make it work by telling the bootloader there is only 64K on the device.

    Oh well - there's always next year
    #6
    JKPDC
    Starting Member
    • Total Posts : 40
    • Reward points : 0
    • Joined: 2011/01/17 12:10:44
    • Location: Rochester, MN USA
    • Status: offline
    Re: PIC18F27K42 Bootloader 2019/04/10 14:53:13 (permalink)
    +1 (1)
    I am successfully using the Diolan-Plus2 bootloader and it works very well. It doesn't use the extended instruction set and it all fits nicely within the 2K boot block. If you search for "Diolan Plus 2 bootloader pic" using Google, it should be one of the first few results. Someone, "nyholku" made if available on Github. It is totally in assembly, however, so it might not work as well for you (if you prefer C or something else) but since I only program PICs with assembly I really appreciated its availability. This one incorporates hex file encryption but there are other versions of this bootloader available that do not incorporate it if you don't want/need it. EDIT I'm using it with a PIC18F25K50 but should be fairly easy to adapt to the hardware you are using.
     
    The host side update programs (encoder and firmware updater) needs to be compiled too. It took a little looking around and someone in this forum pointed out that it was written for Visual Studio 2013. After knowing which suite would build it I was able to compile both of these.
     
    I had to look around a little more to find out how to use it but after finding what others had done I have been able to use it successfully without fail. One tip I found out is that whenever you want to update the firmware you need to ERASE the old firmware loaded first and then UPDATE it after. I had not done that and noticed some issues like weird characters showing up on my LCD display. It would be nice to have it automatically erase the flash memory automatically first whenever you update the firmware but I've only used Visual Studio once to compile the code so I don't know how to do that.
    post edited by JKPDC - 2019/04/10 14:55:39
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5