Why use a bootloader?


Closed Thread
Results 1 to 40 of 41

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187


    Did you find this post helpful? Yes | No

    Default

    Hmm i have now also try Microcode studio plus loader and that doesīt work good..

    I have loaded the right HEX file with my PICkit2 programmer and then when i try to "Compile and program" i get the message "Please reset the target microcontroller" and when i do that with the MCLR pin nothings happends... then i klick on the close button in the right corner of the window and now microcode loader starts to program the PIC, but i have to try severel times before the PIC works after the programming from the microloader.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    It will work all the time if you use their schematic as it add a connection to MCLR and you'll not need to do it yourself... hence why I'd modified my EasyPIC 4 board in the past.

    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187


    Did you find this post helpful? Yes | No

    Default

    But it should work to reset it manualy.

    And when using microloader the programming time is slow.. my small testprogram takes about 6 secounds whit microloader and with Tiny Bootloader it takes "0.249 sec"...

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Yup, but MicroCode do more check than Tiny... this is why Microcode firmware is 'round 2.5 time bigger than Tiny.

    Sometimes there's a price to pay if you want reliability or speed
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187


    Did you find this post helpful? Yes | No

    Default

    Yes thatīs true.

    But with microcode and manual reset i have to program the PIC severel times whit the same program before the PIC starts...

    So i think something is wrong.

    I will do some more tests and then give you some feedback here.

  6. #6
    Join Date
    Jan 2008
    Location
    Sweden
    Posts
    187


    Did you find this post helpful? Yes | No

    Default

    Why do you sometimes have the define
    DEFINE BOOTLOADER_USED 1

    Tiny bootloader works with and without this define so i wonder what does the define do?

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    in fact it has to be
    Code:
    DEFINE LOADER_USED 1
    What it does? From memory, It reserved the first 4 code location for the bootloader (1-2 nop and a GOTO to the bootloader code (at the end of the code space))

    Why it works with Tiny... can't tell, maybe he correct the .hex file for you... but as it's a small program, you're not experimenting issue just yet.

    Keep the DEFINE LOADER_USED 1 at the top.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. PIC18F4680 bootloader
    By vinyl_theif in forum General
    Replies: 1
    Last Post: - 29th January 2009, 17:45
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  3. USBDemo with Bootloader
    By vacpress in forum USB
    Replies: 4
    Last Post: - 25th January 2007, 22:29
  4. Bootloader Problems
    By rossfree in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th February 2005, 17:51
  5. Replies: 3
    Last Post: - 26th January 2005, 13:41

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts