[SOLVED] zephyr with J-scope , when use swd RTT mode, always get "Failed to start RTT Sampling."

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

  • [SOLVED] zephyr with J-scope , when use swd RTT mode, always get "Failed to start RTT Sampling."

    Hardware:nrf52dk j-link OB J-scope version:v7.7.0
    Hi,everyone:
    I tried HSS mode, but it can't meet my needs.
    When I use RTT mode, the configuration is as follows
    test code

    C Source Code

    1. uint32_t zd = 0;
    2. while (true)
    3. {
    4. zd++;
    5. LOG_PRINTK("JScope_u4 %d\n", zd);
    6. k_sleep(2000);
    7. }

    RTT viewer ok:

    Source Code

    1. JScope_u4 2
    2. JScope_u4 3
    3. JScope_u4 4
    4. JScope_u4 5
    but, J-scope has been reprting the following errors

    Source Code

    1. Failed to start RTT Sampling.
    2. No RTT Channel named JScope_%Format% found
  • [img]https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1659671209604v1.png[/img]

    [img]https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1659671466286v3.png[/img]
    [img]https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1659671394014v2.png[/img]
  • Hello,

    please see our wiki regarding the use of J-Scope with RTT.
    wiki.segger.com/UM08028_J-Scop…on_to_use_it_with_J-Scope

    Your usage simply logs a string to an RTT buffer. With J-Scope you need to create a RTT buffer and write the values of the variables into it.

    Best regards,
    Matthias
    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.