After looking at the eeprom.h source file, I realized that this feature isn't implemented fully (if at all) for PIC18F devices.
For anyone interested, I wrote a set of GCBasic subroutines that accomplish the following for the referenced part:
-Write a single byte to a selected flash location
-Read a single byte from a selected flash location
-Write a 64-byte block of values to a selected flash block
-Read a 64-byte block of values from a selected flash block
-Erase a selected 64-byte block of flash
The code is straight forward and should be easily adaptable to many PIC18 parts. Perhaps someone more knowledgeable about GCB than myself can write it into an existing library so it becomes a standard feature of the compiler.
Contact me if you're interested.
Joe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't seem to make this work on a 18f4455. Can someone confirm whether it works for this part?
Joe
After looking at the eeprom.h source file, I realized that this feature isn't implemented fully (if at all) for PIC18F devices.
For anyone interested, I wrote a set of GCBasic subroutines that accomplish the following for the referenced part:
-Write a single byte to a selected flash location
-Read a single byte from a selected flash location
-Write a 64-byte block of values to a selected flash block
-Read a 64-byte block of values from a selected flash block
-Erase a selected 64-byte block of flash
The code is straight forward and should be easily adaptable to many PIC18 parts. Perhaps someone more knowledgeable about GCB than myself can write it into an existing library so it becomes a standard feature of the compiler.
Contact me if you're interested.
Joe