|
|
View previous topic :: View next topic |
Author |
Message |
JerryR
Joined: 07 Feb 2008 Posts: 167
|
Debugger will not advance |
Posted: Sat Apr 01, 2023 3:08 pm |
|
|
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: 19539
|
|
Posted: Sun Apr 02, 2023 6:43 am |
|
|
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
|
|
Posted: Mon Apr 03, 2023 1:10 pm |
|
|
Ttelmah:
Thank you for your interest and kind reply. Issue solved. Reinstalled PIC C on laptop and debugging works find now.
Best regards, |
|
|
|
|
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
|