Hi,
we like to use an Portenta Machine Control Hardware (H7 core) with VS-Code/PlatformIO. The Blink Sketch compiles and works ok so far. But when we compile the RS485 Half Duplex Example we get the Error:
.pio/libdeps/portenta_h7_m4/ArduinoRS485/src/RS485.cpp:189:18: error: 'SERIAL_PORT_HARDWARE' was not declared in this scope
The Same sketch in the Arduino IDE compiles perfect?
Does anyone know the problem or even better the solution?
I got the same problem when I had selected "M4 Core" in Tools>Boards > Arduino Mbed OS Portenta Boards
Instead of "M7 Core".
That was in the Arduino IDE, but maybe there is a similar configuration that needs to be made on this other platform?