From 5ec7ef997c65432426a955a2856fa67f3effa17c Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Wed, 16 Apr 2025 09:43:25 +0200 Subject: [PATCH 1/3] Allow compilation in absence of RS485 library --- src/Utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.h b/src/Utils.h index 628664c..1435dac 100644 --- a/src/Utils.h +++ b/src/Utils.h @@ -7,7 +7,7 @@ #include "Arduino_POSIXStorage.h" #include -#if !defined(HAS_SERIAL) && defined(HAS_RS485) +#if !defined(HAS_SERIAL) && defined(HAS_RS485) && __has_include() #include From a71ab277dcd20905d184ef0158da0c8f4fb36546 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Wed, 2 Jul 2025 10:38:53 +0200 Subject: [PATCH 2/3] Remove RS485 dependency --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 141496d..5940a5b 100644 --- a/library.properties +++ b/library.properties @@ -7,5 +7,5 @@ paragraph=With this versatile library, you can seamlessly handle various storage category=Data Storage url=https://github.com/arduino-libraries/Arduino_UnifiedStorage architectures=renesas_portenta,mbed_portenta,mbed_opta -depends=Arduino_POSIXStorage,ArduinoRS485 +depends=Arduino_POSIXStorage includes=Arduino_UnifiedStorage.h From 7a80d004c048624de38e7c7800bb146dd510aec9 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Wed, 2 Jul 2025 10:39:23 +0200 Subject: [PATCH 3/3] Add debugging instructions --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 14f70e8..943d5e6 100644 --- a/README.md +++ b/README.md @@ -65,3 +65,16 @@ This limitation only affects Portenta C33 boards. ## 📖 Documentation For more information about this library please read the documentation [here](./docs). + +## 🐛 Debugging + +Printing debug messages over the USB Serial port is not possible when the USB port is used for data storage operations. On Arduino Opta this is the only accessible option however, since no JTAG connector is exposed. Therefore you need to resort to the RS485 connector to see the output of your messages. To do so you can use the `debugPrint` function from this library. In order to make it work you will have to install the `ArduinoRS485` library beforehand and add the corresponding header in your sketch above the include for this library. e.g. + +```cpp +#include +#include + +void setup(){ + debugPrint("I'm alive!"); +} +``` \ No newline at end of file