Closed elastra21 closed 1 year ago
Memory usage change @ 589becb4a024f9c7922bd5bc9737338d653b702a
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:mbed_portenta:envie_m7 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
I'd rather fix at core level with something like
diff --git a/variants/PORTENTA_H7_M4/pins_arduino.h b/variants/PORTENTA_H7_M4/pins_arduino.h
index 97a055d4..b99d9cc8 100644
--- a/variants/PORTENTA_H7_M4/pins_arduino.h
+++ b/variants/PORTENTA_H7_M4/pins_arduino.h
@@ -135,6 +135,11 @@ void _ontouch1200bps_();
#define digitalPinToPort(P) (digitalPinToPinName(P)/16)
+#define SERIAL_PORT_USBVIRTUAL Serial
+#define SERIAL_PORT_MONITOR Serial
+#define SERIAL_PORT_HARDWARE Serial
+#define SERIAL_PORT_HARDWARE_OPEN Serial1
+
#define CRYPTO_WIRE Wire1
#endif //__PINS_ARDUINO__
@facchinm Well that it'll be a better solution but for now I mean to allow to all the developers keep working would be great to fix that issue even if is a temporal patch. I found the solution months ago and right know that I start to work again with the PMC was complicated to find it again.
Fixed by https://github.com/arduino/ArduinoCore-mbed/commit/d9ce9420ac44c677ca566d102986f178d25f6839 , will be available in the upcoming core release (3.5.x)
I sorround the ArduinoRS485 dependency with a
https://github.com/elastra21/Arduino_MachineControl-ArduinoRS485/blob/589becb4a024f9c7922bd5bc9737338d653b702a/src/Arduino_MachineControl.h#L6-L8
and also the COMMClass https://github.com/elastra21/Arduino_MachineControl-ArduinoRS485/blob/589becb4a024f9c7922bd5bc9737338d653b702a/src/Arduino_MachineControl.h#L111-L181
to avoid compilations error and can use the library in both cores.