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

16F1708 HEF usage
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bschriek



Joined: 18 Dec 2007
Posts: 84

View user's profile Send private message Send e-mail

erase_program_eeprom( );
PostPosted: Mon Oct 19, 2015 8:56 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Oct 19, 2015 9:06 am     Reply with quote

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'... Smile
bschriek



Joined: 18 Dec 2007
Posts: 84

View user's profile Send private message Send e-mail

PostPosted: Tue Oct 20, 2015 9:00 am     Reply with quote

OK, we will inform CCS and ask if they can add the command.
Thanks again.
Bas.
bschriek



Joined: 18 Dec 2007
Posts: 84

View user's profile Send private message Send e-mail

PostPosted: Fri Oct 23, 2015 4:20 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Oct 23, 2015 4:46 am     Reply with quote

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!.. Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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