ICD-2 Info needed

Thread Starter

MaxHeadRoom

Joined Jul 18, 2013
28,688
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:

JohnInTX

Joined Jun 26, 2012
4,787
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.
 

Thread Starter

MaxHeadRoom

Joined Jul 18, 2013
28,688
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:

Thread Starter

MaxHeadRoom

Joined Jul 18, 2013
28,688
You were right, it debugs OK with a single absolute file. :cool:
Just need to set the config bits that it likes.
Max.
 
Top