Menu

#2 Bootloading a BlinkLED and erasing config bits.

1.0
closed
None
2014-09-18
2014-09-17
VCC
No
  • revision 88
    Bootloading a simple BlinkLED through UART1 at 256000. The BlinkLED application works, but the config bits are erased. The PIC speed is affected, but it can be seen that the BlinkLED application is running (very slow).
1 Attachments

Discussion

  • VCC

    VCC - 2014-09-17

    Bootloader Log, no debug log.

    Link Received
    Sending Sync to connect to Bootloader
    Sync Received: Entering Bootloader Mode
    Requesting Flash Info
    Flash Info Request Received
    Creating Loader
    Parsing HEX file
    Creating Erase Block List
    Creating Write Block List
    Fixing up Jump Addresses
    Erasing MCU program area...
    Setting Erase Address: 1D000000
    Erasing: 1024 byte block
    Erase Blocks Done Received
    Setting Erase Address: 1D07E000
    Erasing: 1024 byte block
    Erase Blocks Done Received
    Setting Erase Address: 1FC00000
    Erasing: 2048 byte block
    Erase Blocks Done Received
    Setting Erase Address: 1FC02000
    Erasing: 1024 byte block
    Erase Blocks Done Received
    Writing Blocks
    Setting Write Address: 1D000000
    Writing Block: 320 byte block
    Write Block Done Received
    Setting Write Address: 1D07EFF0
    Writing Block: 16 byte block
    Write Block Done Received
    Setting Write Address: 1FC00000
    Writing Block: 4096 byte block
    Write Block Done Received
    Setting Write Address: 1FC00400
    Writing Block: 400 byte block
    Write Block Done Received
    Resetting MCU
    UnLink Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received
    Unknown Message Received

     
  • VCC

    VCC - 2014-09-17

    "Unknown Message Received" is received because the config bits are erased, so the baud rate is different.

     
  • Jim Kueneman

    Jim Kueneman - 2014-09-18

    Added code in the PC app to remove any erase or write blocks that would erase the configuration or bootloader code before it is written to the MCU.

    Note:

    It is a necessary condition that the configuration of the application match the configuration of the bootloader code for this (and most others) bootloader

     
  • Jim Kueneman

    Jim Kueneman - 2014-09-18
    • status: open --> closed
    • assigned_to: Jim Kueneman
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.