View previous topic :: View next topic |
Author |
Message |
ws Guest
|
erase_program_eeprom |
Posted: Fri Jan 07, 2005 12:13 pm |
|
|
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
|
|
Posted: Fri Jan 07, 2005 12:27 pm |
|
|
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
|
|
Posted: Fri Jan 07, 2005 12:46 pm |
|
|
I'm using a PIC16F877 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jan 07, 2005 1:08 pm |
|
|
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
|
|
Posted: Mon Jan 10, 2005 9:30 am |
|
|
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
|
|
Posted: Mon Jan 10, 2005 10:38 am |
|
|
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. |
|
|
|