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) Arduino and Energia Intellisense (Read 9690 times)
Developer_BT
Newbies
*
Offline


Posts: 5
Joined: Sep 8th, 2013
Arduino and Energia Intellisense
Sep 8th, 2013 at 9:39pm
Print Post  
Hello,

This version has a few bugs:

1.For Visual Studio 2012 Stellaris Lancpad not working
Output: Error compiling 
For Visual Studio 2010 functioning properly.

2. The MSP430 is building successfully but does not work programming and debugging for both VS2010 and VS2012.

3. For all platforms (Arduino, MSP430 and Stellaris) is displayed errors list for intellisense for both VS2010 and VS2012.

Best regards.
« Last Edit: Sep 9th, 2013 at 7:58pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Arduino and Energia Intellisense
Reply #1 - Sep 8th, 2013 at 10:51pm
Print Post  
Hi,

Thanks for supporting this project with feed back and discussion. They are all good points I will try to address them one by one

Quote:
1.For Visual Studio 2012 Stellaris Lancpad not working
Output: Error compiling 
For Visual Studio 2010 functioning properly.


I agree this is something that is being looked into. Our code is the same for both platforms the only difference is that 2010 is compiled for .net4 and 2012 for .net4.5

A general point is that support for all non-arduino applications was only introduced in the last few weeks and is in beta. This probably needs to be made more obvious on a few more screens.

We hope to stabilize an out-of-the-box solution for all versions of VS during the next few updates for Energia and also for Maple.

In the meantime, if you encounter continued issues, the Energia Ide has a "file>preferences>external editor" option (should you want to code in VS and compile upload via the other ide)

If you want to investigate a solution or possible reason for the vs 2012 issue then please switch on tools>options>visual micro>compiler>verbose so that you can validate the commands that Visual Micro is using.

Quote:
2. The MSP430 is building successfully but does not work programming and debugging for both VS2010 and VS2012.


Does the msp430 work if you upload using "Debug>Start without debugging"?

If so then please set "Tools>options>visual micro>always use debugger" to false. I will check, it sounds like a config setting is not being applied that would auto disable debug for msp430.

Quote:
3. For all platforms (Arduino, MSP430 and Stellaris) is displayed errors list for intellisense for both VS2010 and VS2012.


Before I answer this would you please confirm if intellisense suggestions are working correctly. For example select Arduino and the Uno then type "Serial." into the code. Do you see a list of Arduino Serial class suggestions such as "available()" and "read()"?

If do see those suggestions then if you type "Seria" (then press CTRL+J in VS) do you see an Arduino intellisense list that contains a single "Serial" port class? If so, then change the board using the tool bar or tools menu to "Arduino mega 2560". When you type "Seria" do you see many serial ports in the list "Serial1, Serial2, Serial2" etc?

Does "GoTo definition" take you to the correct core definitions such as hardwareSerial.cpp for the Serial object?

If the answer to all the above is "yes this is how it works for you" then we can assume that the intellisense errors list can be ignored and closed. We use/hijack the c++ engine of Visual Studio and it doesn't like some code especially in the behind the scenes core. I don't think we will ever get 100% intellisense in Visual Studio. (maybe with a new way of working that we are considering)

Having said that there are things we can do to improve this using the multi-ide config system of Visual Micro 1309.4 +. 

We have removed all of the hard coded references to manufacturers ide, such as arduino and energia, from Visual Micro. Instead the intellisense and build processes are configured using a customizable system. Now that we have a more flexible system it is going to be easier to experiment with better solution especially when it comes to intellisense.

Diagnostics.

« Last Edit: Sep 9th, 2013 at 7:52pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Developer_BT
Newbies
*
Offline


Posts: 5
Joined: Sep 8th, 2013
Re: Visual Micro 1309.4 Sp2 is now available and fixes all reported 1309.4 issues
Reply #2 - Sep 9th, 2013 at 10:04am
Print Post  
Thanks for the rapid response.

Tim@Visual Micro wrote on Sep 8th, 2013 at 10:51pm:
In the meantime, if you encounter continued issues, the Energia Ide has a "file>preferences>external editor" option (should you want to code in VS and compile upload via the other ide)

If you want to investigate a solution or possible reason for the vs 2012 issue then please switch on tools>options>visual micro>compiler>verbose so that you can validate the commands that Visual Micro is using.


Аppears likely problem with reference to arm-none-eabi-gcc.

When I use VS2012 appears next log:

Compiling 'Stellaris_Test' for 'StellarPad w/ lm4f120h5qr (80MHz)'
Build folder: 120h5qr
SketchLibFolders
/tools/lm4f\arm-none-eabi\include\sys
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\energia-0101E0009-windows\energia-0101E0009/hardware/tools/lm4f/bin/
Sketchbook: file:///D:/Documents%20and%20Settings/My%20Documents/Energia
-eabi-g++" -c -g -Os -w -ffunction-sections -fdata-sections -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -fno-exceptions -fno-rtti -MMD -mcpu=cortex-m4 -DF_CPU=80000000L -DARDUINO=105 -DENERGIA=9 -I"C:\energia-0101E0009-windows\energia-0101E0009\hardware\lm4f\cores\lm4f" pad" \Stellaris_Test.cpp" -o \Stellaris_Test.cpp.o" -DVISUALMICRO_COMPILER_VER=1
Error compiling

Next command that appears in VS2010 is:
-eabi-gcc" -c -g -Os -w -ffunction-sections -fdata-sections -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -fno-exceptions -fno-rtti -MMD -mcpu=cortex-m4 -DF_CPU=80000000L -DARDUINO=105 -DENERGIA=9 -I"C:\energia-0101E0009-windows\energia-0101E0009\hardware\lm4f\cores\lm4f" pad"  -o \itoa.c.o" -DVISUALMICRO_COMPILER_VER=1

Tim@Visual Micro wrote on Sep 8th, 2013 at 10:51pm:
Does the msp430 work if you upload using "Debug>Start without debugging"?


Yes work with using "Debug>Start without debugging" !

3. Yes intellisense suggestions working correctly, has just been shown a list of errors that do not affect operation.
Can be freely apply disable "Show Intellisense error"  Wink
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro 1309.4 Sp2 is now available and fixes all reported 1309.4 issues
Reply #3 - Sep 9th, 2013 at 1:02pm
Print Post  
Hi Thanks for this work.

1)

Maybe the energia gcc needs the working directory to be specified. I had this issue with other engergia functions so will look into this over the next couple of days.

2)

For the next release of visual micro we will set msp430 to not allow usb debug. This will fall back to GDB as an option, but my experience of GDb with msp430 is not good. Maybe no debug for msp430 Smiley

3)

I did not know there was a setting to switch off the intellisense error window? Is this in tools>options?

Thanks again, really appreciated
« Last Edit: Sep 9th, 2013 at 1:03pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Developer_BT
Newbies
*
Offline


Posts: 5
Joined: Sep 8th, 2013
Re: Visual Micro 1309.4 Sp2 is now available and fixes all reported 1309.4 issues
Reply #4 - Sep 9th, 2013 at 1:37pm
Print Post  
Tim@Visual Micro wrote on Sep 9th, 2013 at 1:02pm:
I did not know there was a setting to switch off the intellisense error window? Is this in tools>options?


It is not in the tools>options. Simply right-click on the error window to display the options menu to turn off the intellisense error list. The same solution is for VS2010 and VS2012.

« Last Edit: Sep 9th, 2013 at 1:44pm by Developer_BT »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro 1309.4 Sp2 is now available and fixes all reported 1309.4 issues
Reply #5 - Sep 9th, 2013 at 1:42pm
Print Post  
Oh  Cheesy
  
Back to top
IP Logged
 
Developer_BT
Newbies
*
Offline


Posts: 5
Joined: Sep 8th, 2013
Re: Visual Micro 1309.4 Sp2 is now available and fixes all reported 1309.4 issues
Reply #6 - Sep 9th, 2013 at 1:48pm
Print Post  
Also today I found this tutorial : http://visualgdb.com/tutorials/IntelliSense/
It may be helpful  Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro 1309.4 Sp2 is now available and fixes all reported 1309.4 issues
Reply #7 - Sep 9th, 2013 at 2:00pm
Print Post  
Hi yes this is very useful thanks.

Visual Micro already does some of this but it was a stab in the dark. This article shows why and how so we can improve what we do.

The latest release of Vm can read these "special" intellisense definitions from a txt file for each platform. So we can easily experiment with different definitions for arduiono or energia without needing a new visual micro version.

You will see an intellisense.txt in, for example, "program files/visual micro/visual micro for arduino/micro platforms/arduino 1.0.x". 

If you alter or add an intellisense file then then click "tools>reload toolchains" so that visual micro reloads (or restart ide)

Obviously you only need to look at this if you have time. we will spend time on this over the next few weeks anyway.

Thanks again, I will split this thread to a new "general" forum post with a relevant subject because it is a useful ongoing discussion for all visual micro versions.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro 1309.4 Sp2 is now available and fixes all reported 1309.4 issues
Reply #8 - Sep 9th, 2013 at 2:03pm
Print Post  
ps: If required, in the new thread I can explain how you can create user defined platforms for testing. this will avoid the need to alter the core of visual micro and prevent your changes from being overwritten by the next visual micro upgrade.
  
Back to top
IP Logged
 
Developer_BT
Newbies
*
Offline


Posts: 5
Joined: Sep 8th, 2013
Re: Arduino and Energia Intellisense
Reply #9 - Sep 9th, 2013 at 5:57pm
Print Post  
Thank you very much Tim.

Currently all my platforms when I use are supported with VS2010 or VS2012. 
I have both anyway VS2010/2012 software that I use for Arduino / ENERGIA development and desktop development.

All honors to for this project!
Will continue to contribute to this project.
« Last Edit: Sep 9th, 2013 at 7:52pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint