Bug 536079 - Serial1 not recognised
Summary: Serial1 not recognised
Status: CLOSED WONTFIX
Alias: None
Product: CDT
Classification: Tools
Component: cdt-arduino (show other bugs)
Version: 9.2.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-20 05:37 EDT by David henry CLA
Modified: 2020-05-23 10:54 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David henry CLA 2018-06-20 05:37:41 EDT
This is a variation on bug 513516 reported earlier.

The platform is defined as Mega2560 (which supports Serial1)
The sketch below reports Serial1 as an unresolved synbol

#include <Arduino.h>
void setup() {
	Serial1.begin(9600);
        Serial1.print("blah");
}

adding the line
extern HardwareSerial Serial1;

solves the problem
Comment 1 Jonah Graham CLA 2020-05-23 10:54:00 EDT
Thank you for taking the time to file a bug report about the Arduino component of the CDT project. The Arduino component is no longer maintained and will be removed from CDT 10 (Bug 562498). The final Eclipse CDT version that will include Arduino support is the CDT 9.11 series. 

Please consider using The Arduino Eclipse IDE and plug-ins named Sloeber (https://marketplace.eclipse.org/node/2637354) for your future Eclipse CDT powered Arduino development.