Sunday, February 25th 2018, 10:34am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



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: 716


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,