watterott / ATmega328PB-Testing

Atmel/Microchip ATmega328PB support for Arduino IDE
https://learn.watterott.com
76 stars 61 forks source link

Serial not defined #25

Closed szwetsloot closed 6 years ago

szwetsloot commented 6 years ago

When trying to use these board definitions with the arduino IDE I get: Main:106: error: 'Serial' was not declared in this scope Serial.begin(9600);

Dummy code which throws same error: void setup() { // put your setup code here, to run once: Serial.begin(9600); }

void loop() { // put your main code here, to run repeatedly:

}

awatterott commented 6 years ago

Which IDE and AVR core version do you use?

szwetsloot commented 6 years ago

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53 Arduino IDE 1.8.5

awatterott commented 6 years ago

Do you have installed the AVR core 1.6.200? The built-in core has no support for the ATmega328PB. https://downloads.arduino.cc/packages/package_avr_3.6.0_index.json

szwetsloot commented 6 years ago

Does that include either this one: image Or this one: image ?

If not, can youtell me how to install it?

awatterott commented 6 years ago

Add the link under File->Preferences and then install the "Arduino AVR Board 1.6.200" with Tools->Board->Boards Manager

szwetsloot commented 6 years ago

Is Arduino AVR Board 1.6.200 the same as Arduino AVR Board 1.6.20? I can't uninstall and reinstall that package. I tried to downgrade to Arduino AVR Board 1.6.19 and upgrade to Arduino AVR Board 1.6.20 again, but that did not change anything.

awatterott commented 6 years ago

No, 1.6.20 is not 1.6.200. You have to add the link before you can install the new board.

szwetsloot commented 6 years ago

I though I did, but apparently misclicked. That resolved my issue. Thank you for the quick help!