Author Topic: Compilation error Balanduino on Visual Studio 2013 with Visual Micro  (Read 1758 times)

reinier

  • Newbie
  • *
  • Posts: 10
    • View Profile
Hi,

I would like to use Visual Studio 2013 with Visual Micro for Arduino.
But when I press build I get this error messages.

I have downloaded Arduino IDE 1.5.8
When I compile with Arduino IDE all works fine.
 
Do anyone know what to do?


Compiling 'Balanduino' for 'Balanduino'
Balanduino.ino:In file included from
Balanduino.h:22:2: error: #error "Please update the Arduino IDE to version 1.5.6 at the following website: http:\\arduino.cc\en\Main\Software"
Balanduino.ino:In function 'void setup()'
Balanduino.ino:208: error: 'Wire' was not declared in this scope
Balanduino.ino:In function 'uint8_t i2cWrite(uint8_t, uint8_t*, uint8_t, bool)'
I2C.ino:26: error: 'Wire' was not declared in this scope
Balanduino.ino:In function 'uint8_t i2cRead(uint8_t, uint8_t*, uint8_t)'
I2C.ino:39: error: 'Wire' was not declared in this scope
Error compiling


Regard, Reinier

Lauszus

  • Administrator
  • Full Member
  • *****
  • Posts: 131
    • View Profile
Re: Compilation error Balanduino on Visual Studio 2013 with Visual Micro
« Reply #1 on: October 09, 2014, 03:01:12 AM »
Hi Reinier,

The first error is because the definition ARDUINO has to be at least 1.5.6 and the second error is because you haven't included the Wire library: http://arduino.cc/en/reference/wire.

Regards
Lauszus

reinier

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Compilation error Balanduino on Visual Studio 2013 with Visual Micro
« Reply #2 on: October 09, 2014, 11:54:50 AM »
Hi,

I can now compile the source code in Visual Studio 2013 but after download the file without any error, the leds are blinking which means that the communication is working correctly, the mainboard however don't response after downloading.
When I download the same code with Arduino IDE 1.5.8 everything works fine. The buzzer and led are working correctly.

Do you have any idea what can be the problem?

Regards, Reinier

reinier

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Compilation error Balanduino on Visual Studio 2013 with Visual Micro
« Reply #3 on: October 13, 2014, 12:04:08 PM »
Hi,

Do anyone have the same problem with deploying the firmware to the main board?

Regards, Reinier

Lauszus

  • Administrator
  • Full Member
  • *****
  • Posts: 131
    • View Profile
Re: Compilation error Balanduino on Visual Studio 2013 with Visual Micro
« Reply #4 on: October 15, 2014, 04:53:02 AM »
@Reinier
No sorry. I am not using Visual Studio.

Note that it might be easier for you to configure Visual Studio to use the bundled makefile: https://github.com/TKJElectronics/Balanduino/blob/master/Firmware/Balanduino/Makefile.

Regards
Lauszus