j-trace support for STM32U5G9

  • Greetings!

    I'm trying to get 4 pin hw trace running for a custom stm32U5G9 board with the following setup:
    J-Trace Pro Cortex-M
    Ozone v3.38c
    processor clock = 160 MHz
    Target Interface SWD: 4 MHz
    TCLK = PE2, TD0 = PE3, TD1 = PE4, TD2 = PE5, TD3 = PE6
    attached JLinkScript

    I am able to build, load and run my project without specifying the JLinkScript and with Trace Source set to None.
    I am still able to load and run with the JLinkScript specified.
    When I add Trace Source to Trace Pins, Trace Port Width 4 bit, I get a "Target Connection Lost" message after the compare step of flash download.

    Has anyone used hw trace with an STM32U5 processor? Any suggestions of what to look at or what I might be missing?

    Thanks,
    -Rob

  • Hello,

    Thank you for your inquiry.
    You can find an example project for the STM32U575 EVAL Board here:
    https://kb.segger.com/ST_STM32U5#Tracing_on_ST_STM32U5

    So generally that should be working on custom boards as well, you might just need to adapt the trace pin init.

    Best regards,
    Nino

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!