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 - The system cannot find the file specified Process: "{runtime.tools.avr-g (Read 9188 times)
Tony from Oz
Newbies
*
Offline


Posts: 4
Joined: Dec 12th, 2015
Error Compiling Core - The system cannot find the file specified Process: "{runtime.tools.avr-g
Dec 12th, 2015 at 10:30am
Print Post  
Hello,

I've been playing with my Arduino for the last 3 weeks.  And I've just been using the standard IDE that comes with it.

I'm now writing more sophisticated programs and I'm finding it very difficult to debug my code and see what's not working correctly.  I've been sending output to the Serial Monitor but I need more than that now.

I was delighted when I saw your add-on to Visual Studio.  I've installed it but I am getting an error when I try to build or run my project.

I've downloaded the latest Arduino IDE which is 1.6.6. And I'm using Video Studio Community Version 2013.

In Visual Micro I have set the Ide as 16.6.  The board is Arduino /Genuino Uno. 

I would appreciate any help that you can provide.  I'm new to Visual Studio so I can't work out how to fix this error.

The error I am getting when I try to build or start debugging is below:

Build Core Paths: C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino
"{runtime.tools.avr-gcc.path}/bin/avr-gcc" -c -g -x assembler-with-cpp -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\Tony\Documents\Arduino\Seven_Segment_LED\3MyCountdownClock" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" -I"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\zpbj2eh0.ijo\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\zpbj2eh0.ijo\Micro Platforms\default\debuggers" -I"C:\Users\Tony\Documents\Arduino\libraries" "C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_pulse.S" -o _pulse.S.o"   -DVM_DEBUG -DVM_DEBUG_ENABLE=1 -DVM_DEBUG_BANDWIDTH_THROTTLE_MS=50 -DVM_DEBUGGER_TYPE_HARDWARESERIAL=0 -DVM_DEBUGGER_TYPE_SOFTWARESERIAL=1 -DVM_DEBUGGER_TYPE_FASTSERIAL=2 -DVM_DEBUGGER_TYPE_USB=3 -DVM_DEBUGGER_TYPE_TEENSY=4 -DVM_DEBUGGER_TYPE_UART=5 -DVM_DEBUGGER_TYPE_USART=6 -DVM_DEBUGGER_TYPE_USBSERIAL=7 -DVM_DEBUGGER_TYPE_TTYUART=8 -DVM_DEBUGGER_TYPE_NET_CONSOLE=9 -DVM_DEBUGGER_TYPE_Uart=10 -DVM_DEBUGGER_TYPE_COSA=11 -DVM_DEBUGGER_TYPE=VM_DEBUGGER_TYPE_HARDWARESERIAL
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=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\Tony\Documents\Arduino\Seven_Segment_LED\3MyCountdownClock" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" -I"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\zpbj2eh0.ijo\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\zpbj2eh0.ijo\Micro Platforms\default\debuggers" -I"C:\Users\Tony\Documents\Arduino\libraries" "C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_pulse.S" -o _pulse.S.o"   -DVM_DEBUG -DVM_DEBUG_ENABLE=1 -DVM_DEBUG_BANDWIDTH_THROTTLE_MS=50 -DVM_DEBUGGER_TYPE_HARDWARESERIAL=0 -DVM_DEBUGGER_TYPE_SOFTWARESERIAL=1 -DVM_DEBUGGER_TYPE_FASTSERIAL=2 -DVM_DEBUGGER_TYPE_USB=3 -DVM_DEBUGGER_TYPE_TEENSY=4 -DVM_DEBUGGER_TYPE_UART=5 -DVM_DEBUGGER_TYPE_USART=6 -DVM_DEBUGGER_TYPE_USBSERIAL=7 -DVM_DEBUGGER_TYPE_TTYUART=8 -DVM_DEBUGGER_TYPE_NET_CONSOLE=9 -DVM_DEBUGGER_TYPE_Uart=10 -DVM_DEBUGGER_TYPE_COSA=11 -DVM_DEBUGGER_TYPE=VM_DEBUGGER_TYPE_HARDWARESERIAL
Error compiling core
« Last Edit: Dec 12th, 2015 at 2:05pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling Core
Reply #1 - Dec 12th, 2015 at 1:24pm
Print Post  
Maybe a silly question but have you run the arduino 1.6.6 ide once since you downloaded it, then restarted visual micro?





  
Back to top
IP Logged
 
Tony from Oz
Newbies
*
Offline


Posts: 4
Joined: Dec 12th, 2015
Re: Error Compiling Core
Reply #2 - Dec 12th, 2015 at 1:33pm
Print Post  
Not a silly question at all.  I think the answer is No.  I have since tried looking for answers and I heard at least one person state that you need to run the Arduino IDE after install of Visual Micro as the Arduino iDE ms supposed to do some updates.  Is that true?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling Core
Reply #3 - Dec 12th, 2015 at 1:56pm
Print Post  
Hi,

Well it's like this  Smiley

It used to be the case that you had to run the arduino ide once

Then it stopped being required

Then for Arduino 1.6.6 they decided to automatically migrate/copy their c:\users\[name]\appData\roaming folders to c:\users\[name]\appData\local

This means that when you run Arduino 1.6.6 for the first time it moves the compiler config from the old location to the new one. It it has never run then there will not be any config and Visual Micro will assume you are working with a version of arduino prior to 1.6.2 when they started to use the \appData system.

It's not an ideal situation so Visual Micro does not attempt to make any intelligent guesses or to automatically perform the migration. Visual Micro simply determines which ide version you have pointed to and then expects the config to be located whereever the ide version would expect and if it's not there it cant work out where the compiler is. That's the error you see.

So the short answer is for 1.6.6 you need to have run it once. Then either restart Visual Micro or click "Micro Explorer>Rescan"
« Last Edit: Dec 12th, 2015 at 2:00pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tony from Oz
Newbies
*
Offline


Posts: 4
Joined: Dec 12th, 2015
Re: Error Compiling Core
Reply #4 - Dec 12th, 2015 at 2:00pm
Print Post  
Thank you.  I've actually taken this opportunity to install Visual Studio Community 2015.  Once I've done that.  I'll install Visual Micro over the top.  Then according to your instructions, I'll run the Arduino IDE.  Then go into Visual Stdio and it should be able to find the missing directories.  Is my understanding correct?  And thank you for the explanation and responding as quickly as you have.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling Core - The system cannot find the file specified Process: "{runtime.tools.avr-g
Reply #5 - Dec 12th, 2015 at 2:03pm
Print Post  
Yes but you can run the arduino ide anytime just to get that out of the way. 

I hope you have seen the note to ensure you click the C++ option when installing 2015. You have to click Custom Install when the installer starts. 

If you didn't then you can go back afterwards and do it via "control panel>add or remove programs>change"
« Last Edit: Dec 12th, 2015 at 2:05pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tony from Oz
Newbies
*
Offline


Posts: 4
Joined: Dec 12th, 2015
Re: Error Compiling Core - The system cannot find the file specified Process: "{runtime.tools.avr-g
Reply #6 - Dec 13th, 2015 at 6:31am
Print Post  
Thank you. I did as you suggested and the problem has been resolved.

I now need to read the Visual Micro documentation as, for some reason, it is flying past the breakpoints I have set up instead of stopping and allowing me to either step into, step over or view variable values.  I do know that with breakpoints with Visual Micro that the breakpoint occurs after the command on the breakpoint line has been completed as opposed to before as it customary for other languages.  However, as I said, it is flying past it and I'm sure this is a result of user error so I'll read the doco to understand how this all works.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling Core - The system cannot find the file specified Process: "{runtime.tools.avr-g
Reply #7 - Dec 13th, 2015 at 2:32pm
Print Post  
Cool.

Feel free to open a new thread in the debugger section if you don't find what you need in the docs.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint