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 How to start? (Read 4970 times)
offler
Newbies
*
Offline


Posts: 3
Joined: Jul 6th, 2016
How to start?
Jul 6th, 2016 at 6:33pm
Print Post  
I have VS 2015 and installed Visual Micro

I left the arduino location as it was 

If i try to add a library, e.g. keyboard library.

If i use the compile button all i get are messages like:

Code
Select All
"Compiling debug version of 't1' for 'Arduino/Genuino Uno'
Esplora.cpp:54:26: error: 'A11' was not declared in this scope
:const byte ACCEL_Y_PIN = A11
Error compiling libraries
 




Code
Select All
Compiling debug version of 't1' for 'Arduino/Genuino Uno'
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:In function 'void i2c_wait_scl_high()
SoftI2CMaster.h:172:31: error: 'SCL_PORT' was not declared in this scope
:#define SCL_IN  (_SFR_IO_ADDR(SCL_PORT) - 2)
SoftI2CMaster.h:note  in expansion of macro 'SCL_IN
:[SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN))
t1.ino:In file included from
SoftI2CMaster.h:210:46: error: 'SCL_PIN' was not declared in this scope
:[SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN))
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:In function 'boolean i2c_init()
SoftI2CMaster.h:168:38: error: 'SCL_PORT' was not declared in this scope
:#define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SCL_DDR
:[SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN)
t1.ino:In file included from
SoftI2CMaster.h:264:47: error: 'SCL_PIN' was not declared in this scope
:[SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN)
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope
:#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SDA_DDR
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN)
t1.ino:In file included from
SoftI2CMaster.h:266:47: error: 'SDA_PIN' was not declared in this scope
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN)
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:In function 'bool i2c_start(uint8_t)
SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope
:#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SDA_DDR
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN)
t1.ino:In file included from
SoftI2CMaster.h:284:49: error: 'SDA_PIN' was not declared in this scope
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN)
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:172:31: error: 'SCL_PORT' was not declared in this scope
:#define SCL_IN  (_SFR_IO_ADDR(SCL_PORT) - 2)
SoftI2CMaster.h:note  in expansion of macro 'SCL_IN
:[SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN))
t1.ino:In file included from
SoftI2CMaster.h:285:43: error: 'SCL_PIN' was not declared in this scope
:[SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN))
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:In function 'bool i2c_rep_start(uint8_t)
SoftI2CMaster.h:168:38: error: 'SCL_PORT' was not declared in this scope
:#define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SCL_DDR
:[SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN),[SCLIN] "I" (SCL_IN)
t1.ino:In file included from
SoftI2CMaster.h:309:49: error: 'SCL_PIN' was not declared in this scope
:[SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN),[SCLIN] "I" (SCL_IN)
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope
:#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SDA_DDR
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN))
t1.ino:In file included from
SoftI2CMaster.h:310:49: error: 'SDA_PIN' was not declared in this scope
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN))
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:In function 'void i2c_start_wait(uint8_t)
SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope
:#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SDA_DDR
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN)
t1.ino:In file included from
SoftI2CMaster.h:337:48: error: 'SDA_PIN' was not declared in this scope
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN)
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:172:31: error: 'SCL_PORT' was not declared in this scope
:#define SCL_IN  (_SFR_IO_ADDR(SCL_PORT) - 2)
SoftI2CMaster.h:note  in expansion of macro 'SCL_IN
:[SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN))
t1.ino:In file included from
SoftI2CMaster.h:338:42: error: 'SCL_PIN' was not declared in this scope
:[SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN))
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:In function 'void i2c_stop()
SoftI2CMaster.h:168:38: error: 'SCL_PORT' was not declared in this scope
:#define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SCL_DDR
:[SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN)
t1.ino:In file included from
SoftI2CMaster.h:357:49: error: 'SCL_PIN' was not declared in this scope
:[SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN)
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope
:#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SDA_DDR
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN))
t1.ino:In file included from
SoftI2CMaster.h:358:49: error: 'SDA_PIN' was not declared in this scope
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN))
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:In function 'bool i2c_write(uint8_t)
SoftI2CMaster.h:168:38: error: 'SCL_PORT' was not declared in this scope
:#define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SCL_DDR
:[SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN)
t1.ino:In file included from
SoftI2CMaster.h:433:46: error: 'SCL_PIN' was not declared in this scope
:[SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN)
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope
:#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SDA_DDR
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN))
t1.ino:In file included from
SoftI2CMaster.h:434:46: error: 'SDA_PIN' was not declared in this scope
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN))
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:In function 'uint8_t i2c_read(bool)
SoftI2CMaster.h:168:38: error: 'SCL_PORT' was not declared in this scope
:#define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SCL_DDR
:[SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN)
t1.ino:In file included from
SoftI2CMaster.h:502:46: error: 'SCL_PIN' was not declared in this scope
:[SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN)
io.h:In file included from
pgmspace.h:from
arduino.h:from
t1.ino:from
SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope
:#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)
SoftI2CMaster.h:note  in expansion of macro 'SDA_DDR
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN)
t1.ino:In file included from
SoftI2CMaster.h:503:46: error: 'SDA_PIN' was not declared in this scope
:[SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN)
Error compiling project sources

 

« Last Edit: Jul 6th, 2016 at 6:39pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
offler
Newbies
*
Offline


Posts: 3
Joined: Jul 6th, 2016
Re: How to start?
Reply #1 - Jul 6th, 2016 at 6:36pm
Print Post  
48 byte maximum)"


Funnily i have choosen Arduino Uno as board and not Esplora.

I have not includes own code so far - what can i do and what is missing?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to start?
Reply #2 - Jul 6th, 2016 at 6:42pm
Print Post  
Hi,

Please switch on vMicro>Compiler> "Verbose" and "Show build properties"

Then build and add the output as a .txt file to a post

It might also save some time if you zip and email or attach your test project.

You can email both if you want to info[at]visualmicro.com

Thanks

  
Back to top
IP Logged
 
offler
Newbies
*
Offline


Posts: 3
Joined: Jul 6th, 2016
Re: How to start?
Reply #3 - Jul 8th, 2016 at 12:42pm
Print Post  
Test project:
Visual Studio: File - New - Arduino project
Give a name ( Test 1 )

Code (C++)
Select All
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h> // https://bitbucket.org/fmalpartida/new-liquidcrystal
#include <Keypad.h> // library from http://playground.arduino.cc/code/Keypad#Download

 



and only the serialResponse example

so nothing where i would say it is something special.

right now the same builds.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to start?
Reply #4 - Jul 8th, 2016 at 1:04pm
Print Post  
Hi,

With the project that fails:-

Please switch on vMicro>Compiler> "Verbose" and "Show build properties"

Then build and add the output as a .txt file to a post

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