re-directing usart to printf
I’ve had headaches with getting printf working.
There are some examples under CubeMX that work for the example.
When I do the same examples under another project they don’t work, and the ST-Link doesn’t step into the function either.
When printf is connected with HAL_UART_Transmit() it pends on the charaters being sent.
With the HAL_UART_Transmit_IT(), it transmit a user supplied buffer, but its not a circular buffer, so if a 2nd printf is invoked before the first buffer is empty, it looks to me like it would fail.
Technically since its CubeMX I think the place to ask is
https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx
I’m currently trying an embedded derivative xprint and tying into a circular buffer - probably my own but another example here
https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https%3a%2f%2fmy%2est%2ecom%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fHAL_UART_Transmit_IT%20not%20working%20as%20expected&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=42