CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

ICD-U40 Debug errors

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jamesjl



Joined: 22 Sep 2003
Posts: 52
Location: UK

View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger

ICD-U40 Debug errors
PostPosted: Wed Jan 14, 2004 7:18 am     Reply with quote

Hi All,

I have just taken receipt of my new ICD-40U kit and I am having some problems debuggin with it. The ICD will happily program the target board under non-debug mode using PCW 3.183. I can even use the Start and Stop program button to control the target board.

However, if I include the command #devide ICD=TRUE in my header file and then enable the debugger I eventually get a message that reads

<I><B>Could not start target: The target was not halted after reset. Check the target oscillator and MCLR.</I></B>

Does anyone have any ideas as to what might be causing this. My version of PCWH is 3.41 and all compilers are 3.183. My ICD firmware is 1.20. I have included my <I>short</I> source code as well.

I there a user manual for the ICD anywhere or are CCS thinking of writing one?

Many thanks,

Jason.

<B>Header File</B>
Code:

#include <16F874.h>
#device ICD=TRUE
#device adc=8
#use delay(clock=4000000)
#fuses NOWDT,XT, PUT, NOPROTECT, NOLVP


<B>Source Code</B>
Code:

#include "demoboard.h"
void main()
{
   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_OFF);
   setup_psp(PSP_DISABLED);
   setup_spi(FALSE);
   setup_counters(RTCC_INTERNAL,RTCC_DIV_1);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DISABLED,0,1);
   for(;;)
   {
      output_high(PIN_D0);
      output_low(PIN_D1);
      delay_ms(250);
      output_low(PIN_D0);
      output_high(PIN_D1);
      delay_ms(250);
   }
}
TL



Joined: 15 Sep 2003
Posts: 75

View user's profile Send private message

PostPosted: Wed Jan 14, 2004 9:19 am     Reply with quote

Hi Jason

I believe there is an ICD error in V3.183 and CCS corrected it in V3.184. See below:

3.183 The #INT_RB was changed to #INT_RA on parts with no port B
3.183 A bug with the ++ operator on field pointers in *=16 mode is fixed
3.183 A PIC18 problem with floating point - when a float crosses a bank is fixed
3.183 The fuse settings forced in ICD=TRUE mode have changed for some parts
3.183 The LABEL_ADDRESS function now may be used to obtain the address of CONST data
3.184 A problem with fuses in the ICD=TRUE mode has been fixed
3.184 A new built in function CLEAR_INTERRUPT has been added

You need to go back to a previous version.
HTH
Tommy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group