Skip to main content
Associate II
June 4, 2024
Question

SWO Viewer in ST-LINK Utility

  • June 4, 2024
  • 2 replies
  • 12345 views

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 .

 

2 replies

Andrew Neil
Super User
June 4, 2024

@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?

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Vignesh_VAuthor
Associate II
June 4, 2024

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.

Tesla DeLorean
Guru
June 4, 2024

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 VenmoUp vote any posts that you find helpful, it shows what's working..
Pavel A.
Super User
June 4, 2024

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 ?

 

Vignesh_VAuthor
Associate II
June 4, 2024

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.

Tesla DeLorean
Guru
June 4, 2024

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 VenmoUp vote any posts that you find helpful, it shows what's working..