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) Compile error on upgrade (Read 8104 times)
Robert Keith
Newbies
*
Offline


Posts: 4
Location: Eindhoven, Netherlands
Joined: Feb 14th, 2017
Compile error on upgrade
Feb 14th, 2017 at 11:53pm
Print Post  
Hi,

I am having the same problem mentioned by another user but I have not been able to solve it.

Everything was working OK until I noticed a message to upgrade Visual Micro today. I ran the upgrade and now my project will not compile. I get the message: 

Compiling debug version of 'LogExp2' for 'Adafruit Feather M0 (Native USB Port)'
     Preprocess: "{runtime.tools.arm-none-eabi-gcc.path}\bin\arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10801 -DARDUINO_SAMD_FEATHER_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_MANUFACTURER="\"Adafruit\"" -DUSB_PRODUCT="\"Feather M0\"" "-I/CMSIS/Include/" "-I/Device/ATMEL/" 3\cores\arduino" 3\variants\arduino_zero" ruit_feather_m0\Debug\LogExp2.cpp" -o "nul"
   Object reference not set to an instance of an object



     An error was encountered during the 'Deep Search' library discovery process.
Debug build failed for project 'LogExp2'

I have tried uninstalling and reinstalling the board support package and Visual Micro itself. I have verified that the files are in their respective folders.

Any help would be much appreciated.

Rob

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error on upgrade
Reply #1 - Feb 15th, 2017 at 12:01am
Print Post  
Hi,

Can you please open the arduino ide, switch on "file>preferences>compile verbose", then build and email the output as a .txt file to info[at]visualmicro.com

Also confirm which version of the arduino samd (zero) platform you have installed (if any)

Thanks

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error on upgrade
Reply #2 - Feb 16th, 2017 at 1:24am
Print Post  
Hopefully this is resolved in 1702.15 sp1 just published.
  
Back to top
IP Logged
 
Robert Keith
Newbies
*
Offline


Posts: 4
Location: Eindhoven, Netherlands
Joined: Feb 14th, 2017
Re: Compile error on upgrade
Reply #3 - Feb 16th, 2017 at 6:17pm
Print Post  
I installed the updated version and the result is the same.

Is it likely to help if I remove Visual Micro, the Arduino IDE and the board support packages, then re-install them all in order?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error on upgrade
Reply #4 - Feb 16th, 2017 at 6:22pm
Print Post  
I am sure that removing the adafruit package from board manager and reinstalling will resolve (use visual micro board manager)

But before doing so please switch on file>preferences>compiler verbose in the arduino ide, then build and email the output as a .txt file to info[at]visualmicro.com

I would like to see which version of board support package is installed and where arduino is finding the tool chain. The verbose output will show this to me.

Thanks
  
Back to top
IP Logged
 
Robert Keith
Newbies
*
Offline


Posts: 4
Location: Eindhoven, Netherlands
Joined: Feb 14th, 2017
Re: Compile error on upgrade
Reply #5 - Feb 16th, 2017 at 7:36pm
Print Post  
I had already tried removing and reinstalling the Adafruit package. I did it a number of times.

I have no trouble compiling with the Arduino IDE. I am sending the verbose results by email.

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error on upgrade
Reply #6 - Feb 16th, 2017 at 9:58pm
Print Post  
Thanks

I can see that your downloaded hardware has been installed into C:\Users\[your name]\Documents\ArduinoData. (Look at the output from arduino ide that you emailed, it shows ArduinoData is being used)

This is a new location for arduino and might be related to starting of with the windows store version which is also new and causing some support issues. The windows store version doesn't provide permissions for visual micro to see the ide.   visual micro only needs it for help/references and examples so during the next week or so we will release a version that can work with or without the arduino ide.

We will add support for C:\Users\[your name]\Documents\ArduinoData over the next few days then it will work with your configuration.

Alternatively you can remove C:\Users\[your name]\Documents\ArduinoData and then use the visual micro platform explorer > board manager to install the hardware. (Use the Rescan button after hardware has been downloaded and installed or restart the ide)

Visual micro will install the hardware into C:\Users\[your name]\AppData\Local\Arduino15 which is the main place the arduino ide has always used so it will also be happy using the location.

I have to look to see if there other new locations other than ArduinoData so the next release can cater for all.

You also mention in your email that you upgraded to the standard arduino ide from the store version. Can you be clear about the sequence of events. Visual micro would not be looking at the ArduinoData in previous versions unless you have added it as the "contributions path" in tools options, but as a new user I suspect this is not the case.
« Last Edit: Feb 16th, 2017 at 10:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error on upgrade
Reply #7 - Feb 16th, 2017 at 10:29pm
Print Post  
Okay I found that in November last year Arduino had to add support for the ArduinoData folder because the normal folder isn't available to windows store apps due to permissions problems

https://github.com/arduino/Arduino/pull/5506

From the put put and images in your emails I can see you have two sets of hardware installed. So please delete the documents\arduinoData folder. Then restart all ides if open and use either the standard arduino ide or visual micro to install your hardware (if it doesn;t work)

Hopefully we at least remove a whole load of confusions and can then see what issues might remain after that.

The hardware you are using tests ok for me so we should have too much issue.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error on upgrade
Reply #8 - Feb 17th, 2017 at 12:16am
Print Post  
Version 1702.16 or visual micro is here https://1drv.ms/u/s!AsT00oFsGAmRj8RXjwppn10kZdBOzQ

It supports the ArduinoData folder as an alternative to the standard downloaded hardware locations and should give the same compilation that you are seeing in the arduino ide.

I haven't had a change to try it but it's a simple addition so will hopefully resolve the issues and prevent the confusion.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error on upgrade
Reply #9 - Feb 17th, 2017 at 1:15pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Robert Keith
Newbies
*
Offline


Posts: 4
Location: Eindhoven, Netherlands
Joined: Feb 14th, 2017
Re: Compile error on upgrade
Reply #10 - Feb 18th, 2017 at 2:38am
Print Post  
I fixed it:

1. Removed Visual Micro from VS2015

2. Removed the folders containing Arduino IDE, Arduino Data and packages. The packages were in two places.

3. Downloaded and installed the Arduino IDE windows installer.

4. Added the board packages for SAMD and the Adafruit Feather M0.

5. Verified that the sketch compiles.

6. Installed Visual Micro from the Extensions and Updates windows within Visual Studio.

7. Using the Configuration Manager (which is well hidden) entered the sketch location (in Dropbox this time) and the Adafruit board URL.

8. Opened the Visual Micro Explorer and found that the SAMD and Adafruit packages were already on the list.

9. Opened the sketch in Visual Studio.

10. Selected the Feather M0 board and compiled successfully.

I suspected that my messy installation history was causing the problem.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error on upgrade
Reply #11 - Feb 19th, 2017 at 12:05am
Print Post  
Thanks for the great info.

There is a new release of visual micro due shortly which caters for "messy installs" much better. It's easy to end up with various tools versions so many others would run into the same issues.

The configuration manager is in the board manager documentation but if you scroll up in the Board Manager you will find the auto-discovery node which will automatically include all common packages such as adafruit. 

Clicking a node under discovery automatically adds the json index file avoiding the need to visit the configuration manager dialog.

Thanks again


edit: There is a link to the new 1702.18 release in the release notes

« Last Edit: Feb 19th, 2017 at 12:30am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint