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

Can't use all the memory of PIC18F66K22

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



Joined: 11 Feb 2013
Posts: 3

View user's profile Send private message

Can't use all the memory of PIC18F66K22
PostPosted: Mon Feb 11, 2013 9:18 am     Reply with quote

I'm using PIC18F66K22 in our one project and the PCWH is V4.132.

The compiler code can't exceed up to 23768x16, but this uC has 64K program memory. It should be up to 32768x16.

I've checked all 6 uC of the PIC17F87K22 family with the same PCWH version. All other 5 uC can use all the memory, only PIC18F66K22 is up to 72.5% of the 64k memory.

Do anyone know this issue or I miss something?

Thank for any information.


Frank
Ttelmah



Joined: 11 Mar 2010
Posts: 19469

View user's profile Send private message

PostPosted: Mon Feb 11, 2013 10:04 am     Reply with quote

Do you have the IDE, or just the command line compiler?.
If you have the IDE, select 'tools', 'Device editor'. Then choose the processor, and go to the tab 'memory'. It is incorrectly set to 23768 words in the compiler.
With the IDE you can then change this.

It's still wrong in the current release. So report it to CCS, and they will send you a fixed devices.dat file.

Best Wishes
frankjz



Joined: 11 Feb 2013
Posts: 3

View user's profile Send private message

PostPosted: Mon Feb 11, 2013 10:41 am     Reply with quote

Ttelmah wrote:
Do you have the IDE, or just the command line compiler?.
If you have the IDE, select 'tools', 'Device editor'. Then choose the processor, and go to the tab 'memory'. It is incorrectly set to 23768 words in the compiler.
With the IDE you can then change this.

It's still wrong in the current release. So report it to CCS, and they will send you a fixed devices.dat file.

Best Wishes


Thanks for the reply. The memory problem is fixed.

But I can't program target with CCS Programmer as it can't read target device ID after I saved the memory setting.

What's wrong with that?


Thanks,

Frank
Ttelmah



Joined: 11 Mar 2010
Posts: 19469

View user's profile Send private message

PostPosted: Mon Feb 11, 2013 11:57 am     Reply with quote

You need to select the memory amount, as slightly _less_ than the total.
The reason is that the config data is stored in the top of the main memory on these chips.
Use the figure from one of the other chips in the same family.

Best Wishes
ckielstra



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

View user's profile Send private message

PostPosted: Mon Feb 11, 2013 1:11 pm     Reply with quote

Great that there is a workaround for the bug, but was the error reported to CCS so they can fix it?
frankjz



Joined: 11 Feb 2013
Posts: 3

View user's profile Send private message

PostPosted: Mon Feb 11, 2013 1:22 pm     Reply with quote

Thanks for the help. The problem may happen on the 'save' settings.
I checked the devices.dat file that has been changed a lot.
We'll ask for the file.

Best regards.
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