Atmega138PA mit Arduino bzw. Atmel Studio

Gast #4437100
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
Gast
Hi, danke aber leider nicht...
habe mal als board den originalen Arduino ausgewählt... in der Arduino 
IDE.. keine Probleme

und im Atmel stuio... das oberere Schauspiel

Antwort schreiben

Eine eigene Frage? Dieser Thread ist über 10 Jahre alt. Stell sie in einem eigenen Thread – dort lesen mehr Leute mit, und sie wird öfter und schneller beantwortet.

Neuen Thread starten

Eine Lösung, Ergänzung oder Rückmeldung zu diesem Thread? Dann antworte hier.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.