Protect eeprom during programming


Closed Thread
Results 1 to 8 of 8
  1. #1

    Default Protect eeprom during programming

    Good evening all,

    I'm using several 16F886 in a RS485 network. Every PIC will keep indivual information in his data eeprom (like device ID etc). This information must be kept, also when a firmware upgrade is performed.

    When programming the PIC with the new firmware, the Eeprom of the PIC is also erased. I tried to set individual fuses (CPD bit) however with no results, the eeprom is always erased.

    Has anyone an idea how this can be solved?

    Many thanks for your help

    Wilbert

    PS: i'm using xwisp2w programming software and the wisp programmer

  2. #2
    Join Date
    Oct 2004
    Location
    North Norfolk UK
    Posts
    146


    Did you find this post helpful? Yes | No

    Default

    Has anyone an idea how this can be solved?
    you could ask Wouter van Ooijen himself. to introduce more commands than bulk erase.

    you could consider purchasing a programmer that will allow you do you what you want

    Curious... Do you use PIC Basic?

    regards

    Duncan

  3. #3


    Did you find this post helpful? Yes | No

    Default Protect eeprom during programming

    Thanks for your reply !

    I'm using Pic Basic Pro 2.5

    I've already contacted Wouter a few days ago, it's not included for the moment and it could take months before he has the time to do it.

    Which programmer should i use that allows this feature?

    Thanks

    Wilbert

  4. #4
    Join Date
    Oct 2004
    Location
    North Norfolk UK
    Posts
    146


    Did you find this post helpful? Yes | No

    Default

    Hi Wilbert

    Welcome to the forum ,

    there are several progammers, may I ask which IDE you use Mplab,Microcode studio etc it may help a little.

    I am shooting away right now, but am sure others can help out with this one


    regards

    Duncan

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Thanks for welcoming me

    I'm using Microcode Studio in combination with MPLAB. I would like to find a good in circuit programmer.

    Many thanks for your help, this is really appreciated !

    Wilbert

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    In MPLAB click programmer in the tool bar. Then click settings. There you will find the place to not erase the EEPROM.

    ISCP = PICKIT2 from MICROCHIP.
    Also has a way not to erase the EEPROM during programming.
    Dave
    Always wear safety glasses while programming.

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Thanks Dave !

    I just looked online and the Pickit2 seems to me a good solution. I will buy one.

    Best regards

    Wilbert

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    It is a good solution. It's also a InCircuitDebugger, EEPROM programmer, and the standalone PC software also give you a free SerialCommunication terminal. No need Max232. Can be integrated in MicroCodeStudio programmer list as well.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  3. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 02:46
  4. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

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