Re: STM32F407 and USB / UART goes into idle thread forever
Posted: Wed Feb 03, 2021 9:39 pm
Per the below link I see the non-blocking function sdWriteTimeout. However I see that chprintf uses sdWrite and I do not see any version of chprintf which includes the sdWriteTimeout variant.
https://www.playembedded.org/blog/stm32 ... os-serial/
Am I correct that there is no chprintf (or equivalent) function with timeout? If it does not exist, then I would have to create it which would be a fair bit of work for me. I was preventing a printf as an alternative to using sdWriteTimeout.
Also does sdWriteTimeout go to an idle state while it waits to timeout? It was unclear to me if it would remain idle until timeout, or if I could use those CPU cycles for other tasks while it waits.
https://www.playembedded.org/blog/stm32 ... os-serial/
Am I correct that there is no chprintf (or equivalent) function with timeout? If it does not exist, then I would have to create it which would be a fair bit of work for me. I was preventing a printf as an alternative to using sdWriteTimeout.
Also does sdWriteTimeout go to an idle state while it waits to timeout? It was unclear to me if it would remain idle until timeout, or if I could use those CPU cycles for other tasks while it waits.