Skip to main content
Visitor II
May 8, 2020
Question

Failed to enable SWV.

  • May 8, 2020
  • 5 replies
  • 4784 views

Hi, I use an stm32f429 discovery board to examine some exercises.

When I enter debug mode, SWV error message appears.

That message appears today, not until yesterday, but I didn't change any settings.

error message

Failed to enable SWV.

SWV will be disabled for this debug session.

Tell me how to solve it, please...

    This topic has been closed for replies.

    5 replies

    Visitor II
    June 4, 2020

    Same here.

    Yesterday all was still fine, then I put my laptop in sleep mode over night and logged in this morning like every day. Yesterday the SWV communitaction was still possible, today this error message. Already restarted CubeIDE, un/replugged the ST-Link programmer. Programming and debugging is still possible, but not the tracing functionality...

    @MPark.5: Could you already find a solution for this?

    Thanks a lot.

    Visitor II
    July 23, 2021

    FWI, I have this problem today. No reason, nothing has changed. Suddenly "Failed to enable SWV".

    This forum post is the only google hit I got.

    Will report back if I solve it.

    Visitor II
    July 23, 2021

    Reboot fixed it.

    Visitor II
    September 14, 2022

    I am facing the same problem. I am newly using Microcontroller. I don't know how to reboot it. How can I reboot it??

    Graduate II
    September 15, 2022

    Restart your computer and then run the application again. ​

    Visitor II
    September 15, 2022

    I did that, but still, I am getting that error.

    Graduate II
    September 25, 2024

    Hi

     

    I am also getting this error:

    Snag_1e81a950.png

     

    The project compiles fine.

     

    Snag_1e98eb3b.png

    I would assume, although I am probably incorrect, that symbols are retrieved from the map file which is being generated and is not locked or otherwise inaccessible.

     

    I tried restarting the IDE and my computer but the problem remains.

     

    This version of CubeIDE:

    Version: 1.16.1

    Build: 22882_20240916_0822 (UTC)

     

    seems to have a few issues. This error and the mis-framing of Live Expressions structures hasn't occurred in previous versions of the IDE, (in the thousands of hours of my experience of course.)

     

    See my post:

    https://community.st.com/t5/stm32-mcus-boards-and-hardware/smcubeide-live-expressions-incorrect-data-framing-weird/m-p/723598#M21511

     

    Kind Regards

    Rob