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

    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.

  2. #2
    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?

  3. #3
    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.

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


    Did you find this post helpful? Yes | No

    Default

    Yes, thats why i trying to get the Microloader to work..

    another question
    Will a "software reset" work to get into the "bootloader mode"?

    http://www.picbasic.co.uk/forum/showthread.php?t=899
    Code:
    Asm
    bcf PCLATH, 3
    bcf PCLATH, 4
    goto 0
    EndAsm
    or has it to be a real MCLR reset?

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


    Did you find this post helpful? Yes | No

    Default

    As you're using a 18F
    Code:
    @    RESET
    should do. bootloader mode get out pretty fast of there, not like Tiny (which I can recall something like ~1 Sec before getting out)
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Hmm... why doesīt microloader work...

    When i press the program button the message "Please restet the PIC in order to access bootloader process"

    I press the reset button on the PCB (MCLR) and nothing happens..... i have to close the message window then the programming starts. is that normal?

    Shouldīt the programming starts when i press the MCLR button?

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


    Did you find this post helpful? Yes | No

    Default

    Another thing with Microloader and Microcode studio plus is the way i have to set the COM port.

    (I use a virutuel COM port, not a real one.)

    If i run only the Microcode loader i canīt set the COM port at all, the dropdownlist is empty and "gray". if i run Microcode studio i can set the COM port via the ICD toolbar but when i use my PIC18F2550 i canīt so to set the right COM port i have to change the device to 16F628A and then change the COM port and then change the device back to 18F2550.

Similar Threads

  1. PIC18F4680 bootloader
    By vinyl_theif in forum General
    Replies: 1
    Last Post: - 29th January 2009, 18:45
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd November 2008, 00:51
  3. USBDemo with Bootloader
    By vacpress in forum USB
    Replies: 4
    Last Post: - 25th January 2007, 23:29
  4. Bootloader Problems
    By rossfree in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th February 2005, 18:51
  5. Replies: 3
    Last Post: - 26th January 2005, 14: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