Good morning,
I am trying to use the Hello World demo to see how the terminal works using mcxc242.
I am using teraterm. I can see PRINTF correctly, but GETCHAR() or SCANF() to send values from the keyboard does not seem to work.
Is there anything I need to enable?
Thank you for your reply.
Hello @Transidico
GETCHAR()
function works properly.
Thank you.
BR
Alice
BR
Alice
Are you using the UART or semihosting for your input/output?
Typically, most terminal views do not support semihosting, but built-in terminal views in the IDE might support it.
And if using semihosting, most implementation do only implement output, no input. If you want input, you have to use a library like this one: https://mcuoneclipse.com/2023/03/09/using-semihosting-the-direct-way/
I hope this helps,
Erich
Good morning,
With semihost, both input and output work via the mcxpresso console, whereas if I enable it with uart, I see it working on the teraterm terminal only in output, not in input. I am not using the external debugger, only USB.
I don't really care which mode I choose (UART or semihost), the important thing is that I can get the characters from the keyboard via Teraterm.
What should I do? Is it possible without an external debugger?
Thanks in advance, bye.
Translated with DeepL.com (free version)
Yes, you can read from the UART console too.
Can you check your _read() function? This is where it gets the data.