Sorry if I'm in the wrong section, but I can't figure out what the problem is.
I have a problem with ATmega162 and MajorCore using the <SoftwareSerial.h> library.
Errors when compiling even with empty code:
#include <SoftwareSerial.h>
void setup() { }
void loop() { }
Errors:
In file included from
...\MajorCore\hardware\avr\3.0.2\cores\MCUdude_corefiles/Arduino.h:393:0,
...\MajorCore\hardware\avr\3.0.2\libraries\SoftwareSerial\src\SoftwareSerial.cpp:45:
...\MajorCore\hardware\avr\3.0.2\libraries\SoftwareSerial\src\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)':
...\MajorCore\hardware\avr\3.0.2\variants\standard/pins_arduino.h:49:35: error: invalid type argument of unary '*' (have 'int')
#define digitalPinToPCICR(p) (0)
^
...\MajorCore\hardware\avr\3.0.2\libraries\SoftwareSerial\src\SoftwareSerial.cpp:371:6: note: in expansion of macro 'digitalPinToPCICR'
*digitalPinToPCICR(_receivePin) |= _BV(digitalPinToPCICRbit(_receivePin));
^~~~~~~~~~~~~~~~~
exit status 1
I use Arduino: 1.8.19