Skip to main content
RBors.2
Visitor II
June 3, 2023
Question

fprintf not working in some STM32CubeIDE configuration

  • June 3, 2023
  • 2 replies
  • 1059 views

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

This topic has been closed for replies.

2 replies

Pavel A.
June 3, 2023

missing fflush ?

Billy OWEN
ST Employee
June 5, 2023

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