• AVR Freaks

Hot!Can IPECMD v5.30 reprogram ONLY the EEPROM without first doing a global erase?

Author
dkwan105
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2020/02/13 14:44:03
  • Location: 0
  • Status: offline
2020/02/24 15:32:16 (permalink)
0

Can IPECMD v5.30 reprogram ONLY the EEPROM without first doing a global erase?

Is there a way to only reprogram the EEPROM using IPECMD v5.30?  (I have an application that stores configuration information in the EEPROM and I would like to modify it in some deployed devices.)  I am able to do this using IPECMD v4.05 with the following command:

ipecmd -P16LF18855 -TPpk3 -W -ME -F\dev\new_eeprom.hex

However, it doesn't work on v5.30 because it insists on doing a global erase prior to programming the EEPROM.  

Is there a way to suppress the global erase and make v5.30 behave like v4.05?

Here is the command output from v4.05:
*****************************************************
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.51.06
Firmware type..............Enhanced Midrange
Programmer to target power is enabled - VDD = 3.250000 volts.
Target device PIC16LF18855 found.
Device ID Revision = 2002
Programming...
The following memory area(s) will be programmed:
EEData memory
Programming/Verify complete
PICKIT3 Program Report
24-Feb-2020, 13:21:05
Device Type:PIC16LF18855
Program Succeeded.
Operation Succeeded
*****************************************************

Here is the command output from v5.30:
*****************************************************
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.02
Firmware type..............Enhanced Midrange
Programmer to target power is enabled - VDD = 3.250000 volts.
Target device PIC16LF18855 found.
Device Revision ID = 2002
Device Erased...
Programming...
The following memory area(s) will be programmed:
EEData memory
Programming/Verify complete
PICKIT3 Program Report
24-Feb-2020, 13:24:12
Device Type:PIC16LF18855
Program Succeeded.
Operation Succeeded
*****************************************************

Really the only difference is the extra "Device Erased" step that v5.30 is doing.  Can this be suppressed?

Thanks,
David
#1

3 Replies Related Threads

    tech24x7
    Starting Member
    • Total Posts : 85
    • Reward points : 0
    • Joined: 2013/10/14 21:38:52
    • Location: 0
    • Status: offline
    Re: Can IPECMD v5.30 reprogram ONLY the EEPROM without first doing a global erase? 2020/02/24 23:48:11 (permalink)
    0
    Hi,
    By default Gen3 tools erase the target, It seems like an limitation with latest IPECMD version, there is switch /OH for disable Erase All B4 Program however it works only for PTG mode.  


    For now, if you have Gen4 Tools PicKit4 you can try with IPE-GUI.  Go to Setting Menu and Uncheck Erase All Before Program Menu.   Hope this will get fixed in upcoming MPLAB X release.
     
    /Saheed
     
     
    #2
    dkwan105
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2020/02/13 14:44:03
    • Location: 0
    • Status: offline
    Re: Can IPECMD v5.30 reprogram ONLY the EEPROM without first doing a global erase? 2020/02/25 12:32:50 (permalink)
    0
    Thanks.  That's good to know about the Gen3 tools. 
     
    Ideally I'd like the tool to be command line base so I can generate the new EEPROM configuration using an external tool that will then call IPECMD.   I guess my current options are to keep using v4.05 or to use hexmate to merge the new EEPROM hex file to the original firmware hex file.
     
    Indeed, let's hope they can address this in future releases of MPLAB X since always doing a global erase kind of defeats the purpose of the "-M<memory region>" targeted programing switches.
    #3
    tech24x7
    Starting Member
    • Total Posts : 85
    • Reward points : 0
    • Joined: 2013/10/14 21:38:52
    • Location: 0
    • Status: offline
    Re: Can IPECMD v5.30 reprogram ONLY the EEPROM without first doing a global erase? 2020/02/25 20:48:59 (permalink)
    0
    dkwan105
    Thanks.  That's good to know about the Gen3 tools. 
     
    Ideally I'd like the tool to be command line base so I can generate the new EEPROM configuration using an external tool that will then call IPECMD.   I guess my current options are to keep using v4.05 or to use hexmate to merge the new EEPROM hex file to the original firmware hex file.
     
    Indeed, let's hope they can address this in future releases of MPLAB X since always doing a global erase kind of defeats the purpose of the "-M<memory region>" targeted programing switches.


    I Agree.  Yes it has to be fixed in the upcoming release. 
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5