This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is there any way to use printf or log without UART?

Hello,

I am using custom board. Unfortunately, there is no UART for debugging on our custom board. In this case, can I show log?

Thanks.

Parents
  • If you're using a Segger JLink then you can use Segger RTT. You can even leave it in your final build at the cost of a little memory and a little CPU usage, it will just put logs to a ring buffer which won't be used. When you connect the Segger and debug you can use the RTTViewer (or whatever it's called) to read the logs, you can even make it bi-directional if you want and send it commands.

    It's documented on the segger site, it's very easy to use and I've pretty much given up messing about with UARTs now, I just use that, much easier.

    if you aren't using a Segger JLink then .. go find one!

Reply
  • If you're using a Segger JLink then you can use Segger RTT. You can even leave it in your final build at the cost of a little memory and a little CPU usage, it will just put logs to a ring buffer which won't be used. When you connect the Segger and debug you can use the RTTViewer (or whatever it's called) to read the logs, you can even make it bi-directional if you want and send it commands.

    It's documented on the segger site, it's very easy to use and I've pretty much given up messing about with UARTs now, I just use that, much easier.

    if you aren't using a Segger JLink then .. go find one!

Children
Related