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

erase_program_eeprom

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







erase_program_eeprom
PostPosted: Fri Jan 07, 2005 12:13 pm     Reply with quote

I'm using MPLAB V7.00 and PCB,PCH,PCW V3.214.

But when i try to use the build in function erase_program_eeprom, the compiler display following message:

*** Error 12 "C:\Documents and Settings\d01v1.c" Line 218(1,21): Undefined identifier erase_program_eeprom

Anyone have any idea why this happening ?

Thanks and help is appreciate.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jan 07, 2005 12:27 pm     Reply with quote

You didn't say what PIC you're using. Look at the top of the
Readme.txt file. It says that erase_program_eeprom() is not
available on all chips.

The Readme.txt file is in this folder: c:\Program Files\Picc
ws
Guest







PostPosted: Fri Jan 07, 2005 12:46 pm     Reply with quote

I'm using a PIC16F877
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jan 07, 2005 1:08 pm     Reply with quote

For the 16F877, FLASH_ERASE_SIZE and FLASH_WRITE_SIZE both = 2,
so according to the Readme.txt file, the erase_program_memory()
function is not supported.
dan king



Joined: 22 Sep 2003
Posts: 119

View user's profile Send private message

PostPosted: Mon Jan 10, 2005 9:30 am     Reply with quote

I'm not familiar with the erase_program_eeprom function, I might have an older compiler version, but I use the 16f877 and have a bootloader using the write_program_eeprom and read_program_eeprom functions. What are you trying to accomplish with your code?
ws
Guest







PostPosted: Mon Jan 10, 2005 10:38 am     Reply with quote

I try to write some data to the program memory as I have used up all my eeprom.

When I try to use the read/write_program_eeprom() function and test that alone, everything seems alright. But, as long as I merge that into a bigger code, seems like my data didn't get to write to the program memory. That why I think erase_program_memory() might help.

Just curious did I need to caution of anything if i wanna do the write program memory thing? I mean like disable an interrupt or some time delay?

i have try to disable some interrupt and try some delay too, so if anyone can help, i would really appreciate about it.
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