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 21 matches
CCS Forum Index
Author Message
  Topic: Question on protection bits for bootloader
loupan

Replies: 2
Views: 5816

PostForum: General CCS C Discussion   Posted: Mon Sep 20, 2010 5:50 pm   Subject: Question on protection bits for bootloader
Thanks PCM

I am still a bit confused.

Can you help on these two specific points?

1. // WRT - Program Memory is Write Protected
// WRTB - Boot block memory write protected

Am I cor ...
  Topic: Question on protection bits for bootloader
loupan

Replies: 2
Views: 5816

PostForum: General CCS C Discussion   Posted: Mon Sep 20, 2010 9:43 am   Subject: Question on protection bits for bootloader
I would appreciate it if someone could confirm my understanding of the protection bits.

The following background (and assumptions I have made) may be useful in understanding what I am trying to acc ...
  Topic: Problem with float or printf or atof
loupan

Replies: 4
Views: 7670

PostForum: General CCS C Discussion   Posted: Thu Aug 12, 2010 1:43 pm   Subject: Problem with float or printf or atof
A trick you can use if you want to remain in the "floating point domain" is to add .5 * value of the least sig digit to the value operated on by printf.

Ex:

float x;

x = .03;

p ...
  Topic: 4.107 - compiler generating wrong addresses?
loupan

Replies: 6
Views: 7338

PostForum: General CCS C Discussion   Posted: Sun May 23, 2010 10:41 am   Subject: 4.107 - compiler generating wrong addresses?
Mr. Kennedy,

I don't know how you determine who you trust, but based on my life experience, trust has to be earned.

For those of you that offerered non-sarcastic responses, thanks again for yo ...
  Topic: 4.107 - compiler generating wrong addresses?
loupan

Replies: 6
Views: 7338

PostForum: General CCS C Discussion   Posted: Fri May 21, 2010 2:40 pm   Subject: 4.107 - compiler generating wrong addresses?
Thanks for your responses. If I move the code around, or even change the order of the declartions, the problem will move to another function (or in a few cases, not occur).

CCS is not interested in ...
  Topic: 4.107 - compiler generating wrong addresses?
loupan

Replies: 6
Views: 7338

PostForum: General CCS C Discussion   Posted: Fri May 21, 2010 7:06 am   Subject: 4.107 - compiler generating wrong addresses?
In a previous post, I discussed a case where it appeared to me that the compiler was generating incorrect addresses for some of the function calls:
http://www.ccsinfo.com/forum/viewtopic.php?t=41396& ...
  Topic: Boot Block Code Protection Bit
loupan

Replies: 2
Views: 6954

PostForum: General CCS C Discussion   Posted: Fri Apr 02, 2010 5:38 am   Subject: Boot Block Code Protection Bit
Thanks PCM Programmer!
  Topic: Boot Block Code Protection Bit
loupan

Replies: 2
Views: 6954

PostForum: General CCS C Discussion   Posted: Thu Apr 01, 2010 2:18 pm   Subject: Boot Block Code Protection Bit
If I understand the data sheet for the 18f8722, there are 2 code protection bits that seem to overlap:

bit 6 CPB: Boot Block Code Protection bit
1 = Boot block (000000-0007FFh) not code-protected ...
  Topic: 32K boundary problem...
loupan

Replies: 3
Views: 6504

PostForum: General CCS C Discussion   Posted: Wed Mar 31, 2010 8:40 am   Subject: 32K boundary problem...
Hi,

PCM programmer suggested the org patch, and it fixed one problem, and moved it somewhere else.

I too noticed stange behavior but much over 64K. I am using an 18f8722 with 128k and the proble ...
  Topic: CCS 4104 Compiler Bug!
loupan

Replies: 18
Views: 23735

PostForum: General CCS C Discussion   Posted: Sun Mar 21, 2010 9:45 am   Subject: CCS 4104 Compiler Bug!
Hi Monsters_inc.

I too have gotten to the point where I check the listing to make sure that all CALL and RCALL addresses are legal values that have corresponding entries in the symbol table. I have ...
  Topic: CCS 4104 Compiler Bug!
loupan

Replies: 18
Views: 23735

PostForum: General CCS C Discussion   Posted: Thu Mar 18, 2010 7:54 am   Subject: CCS 4104 Compiler Bug!
I am seeing something very similar - see post:

http://www.ccsinfo.com/forum/viewtopic.php?t=41396&highlight=

Am I missing something? This seems like a serious problem.

Assume that I am w ...
  Topic: two addresses for same function??
loupan

Replies: 7
Views: 10418

PostForum: General CCS C Discussion   Posted: Fri Jan 29, 2010 8:51 am   Subject: two addresses for same function??
PCM programmer.

even with the three org statements you recommended to prevent functions spanning 32K boundaries, the problem still happens.

The excerpts below show another example that I capture ...
  Topic: two addresses for same function??
loupan

Replies: 7
Views: 10418

PostForum: General CCS C Discussion   Posted: Tue Jan 26, 2010 6:02 pm   Subject: two addresses for same function??
Thanks.

With the three org statements, the function in question now resolves to the same adrs in all 4 calls. As I mentioned earlier, shifting things around sometimes eliminates the problem or mov ...
  Topic: two addresses for same function??
loupan

Replies: 7
Views: 10418

PostForum: General CCS C Discussion   Posted: Tue Jan 26, 2010 3:44 am   Subject: two addresses for same function??
No - not using anything special that relocates code, blocks out address ranges, etc. I did not see this behavior when the code occupied a smaller percentage of the total rom space.
  Topic: two addresses for same function??
loupan

Replies: 7
Views: 10418

PostForum: General CCS C Discussion   Posted: Mon Jan 25, 2010 7:11 pm   Subject: two addresses for same function??
Thanks PCM programmer. I know there were some major changes introduced in 4.100.

Tried it on 4.099 - same problem.

Based on the LST info that I posted, does my analysis seem to be correct? Two d ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group