SoftwareSerial library not compiling

Good Morning,

When I try to compile one of the software serial library examples I get the following error message:


In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\cores\tinymodern/WProgram.h:13:0,

from C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\cores\tinymodern/Arduino.h:4,

from C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\libraries\SoftwareSerial\SoftwareSerial.cpp:43:

C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)':

C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\cores\tinymodern/pins_arduino.h:109:9: error: expected ')' before ':' token

: (s6))

^

C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\cores\tinymodern/pins_arduino.h:111:33: note: in expansion of macro 'digitalPinToPCX'

define digitalPinToPCICR(p) digitalPinToPCX( p, &GIMSK, &GIMSK, &GIMSK, &GIMSK, &GIMSK, NULL )

^

C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\libraries\SoftwareSerial\SoftwareSerial.cpp:317:7: note: in expansion of macro 'digitalPinToPCICR'

if (digitalPinToPCICR(_receivePin)) {

^

C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\libraries\SoftwareSerial\SoftwareSerial.cpp:372:3: error: expected ':' before 'listen'

listen();

^

C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\libraries\SoftwareSerial\SoftwareSerial.cpp:372:10: error: operands to ?: have different types 'volatile uint8_t* {aka volatile unsigned char*}' and 'bool'

listen();

^

C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\libraries\SoftwareSerial\SoftwareSerial.cpp:372:11: error: expected ')' before ';' token

listen();

^

C:\Users\Administrator\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.1\libraries\SoftwareSerial\SoftwareSerial.cpp:372:11: error: expected ')' before ';' token

exit status 1 Error compiling for board ATtiny1634 (optiboot).


Could someone please help me?

Thanks in advance!

Post the program you are trying to compile.

Does it compile OK for an Uno?

...R

We can close the topic. Found the answer, the ATtiny1634 has hardware serial port so no need for the software serial library.