Issues with a bootloader


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    583

    Default Issues with a bootloader

    Hi,

    I'm experimenting with the Tiny Bootloader (http://www.etc.ugal.ro/cchiculita/so...bootloader.htm). I've configured the loader for the PIC I'm using (18F4580) and after I've squirted the loader hex code to the PIC and the tiny boot loader PC application sees and identifies the chip. I can then load my HEX code via the Tinyloader PC app, which then runs fine on the PIC, but after doing so the tinyloader application can no longer find the PIC.

    The website mentions
    In order for the bootloader to be launched after each reset, a "goto bootloader" instruction must exist somewhere in the first 4 instructions
    I'm gathering that the process of uploading my code over writes the flash memory containing the bootloader, or the "goto" part.

    can anyone comment or offer advice on what I need to do to my code in order to maintain the functionality of the bootloader.

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Issues with a bootloader

    Posting your code would undoubtedly help people to help you.

    Robert

  3. #3
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: Issues with a bootloader

    Sorry Rob,

    a) the code is around 2000 lines long, and
    b) I'm not ready to publish it yet.

    It does write EEPROM data at 0,0 and normal data up to $80

  4. #4
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: Issues with a bootloader

    Malc,

    Do you have the DEFINE LOADER_USED 1 directive in your program?

    By the way, here is link on the subject.
    http://support.melabs.com/threads/77...ght=Bootloader
    Regards,
    TABSoft

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Issues with a bootloader

    I meant at least the first few lines until LOADER define.

  6. #6
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: Issues with a bootloader

    Malc,

    After you use the boot loader to load your hex file and then the boot loader can no longer see the PIC, why don't you use you PIC programmer to read the PIC back to a file. You can the disassemble it and look at the the first 8 instructions. You might be able to see what is happening that way.

    If you need help let me know.
    Regards,
    TABSoft

Similar Threads

  1. pic18F6722 issues
    By ptig185 in forum General
    Replies: 8
    Last Post: - 2nd September 2011, 17:37
  2. EEPROM issues
    By timmers in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th March 2010, 16:19
  3. Comparator Issues
    By Freman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd May 2008, 12:58
  4. Pulsein issues...
    By cpayne in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th April 2006, 18:45

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