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 support@ccsinfo.com

What are the NOPs for?

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







What are the NOPs for?
PostPosted: Fri May 30, 2003 11:40 am     Reply with quote

Why does the PCH compiler put NOPs at the begining of each function? Not only is it the waste of MPU time but the FLASH too.
Does anybody know a way to get rid of that?

Thanks,
Alex
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514895
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: What are the NOPs for?
PostPosted: Fri May 30, 2003 12:52 pm     Reply with quote

<font face="Courier New" size=-1>:=Why does the PCH compiler put NOPs at the begining of each function? Not only is it the waste of MPU time but the FLASH too.
:=Does anybody know a way to get rid of that?
--------------------------------------------------

These two posts will answer your questions:
<a href="http://www.pic-c.com/forum/general/posts/10339.html" TARGET="_blank"> <a href="http://www.pic-c.com/forum/general/posts/10339.html" TARGET="_blank">http://www.pic-c.com/forum/general/posts/10339.html</a></a>
<a href="http://www.pic-c.com/forum/general/posts/10347.html" TARGET="_blank"> <a href="http://www.pic-c.com/forum/general/posts/10347.html" TARGET="_blank">http://www.pic-c.com/forum/general/posts/10347.html</a></a>

Also see the link to the Piclist discussion below:</font>
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514896
R.J.Hamlett
Guest







Re: What are the NOPs for?
PostPosted: Fri May 30, 2003 2:48 pm     Reply with quote

:=Why does the PCH compiler put NOPs at the begining of each function? Not only is it the waste of MPU time but the FLASH too.
:=Does anybody know a way to get rid of that?
:=
:=Thanks,
:=Alex
Read the 'errata' sheet for the processor.
This is required on the 18F family, when there are jumps going beyond 4000H. _Provided_ your code is small enough to not need such jumps, you can turn this off, using the device editor. If your processor does haave code beyond this address, you have to leave these present, to get round a hardware problem with the chip (not CCS's fault).

Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514903
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

Re: What are the NOPs for?
PostPosted: Fri May 30, 2003 3:33 pm     Reply with quote

These NOP's are needed to work around a huge error made by Microchip. How this error ever got through testing and into production boggles the mind? Maybe they had Arthur Anderson or the Enron management do their testing. Sadly Microchip chose not to recall the chips. NOP is Microchip's mneumonic for Not our Problem.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514905
EmbeddedAleks
Guest







Re: What are the NOPs for?
PostPosted: Tue Jun 03, 2003 9:42 am     Reply with quote

Thanks for the quick replies guys. That's right it is a silicon bug.
I am not clear on how to get rid of it if my code is LT 4000h bytes though. I am not really sure what the "device editor" is you mentioned.

Alex
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515007
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: What are the NOPs for?
PostPosted: Tue Jun 03, 2003 12:11 pm     Reply with quote

:=Thanks for the quick replies guys. That's right it is a silicon bug.
:=I am not clear on how to get rid of it if my code is LT 4000h bytes though. I am not really sure what the "device editor" is you mentioned.
--------------------------------------------------------------

This is a screen-shot of it:
<a href="http://www.ccsinfo.com/pix/pcw3-big.gif" TARGET="_blank">http://www.ccsinfo.com/pix/pcw3-big.gif</a>
You have to buy the whole PCW package to get this.

I wouldn't mind if they made it a stand-alone program
and sold it for $25 extra with the PCM compiler.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515009
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