Skip to content

Commit 7a80d00

Browse files
committed
Add debugging instructions
1 parent a71ab27 commit 7a80d00

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,16 @@ This limitation only affects Portenta C33 boards.
6565
## 📖 Documentation
6666

6767
For more information about this library please read the documentation [here](./docs).
68+
69+
## 🐛 Debugging
70+
71+
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.
72+
73+
```cpp
74+
#include <ArduinoRS485.h>
75+
#include <Arduino_UnifiedStorage.h>
76+
77+
void setup(){
78+
debugPrint("I'm alive!");
79+
}
80+
```

0 commit comments

Comments
 (0)