• AVR Freaks

Hot!Edit MPLABX with >50 different Project Configurations

Author
edware
Starting Member
  • Total Posts : 33
  • Reward points : 0
  • Joined: 2009/01/04 22:41:19
  • Location: 0
  • Status: offline
2019/06/23 17:00:29 (permalink)
5 (1)

Edit MPLABX with >50 different Project Configurations

MPLABX5.20, XC8 V2.0
Hi there
We have a large number of project configurations for one project (54 at last count - and growing).
We plan to migrate to a newer PIC device, but changing the device type for >50 configurations is time consuming.
Is there a easier way to alter the target device for each of our 54 build configurations, rather than using the GUI which is slow and cumbersome for repetitive tasks.
I'm wondering if there's a file which I can edit and perform a global search and replace on the target name.
....or is there a way for our project configurations to inherit settings from a parent configuration?
Thanks
Ed
#1

6 Replies Related Threads

    Aussie Susan
    Super Member
    • Total Posts : 3591
    • Reward points : 0
    • Joined: 2008/08/18 22:20:40
    • Location: Melbourne, Australia
    • Status: offline
    Re: Edit MPLABX with >50 different Project Configurations 2019/06/23 19:06:49 (permalink)
    +1 (5)
    What is the problem you have that makes you think that 50+ configurations is the answer?
    Susan
    #2
    edware
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2009/01/04 22:41:19
    • Location: 0
    • Status: offline
    Re: Edit MPLABX with >50 different Project Configurations 2019/06/23 20:30:45 (permalink)
    +1 (1)
    We have over 25 active variations of our product, each with multiple unique timing / configuration options.
    Each product contains a master and a slave device, which doubles the number of builds.
    When we make changes to our application code, the rebuilding for all product variants is very simple.
    Ed
    post edited by edware - 2019/06/24 02:56:33
    #3
    edware
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2009/01/04 22:41:19
    • Location: 0
    • Status: offline
    Re: Edit MPLABX with >50 different Project Configurations 2019/06/24 02:56:10 (permalink)
    +2 (2)
    Question was answered here:
    https://www.microchip.com/forums/m1042264.aspx
    Summary - Edit the configurations.xml file when mplabx is closed.
    #4
    Jim Nickerson
    User 452
    • Total Posts : 6034
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Edit MPLABX with >50 different Project Configurations 2019/06/24 07:12:34 (permalink)
    +3 (3)
    I also parse the .xml with an external program to add extra notes to the project.
    #5
    edware
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2009/01/04 22:41:19
    • Location: 0
    • Status: offline
    Re: Edit MPLABX with >50 different Project Configurations 2019/06/24 15:01:03 (permalink)
    0
    Thanks Jim - that's a great tip. Can you recommend a parsing tool (There seem to be plenty available :-)) ?
    Ed
    #6
    Jim Nickerson
    User 452
    • Total Posts : 6034
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: Edit MPLABX with >50 different Project Configurations 2019/06/25 06:59:26 (permalink)
    0
    I wrote my own and started it with a power shell script all run before building the application
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5