How to redirect printf?
I have generated a project in CubeIDE and I wish to redirect printf's output. Alas, neither of the methods I've found by googling work: writing a custom _write() - function does nothing, writing a custom __io_putchar() does nothing. These are the methods that many posts here on the forums have told one to use and they're also what the examples do and yet they don't work.
Does the code generated by CubeIDE require some extra steps or what the hell is going on?