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 Core Compile Error (Read 6250 times)
theworstbatman
Newbies
*
Offline


Posts: 8
Joined: Oct 31st, 2015
Core Compile Error
Mar 18th, 2016 at 4:39pm
Print Post  
Hello,

This problem started up recently. When I try to compile my program, I get this error:
Code
Select All
Compiling debug version of 'NoiseMeter' for 'Arduino/Genuino Micro'
	Process: "{runtime.tools.avr-gcc.path}\bin\avr-gcc" -c -g -x assembler-with-cpp -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 -DUSB_MANUFACTURER="\"Unknown\"" -DUSB_PRODUCT="\"Arduino Micro\"" cores\arduino" variants\micro" res\arduino\wiring_pulse.S" -o g_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_CDCSerialClass=12 -DVM_DEBUGGER_TYPE=VM_DEBUGGER_TYPE_USB -DVM_DEBUG_BREAKPAUSE
Error compiling core
 


I'm also seeing an issue in the code itself. Built-in Arduino Functions (Like digitalWrite, pinMode, etc) are showing errors where the IDE isn't sure where the functions are located.


I'm not sure what caused it. Awhile back, I installed the new Teensy Software... and I think everything worked fine when that first happened after some initial confusion. 

Anyhow, I've had so much trouble I've uninstalled the Teensy-modified Arduino IDE, and done a fresh install of Arduino 1.6.8. I've done the latest update of VisualMicro, turned off deep search (just to be safe) and rebooted Visual Studio a few times. I've re-loaded the toolchain and double-checked my IDE location settings, and everything seems ok.  I've tried using the clean build feature, and no luck. 

Any help appreciated!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core Compile Error
Reply #1 - Mar 18th, 2016 at 4:58pm
Print Post  
Which version of visual micro are you running? "Tools>Extensions and updates>Arduino Ide for Visual Studio"

Which Visual Studio version?

Thanks
  
Back to top
IP Logged
 
theworstbatman
Newbies
*
Offline


Posts: 8
Joined: Oct 31st, 2015
Re: Core Compile Error
Reply #2 - Mar 18th, 2016 at 5:04pm
Print Post  
Ah, sorry that would be helpful:

Visual Micro Version 1603.1.0
Visual Studio Version 11.32202.0

I'm running on a Mac in a VM of Windows 7. 

Also, this may or may not have an effect: I recently wanted to try out Sourcetree, and I installed it... but I haven't dropped any plugins into the VS.

I've also noticed some small red checkmarks next to the .ino file, the vsArduino.h file, and the Project file at the top. Hovering over it, it says "pending changes" indicating the file was edited externally at some point I guess? I don't think I've done that though.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core Compile Error
Reply #3 - Mar 18th, 2016 at 5:21pm
Print Post  
Thanks for the info. I suspect you still have the old "add-in" version of visual micro installed alongside with the new "extension" version of Visual micro which was a switch we made last year.

See in if you have "control panel>add or remove programs>visual micro for arduino". If so then make sure VS2012 is closed and uninstall it.

Thanks
  
Back to top
IP Logged
 
theworstbatman
Newbies
*
Offline


Posts: 8
Joined: Oct 31st, 2015
Re: Core Compile Error
Reply #4 - Mar 18th, 2016 at 5:39pm
Print Post  
I'm not seeing it in my list. I do remember when the change came a bit back, I was pretty sure I uninstalled the older version.

I'm running a repair of VS Community 2015 right now. I may even completely uninstall/reinstall later tonight if I'm still struggling.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core Compile Error
Reply #5 - Mar 18th, 2016 at 5:50pm
Print Post  
Have run the arduino ide 1.6.8 once?
  
Back to top
IP Logged
 
theworstbatman
Newbies
*
Offline


Posts: 8
Joined: Oct 31st, 2015
Re: Core Compile Error
Reply #6 - Mar 18th, 2016 at 6:09pm
Print Post  
Ah! That got it I think. I had a prompt to update my hardware definitions.

Sometimes I forget that I need to check against the Arduino IDE in Win7, not OS X.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core Compile Error
Reply #7 - Mar 18th, 2016 at 9:45pm
Print Post  
Normally you don't need to but arduino has made a change to where downloaded hardware is located and other major changes between 1.6.6 and 1.6.8. 

They say it is stable now. I hope  Smiley
« Last Edit: Mar 18th, 2016 at 9:45pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint