Bootloader + Mainline code in single HEX file


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Mar 2005
    Location
    Magnolia, TX
    Posts
    7

    Smile Bootloader + Mainline code in single HEX file

    I have developed a bootloader (in ASM). (relocatable)
    My mainline code is developed in PBP. (absolute)

    How can I create a single HEX file to program my pics?
    I don't think I can use a linker script since PBP apparently creates absolute code.

    Any suggestions?

    Anyone??
    Last edited by dman776; - 17th May 2006 at 02:53.

  2. #2
    Join Date
    Mar 2003
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Bootloader plus PBP code

    It should be possible to read the entire chip (i.e. the low address PBP code and the high address bootloader) as one fiile in a programmer such as EPIC. That file can then be used to program any new chips.

    That should streamline production but still leave open a serial bootloader for field mods.

    HTH
    Brian

  3. #3
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by btaylor
    It should be possible to read the entire chip (i.e. the low address PBP code and the high address bootloader) as one fiile in a programmer such as EPIC. That file can then be used to program any new chips.
    Povided that Code Protect isnt on !!!!
    Keith

    www.diyha.co.uk
    www.kat5.tv

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Hi,

    A bootloader is not much good if code protection is enabled.
    So, chances are, this shouldn't be a problem.
    I've tried Brian's method with success.

    Cheers!
    ---> picnaut

  5. #5
    Join Date
    Mar 2005
    Location
    Magnolia, TX
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Sure it is.
    Why do you say that a bootloader is not good with CP on?

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Hi,

    My understanding is that if you set the code "protect" bit then the bootloader will not be able to write to program memory.
    Seems logical to me but I could be wrong.

    Regards,
    ---> picnaut

Similar Threads

  1. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  2. can someone post example to code a bootloader using pbp?
    By nimonia in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th May 2005, 16:28
  3. Code dsigner lite problems
    By toalan in forum Off Topic
    Replies: 2
    Last Post: - 23rd February 2005, 20:08
  4. need hex code to make 12c509 a flip flop,
    By bruce3mn in forum General
    Replies: 1
    Last Post: - 15th November 2004, 03:23
  5. PICbasic pro HEX file size
    By winsthon in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th January 2004, 08:11

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