Portenta Machine Control and PlatformIO RS485

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?

Thanks for your support

WB

Hello nixfindus,

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?

Please let me know if you get the example working :slight_smile:

/ Einar

Your topic was moved to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.