1 year, 5 months ago. This question has been closed. Reason: Duplicate question
serial.printf stucks in WWDG_IRQHandler (but stdio printf works) when using compiled mbed
Hi, I have ported mbed to custom targets (STM32F3 and STM32L4), the project has been created via CLI and then exported to SW4STM32 (vi aCLI exporter). Some serial.print statements are used, they are working fine.
I made a second project including compiled mbed instead of sources, the compiled mbed folder has been created with CLI tool (from the working mbed-os folder of the first project). This project compiles and works fine, except the serial.printf statements are ending in WWDG_IRQHandler which basically is a crash improperly handled (it stucks here).
I noticed something interresting ; stdio printf statementsare working fine. so I believe somehow the mecanism redirecting stdio printf to the uart port is not the same as the one used for serial.printf (maybe it doesnt use stream?).
Anyway, that's how it is, on the project with mbed source both serial.printf and printf are working fine, none stucks in WWDG_IRQHandler. On the project with compiled mbed (totally identical otherwise), serial.printf always stucks in WWDG_IRQHandler and stdio printf works fine. The problem is not related to the main code which only setup serial ports and oes printf/serial.printf statements. I did the same for the second target, the exact same problem is occuring.
If anyone has a clue please advise (mbed support if you hear me... Thank you.