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 libraries VSC2015 Arduino 1.5 (Read 3329 times)
stockvu
Junior Member
**
Offline


Posts: 24
Location: USA
Joined: Jun 12th, 2013
Error compiling libraries VSC2015 Arduino 1.5
Mar 6th, 2016 at 5:10pm
Print Post  
Hi Tim,

I just installed the VSIX for VM into VSC2015. I copied a known good project from VSC2013 that uses the much older VM add-in (kept for Visualizer Reasons).

I get a Message about "Error compiling libraries" for the SPI library.  Shocked

Here's the last few lines of Output;

SpiRAM.cpp:56: error: 'SPI' was not declared in this scope
SpiRAM.cpp:In member function 'void SpiRAM::fillBytes(uint32_t, byte, uint32_t)
SpiRAM.cpp:63: error: 'SPI' was not declared in this scope
SpiRAM.cpp:In member function 'void SpiRAM::setAddressMode(uint32_t, byte)
SpiRAM.cpp:68: error: 'SPI' was not declared in this scope
Error compiling libraries

I have tried toggling True-False for;
Compare Dates
Generate Prototypes
MCU Defines (Core/Lib)
project Defines (Core/Lib)

I have tried moving #include SPI.h closer to start.

VM's "Add Library" ToolButton Dropdown Indicates SPI is installed as a Library (Ard1.5). This facility also shows my SD library as built in and user library for SPI-Ram. 

Everything works perfect in VSC2013 using the older VM add-in. 

Any ideas as to what I am missing?

Thanks,

stockvu

« Last Edit: Mar 6th, 2016 at 5:14pm by stockvu »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling libraries VSC2015 Arduino 1.5
Reply #1 - Mar 9th, 2016 at 7:19pm
Print Post  
Hi,

Can you pleas leave all options as default but switch on visual micro > verbose then email or post the output.

Also confirm which version of arduino 1.5, which board and confirm you just downloaded the VSIX and did not use an older one.

Thanks
« Last Edit: Mar 9th, 2016 at 7:20pm by Tim@Visual Micro »  
Back to top
IP Logged
 
stockvu
Junior Member
**
Offline


Posts: 24
Location: USA
Joined: Jun 12th, 2013
Re: Error compiling libraries VSC2015 Arduino 1.5
Reply #2 - Mar 12th, 2016 at 3:53am
Print Post  
Hi Tim,

As you suggested, I tried compiling in the Arduino IDE (which I almost never use). That showed me there were issues not related to VM. And I followed your recommendation to use 1.5.8.

Had to rewrite a bunch of look-up-tables and I did get some functionality back. At least my sketch compiles and uploads. Both my SPI devices seem to work OK. Now I have to figure out some pointers and table problems and hopefully I'll be up and running as before with the new VM.

Thanks very much for your patience and help!  Smiley


sv 
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint