[SOLVED] Help neeeded making work System viewer with STM32

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [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 Source Code

    1. #include "SEGGER_SYSVIEW.h"

    and inside main()

    C Source Code

    1. SEGGER_SYSVIEW_Conf(); /* Configure and initialize SystemView */
    2. SEGGER_SYSVIEW_Start();

    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 Source Code

    1. 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?

  • Hello,

    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: segger.com/products/rtos/embos/
    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 you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.