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

Search found 263 matches
CCS Forum Index
Author Message
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Tue Aug 19, 2008 4:46 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
There is nothing more I can do.

Thats OK. I fixed it,

Well, that is to say I got it working again, but there was not specific 'fixing'. Wiped all files and references to ICD and CCS off the driv ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Tue Aug 19, 2008 2:22 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
It's been working for years. Unless someone did so without my knowledge, there has been no updates to the system or it's power management profiles.

I did try a desktop pc and it works fine.

I tr ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Mon Aug 18, 2008 5:50 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
Yes,

Laptop with no battery plugged into the wall, laptop with battery and plugged, just battery, all the same result.

I doubt this is the issue as this setup has been working for 3 years with n ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Mon Aug 18, 2008 4:26 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
Well.... F**K.

The new unit got here but does the exact same thing. I tried both units with new and old prototypes, same thing. Tried my workstation.... WORKS FINE.

Crap Crap Crap.... That means ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Thu Aug 14, 2008 6:43 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
Oh I already did Smile

I have a new unit coming and waiting on an RMA number to said the old one back.

For as much as I've been cursing them out the last couple days, they so far have been very rec ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Thu Aug 14, 2008 5:12 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
Well, Newguy, you were right.

There is a drop in MCLR but I was too far out to see it. Before I tested at 1ms but I didn't have enough hands to pay attention to everything.

Here is the captured ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Thu Aug 14, 2008 3:12 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
Okay, got the scope on it. very odd indeed,

Everything looks fine to me. The 5V supply is steady and noise free (see Image1, that was me touching the probe to 5V in the pic).
http://i36.tinypic.co ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Thu Aug 14, 2008 11:45 am   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
Yes, I do have a scope.

I'll get it on the mclr pin today.
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Wed Aug 13, 2008 5:24 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
Look at the code above, I DID make a basic code, that one a couple posts up is complete.

That was a good idea with the PLL, but no change. I changed 40 to 10 and made the fuse HS, same reset at the ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Wed Aug 13, 2008 4:51 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
HA!

Check this out, stepping over these lines is fine:

temp=5;
temp=3;
temp=1;


BUT, stepping over the middle line here causes a reset

temp=5;
temp = temp/764;
temp = 1;


Now I'm ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Wed Aug 13, 2008 4:38 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
I changed the sample code to do more writes to the temp variable, it didn't reset until it got to the printf again..... hmmmmm
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Wed Aug 13, 2008 1:54 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
I though I had bought a reliable tool and didn't know I would be needing a spare.

Here is code:

#include <18F4585.h>

#fuses H4,NOLVP,NOWDT,PUT,NOBROWNOUT,NOSTVREN
#use delay(clock ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Wed Aug 13, 2008 11:46 am   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
Old code does the same thing. I'm going to try stepping over right after main, I suspect it will happen anyway.

I'm thinking the ICD is dropping or browning out the mclr. I've got more testing to d ...
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Tue Aug 12, 2008 5:43 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
One observation I just noticed,

The program will only reset itself once. Its just the first time I hit Step Over or Run to Cursor. After that step or run works fine.... wtf !?
  Topic: Odd Reset on debugging. Code Design or ICD ? Very Worried.
iso9001

Replies: 25
Views: 22708

PostForum: General CCS C Discussion   Posted: Tue Aug 12, 2008 5:20 pm   Subject: Odd Reset on debugging. Code Design or ICD ? Very Worried.
Sorry, forgot to include that

3.249 (I dislike 4.0) and an 18F4585

If I remember correctly I did pull that jumper inside the icd to allow 5V to target access but this problem has never occurred ...
 
Page 1 of 18 Goto page 1, 2, 3 ... 16, 17, 18  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group