View previous topic :: View next topic |
Author |
Message |
Ronald Guest
|
Help on integrating MEPLAB ICD2 with CCS compiler |
Posted: Mon Oct 18, 2004 5:56 am |
|
|
Hi,
Can anyone tell me how to integrate MPELAB ICD2 with CCS compiler?
My target board has a PIC16F877 and a 20Mhz Oscillator.
If someone could just give me the first few preprocessor lines needed, i would be most grateful!
Thanks in advance |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Oct 18, 2004 6:44 am |
|
|
Not sure what you mean by Quote: | integrate MPELAB ICD2 with CCS compiler |
I am assuming you are talking about a Microchip ICD2. If so, look in your example folder and you will find tons of examples showing how to setup up a file. |
|
|
Guest
|
|
Posted: Mon Oct 18, 2004 6:50 am |
|
|
Hi Ronald,
I haven't worked with Microchip's ICD2 but I have used an ICD2 made by Olimex which is compatible.
I think you should ensure the following :
1. Include the line #device ICD=TRUE in your program
2. In Project -> Build options, check that "Compile for use with ICD debugger" is on
3. In configure - > configuration bits set the correct bits (for eg. if your target board has a crystal oscillator, then select 'XT' for oscillator. Look for these instructions in the MPLAB ICD2 manual(DS51331A).You can download it from Microchip site.Also ensure that watchdog timer is disabled and background debug is enabled in the configuration bits setting.
4. After you establish communication with the ICD over either USB or COM port, build your project, program the hex file using Debugger -> Program .Look for any errors reported carefully and redo if required.
5 .Then run it by Debugger -> Run
Paresh |
|
|
Guest
|
|
Posted: Mon Oct 18, 2004 6:51 am |
|
|
Hi Ronald,
I haven't worked with Microchip's ICD2 but I have used an ICD2 made by Olimex which is compatible.
I think you should ensure the following :
1. Include the line #device ICD=TRUE in your program
2. In Project -> Build options, check that "Compile for use with ICD debugger" is on
3. In configure - > configuration bits set the correct bits (for eg. if your target board has a crystal oscillator, then select 'XT' for oscillator. Look for these instructions in the MPLAB ICD2 manual(DS51331A).You can download it from Microchip site.Also ensure that watchdog timer is disabled and background debug is enabled in the configuration bits setting.
4. After you establish communication with the ICD over either USB or COM port, build your project, program the hex file using Debugger -> Program .Look for any errors reported carefully and redo if required.
5 .Then run it by Debugger -> Run
Paresh |
|
|
Barney
Joined: 18 Oct 2004 Posts: 41 Location: Newark, CA
|
|
Posted: Mon Oct 18, 2004 2:00 pm |
|
|
Paresh,
I followed your directions for my Microchip ICD2 and they worked like a champ. Thanks
Barney |
|
|
ronald Guest
|
Thanks a million |
Posted: Thu Oct 21, 2004 7:35 pm |
|
|
Thanks Paresh! Ticked the compile with ICD box and that did the trick.
Many thanks!
ronald |
|
|
|