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

Debugger will not advance

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



Joined: 07 Feb 2008
Posts: 167

View user's profile Send private message

Debugger will not advance
PostPosted: Sat Apr 01, 2023 3:08 pm     Reply with quote

I know I'm in but a big DUH, but I just can't get my debugger to advance past MAIN. Using PCWH 5.093 CCS IDE on Windows 11 laptop. Debugger ICD-U64 with firmware 3,43.

CCS_Load indicates all well. Correct device (16F1933), Correct voltage, test osc and debugger PASSES.

In debugger window OSC frequency shows 500 KHz. Debugger erases target, programs, verifies and shows ready.

Debugger and IDE tested on another unrelated target and works okay.

Here's the simple code:
Code:

#include <16F1933.h>
#device ICD=TRUE
#fuses INTRC_IO, NOWDT, BROWNOUT, PUT, NOLVP
#use delay(clock=4M)
//=================================
void main()
{

enable_interrupts(GLOBAL);

while(1)
  {
  delay_ms(100);
  }
}


I just know there's something stupid, but I just don't see it. I'd appreciate the groups good eyesight. THANKS
Ttelmah



Joined: 11 Mar 2010
Posts: 19496

View user's profile Send private message

PostPosted: Sun Apr 02, 2023 6:43 am     Reply with quote

First thing, the debugger has to be _told_ (by you), the clock speed. It
doesn't not have any knowledge of what that chip settings will generate.

On the "won't advance", right click on the delay_ms line, and select
'run to target'. Understand that it will then stay on that line and never
seem to advance. There are perhaps thirty instructions at the start of
'main', and the delay itself, will involve 1000 instruction steps.
Single machine instruction steps are very small. A simple C instruction
like printf, can easily involve may thousands of instructions....
JerryR



Joined: 07 Feb 2008
Posts: 167

View user's profile Send private message

PostPosted: Mon Apr 03, 2023 1:10 pm     Reply with quote

Ttelmah:

Thank you for your interest and kind reply. Issue solved. Reinstalled PIC C on laptop and debugging works find now.

Best regards,
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