cancel
Showing results for 
Search instead for 
Did you mean: 

fprintf not working in some STM32CubeIDE configuration

RBors.2
Associate

Hi.

I am working with STM32CubeIDE and using the using STM32F469I-DIDCO. I created a standalone project and enabled semihosting: I can properly open and write into a file with fprintf function.

I then switched to my current project (in C++) and enabled semihosting there. I can compile and link properly, I can see that I can open and close a file, but nothing is written inside.

Can you please help? I searched online but can't find a way to make it working, and not sure what are the differences between the two projects (except one in compiled with gcc and the other g++) that would explain why it does not print.

Thanks

2 REPLIES 2
Pavel A.
Evangelist III

missing fflush ?

Billy OWEN
ST Employee

Hi @Remo Borsella​ 

The forum moderator had marked your post as needing a little more investigation and direct support. An online support case has been created on your behalf, please stand by for just a moment and you will hear from us.

Regards,

Billy