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

no error but code crashed after one float variable defined

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







no error but code crashed after one float variable defined
PostPosted: Tue Oct 18, 2005 8:40 am     Reply with quote

Hiiii everybody !...


Please help !!!

I am in trouble badly.

I have a code working perfectly on PIC18F452.

But, If I add (define) a float variable to the code,

My code is crashed.

My CCS ver is 3.203 (not bad I think)

No error messages.

The Compile is OK

Memory use is about %25 for ROM, %30 for RAM.


Any urgent help will be appreciated...

hundil
Mark



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

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

PostPosted: Tue Oct 18, 2005 8:55 am     Reply with quote

Could be a buffer overrun problem and adding the float exposes it.
hundil
Guest







added float prblem
PostPosted: Wed Oct 19, 2005 3:46 am     Reply with quote

thanks a lot for your opinion

but, what to do any more !...

hundil
asmallri



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

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

PostPosted: Wed Oct 19, 2005 4:25 am     Reply with quote

Are you using a bootloader? If so which one?
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
hundil
Guest







PostPosted: Wed Oct 19, 2005 6:56 am     Reply with quote

No I am not...

hundil
Mark



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

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

PostPosted: Wed Oct 19, 2005 9:34 am     Reply with quote

How can we help when you haven't posted any code!
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Oct 19, 2005 4:26 pm     Reply with quote

Besides all the remarks of the people above I was triggered by the following:
Quote:
My CCS ver is 3.203 (not bad I think)
Do you have a special reason for using this version? The early v3.20x versions have new optimized code for the PIC18 processors but were very unreliable. The first version I dared to try was v3.216. If you don't have access to the newer versions I suggest you revert to the stable v3.191.
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