Menu

ProgramWrite

Help
joe rocci
2012-07-28
2013-05-30
  • joe rocci

    joe rocci - 2012-07-28

    I can't seem to make this work on a 18f4455. Can someone confirm whether it works for this part?

    Joe

     
  • joe rocci

    joe rocci - 2012-08-06

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.