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

Strange finding (CCS rev 3.186)

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








Strange finding (CCS rev 3.186)
PostPosted: Tue Sep 21, 2004 1:55 pm     Reply with quote

Recently, I ran into a series strange problems with 18F8620 & CCS

When I burn a "good" program my designs, some of them will not run.

If I give pic a reset signal, it will run fine.

so the problem seems to be in the reset, but I confirm good clock/reset/voltage, etc -- I contacted microchip and show them my design and fuse map, and they didn't find anything wrong.

I can reprogram the pic many times and it still will not come out of reset

Yet, if I add a few dummy lines in my source, as simple as "i=i-1; i=i+1':, recompile and program pic again, they will all work fine!


Sad
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Tue Sep 21, 2004 2:09 pm     Reply with quote

What speed are you running? Are you using 4xPLL?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Sep 21, 2004 2:11 pm     Reply with quote

There have been posts on this type of problem before.
http://www.ccsinfo.com/forum/viewtopic.php?t=20195&highlight=pll

Can you post a small test program that demonstrates the problem ?
Be sure to show all pre-processor statements. Then we may
notice something and be able to help.
Guest








PostPosted: Wed Sep 22, 2004 9:20 am     Reply with quote

29.xx MHZ

Because this problem only happens to some but not all systems, and the program is rather big, and any change will take care the problem, it will not be easy to come up with a small test program to demonstrate

:(
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Sep 22, 2004 9:24 am     Reply with quote

It may be an interrupt related software problem
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Sep 22, 2004 9:41 am     Reply with quote

Study these posts by C-H Wu. Try his recommendation to
reduce the #opt level. See if that helps.
http://www.ccsinfo.com/forum/viewtopic.php?t=19386
http://www.ccsinfo.com/forum/viewtopic.php?t=19439
http://www.ccsinfo.com/forum/viewtopic.php?t=19233
http://www.ccsinfo.com/forum/viewtopic.php?t=19417
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Wed Sep 22, 2004 5:33 pm     Reply with quote

Check the errata on the PIC. Some of the bigger 18's had problems at over 4MHz. Does the date code start with 03 or 04?
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