-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting printf output on command line from STM32F411E-Discovery #674
Comments
You need to link a special rdimon library (glibc) into your application, or write a little assembly code using http://bgamari.github.io/posts/2014-10-31-semihosting.html Good luck. |
So i figured it out how to get console output using semihosting:
|
Thank you for your feedback, but this is related to usage of OpenOCD and not st-util. You should run |
Thanks for the info, the manpage of st-util was missing the "--semihosting" flag, but i see, you already fixed that ^^. I have another question now: If you run "st-util --semihosting" the execution is paused untill you connect to it with gdb. Is there a way to directly start the execution if you just want to get some output (like with openocd where you can choose between "reset halt" and "reset run" in your config files) |
Semihosting uses the |
@Matombo thank you that is incredibly helpful! |
I have a noob question:
I try to get printf output from my board without using an serial adapter, i already read that st-term got ditched in favor of ARM semihosting but every explanation on how to use it, i can find, involves some kind of ide.
And since i'm using a makefile project and st-flash directly that doesn't help much. So i'm currently completly clueless und which tool i should use or google to get some output.
The text was updated successfully, but these errors were encountered: