2023-08-17 08:48 AM
IDE: Keil
Toolchain: MDK ARM compiler version 5
MCU: STM32F411RE
When GNU Extensions are enabled in the Compiler options/ --gnu compiler control string is enabled in C/C++ options for Target, the printf does not get executed. The GNU extensions are required for my application. Please help me resolve this.
2023-08-17 09:13 AM
Yes, looks like it is still calling/expecting the semihosting.
Are you using the Keil _ttywrch() / fputc() implementation, or the GNU/GCC _write() ones? Likely going to depend on the libraries / syscalls pulled in.. Suggest you look at the .MAP or get a disassembly / analysis via FROMELF tool.
2023-08-17 10:33 AM - edited 2023-08-17 11:08 AM
I am using fputc() implementation.
I don't have much knowledge on analyzing .MAP. I have attached the .map file that got generated.
2023-08-17 10:40 AM