es-ude / ElasticNodeMiddleware

A low overhead system software for the Elastic Node
https://www.uni-due.de/es/adaptivesystems.php
3 stars 4 forks source link

debugWriteLine() in debugUsb.c hangs program #32

Open saphieron opened 3 years ago

saphieron commented 3 years ago

When using the debug function debugWriteLine() from the debugUsb.c, that relies on Lufa, the application hangs indefinitely. After some tedious debugging process with some brave LEDs, the problem seems to only appear when using any functionality that internally calls lufaWaitUntilDone(). Once it gets to that function the application hangs.

As a workaround to be able to still debug code, use debugWriteString(), add \n and \r manually to the output string, and call debugTask(), regularly, e.g. after each while loop.