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

CCS Program Load ERROR

 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
hayee



Joined: 05 Sep 2007
Posts: 252

View user's profile Send private message

CCS Program Load ERROR
PostPosted: Thu Aug 04, 2016 3:51 am     Reply with quote

Hi
I am using PIC24HJ128GP306A microcontroller.
CCS Compiler version 4.124 and ICD-U64 for Programming.

When i program PIC24HJ128GP306A, i getting an error "DOWNLOAD ERROR".When i see the details it shows



It shows that the ICD is trying to program the PIC24HJ128GP306 instead of PIC24HJ128GP306A
and the voltage on MCLR pins goes to "0" after that error.
I am using ICSP2 port (PGEC2 & PGED2) and my hardware is according to those pins.

My code is:

Code:

#include <24HJ128GP306A.h>

#FUSES HS                       //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES NOWDT
#FUSES PR
#FUSES ICSP2                    //ICD uses PGC2/PGD2 pins

#use delay(clock=29491200) // crystal value is 29.4912Mhz

void main()
{
   setup_spi( FALSE );
   setup_spi2( FALSE );

   setup_timer1(TMR_DISABLED|TMR_DIV_BY_1);

   // TODO: USER CODE!!
   while(TRUE)
   {

   }
}



Am i doing something wrong?

Thanks
newguy



Joined: 24 Jun 2004
Posts: 1516
Location: Edmonton, Alberta

View user's profile Send private message

PostPosted: Thu Aug 04, 2016 6:11 am     Reply with quote

Contact CCS. It's been my experience that they'll fix issues like this VERY quickly.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go 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