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 ATTinyCore install breaks VM (Read 4918 times)
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
ATTinyCore install breaks VM
May 15th, 2016 at 7:51am
Print Post  
I installed the ATTiny cores fromhttps://github.com/SpenceKonde/ATTinyCore and all worked well within Arduino 1.6.9 but when I switchd to Visual Micro 1605.12.0 in Visual Studio 2014 I now get build errors for everything even the straightforward Arduino boards and cannot now use VM.
As a test I started a new blank Arduino project in VM and selected Arduinio/Genuino Uno. I also made sure no ATTinys were installed from Board manager and I made the \Documents\Arduino\hardware folder ZZZZhardware to stop its use but when I build I get:

Code
Select All
Compiling 'jimstest1' for 'Arduino/Genuino Uno'
Build folder: file:///C:/Users/Jim/AppData/Local/Temp/VMicroBuilds/jimstest1/uno
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines:
Architecture Tools: uino5/bin/
Sketchbook: file:\\\C:\Users\Jim\Documents\Arduino
Sketch Include Paths
Include Path 'C:\Users\Jim\Documents\Arduino\jimstest1'
Core Include Paths
Include Path 'C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino'
Include Path 'C:\Program Files\Arduino\hardware\arduino\avr\variants\standard'
Build Core Paths: C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino
duino5/bin/avr-gcc" -c -g -x assembler-with-cpp -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\wiring_pulse.S" -o o" 
error*:CreateProcess: No such file or directory
Error compiling core 



Obviously the reference to packages\ATTinyCore shouldnt be there.

SpenceKonde, the developer replied:
It sure looks like you have installed a tiny core through board manager? And also, it looks like it's trying to use the default core and the attiny core.

I think this is a visualmicro bug - the Arduino team keeps mucking with the spec for third party hardware packages, so it's entirely possible that they updated it to work with an early 1.6.x version - but the spec has changed in mutually incompatible ways a few times since.. so it wouldn't be surprising if visualmicro was incompatible with it.

I'm not familiar with visualmicro - but if you want to make a new issue to track progress trying to figure out how to make it work with visualmicro, but I can't really put time into getting these sorted out.

Any suggestions
« Last Edit: May 18th, 2016 at 1:26pm by Trek19 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ATTinyCore install breaks VM
Reply #1 - May 15th, 2016 at 8:44pm
Print Post  
I suspect that you previously had used board manager to install a tiny core then uninstalled. That the tools folder exists for the install but is empty and that Visual Micro needs to test for invalid folders.

Delete this folder which is where the board manager installed to previously.

C:\Users\Jim\AppData\Local\arduino15\packages\ATTinyCore

Then restart the ide and see if that fixes it.

You are right it will be affecting all avr boards.
  
Back to top
WWW  
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: ATTinyCore install breaks VM
Reply #2 - May 17th, 2016 at 7:40am
Print Post  
Ok, as well as making \Documents\Arduino\hardware folder ZZZZhardware I made folder C:\Users\Jim\AppData\Local\AAarduino15 to stop their use and in VM did a "Tools - Visual Micro - Reload Toolchains" and then everthging worked OK for the UNO etc.
I then enabled the ATTiny cores in C:\Users\Jim\Documents\Arduino\hardware and again Reloaded the Toolchains and was able to use the cores in VM.
It appears that un-installing cores using Board Manager leaves some remnants behind in C:\Users\Jim\AppData\Local\arduino15\packages\ which the Arduino ide can ignore but VM cannot.
The reference to the cores - enabled or not - has been visible in my Board Manager for a long time but I have not noticed this effect before but coincidently I just updated both the Arduino ide and VM prior to this.
I am not sure where the problem is but it looks like its in VM.
« Last Edit: May 17th, 2016 at 8:01am by Trek19 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ATTinyCore install breaks VM
Reply #3 - May 18th, 2016 at 4:28pm
Print Post  
Thanks, yes I agree and I will change visual micro to ignore tools folders if they are empty.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint