Skip to main content
T B
Associate III
June 3, 2022
Solved

auto start SWV

  • June 3, 2022
  • 1 reply
  • 1382 views

Hi,

the Serial wire viewer (SWV) has a command-line option.

This only launch the viewer and the user has to press R to start.

Is it possible to directly start the SWV?

Or is there a shell trick for this?

- Thomas

*********************************************

Manual

STM32_Programmer_CLI.exe -c port=swd -swv freq=32 portnumber=0

C:\Users\ST\swvLog\example.log

Serial wire viewer (SWV) command

-SWV

Description: This command allows the user to access the serial wire viewer console mode,

which displays the printf data sent from the target through SWO.

In this mode (see Figure 105) the user can start and stop the reception of the SWO data by pressing, respectively, the “R�? and “S�? buttons on the keyboard. T

This topic has been closed for replies.
Best answer by Aziz BRIGUI

Hello @Bacteriuslocher​,

Thank you for posting,

You can use the option -RA along with the command you mentioned in order to start the CLI SWV automatically.

If you have any further questions, do not hesitate to ask.

Best regards,

Aziz

1 reply

Aziz BRIGUI
Aziz BRIGUIBest answer
Technical Moderator
July 1, 2022

Hello @Bacteriuslocher​,

Thank you for posting,

You can use the option -RA along with the command you mentioned in order to start the CLI SWV automatically.

If you have any further questions, do not hesitate to ask.

Best regards,

Aziz

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.