• AVR Freaks

Hot!How to change the default values of device configuration in Harmony3?

Author
yts
Super Member
  • Total Posts : 583
  • Reward points : 0
  • Joined: 2005/09/06 17:45:30
  • Status: offline
2019/04/16 02:41:12 (permalink)
0

How to change the default values of device configuration in Harmony3?

I would like to change the default values of device configuration in Harmony 3.

For example, the default value of "Ethernet MII Enable Configuration bit" is ON in case of the device configuration of PIC32MZ2048EFM064 (see the attached figure).
I would like to change the default value to OFF.

Which file should I modify to set the new default value to OFF?
post edited by yts - 2019/04/19 01:14:42

Attached Image(s)

#1

3 Replies Related Threads

    yts
    Super Member
    • Total Posts : 583
    • Reward points : 0
    • Joined: 2005/09/06 17:45:30
    • Status: offline
    Re: How to change the default values of device configuration in Harmony3? 2019/04/19 17:15:47 (permalink)
    0
    I found the solution as seen in figure1.

    995th line from the top of the file “HarmonyFramework\dev_packs\Microchip\PIC32MZ_EF_DFP\0.1\PIC32MZEF\atdf\PIC32MZ2048EFM064.atdf”


    <modules>
       <module caption="" id="" name="FUSECONFIG" version="">
          <register-group name="FUSECONFIG">
             <register caption="Device Configuration Word 3" name="DEVCFG3" initval="0xFEFFFFFF">  //  <--------------- give the initial value for DEVCFG3


    Meaning of Configuration bits is known by selecting menu “Window-> Target Memory Views->Configuration Bits” on the MPLAB X IDE (see figure2).


    post edited by yts - 2019/04/19 17:24:41

    Attached Image(s)

    #2
    LostInSpace
    Super Member
    • Total Posts : 226
    • Reward points : 0
    • Joined: 2016/03/11 22:47:59
    • Location: 0
    • Status: offline
    Re: How to change the default values of device configuration in Harmony3? 2019/04/25 18:12:30 (permalink)
    0
    Wow, good sleuthing!
     
    Overwriting the file just puts you at risk of updating the file from the installer and overwriting it again.
     
    Another method would be to set the device as you wish, then export all the settings. When you start another project you an just import your basic settings file that you previously saved.
     
    Naturally this will have limits also, because who knows if the settings file will be / is compatible between V3 and Vx Harmony for instance.
     
    You get a star for "digging into files to fins an undocumented setting" against all odds however!
     
    :-)
    post edited by LostInSpace - 2019/04/25 18:15:05
    #3
    yts
    Super Member
    • Total Posts : 583
    • Reward points : 0
    • Joined: 2005/09/06 17:45:30
    • Status: offline
    Re: How to change the default values of device configuration in Harmony3? 2019/04/26 18:15:31 (permalink)
    0
    Hi Lostin Space,
     
    Thank you for your suggesions.
     
    Do you know how to export all/selected settings in Harmony 3?
    I can open "Export Menu" window, but nothing appears on the list (please see the figure).
     
     yts

    Attached Image(s)

    #4
    Jump to:
    © 2019 APG vNext Commercial Version 4.5