cancel
Showing results for 
Search instead for 
Did you mean: 

SWO Viewer in ST-LINK Utility

Vignesh_V
Associate II

Hi Friends,

 I need Yours Help. I have  working on  STM32F407VET6  development board  and  I have to write on simple code like count the values. I want to see the data in SWO (Serial Wire Viewer).But using STM32CUBEIDE to flash the code to my code is not Done . Because, My board  is not support to flash the code by using STM32CUBEIDE.So,I have using ST-LINK Utility to flash the code to my board. But SWO is correctly enabled but unfortunately count value is not print in the SWO viewer. So, how to I have the data in SWO Viewer. I have to attach the my software screenshot and source code for your reference that boxed line only I have  add to see the count values. Thanks in  advance for yours Guidance .

 

22 REPLIES 22
Andrew Neil
Evangelist III

@Vignesh_V wrote:

My board  is not support to flash the code by using STM32CUBEIDE.


What do you mean by that?

STM32CubeIDE is totally agnostic to what board you use - if you have the SWD (or JTAG) connection, it will use it.

 


@Vignesh_V wrote:

I want to see the data in SWO (Serial Wire Viewer). .


Any particular reason for that? Would a serial terminal not be simpler?

 

Pavel A.
Evangelist III

Is this a custom board or one of ST eval.  boards? Does it have on-board or external ST-LINK?

 My board  is not support to flash the code by using STM32CUBEIDE.

What error message do you see in CubeIDE ?

 

I have use the STMF407VET6 Development Board .Yes it is on board ST-Link.I have attached my Stm32cubeIDE shows error when I flash the code to my STM32 development board in below.

I did not know why my board is not support in STM32CUBEIDE  i use Standard board .I have use Trace Asynchronous Sw instead of JTAG in system core SYS option. Because I have see the data through serial so i have use SWV. You have to tell if any other option was there in to see the data serially (like Arduino Serial Monitor).I have attached below i used development board in below.

It doesn't have a template for your board, but the tools can use it. You'll just have to deal with the chip and pin specifics when using the code generation tools.

Get a schematic for the board, and perhaps create a couple of basic projects

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Reason, You don't have an ST-LINK set up correctly, or the GDB Server settings.

Is this an authentic ST-LINK ? Can you set it in Device Manager? Can you use STM32 Cube Programmer to connect to it?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

@Vignesh_V wrote:

I did not know why my board is not support in STM32CUBEIDE.


What makes you say that it's "not supported" ?

Again, all the STM32CubeIDE needs is the debug connection - it neither known nor cares nor needs any details of the board.

If the ST-Link utility can use  the connection, then STM32CubeIDE can use it.

But not both at the same time!

 


@Vignesh_V wrote:

Because I have see the data through serial so i have use SWV. 


I don't understand what you mean by that

 


@Vignesh_V wrote:

You have to tell if any other option was there in to see the data serially (like Arduino Serial Monitor)..


Yes, you can do that: you send the data out of the STM32 using a UART, and connect that, eg, through a USB-to-UART cable, to a terminal on a PC. (this is exactly how Arduino & its serial monitor works).

 


@Vignesh_V wrote:

I have attached below i used development board in below.


Just a picture doesn't really tell us a lot - give us full details of make, model, etc. Provide a link to the seller's page; schematics, etc.

Perhaps it would be better if you started with an ST board - such as a NUCLEO-F401RE - then you wouldn't have all the difficulties of this unknown board.

Yes I have use the authentic St-Link.yes when I connect the st-Link to my system i my system device manager shows only  Universal Serial Bus device (STM32 STLink).In Port option com port didnot show anything.Yes i have use the Stm32 Cube Programmar i have spaced same issues on Stm32 Programmar likewise.You have to tell the step by step procedure for set the ST-Link correctly.I have attached the My STM32F407VET6 development with ST-Link orginal picture Below.

No, that is not a genuine ST-Link - that is a clone:

AndrewNeil_0-1717568323693.png

These are genuine ST-Links:

https://www.st.com/en/development-tools/st-link-v2.html

https://www.st.com/en/development-tools/stlink-v3set.html

See this document for details of the full range:

https://www.st.com/resource/en/technical_note/tn1235-overview-of-stlink-derivatives-stmicroelectronics.pdf 

 

Beware that these fakes can have differing pinouts:

https://community.st.com/t5/stm32-mcus-products/debug-problem-with-clone-st-linkv2/m-p/661306/highlight/true#M240845

Are you sure you've got the connections correct to match the particular clone that you have?

 

These clones don't have any Virtual COM Port (VCP).

 

You still haven't provided full details of that board you're using!