reset_org with 16f193X ?


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: reset_org with 16f193X ?

    Not sure how to do what you want but I do think you are going about it wrong
    From the manual:
    DEFINE RESET_ORG 0h 'Change reset address for PIC18
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Mar 2011
    Posts
    13


    Did you find this post helpful? Yes | No

    Wink Re: reset_org with 16f193X ?

    hi,
    thanks for you reply
    I don't find your answer in my manual (LOL) I have the version 6/09
    It only write "DEFINE RESET_ORG 0h ‘Change reset address"

    Before I write my bootloader, RESET_ORG moved the code ;-)

    I opened the pbppli14e.lib and find this :
    Code:
     ifndef USE_LINKER
          if ($ > 800h)
      LIST
     error "Library cannot exceed address 800h."
      NOLIST
          endif
        endif
    So I define USE_LINKER in my code with RESET_ORG
    and it work well


    ex : DEFINE RESET_ORG 100h only
    Code:
    MEMORY USAGE MAP ('X' = Used,  '-' = Unused)
    0100 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
    0140 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
    0180 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXX-------
    8000 : XXXX---XX------- ---------------- ---------------- ----------------
    and with
    DEFINE RESET_ORG 900h
    DEFINE USE_LINKER 1

    Code:
    MEMORY USAGE MAP ('X' = Used,  '-' = Unused)
    0900 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
    0940 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
    0980 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXX-------
    8000 : XXXX---XX------- ---------------- ---------------- ----------------
    thanks

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