Monday, May 21st 2018, 3:07pm UTC+2

You are not logged in.

  • Login
  • Register



Date of registration: Nov 28th 2017

Posts: 4


Tuesday, November 28th 2017, 11:30am

[SOLVED] Help neeeded making work System viewer with STM32

Hi there,

My currently setup is STM32L476 with J-link EDU 8connected without SWO pin, next board version) would have it.
Since now I have been developing with ozone without problems.

Now I'm using freeRTOS and I would like to see/debug my tasks using system viewer.

There is very little information on how to use it with ST microcontrolles, but I've started with the System Viwer Manual and found the first problem:

at main I have added:

C/C++ Source code

#include "SEGGER_SYSVIEW.h"

and inside main()

C/C++ Source code

	SEGGER_SYSVIEW_Conf(); /* Configure and initialize SystemView */


before creating the freeRTOS task and before running freeRTOS

but after that, when I run it, it gets stuck at port.c (freeRTOS folder) line 752:

C/C++ Source code

configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );

What I'm missing?
Is mandatory to have the SWO pin connected?
does anyone knows a guide or tutorial for ST mcus?



Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,048


Monday, December 4th 2017, 11:25am


Thank you for your inquiry.

SWO is not needed for Systemview whatsoever. It completely relies on RTT.
There is no STM32 specific description in the manual as all setups for all supported Coretypes is the same.
In the manual under "Supported OSes" you can find how to set up Systemview for FreeRTOS.
To find out why the assert gets called check your callstack where the call came from.

Did you know that we also offer a RTOS which is the world leading OS for embedded devices?
More information can be found here:
With embOS you also don't need to configure Systemview as it runs out of the box.

Best regards,
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: