Flash erase byte routine


Results 1 to 21 of 21

Threaded View

  1. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: Flash erase byte routine

    should be doable just break job up to small lumps
    say you have a 1k ram block spare

    step 1 erase a temp sector (64k) on the flash
    1. read a k of old sector data
    2 . does this k need to updated?
    if yes update this 1k block
    write this block to temp sector
    3 repeat step 2 63 more times (for each 1k block)
    4 erase old sector (now copied to temp with updates)
    5 copy temp sector back to old sector
    end

    just had a look at your data sheet
    looks like 256 byte blocks may be more appropriate

    and 100,000 write cycles , how often will you be doing this



    still think raspberry pi a more fitting machine for this type of work
    Last edited by richard; - 16th June 2014 at 10:47. Reason: read data sheet

Similar Threads

  1. Erase error
    By waynepauly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th June 2012, 02:23
  2. Internal eeprom - erase block
    By ruijc in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 13th February 2008, 11:11
  3. 18F2431 won't program or erase.
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 28th September 2006, 07:55
  4. 12F675 won't reprogram or erase
    By modifyit in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 19th May 2006, 05:07
  5. 12F629 won't erase and bandgap save?
    By Keith55555 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th April 2004, 01:28

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts