• AVR Freaks

Hot!With or without Harmony?

Author
SergioR
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2019/01/01 04:00:30
  • Location: Italy
  • Status: offline
2019/01/27 11:10:58 (permalink)
0

With or without Harmony?

Hi,
I'm using since really few months the PIC32MZ microcontroller.
I'm using it without Harmony, maybe for my old style to want to know what I'm doing, but this approach maybe is too limitative.
Several programmers and examples are in Harmony and it seems speed up a lot the programming.

So please, what is your opinion?
Better continue in my old style of programming?
Is it hard to change the mindset to this new approach?
In case, what is the best way to learn Harmony? Some book to suggest?
Thanks to all of you.

Have a good day


#1

5 Replies Related Threads

    Michael.W.Mann
    Super Member
    • Total Posts : 323
    • Reward points : 0
    • Joined: 2011/01/24 09:58:24
    • Location: Chandler, Arizona
    • Status: offline
    Re: With or without Harmony? 2019/01/28 09:07:04 (permalink)
    0
    There is no reason you can't mix Harmony and custom code in the same project.    Use Harmony when it helps and when it doesn't, stop using it.  I recommend you find a Harmony example or demo that is closest to your end application and make it the basis for further development.
     
    Two hints: 
    1) Put // CUSTOM CODE - DO NOT DELETE ... // END OF CUSTOM CODE around your additions to Harmony so that you don't accidentally delete something during code regeneration.
    2) Always work under configuration management so that you can get back to good code in the case you do delete something by accident.

    Michael W. Mann
    Principal Applications Engineer
    MCU32 Applications, Microchip
    #2
    JPortici
    Super Member
    • Total Posts : 668
    • Reward points : 0
    • Joined: 2012/11/17 06:27:45
    • Location: Grappaland
    • Status: online
    Re: With or without Harmony? 2019/01/28 10:29:59 (permalink)
    0
    SergioR
    So please, what is your opinion?

    Not an harmony expert by any chance but in my experience..
    Better continue in my old style of programming?

    You can! As long as you can replicate everyhing that is done by the system init function.. you don't need harmony for anything. Also, you'll have much more flexibility as harmony can't for example handle power down modes or changes in the system clock (Unless it's been added in 3.0)
    Is it hard to change the mindset to this new approach?

    Not harder than using any framework or hal. You have to learn both the mcu and the framework
    In case, what is the best way to learn Harmony? Some book to suggest?

    I found the tutorials in the documentation to be very helpful in how to set up a basic project with all the diagnostics that harmony can give.
     
    Beware if you use USB! The stack for 32MZ and 32MK in harmony v2.06 doesn't work properly. You should use v2.04 (and not use the 32MK). PIC32MX seems not to be affected by this.
    At the current state of things harmony V3 is out in beta state but it only supports selected ATSAM devices :(
    #3
    SergioR
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2019/01/01 04:00:30
    • Location: Italy
    • Status: offline
    Re: With or without Harmony? 2019/01/28 13:44:36 (permalink)
    0
    Thanks very much JPortici & Michael,
    I really appreciate your comments.
    I will take care about your answers.
    Have a good day and fun programming…
    Ciao
    Sergio
    #4
    NKurzman
    A Guy on the Net
    • Total Posts : 17237
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: With or without Harmony? 2019/01/28 16:29:15 (permalink)
    0
    How Many Angles can dance on the head of a Pin?
    What Chip features are you using? USB? Ethernet? Graphics? RTOS?
    As Pointed out Harmony is Not required.  A skeleton Harmony Project can be useful.  Especially if you want to use it'e PILB. Some features of Harmony are helpful.  Others not so much. A few worse.
    There are two Harmony Books.  so search the Forum or amazon for "Harmony Books"
     
    #5
    hblmerleg
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2019/01/19 05:07:50
    • Location: 0
    • Status: offline
    Re: With or without Harmony? 2019/02/01 04:51:32 (permalink)
    0
    It's hard to debug the hamony code. That's why I don't use it. It's so complex even for the smallest things.
    If you don't use it you will learn more about how things working.
    #6
    Jump to:
    © 2019 APG vNext Commercial Version 4.5