Atmega138PA mit Arduino bzw. Atmel Studio

Gast #4437100
Lesenswert?
• ▲
▼
Hallo alle.

Ich benutze Atmel Studio um damit auf Arduino ebene meine uC zu 
programmieren.

Bisher waren Tiny84 / 85 und Atmega328 dabei... keine Probleme
Sowohl bei der Arduino IDE als auch bei Atmel Studio mit diesem "Arduino 
Plugin" nenn ich das mal.

So nun habe ich einen Atmega168PA..

Arduino IDE...  Compiling Ok.... aber upload geht nicht....


beim Atmel Studio... ein "Blink" programm kann ich drauf laden.
Aber sobald ich das nehme was eigentlich drauf soll, spuckt der jede 
menge Fehler raus.... nur wenn meine SPI.h einbinde


This build would be faster if you upgraded to Visual Micro Gold Edition 
+ USB debugger http://www.visualmicro.com
Please wait ...
Compiling 'TEEEEST' for 'ATmega168PA on a breadboard (8 MHz internal 
clock)'
SPI.h:In static member function 'static byte SPIClass::transfer(byte)'
SPI.h:56: error: 'SPDR' was not declared in this scope
SPI.h:57: error: 'SPSR' was not declared in this scope
SPI.h:57: error: 'SPIF' was not declared in this scope
SPI.h:In static member function 'static void 
SPIClass::attachInterrupt()'
SPI.h:63: error: 'SPCR' was not declared in this scope
SPI.h:63: error: 'SPIE' was not declared in this scope
SPI.h:In static member function 'static void 
SPIClass::detachInterrupt()'
SPI.h:67: error: 'SPCR' was not declared in this scope
SPI.h:67: error: 'SPIE' was not declared in this scope
SPI.h:In static member function 'static byte SPIClass::transfer(byte)'
SPI.h:56: error: 'SPDR' was not declared in this scope
SPI.h:57: error: 'SPSR' was not declared in this scope
SPI.h:57: error: 'SPIF' was not declared in this scope
SPI.h:In static member function 'static void 
SPIClass::attachInterrupt()'
SPI.h:63: error: 'SPCR' was not declared in this scope
SPI.h:63: error: 'SPIE' was not declared in this scope
SPI.h:In static member function 'static void 
SPIClass::detachInterrupt()'
SPI.h:67: error: 'SPCR' was not declared in this scope
SPI.h:67: error: 'SPIE' was not declared in this scope
SPI.cpp:In static member function 'static void SPIClass::begin()'
SPI.cpp:29: error: 'SPCR' was not declared in this scope
SPI.cpp:29: error: 'MSTR' was not declared in this scope
SPI.cpp:30: error: 'SPE' was not declared in this scope
SPI.cpp:In static member function 'static void SPIClass::end()'
SPI.cpp:44: error: 'SPCR' was not declared in this scope
SPI.cpp:44: error: 'SPE' was not declared in this scope
SPI.cpp:In static member function 'static void 
SPIClass::setBitOrder(uint8_t)'
SPI.cpp:50: error: 'SPCR' was not declared in this scope
SPI.cpp:50: error: 'DORD' was not declared in this scope
SPI.cpp:52: error: 'SPCR' was not declared in this scope
SPI.cpp:52: error: 'DORD' was not declared in this scope
SPI.cpp:In static member function 'static void 
SPIClass::setDataMode(uint8_t)'
SPI.cpp:58: error: 'SPCR' was not declared in this scope
SPI.cpp:In static member function 'static void 
SPIClass::setClockDivider(uint8_t)'
SPI.cpp:63: error: 'SPCR' was not declared in this scope
SPI.cpp:64: error: 'SPSR' was not declared in this scope

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren