Skip to content
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

Closed
tommyclee042414thu opened this issue May 1, 2014 · 6 comments
Closed

st-term #228

tommyclee042414thu opened this issue May 1, 2014 · 6 comments

Comments

@tommyclee042414thu
Copy link

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?

@jcw
Copy link

jcw commented May 5, 2014

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

@tommyclee042414thu
Copy link
Author

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.

@araasch
Copy link

araasch commented Jun 4, 2015

An example of st-term which works would be great, the code appears to not be currently maintained.

@xor-gate
Copy link
Member

xor-gate commented May 4, 2016

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.

@Nightwalker-87
Copy link
Member

Nightwalker-87 commented Feb 26, 2020

st-term has been deprecated with the implementation of ARM semihosting in Release v1.3.0.
It was removed in commit 3fd0f09.

@Nightwalker-87
Copy link
Member

Closed by #507.

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants