[SOLVED] ST Nucleo F411 SWO

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

  • [SOLVED] ST Nucleo F411 SWO

    Hi,

    I upgraded the STLink on my ST Nucleo F411 (STM32F411RE) board to JLink but I can't get SWO to work. Eclipse doesn't give me any error but no output either, the "Semihosting and SWV" console just says "SEGGER J-Link GDB Server V5.12g - Terminal output channel" but no output appears, although I'm sending to ITM stimulus port 0 continously. I checked the SWO header on the board and it is connected to PB3 via jumper SB15.

    Next thing I did was to connect directly using JLink Commander to interrogate the available SWOSpeed and the JLink Commander tells me

    Source Code

    1. *** J-Link V5.12g Warning ***
    2. The connected emulator does not support serial wire output (SWO).


    Here's the full interaction with JLink Commander:

    Source Code

    1. ➜ ~ JLinkExe
    2. SEGGER J-Link Commander V5.12g (Compiled May 27 2016 16:55:14)
    3. DLL version V5.12g, compiled May 27 2016 16:55:08
    4. Connecting to J-Link via USB...O.K.
    5. Firmware: J-Link STLink V21 compiled Apr 15 2016 10:47:22
    6. Hardware version: V1.00
    7. S/N: 775171134
    8. VTref = 3.300V
    9. Type "connect" to establish a target connection, '?' for help
    10. J-Link>connect
    11. Please specify device / core. <Default>: STM32F411RE
    12. Type '?' for selection dialog
    13. Device>STM32F411RE
    14. Please specify target interface:
    15. J) JTAG (Default)
    16. S) SWD
    17. TIF>S
    18. Specify target interface speed [kHz]. <Default>: 4000 kHz
    19. Speed>4000
    20. Device "STM32F411RE" selected.
    21. Found SWD-DP with ID 0x2BA01477
    22. Found SWD-DP with ID 0x2BA01477
    23. Found Cortex-M4 r0p1, Little endian.
    24. FPUnit: 6 code (BP) slots and 2 literal slots
    25. CoreSight components:
    26. ROMTbl 0 @ E00FF000
    27. ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS
    28. ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT
    29. ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB
    30. ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM
    31. ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU
    32. ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM
    33. Cortex-M4 identified.
    34. J-Link>SWOSpeed
    35. *** J-Link V5.12g Warning ***
    36. The connected emulator does not support serial wire output (SWO).
    37. *** J-Link V5.12g Warning ***
    38. Supported speeds:
    39. J-Link>q
    Display All


    I'm running this on Mac OSX 10.10.5. My question is whether SWO is supported at all by JLink on ST Nucleo boards, or whether I'm doing something wrong or missing a crucial step.

    If it's not available, what alternatives do I have to send debug information back to my host computer using JLink? I want to avoid Semihosting if possible.


    Thanks in advance

    Simon

    The post was edited 1 time, last by simon42 ().

  • Hi,

    Firmware: J-Link STLink V21 compiled Apr 15 2016 10:47:22

    The initial firmware did not support SWO. A new firmware is now available:
    segger.com/jlink-st-link.html

    If it's not available, what alternatives do I have to send debug information back to my host computer using JLink? I want to avoid Semihosting if possible.

    We recommend SEGGER RTT:
    segger.com/jlink-rtt.html#RTT_How_RTT_works
    [img]https://www.segger.com/cms/admin/uploads/imageBox/RTT_SpeedComparison.png[/img]
    RTT sources ship free of charge with the J-Link software package, which is available here .

    Best regards,
    Niklas
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    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.
  • I'll reflash the new firmware and try again and also give RTT a try.

    Just to make sure that there are not misunderstandings:
    RTT has *nothing* to do with SWO!
    RTT also works without having the SWO pin connected. It also works on M0 targets which do not support SWO at all.


    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    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.