-
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
st-term #228
Comments
Stlinky is a home-made variant of semi-hosting to get some text across the debugger link (both directions). So yes, it can be used for showing printf output. To make this work, you need to include some extra code on the target side, see http://ncrmnt.org/wp/2013/05/06/stlink-as-a-serial-terminal/ and https://github.com/nekromant/antares-examples/blob/master/arm/stm32f1x/stm32vl-stlinkydemo/src/main.c |
Busy on other STM32F2 chaos in past three months, I eventually get back to this subject. I hope you could tell me where I get the stlinky project for the STLINKY_MAGIC/st-term work. |
An example of st-term which works would be great, the code appears to not be currently maintained. |
A more robust way is to use the ARM Semihosting which is fully supported by OpenOCD and libc of https://launchpad.net/gcc-arm-embedded. |
|
Closed by #507. |
My running ends up with the "stlinky magic not found in sram :(" error. The cause is that the "if (STLINKY_MAGIC == READ_UINT32_LE(sl->q_buf))" check never succeeds. The hard-coded STLINKY_MAGIC value is 0xDEADF00D. My printf() code finds out that the sl->q_buf value on my stm32f207vg production board is 0x09e25030. I replaced 0xDEADF00D with 0x09e25030 and ran again. The same error occurred.
I am have two questions:
What is the purpose of the st-term utility? Is it for logging the printf() messages from the stm32 board to minicom on stlink designated tty node?
How to make the STLINKY_MAGIC match READ_UINT32_LE(sl->q_buf) happen, in order to run st-term successfully?
The text was updated successfully, but these errors were encountered: