Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) MPIDE not working in VS2010 (Read 10423 times)
Peter Morgenthaler
Newbies
*
Offline


Posts: 3
Location: Adelaide, Australia
Joined: Jul 17th, 2013
MPIDE not working in VS2010
Jan 29th, 2014 at 9:57pm
Print Post  
Hi, I have installed 1402.26. I have setup the path to the MPIDE as c:\data\MPIDE-2013 and the sketch folder to c:\data\Programming\source\UNO32\

Open the project fine in VS. Can select the UNO32 board however when I go to compile it complains about not finding the SWAT_UNO32.pde file although the vs project has the file there.

I have confirmed that the same code base compiles in the MPIDE for UNO32.

Suggestions?

Compiling 'SWAT_UNO32' for 'chipKIT UNO32'
SWAT_UNO32.pde:No such file or directory
:compilation terminated.
NetworkProfile.x:In file included from
HardwareProfile.x:from
HardwareProfile.h:from
TCPIP.h:from
ARP.c:from
Max32-MRF24WG.x:In function 'DNETcKInitNetworkHardware'
Max32-MRF24WG.x:60:9: error: '__PORTGbits_t' has no member named 'RG1'
Max32-MRF24WG.x:61:9: error: '__TRISGbits_t' has no member named 'TRISG1'
Max32-MRF24WG.x:63:9: error: 'LATAbits' undeclared (first use in this function)
Max32-MRF24WG.x:each undeclared identifier is reported only once for each function it appears in
Max32-MRF24WG.x:64:9: error: 'TRISAbits' undeclared (first use in this function)
Max32-MRF24WG.x:70:9: error: '__TRISEbits_t' has no member named 'TRISE8'
NetworkProfile.x:In file included from
HardwareProfile.x:from
HardwareProfile.h:from
TCPIP.h:from
Delay.c:from
Etc etc
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MPIDE not working in VS2010
Reply #1 - Jan 29th, 2014 at 10:42pm
Print Post  
Thanks for the post.

That looks like Visual Micro isn't finding a library or some include file. Can you please zip and email the sketch to info [at] visualmicro.com and also confirm if you have installed any custom libraries and where they are installed? 

In Visual Micro when you click "File>Open Sketch" what folder appears?
In MpIde when you click "File>Open Sketch" what folder appears?

Please include the url to this thread in your email.

Thanks very much
  
Back to top
IP Logged
 
Peter Morgenthaler
Newbies
*
Offline


Posts: 3
Location: Adelaide, Australia
Joined: Jul 17th, 2013
Re: MPIDE not working in VS2010
Reply #2 - Jan 29th, 2014 at 10:43pm
Print Post  
Update. I specified the sketchbook location wrong. 
The issue I have is how to include the libraries to be included.

The current structure is

base dir
       libraries dir
           lib1
           lib2
       source dir
         cpp/h/pde files

This structure works in the MPIDE as it automatically looks for its libs one level up from the source dir (base dir) to find any extra libs that are not included with the MPIDE install.

This works but is quite inflexible from a source control point of view. What would be great if as part of setting up the MPIDE configuration is if you can specify include dirs to add one or more library locations.. probably delimited list or graphic array to make it look pretty.

Once other big improvement would be on the configuration you have a pull down.. but a browse button would make life a lot better.

Thanks

Peter
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MPIDE not working in VS2010
Reply #3 - Jan 29th, 2014 at 10:53pm
Print Post  
Good news. Interesting about the lib locations. 

I didn't realize it looks above the sketch folder for libs. 

You can place copies of the libraries in sketchbookfolder/libraries and click "Tools>Visual Micro>Reload Tool chains" or re-start the Ide. Or you can move them to below mpide/libraries where both Visual Micro and MpIde will find them.

Quote:
What would be great if as part of setting up the MPIDE configuration is if you can specify include dirs to add one or more library locations.. probably delimited list or graphic array to make it look pretty.

Once other big improvement would be on the configuration you have a pull down.. but a browse button would make life a lot better.


Yes good points, both of these things are under review along with my personal annoyance of the lack of recently open sketch files (unless you open them using standard Atmel commands)

A more accessible UI generally but optionally so that Vs Pro users who don't do much with Arduino don't get too much clutter.
« Last Edit: Jan 29th, 2014 at 10:55pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Peter Morgenthaler
Newbies
*
Offline


Posts: 3
Location: Adelaide, Australia
Joined: Jul 17th, 2013
Re: MPIDE not working in VS2010
Reply #4 - Jan 30th, 2014 at 12:17am
Print Post  
Hi Tim,

I have moved the libs into the libraries folder under the source and reloaded the tool chain etc but I can not get VS to include the files in the libs. Looking at the project the libraries do not get added to the project.. but not sure if that is required.. depends on how you go looking for libs and getting the libs compiled. I have sent you an email with the source I am trying to build (minus doco etc to shrink size)

Thanks for you help

Peter
« Last Edit: Jan 30th, 2014 at 2:21am by Peter Morgenthaler »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MPIDE not working in VS2010
Reply #5 - Jan 30th, 2014 at 11:06pm
Print Post  
Hi Peter,

Thanks so much for sending the sketch it was a great test. It's now fixed, I am going to look at a couple of other things for some other users then I hope to post a new release in a few hours.

The errors happened for files in a libraries \utility sub folder but showed up some problems with the definitions in the visual micro platform.txt that is used to tell the compiler what to do. I think the original definitions were tested using a Mega/Max and the Uno has some overrides that other boards don't have.

There is now less hard coded stuff in the mpide platform.txt and Visual Micro now supports MpIde syntax of two semi colons for specifying compilers switches. ie: -some1::-some2.

There were a few other problems. The version number in the mpide version.txt included some additional text that prevented Visual Micro from finding a valid version number. So it assumed 101 which is the version number of Arduino 1.0.1. Some of the libraries you are using are designed for either new Arduino (since 1.0) which #includes "Arduino.h" or old Arduino (0022,0023) of which #includes "WProgram.h". Mpide uses old Arduino so the libraries need to be passed -DARDUINO=23 during compile.

In terms of library locations. Visual Micro is finding the same libraries that Mpide finds. You can see them if you click the Project in the solution explorer then on the top menu "Project>Import Sketch Library". Libraries in documents\arduino\libraries will appear on the user menu, and other ones found below mpide in various locations will appear on the Core menu. This is working in the current version of visual micro.

I wrongly thought that MpIde defaulted to a sketchBookFolder of mydocuments\mpide. I notice Mpide uses mydocuments\arduino by default. So it's possible that user/customer libraries won't of displayed in Visual Micro until you specified the optional sketch book folder in the Ide locations dialog. I expect this causes the confusion of user libs not being found.

Thanks again, it was great to really give ChipKit an in-depth test!
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MPIDE not working in VS2010
Reply #6 - Jan 31st, 2014 at 4:41am
Print Post  
There is a new release, pic32 should work much better now. I took a few extra hours looking into a few other things for Mpide. You should be able to goto definition to some quite low level pic32 code.

With the project open, you will need to click "Build>Clean Solution" before compiling with the new version. This is because some Visual Micro compiler files will be cached with the wrong build params so the compile would still fail or be wrong (one of the bugs from the current official release)

The beta is here 1401.31
https://visualmicro.codeplex.com/releases/view/106554

Thanks
« Last Edit: Jan 31st, 2014 at 4:42am by Tim@Visual Micro »  
Back to top
IP Logged
 
Denis632
Newbies
*
Offline


Posts: 5
Location: Montreal, Canada
Joined: Feb 26th, 2014
Re: MPIDE not working in VS2010
Reply #7 - Feb 26th, 2014 at 10:47pm
Print Post  
Hello,

I am running:

-Windows7
-Visual Studio 2010 Pro
-Visual micro :Jan 31th 2014 - Official release for MPIDE. 
- MPIDE -0023-windows-20130715

I did everything that was explain previously, I got it to work perfectly on MPIDE and ChipKit UNO32 for blink.pde just to prove that it worked. Then I tried "WiFiTCPEchoServer.pde" from Chipkit and I get the same error as before the upgrade. It works fine if I select max32 instead of UNO32.

Thanks for your help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MPIDE not working in VS2010
Reply #8 - Feb 26th, 2014 at 11:00pm
Print Post  
Hi Denis,

Sorry you are having a problem. I just opened a copy of the WiFiTCPEchoServer.pde example from the DWIFIcK library and can compile without error for either uno32 or max32. 

Is it the DWIFIcK you are using?

This thread reported a compiler error as follows:-

Quote:
Compiling 'SWAT_UNO32' for 'chipKIT UNO32'
SWAT_UNO32.pde:No such file or directory
:compilation terminated.
NetworkProfile.x:In file included from
HardwareProfile.x:from
HardwareProfile.h:from
TCPIP.h:from
ARP.c:from
Max32-MRF24WG.x:In function 'DNETcKInitNetworkHardware'
Max32-MRF24WG.x:60:9: error: '__PORTGbits_t' has no member named 'RG1'
Max32-MRF24WG.x:61:9: error: '__TRISGbits_t' has no member named 'TRISG1'
Max32-MRF24WG.x:63:9: error: 'LATAbits' undeclared (first use in this function)
Max32-MRF24WG.x:each undeclared identifier is reported only once for each function it appears in
Max32-MRF24WG.x:64:9: error: 'TRISAbits' undeclared (first use in this function)
Max32-MRF24WG.x:70:9: error: '__TRISEbits_t' has no member named 'TRISE8'
NetworkProfile.x:In file included from
HardwareProfile.x:from
HardwareProfile.h:from
TCPIP.h:from
Delay.c:from
Etc etc


Is this the error you are getting or are you getting a different error? 

Post the error please.

Hope to hear more. 

Thanks
« Last Edit: Feb 26th, 2014 at 11:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Denis632
Newbies
*
Offline


Posts: 5
Location: Montreal, Canada
Joined: Feb 26th, 2014
Re: MPIDE not working in VS2010
Reply #9 - Feb 26th, 2014 at 11:30pm
Print Post  
Hi Tim,

This is exactly the error I am getting. Sorry I'm new on forums, I'm not very familiar on how to post files or listing.

Yes I am using DWIFIcK.

Thanks

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MPIDE not working in VS2010
Reply #10 - Feb 27th, 2014 at 12:10am
Print Post  
Thanks. No probs. Sounds like the upgrade hasn't gone on properly. 

Please close the ide, run the install from the beta page and click "Remove", then run again and click install.

Thanks
« Last Edit: Feb 27th, 2014 at 12:12am by Tim@Visual Micro »  
Back to top
IP Logged
 
Denis632
Newbies
*
Offline


Posts: 5
Location: Montreal, Canada
Joined: Feb 26th, 2014
Re: MPIDE not working in VS2010
Reply #11 - Feb 27th, 2014 at 12:51am
Print Post  
Tim,

Thanks a lot, everything is working fine. I guess there is a parsing message at the bottom, and the first time I did not wait for that to be all done. 

Thanks again

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MPIDE not working in VS2010
Reply #12 - Feb 27th, 2014 at 12:58am
Print Post  
Great thanks for confirming the release works for ChipKIT. I hope it is now solid as a rock, if not then please open a new thread. Thanks!
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint