printf causes memory corruption
I’m using a project exported from mbed to SW4STM32 for NUCLEO_F401RE and it seems using printf can corrupt memory. I’ve read countless similar forum postings that seem to point to the use of newlib and I’ve tried a number of workarounds like different newlib related linker flags, different versions of GCC for ARM, fiddling with the linker script, but nothing seems to help. I’m a newbie so there are some things I don’t comprehend enough to try.
I have used similar code in a CubeMX based project on the same hardware not did not experience this memory corruption, so I’m wondering if it has something to do with the mbed export part of it?
Has anyone experienced this that can offer some suggestions?