Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RP2040 RTT Support / Sample? #132

Open
maincraft-io opened this issue Dec 9, 2024 · 5 comments
Open

RP2040 RTT Support / Sample? #132

maincraft-io opened this issue Dec 9, 2024 · 5 comments
Labels

Comments

@maincraft-io
Copy link

I’m trying to use RTT, but there’s no output in the console. What am I doing wrong?

#include "SEGGER_RTT.h"
#include "SEGGER_RTT_printf.c"

int main() 
{
    SEGGER_RTT_Init();
    
    while (true)
    {
        SEGGER_RTT_WriteString(0, "It works\n"); 
        sleep_ms(1000);
    }
}
image
@maincraft-io
Copy link
Author

And how can I change the 19111 port to another one? :)

@rgrr
Copy link
Owner

rgrr commented Dec 9, 2024

RTT with the yapicoprobe does not appear via telnet 19111, instead it is using the other USB-CDC.

Don't know how to find that interface in MacOS, but you have found the one for probe debug output, so it should be a snap.

@maincraft-io
Copy link
Author

I will check. Thank you.

@rgrr rgrr added the nobug label Dec 10, 2024
@tao-j
Copy link

tao-j commented Dec 11, 2024

there are 3 cdc

  1. target uart redirect
  2. probe debug
  3. rtt? (this issue is referring to)

However, the third cdc does not show up as a serial device either on linux or mac, have no windows to test. Does it show as a COM port in windows?

@rgrr
Copy link
Owner

rgrr commented Dec 11, 2024

No, there are two CDC. One which does UART/RTT redirect and one for probe debug.

If your log shows something like

---- no RTT_CB found

you should not expect anything from RTT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants