[SOLVED] jtrace pro hangs when using trace , only power plugging segger helps

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

  • [SOLVED] jtrace pro hangs when using trace , only power plugging segger helps

    Hi
    I am having problems using IAR + Segger Jtrace pro + trace functionality on a stm32 L4

    After FW download with IAR and enabling function trace, i get the following error message from segger Jlink driver:
    """"Ltrace:(time
    since start 0.0000 021, thread RX): unknwon packet received from
    Jtrace. communication time out: requested 4 bytes , received 0 bytes.
    Abort debug session """"
    After this message Segger has crahsed and has to be power plugged.
    Are there any HW design guidelines when using trace pins?
    Any idea?
  • Hello,

    Thank you for your inquiry.

    Ltrace:(time
    since start 0.0000 021, thread RX): unknwon packet received from
    Jtrace. communication time out: requested 4 bytes , received 0 bytes.
    Abort debug session """"
    After this message Segger has crahsed and has to be power plugged.


    That message indicates inconsistent trace timings as you already assumed correctly.
    The following crash of the software is due to IAR not handling our errors correctly.

    Are there any HW design guidelines when using trace pins?


    Yes we have a setup guide available where you get more information about HW requirements of trace signals and a walk through how to use the extra features of the J-Trace PRO and troubleshooting tips.
    You can find that page here: segger.com/products/debug-prob…hnology/setting-up-trace/

    So you can either adjust the trace sampling timings or try to switch to 1-bit trace and narrow the issue down from there.

    Generally we recommend using our Ozone debug software to unleash the full potential of all tracing features available with J-Trace PRO.
    You can download it for free here: segger.com/downloads/jlink/
    So you can keep building your project with IAR, then simply open the output file created with Ozone and get all the advanced debug features.
    Also we can react more quickly to trace support requests as we are in full control of the Ozone software and can act accordingly.

    We also offer our own IDE called Embedded Studio that can be used for free for evaluation purposes and is the perfect addition to Ozone as go to trace debug software.
    SEGGER's Embedded Studio also offers a project importer, so you can simply import your IAR project and use our feature rich IDE.
    More information can be found here: segger.com/products/development-tools/embedded-studio/

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

    Or you can contact us via e-mail.