• AVR Freaks

Hot!Adding new processor type to Harmony v1?

Author
hperaza
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2016/07/29 01:57:46
  • Location: 0
  • Status: offline
2019/08/06 05:01:49 (permalink)
0

Adding new processor type to Harmony v1?

We have a product designed around the PIC32MZ2048ECG064, which Microchip no longer recommends for new designs.
The recommended PIC32MZ2048EFG064 does not appear listed in the 'Device' listbox of Harmony v1.03.01, which is the version the firmware was developed with. Is there a way to add the newer EFG to harmony v1? Except for the FP, both processors seem to be rather equivalent. We would like to avoid having to convert the whole firmware to Harmony v2 or v3.
#1

10 Replies Related Threads

    Paul PortSol
    Super Member
    • Total Posts : 484
    • Reward points : 0
    • Joined: 2015/07/03 11:52:03
    • Location: Newfoundland, Canada
    • Status: online
    Re: Adding new processor type to Harmony v1? 2019/08/06 05:29:34 (permalink)
    0
    No idea about adding a PIC to old Harmony,
     
    but...
    Which PIC32MZ2048xxx064 are showing in your old HarmonyV10301?
    The EF processors fixed an ADC bug, and added floating point, changing the ADC could affect analog performance if you are using it.
    Even upping to H1.07 would be work, consider skipping along to Hv206 if you have to upgrade.
     
    #2
    NKurzman
    A Guy on the Net
    • Total Posts : 17709
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: Adding new processor type to Harmony v1? 2019/08/06 05:43:32 (permalink)
    4 (1)
    Going from 1.03 to 1.07 could be a lot of work. In 1.XX every version was a new adventure.

    But “not recommended for new designs“ does not mean you can’t get them anymore. You can still buy them. So it’s not mandatory that you do this upgrade.
    #3
    hperaza
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2016/07/29 01:57:46
    • Location: 0
    • Status: offline
    Re: Adding new processor type to Harmony v1? 2019/08/06 06:18:53 (permalink)
    0
    Paul PortSol
    Which PIC32MZ2048xxx064 are showing in your old HarmonyV10301?

     
    From the PIC32MZ family only the ECG/H/M are listed.
     
    Sooner or later we will have to switch to a newer version of harmony, but at this point we need to keep our production going, so we were hoping for a quick workaround.
     
     
     
    #4
    hperaza
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2016/07/29 01:57:46
    • Location: 0
    • Status: offline
    Re: Adding new processor type to Harmony v1? 2019/08/06 06:27:10 (permalink)
    0
    NKurzman
    Going from 1.03 to 1.07 could be a lot of work. In 1.XX every version was a new adventure.

    But “not recommended for new designs“ does not mean you can’t get them anymore. You can still buy them. So it’s not mandatory that you do this upgrade.



    Another reason for the upgrade is that we added a LAN8740 to our device, just to get bitten by Errata 7 which makes some MII pins unavailable to other functions (in our case SPI SCK4) even when in RMII mode. There is no workaround, other than to use the pin-compatible PIC32MZ-EF.
     
    #5
    NKurzman
    A Guy on the Net
    • Total Posts : 17709
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: Adding new processor type to Harmony v1? 2019/08/06 06:27:15 (permalink)
    4 (1)
    And why can’t you just keep using the chip you were using now ?
    #6
    NKurzman
    A Guy on the Net
    • Total Posts : 17709
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: Adding new processor type to Harmony v1? 2019/08/06 07:08:53 (permalink)
    4 (1)
    So you are not just selling a designed product.
    Depending on what Harmony features you used, will depend on how much work you have upgrading. You have a very old version. You can look at my old posts.
    I started with V1.03 and moved to 1.11.
    I am not sure if it would be easier to advance one version of the time or just jump to the 1.11
    You could even go to 2.xx if you are not using the graphics library.
    Trying to add you chip to the old Harmony could be even more work, if it is even possible. And you have to use a newer version of the compiler. Old versions with not Support to Chip either. But newer versions of the compiler may not work with 1.03
    #7
    Paul PortSol
    Super Member
    • Total Posts : 484
    • Reward points : 0
    • Joined: 2015/07/03 11:52:03
    • Location: Newfoundland, Canada
    • Status: online
    Re: Adding new processor type to Harmony v1? 2019/08/06 09:06:00 (permalink)
    0
    a) As NKurzman said, sounds like easiest is to bulk buy enough of existing PIC to cover your production till your updated code is ready. Allow very large time margin for unexpected bugs (especially if original coders not available).
     
    b) If you have extreme quantity then:
    - Contact Microchip Sales to find out when PIC going out of production (May be years)
    - Contact Microchip Support to find out if possible to use EF chip with "minor changes" to your code (Maybe contract work). 
     
     
    #8
    NKurzman
    A Guy on the Net
    • Total Posts : 17709
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: Adding new processor type to Harmony v1? 2019/08/06 10:24:58 (permalink)
    0
    The PIC16F877 is also not recommended for new designs.  They are not going anywhere any time soon.  But it looks like the OP wants to add something that the EC, with is record number of bugs, cant do..
     
    The First Issue with using V1.03 on an EF is the Compiler will need to be updated.  That alone will cause issues. The Clock maybe the same (SYS_CLK_Initialize()). But, the SYS_DEVCON_PerformanceConfig() would need to be checked. The Harmony PLIB will be very unhappy with the unknown Chip. and there maybe some register changes.  the FP Unit would need to be disabled since the extra registers would not be handled.  The A/D is completely different.( And actually works on the EF). It could take a week to move from 1.03 to 1.11.  But then the Change in PIC EC to EF would be easy.
    They could follow my old posts as a guide.  Since many libraries did not work in V1.03 I assume they were nor used. Most of the PLIB stuf did not change.
     
     
    #9
    mlp
    boots too small
    • Total Posts : 794
    • Reward points : 0
    • Joined: 2012/09/10 15:12:07
    • Location: previously Microchip XC8 team
    • Status: offline
    Re: Adding new processor type to Harmony v1? 2019/08/13 15:10:23 (permalink)
    5 (1)
    Paul PortSol
    - Contact Microchip Sales to find out when PIC going out of production (May be years)
     

    If you're willing to pay enough, "going out of production" may be "never". Sales will tell you how much "enough" is.
    As far as I'm aware, Microchip still has reticules (masks) for every MCU they've ever made and spinning up a fresh batch simply requires wafers and the other raw materials, plus slots in the production pipeline.

    Mark (this opinion available for hire)
    #10
    LostInSpace
    Super Member
    • Total Posts : 263
    • Reward points : 0
    • Joined: 2016/03/11 22:47:59
    • Location: 0
    • Status: offline
    Re: Adding new processor type to Harmony v1? 2019/08/13 20:56:06 (permalink)
    #11
    Jump to:
    © 2019 APG vNext Commercial Version 4.5