Importing from Arduino

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Hi, i have code that would build ok and upload to atmega2560 via Arduino default software, but now i have Atmel studio, and have included all the files ok, but when i go to build it returns errors:

 

Severity    Code    Description    Project    File    Line
Error        ld returned 1 exit status    GccCppProject2    collect2.exe    0
Error        Disabling relaxation: it will not work with multiple definitions    GccCppProject2        1
Error        multiple definition of `__vector_25'    GccCppProject2    C:\Users\DOGGY-GIG\Documents\Atmel Studio\7.0\GccCppProject2\GccCppProject2\Release\HardwareSerial0.cpp    1

 

OR when i use visual studio , plugin is there but i get these errors on build:

 

Compiling debug version of 'KosselRevB' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
KosselRevB.ino:In file included from
VM_DBG.h:168:2: error: 'HardwareSerial' does not name a type
:HardwareSerial *transport
VM_DBG.h:169:13: error: 'HardwareSerial' has not been declared
:void begin(HardwareSerial *theSerial)
VM_DBG.h:170:13: error: 'HardwareSerial' has not been declared
:void begin(HardwareSerial *theSerial, unsigned long baud)
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int, int)
VM_DBG.h:353:2: error: 'transport' was not declared in this scope
:transport->print("value=")
Error compiling project sources
KosselRevB.ino:In file included from
VM_DBG.h:168:2: error: 'HardwareSerial' does not name a type
:HardwareSerial *transport
VM_DBG.h:169:13: error: 'HardwareSerial' has not been declared
:void begin(HardwareSerial *theSerial)
VM_DBG.h:170:13: error: 'HardwareSerial' has not been declared
:void begin(HardwareSerial *theSerial, unsigned long baud)
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int, int)
VM_DBG.h:353:2: error: 'transport' was not declared in this scope
:transport->print("value=")
Error compiling project sources

 

 

I'm sure this is newb mistake, and that im missing a setting somewhere, any advice helps

thanks

 

passwords with capitals , numbers and characters are gay