• AVR Freaks

Helpful ReplyHot!"The selected harmony path is invalid" ????

Author
jcbryant
New Member
  • Total Posts : 13
  • Reward points : 0
  • Joined: 2011/07/07 08:30:21
  • Location: 0
  • Status: offline
2016/04/24 10:45:16 (permalink)
0

"The selected harmony path is invalid" ????

I'm trying to set up for adding Harmony files to an existing project (created as per the tutorial) and have selected Tools>Embedded>Harmony Configurator.
 
This gives me a pop-up saying that the active configuration in incompatible with the MPLAB Harmony Configurator and asking me to select the "Harmony Path".  This would seem simple enough but...
 
Browsing to "C:\microchip\harmony\v1_07_10"  (which has the same general shape as the path in the help material and which is in fact where Harmony is installed on my machine) doesn't work.  I get "The selected harmony path is invalid".  The same thing happens if I try to create a new project and select  "Microchip Embedded/32-bit MPLAB Harmony Project".
 
Can anybody save me from giving up in frustration?
 
 
 
 
#1
NKurzman
A Guy on the Net
  • Total Posts : 18282
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: "The selected harmony path is invalid" ???? 2016/04/24 11:35:36 (permalink)
0
Is it an actual Harmony install?
If not they are looking for some stupid file in one of the folders that they use as a key.
It may be in one of my old threads,
 
#2
jcbryant
New Member
  • Total Posts : 13
  • Reward points : 0
  • Joined: 2011/07/07 08:30:21
  • Location: 0
  • Status: offline
Re: "The selected harmony path is invalid" ???? 2016/04/24 14:26:17 (permalink)
0
Yes it is.  I executed the Harmony installer and the v1_07_01 folder includes a read_me that says
 
"Welcome to the MPLAB Harmony Integrated Software Framework!
Your installation is almost complete. Only a few steps remain."
 
The rest of the file goes on to describe various ways of installing the MPLAB Harmony Configurator (something I've already successfully done), but there is no mention of anything further that I have do do in order to somehow make Harmony installation active or recognizable.  If they're looking for a magic file it should be there, and if it isn't you'd think they could come up with a more meaningful and helpful error message (i.e. you need to do .... to prepare Harmony for use).
#3
RISC
Super Member
  • Total Posts : 5381
  • Reward points : 0
  • Status: offline
Re: "The selected harmony path is invalid" ???? 2016/04/24 15:33:37 (permalink)
0
Hi,
Have you installed the MHC plugin ?
which version of the XC32 compiler do you use (with Harmony v1.07.01 you should use xc32 v1.40)
Regards
 
#4
jcbryant
New Member
  • Total Posts : 13
  • Reward points : 0
  • Joined: 2011/07/07 08:30:21
  • Location: 0
  • Status: offline
Re: "The selected harmony path is invalid" ???? 2016/04/24 17:58:42 (permalink)
0
Yes, the MHC plug-in has successfully been installed.
 
It's hard to imagine what the compiler version can have to do with this ....
#5
NKurzman
A Guy on the Net
  • Total Posts : 18282
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: "The selected harmony path is invalid" ???? 2016/04/24 18:40:34 (permalink)
0
That being the case I am not quite sure why it can not recognize it.
Is it installed on the Hard drive or a network drive.
#6
jcbryant
New Member
  • Total Posts : 13
  • Reward points : 0
  • Joined: 2011/07/07 08:30:21
  • Location: 0
  • Status: offline
Re: "The selected harmony path is invalid" ???? 2016/04/25 06:33:32 (permalink)
0
It is installed on the hard drive.
 
I've now at least got a theory.  IIRC, the plug-in that I installed came as part of the MPLAB IDE download.  No setup was required - I simply selected it from the list of available plug-ins.  Perhaps it is version incompatible with the Harmony I installed (although ultimately both my IDE and Harmony are current versions) and hence doesn't recognize it.  On this thinking I should uninstall the plug-in and install the plug-in from within the Harmony installation.
 
Does this seem credible?
#7
NKurzman
A Guy on the Net
  • Total Posts : 18282
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: "The selected harmony path is invalid" ???? 2016/04/25 06:46:27 (permalink)
0
The plug in should be V 1.07.16
But I doubt that is the issue.
Did you try un install and re install?
#8
jcbryant
New Member
  • Total Posts : 13
  • Reward points : 0
  • Joined: 2011/07/07 08:30:21
  • Location: 0
  • Status: offline
Re: "The selected harmony path is invalid" ???? 2016/04/25 08:11:37 (permalink)
0
The plug in shows up as "version 1.0.7.16".   If the extra dot is a typo it is "built-in"  and not mine.
The Harmony folder is C:\microchip\harmony\v1_07_01.
 
Basically the issue is that this version of the plug-in will not accept "C:\microchip\harmony\v1_07_01" as the "harmony path".  No reason is given ($%^*!###) but since the path itself is valid (i.e. leads to a folder that exists) one has to assume that the plugin is expecting to find files that don't exist. Just what these might be, or how I'm supposed to have created them, is completely beyond me.....
 
I downloaded the current IDE and the current Harmony onto a machine which did not have previous versions of either installed.  Then I ran both installers, installed the Harmony plug-in into the IDE, and created a little project by following the tutorial.  And that's it.  Now I'm going nowhere, tearing my hair out, and thinking that if this is "productivity" I'd just as soon go back to less advanced systems. :)
 
Just what are you suggesting I uninstall and reinstall?  The plug in?  Everything?
post edited by jcbryant - 2016/04/25 08:33:51
#9
jcbryant
New Member
  • Total Posts : 13
  • Reward points : 0
  • Joined: 2011/07/07 08:30:21
  • Location: 0
  • Status: offline
Re: "The selected harmony path is invalid" ???? 2016/04/25 08:40:56 (permalink)
0
I just uninstalled the plugin and had the MPLAB X IDE download and install the newest version.
 
Same version number, same results....
#10
jcbryant
New Member
  • Total Posts : 13
  • Reward points : 0
  • Joined: 2011/07/07 08:30:21
  • Location: 0
  • Status: offline
Solution Found 2016/04/29 09:56:32 (permalink) ☄ Helpfulby sanket.meher111 2018/03/07 03:15:07
4 (1)
Uninstalling Harmony and then reinstalling Harmony solved the problem.
 
After I'd done this the very same path that was previously "invalid" suddenly became acceptable.
 
I can only assume that creating "my first app" within Harmony (as suggested in the tutorial) somehow altered the folder in a way that made it unrecognizable/unacceptable to the plug-in.
 
I'd suggest installing and configuring the plug-in immediately after installing Harmony.
 
#11
Teodor Vasile
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2016/12/20 07:16:32
  • Location: 0
  • Status: offline
Re: Solution Found 2018/01/02 08:10:17 (permalink)
0
I am glad you found a solution.

I am in a similar situation you were 2 years ago, but I don't see any solution so far.
The project I am currently working on was started back in 2016 using Harmony Configurator with Harmony v1.07.01 and the MPLAB X IDE of that time.
 
Currently, I want to do some changes in the project using the MHC but this can't be opened, I do get the same error you have mentioned: "Unable to determine the location of the framework from which to load the MPLAB Harmony Configurator utility. Please specify a valid Harmony framework path. <Textbox> C:\microchip\harmony\v1_07_01".
 
I do have Harmony v1.07.01 installed at the above-required location.
My current project uses Harmony v1.10, MPLAB X IDE v3.65 and MPLAB Harmony Configurator v2.0.4.0 (was the only version I found in the Plugins list, and it says that it must be used only with MPLAB Harmony Framework version 2.xx only). Does this mean that a project created with an older MHC and older Harmony Version than 2.00, can't use the MHC of higher versions anymore?
 
Does anyone have some thoughts on this, of how could I open the MHC?
#12
YG
Starting Member
  • Total Posts : 43
  • Reward points : 0
  • Joined: 2012/08/23 22:15:56
  • Location: Singapore
  • Status: offline
Re: Solution Found 2018/03/21 19:33:40 (permalink)
0
I am Using IDE v4.15,
MPLAB Harmony Configurator Version: 2.0.5.2
I tried uninstall and installing Harmony Framework v2.05.01 does not fix the problem.
I get this exception:

java.lang.IllegalArgumentException: 'other' has different root
at sun.nio.fs.WindowsPath.relativize(WindowsPath.java:392)
at sun.nio.fs.WindowsPath.relativize(WindowsPath.java:44)
at com.microchip.mplab.modules.mhc.environment.WizardEnvironment.relativeToProject(WizardEnvironment.java:204)
at com.microchip.mplab.modules.mhc.dialog.FindHarmonyDialog.okButtonActionPerformed(FindHarmonyDialog.java:322)
at com.microchip.mplab.modules.mhc.dialog.FindHarmonyDialog.access$300(FindHarmonyDialog.java:25)
at com.microchip.mplab.modules.mhc.dialog.FindHarmonyDialog$4.actionPerformed(FindHarmonyDialog.java:230)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
at java.awt.Dialog.show(Dialog.java:1084)
at java.awt.Component.show(Component.java:1671)
at java.awt.Component.setVisible(Component.java:1623)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at com.microchip.mplab.modules.mhc.MHCLoader.findHarmony(MHCLoader.java:232)
at com.microchip.mplab.modules.mhc.MHCLoader.loadMHCJar(MHCLoader.java:247)
at com.microchip.mplab.modules.mhc.MHCLoader.loadMHCCore(MHCLoader.java:373)
at com.microchip.mplab.modules.mhc.MHCLoader.launchMHC(MHCLoader.java:45)
at com.microchip.mplab.modules.mhc.MHCOpenActionPerformed.actionPerformed(MHCOpenActionPerformed.java:51)
at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:199)
at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:202)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
 

 
-YG
#13
YG
Starting Member
  • Total Posts : 43
  • Reward points : 0
  • Joined: 2012/08/23 22:15:56
  • Location: Singapore
  • Status: offline
Re: Solution Found 2018/03/21 23:27:20 (permalink)
5 (1)
Resolved by manually add text file to C:\Users\user1\.mhc\mhc.cfg with the following text:
 
 
HarmonyPath=c:\users\user1\microchip\harmony\v2_05_01
LogLevel=USER

 
-YG
#14
ALMNET
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2017/07/26 12:33:14
  • Location: 0
  • Status: offline
Re: Solution Found 2018/04/06 07:37:42 (permalink) ☄ Helpfulby YG 2018/04/06 18:43:22
5 (1)
YG
Resolved by manually add text file to C:\Users\user1\.mhc\mhc.cfg with the following text:
 
 
HarmonyPath=c:\users\user1\microchip\harmony\v2_05_01
LogLevel=USER


Thanks YG, like most of the people on this post, i was having the same problem, In my case i simply changed Harmony Path to C:\microchip\harmony\v2_05_01

Greetings!



#15
Witek
Starting Member
  • Total Posts : 34
  • Reward points : 0
  • Joined: 2013/02/14 06:56:33
  • Location: Western Australia
  • Status: offline
Re: Solution Found 2020/01/31 01:12:03 (permalink)
0
That didn't work for me.
I use different versions of harmony for different projets. My MPLAB sometimes gets confused and I can't open the configurator.
I had to change the harmony folder name MPLAB was somehow wrongly pointing to. Then when you try to open the configurator it will ask to provide a valid path.
#16
ric
Super Member
  • Total Posts : 25632
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: Solution Found 2020/01/31 01:58:41 (permalink) ☄ Helpfulby Jim Nickerson 2020/01/31 08:20:59
5 (1)
Witek
I use different versions of harmony for different projets.

That sounds like a recipe for disaster.
You can keep multiple versions of MPLAB installed on the same PC. It would be safer to have only one version of Harmony installed into each iteration of MPLAB.

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#17
Witek
Starting Member
  • Total Posts : 34
  • Reward points : 0
  • Joined: 2013/02/14 06:56:33
  • Location: Western Australia
  • Status: offline
Re: Solution Found 2020/02/02 19:37:19 (permalink)
0
Maybe not a disaster, but as it turns out, it is asking for trouble. Works ok for most of the time though.
 
Thanks for the suggestion, never thought about multiple MPLAB installs. I should give it a go. My worry is that I currently run one instance, and this thing is already not a speed demon. Keeps complaining about running out of memory, trips accasionally, and keeps using the 50% of the processor, all this while only displaying a text file. I suspect that that these issues could multiply.
#18
ibbro
Starting Member
  • Total Posts : 86
  • Reward points : 0
  • Joined: 2015/10/22 07:34:56
  • Location: 0
  • Status: offline
Re: Solution Found 2020/02/08 07:27:35 (permalink)
0
You don't necessarily have to run the multiple versions at the same time, but I do typically run a couple and do end up seeing the speed and memory issues you have run across. Typically closing both mplabs and reopening fixes it for several hours.
There are posts here concerning multiple instances and doc's in the MPLAB reference manuals. Essentially just create a new shortcut to MPLAB and add "-userdir c:\..\..\anyfolder" and you can run a new instance. I've found this the only way to have multiple harmony versions installed without great pain.
#19
Jump to:
© 2020 APG vNext Commercial Version 4.5