View previous topic :: View next topic |
Author |
Message |
frankjz
Joined: 11 Feb 2013 Posts: 3
|
Can't use all the memory of PIC18F66K22 |
Posted: Mon Feb 11, 2013 9:18 am |
|
|
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: 19516
|
|
Posted: Mon Feb 11, 2013 10:04 am |
|
|
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
|
|
Posted: Mon Feb 11, 2013 10:41 am |
|
|
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: 19516
|
|
Posted: Mon Feb 11, 2013 11:57 am |
|
|
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
|
|
Posted: Mon Feb 11, 2013 1:11 pm |
|
|
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
|
|
Posted: Mon Feb 11, 2013 1:22 pm |
|
|
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. |
|
|
|