2012-10-02 06:58 PM
Hi,
Is anyone getting debug text via ITM_SendChar using ST-Link, gdb, and Eclipse? I've tried it for the first time, and I'm not seeing my debug text displayed in the Eclipse console view. I can confirm with breakpoints and single-stepping that ITM_SendChar is working, but I don't know if the ITM is not initialized correctly, or ST-Link/V2 doesn't support ITM text, or if ST-LINK_gdbserver doesn't support it, or if it needs a command line argument, or if I'm looking at the wrong Eclipse view. Any help would be greatly appreciated. Thanks, Bob2017-03-03 01:39 AM
Hello Bob,
Could you detail a bit more your settup:
what is your OS ?
Are you using a printf for your debug message ?
Have you inserted the GNU part to allow a printf to be sent throught the UART ?
Kind regards
Sirma
2017-03-03 07:59 AM
Use a leg (SWO) for the printing of messages.
The printing of messages through (SWO) uses program wait loops. There is no complete hardware support, there is no protection of messages, there is no back coupling.There is only one plus from this technology, it can work completely independently - without initialization of additional interfaces of debugging.For example, it is possible to forbid (to change) debug jgag and swd interfaces, to leave only one line (SWO) - and to read a log from the processor. It sometimes happens the useful to long-time independent testing of a ready-made product (days and months).
2017-03-03 08:09 AM
Requires the connection of SWO (PB3). Not supported by Cortex-M0
The ST-LINK supports SWV, the ST-LINK Utilities provide an SWV window for viewing the messages, and will configure the connection. It is critically important to have the clock speed setting match that of the target processor.
2017-03-04 06:00 AM
Why are you responding to questions posed 5 years ago?
2017-03-04 06:28 AM
Good question, I didn't even notice that, it just showed up in current activity. I'd assume it was listed as a related question, or flagged to ST Staff as an unanswered question.
2017-03-06 03:50 AM
Sorry, my bad.
It was unanswered, but I haven't notice the very old submission date.