-
-
Notifications
You must be signed in to change notification settings - Fork 855
Open
Labels
Description
I've been using the Unity framework for testing code for the RP2040 MCU on Arduino, however I have run into an issue with tests completing cleanly. I've narrowed this down to the call to Serial.end() in void unityOutputComplete(void) { Serial.end(); } [platformio/test/runners/unity.py] which then gets compiled into unity_config.cpp
This causes:
- Final test results to not always come through
- A permission denied error (due to closed serial port)
- Prevents the MCU from software reboots (because the serial is not running), and thus requires manual intervention to run subsequent tests.
I want to know if Serial.end() is necessary here at all? Is there any downside to leaving the Serial running at the end of the test (for Arudino this will sit in loop(), which is normal behavior).
Reactions are currently unavailable