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 CCS Technical Support

speed debug icd-u64

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



Joined: 16 Dec 2014
Posts: 1

View user's profile Send private message

speed debug icd-u64
PostPosted: Tue Dec 16, 2014 11:16 am     Reply with quote

Hello,

I'm using PCWHD version 5.019 with ICD-U64 and in my target there's a DSPIC33FJ256GP710. I've created a Project with "Project 24 Bit wizard". In my target I've an oscillator of 12 MHz, therefore I've configured:

Crystal clock speed: 12.000.000 Hz
CPU Clock speed: 80.000.000 Hz => 40 MIPS.

When I program in release mode the MCU runs at 80 MHz but when I program in debug mode in the debug Windows appears 7.47 MHz and I don`t know because run so slowly.

In debug mode isn't possible to run at 80 MHz?

I attached the code:
Code:

#include <33FJ256GP710.h>

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES CKSFSM                   //Clock Switching is enabled, fail Safe clock monitor is enabled
#FUSES NOJTAG                   //JTAG disabled
#FUSES PR_PLL
#FUSES HS
//#FUSES FRC_PLL



#device ICSP=3
#use delay(clock=80000000,crystal=12000000)

#define LED PIN_E5
#define DELAY 1000

void main()
{



   //Example blinking LED program
   while(true)
   {
      output_low(LED);
      delay_ms(DELAY);
      output_high(LED);
      delay_ms(DELAY);
   }

}

Thanks a lot.

David.
Ttelmah



Joined: 11 Mar 2010
Posts: 19542

View user's profile Send private message

PostPosted: Wed Dec 17, 2014 5:29 am     Reply with quote

I have a 'niggling memory' that there was a limitation at about 70MHz on the original ICD U64. Try something like 60MHz and see if this then works.
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