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
Normal Topic Error compiling core after Atmel Studio 7 upgrade (Read 8126 times)
PeterDollar
Newbies
*
Offline


Posts: 8
Location: Newcastle, NSW, Australia
Joined: Jan 13th, 2016
Error compiling core after Atmel Studio 7 upgrade
Jan 13th, 2016 at 6:17am
Print Post  
Hi there - first post here....

I've been using AS6.2 and Visualmicro for some time and I think it's pretty damn good.

I just upgraded to Atmel Studio 7 from 6.2 and I also upgraded Arduino IDE from 1.6.4 to 1.6.7.

Now a sketch which compiled without error in 6.2 generates the following "error compiling core".  

Can anyone help decipher the following message?  And more importantly, provide some suggestions to fix this problem.  Thanks in advance.

Code
Select All
Compiling 'VacCharger' for 'Arduino Pro or Pro Mini w/ ATmega328 (5V, 16 MHz)'
Build folder: atmega328
Summary: Header=1 Prototypes=20 Imports=2
Additional Defines:
Architecture Tools: {runtime.tools.avr-gcc.path}/bin/
Sketchbook: file:///E:/Users/Peter/Documents/Arduino
Core Include Paths
Include Path 'E:\Users\Peter\Documents\MicroProcessor Stuff\Sketches\Under Development\VacCharger\VacCharger'
Include Path s\arduino'
Include Path ants\eightanaloginputs'
Library Include Paths (1)
Include Path aries\SPI'
Platform Libraries Root Include Paths
Include Path 'D:\Program Files (x86)\Arduino\libraries'
Include Path aries'
Include Path 'E:\Users\Peter\Documents\Arduino\libraries'
Build Core Paths: \arduino
"{runtime.tools.avr-gcc.path}/bin/avr-gcc" -c -g -x assembler-with-cpp -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=167 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I"E:\Users\Peter\Documents\MicroProcessor Stuff\Sketches\Under Development\VacCharger\VacCharger" res\arduino" riants\eightanaloginputs" braries\SPI" -I"D:\Program Files (x86)\Arduino\libraries" braries" -I"C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\vrzdcub3.fhu\Micro Platforms\default\debuggers" -I"E:\Users\Peter\Documents\Arduino\libraries" s\arduino\wiring_pulse.S" -o 28\wiring_pulse.S.o" 
The system cannot find the file specified
	Process: "{runtime.tools.avr-gcc.path}\bin\avr-gcc" -c -g -x assembler-with-cpp -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=167 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I"E:\Users\Peter\Documents\MicroProcessor Stuff\Sketches\Under Development\VacCharger\VacCharger" res\arduino" riants\eightanaloginputs" braries\SPI" -I"D:\Program Files (x86)\Arduino\libraries" braries" -I"C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\vrzdcub3.fhu\Micro Platforms\default\debuggers" -I"E:\Users\Peter\Documents\Arduino\libraries" s\arduino\wiring_pulse.S" -o 28\wiring_pulse.S.o" 
Error compiling core 

  
Back to top
 
IP Logged
 
PeterDollar
Newbies
*
Offline


Posts: 8
Location: Newcastle, NSW, Australia
Joined: Jan 13th, 2016
Re: Error compiling core after Atmel Studio 7 upgrade
Reply #1 - Jan 13th, 2016 at 9:57am
Print Post  
Here's an update....in case it helps anyone figure out what's going on.

I've made some progress (I think), since the original post.

I clicked on Visual Micro -> Visual Micro Explorer and under the Manage Boards tab, I updated Arduino AVR Boards version 1.6.7. 

Now when i try to build my solution, I get the following output....
Code
Select All
Compiling 'VacCharger' for 'Arduino Pro or Pro Mini w/ ATmega328 (5V, 16 MHz)'
Build folder: atmega328
Summary: Header=1 Prototypes=20 Imports=2
Additional Defines:
Architecture Tools: {runtime.tools.avr-gcc.path}/bin/
Sketchbook: file:///E:/Users/Peter/Documents/Arduino
Core Include Paths
Include Path 'E:\Users\Peter\Documents\MicroProcessor Stuff\Sketches\Under Development\VacCharger\VacCharger'
Include Path s\arduino'
Include Path ants\eightanaloginputs'
Library Include Paths (1)
Include Path aries\SPI'
Platform Libraries Root Include Paths
Include Path 'D:\Program Files (x86)\Arduino\libraries'
Include Path aries'
Include Path 'E:\Users\Peter\Documents\Arduino\libraries'
All import libraries will be re-compiled
Build Core Paths: \arduino
System.Exception: Invalid or missing source path during compiler cache
\arduino
   at Visual.Micro.MiroAppAPI.SketchCompiler.CreateFileTimeListXml(String fileType, DirectoryInfo folder, String outputPath)
   at Visual.Micro.MiroAppAPI.SketchCompiler.CreateFileTimeListXml(String fileType, String sPath, String outputPath)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand, Boolean isRebuild)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.OnBeforeCommandEvent(String sGuid, Int32 ID, Object CustomIn, Object CustomOut, Boolean& CancelDefault) 



Looking closely at this output, I notice the file paths specified contain "....arduino\hardware\avr\1.6.9\.....".  When I check the actual contents of my hard drive, I find a folder called 1.6.7, but not one called 1.6.9.

Can anyone tell me what I have to do get AS7 to look in the 1.6.7 folder instead?  Or alternatively how do I 'create' the required 1.6.9 folder?

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling core after Atmel Studio 7 upgrade
Reply #2 - Jan 13th, 2016 at 11:05am
Print Post  
Hi,

Thanks for the message.

New releases for Atmel studio are quite difficult to publish so it's usually behind the Visual Studio version.

You can read on the Visual Micro Gallery for Atmel 7 that only Arduino versions up to and including 1.6.5 are supported. Arduino made another big change for 1.6.6 which hasn't been implemented yet.

You can either use the zip of 1.6.5 from the arduino.cc site to unpack a 1.6.5 Ide for use with Visual Micro or I recommend upgrade to Visual Studio 2015 community edition which is free and more functional.

If you install VS2015 then make sure you tick "Custom Install>C++" during install otherwise you will have to install the C++ via control panel after it has installed.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling core after Atmel Studio 7 upgrade
Reply #3 - Jan 13th, 2016 at 11:14am
Print Post  
ps: 

You should remove the avr 1.6.7 from your board manager because it will cause confusion. The arduino ide installs an avr core under the ide folder and in this case has a more recent core than you have attempted to install via Board manager.

It's confusing. The original arduino design catered for this situation but then some users complained their make files had broken so arduino changed and broke their own clean design. 

In short: For avr do not use board manager, install the Arduino Ide and use the avr core that is automatically supplied by it.
  
Back to top
IP Logged
 
PeterDollar
Newbies
*
Offline


Posts: 8
Location: Newcastle, NSW, Australia
Joined: Jan 13th, 2016
Re: Error compiling core after Atmel Studio 7 upgrade
Reply #4 - Jan 14th, 2016 at 1:43am
Print Post  
Thanks for the replies Visual Micro.  There's so much to read these days and so little time.  But yes, I should have read Quote:
for Atmel 7 that only Arduino versions up to and including 1.6.5 are supported


Anyhow I was keen to stick with Atmel Studio, so opted for your first alternative so downgraded to Arduino 1.6.5 and removed the avr 1.6.7 from the board manager.  Atmel Studio 7 wouldn't allow me to remove 1.6.9 from the board manager, however - something about builtin boards cant be removed?

Still, this didn't resolve all the problems,  Angry as I got a bunch of compile errors - file/folder not found etc.

So I decided to cut my losses and 
  • unistalled AS7,
  • did a repair install of AS6.2,
  • created a new project in AS6.2 (to allow AS6.2 to create its required folder structure),
  • copied my source code into the new project 
  and now all is good again and I'm back to where I was 2 days ago! Sad

So the lesson here is .... stupid me for upgrading halfway through a project.  It just resulted in a waste of time and project delay.

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling core after Atmel Studio 7 upgrade
Reply #5 - Jan 14th, 2016 at 1:59am
Print Post  
Hi,

The problem is that when you run Arduino 1.6.6+ it automatically migrates all custom hardware definitions from users\appdata\roaming\arduino15 to users\appdata\local\arduino15. 

Historically the roaming folder has been used by the ide for all prefs and custom hardware etc. They decided to move it all leaving behind some files but not all.

It's also possible to then use an older arduino version (like 1.6.5) which recreates the roaming folder and does not know about the "local" folder.

So now you have two definitions with the older 1.6.5 now requiring re-download of hardware. So you get two sets on your disk.

Older versions of Visual Micro don't know about the "local" folder so use the Roaming folder instead of Local.

Newer versions currently use the Local Folder if it exists which is where the confusion comes from. 

These changes only came to apply in November when they released 1.6.6 and it took a few weeks before the version checker automatically switched between Local and Roaming. In AS7 it uses Local if it finds it, in Visual Studio it's more intelligent.

Therefore, Deleting c:\users\[name]\appdata\local\arduino15 would have resolved the issue with AS7 and 1.6.5

ps: The Atmel gallery is also difficult to publish new code to and Atmel Studio is still maturing. So that's why I am concentrating on VS at the moment. There is no reason why you don't install VS2015 sometime. It doesn't affect your Atmel studio 6.2 install and can run side by side.
« Last Edit: Jan 14th, 2016 at 2:08am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint