ICD-2 Info needed

Discussion in 'Embedded Systems and Microcontrollers' started by MaxHeadRoom, Jul 7, 2014.

  1. MaxHeadRoom

    Thread Starter Expert

    Jul 18, 2013
    10,553
    2,375
    I acquired an LCD-2 which I tested with the Microchip sample file.
    Can someone confirm if the source file is required to be compiled in the re-locatable mode using a *i.lkr version linker file?
    Or if a single file (non-linked) file can be used in the absolute mode.
    If the answer is the former, has anyone insight on converting the generic *g.lkr file to *i.lkr for ICD-2 usage, where all Pic versions do not seem to be available?
    Max.
     
    Last edited: Jul 7, 2014
  2. JohnInTX

    Moderator

    Jun 26, 2012
    2,347
    1,029
    Max,

    Absolute mode is fine. The ICD is just an interface between MPLAB and the onboard debugging facility of the PIC. It only cares about the .HEX object file.

    All of my assembler code (and that's a lot) is done in absolute mode.
     
    MaxHeadRoom likes this.
  3. MaxHeadRoom

    Thread Starter Expert

    Jul 18, 2013
    10,553
    2,375
    I assumed that because ICD-2 loads its debug file into upper memory of the PIC it required to be Relocatable?
    The info from PICmicro and other sources is a bit vague, it you confirm using ICD-2 debug in absolute, and not requiring a linker file for a single file-program, that would be great.
    I generally do all mine in absolute also.
    The reason I imagined that the relocatable was needed, the ICD-2 example file uses one single file but uses relocatable and a LKR file.
    Max.
     
    Last edited: Jul 7, 2014
  4. MaxHeadRoom

    Thread Starter Expert

    Jul 18, 2013
    10,553
    2,375
    You were right, it debugs OK with a single absolute file. :cool:
    Just need to set the config bits that it likes.
    Max.
     
Loading...