| View previous topic :: View next topic |
| Author |
Message |
bschriek
Joined: 18 Dec 2007 Posts: 84
|
| erase_program_eeprom( ); |
Posted: Mon Oct 19, 2015 8:56 am |
|
|
Compiler updated to 5.050 <12F1572.H>
We used the suggesions of Ttelmah in the past and this works great.
Now we have updated our compiler but we still have a small problem.
It seems the "erase_program_eeprom(HEF)" function doesn't work.
As you can read the function of mr Ttelmah underneath works great:
my_erase_program_eeprom(HEF);
And now we try to use the standard function underneath
erase_program_eeprom(HEF);
but we get:*** Error 12 "TP128BG001.c" Line 456(43,44): Undefined identifier -- erase_program_eeprom
Any idea?
Otherwise we will use the "my_erase_program_eeprom(HEF)" no big deal. |
|
 |
Ttelmah
Joined: 11 Mar 2010 Posts: 20061
|
|
Posted: Mon Oct 19, 2015 9:06 am |
|
|
They seem to have 'omitted' the function on some chips.
Worth reporting it to them, then in the future it should be fixed, but that's why I wrote 'my version'...  |
|
 |
bschriek
Joined: 18 Dec 2007 Posts: 84
|
|
Posted: Tue Oct 20, 2015 9:00 am |
|
|
OK, we will inform CCS and ask if they can add the command.
Thanks again.
Bas. |
|
 |
bschriek
Joined: 18 Dec 2007 Posts: 84
|
|
Posted: Fri Oct 23, 2015 4:20 am |
|
|
Underneath the comment of CCS:
This message is a reply to CCS e-mail id: 5J4837
On this chip an erase is not needed. You can use the write functions to write to program memory without doing an erase first.
Thanks CCS,
We tried without this instruction and all works well.
Best regards,
Bas |
|
 |
Ttelmah
Joined: 11 Mar 2010 Posts: 20061
|
|
Posted: Fri Oct 23, 2015 4:46 am |
|
|
If you remember, somewhere I pointed out that the write function is _meant_ to erase automatically if you write to the start of the page. Obviously this one, they have got working!..  |
|
 |
|