How to redirect printf to another hardware?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YoLi_2201496
Level 1
Level 1
First like given

Hi ,

Is there any possible to redirect all the printf (both system & application) to another hardware (such as jlink rtt) other than uart?

0 Likes
1 Solution
Anonymous
Not applicable

you may check and overwrite platform_stdio_write() in platform_stdio.c

I agree it will be nice if STDOUT can redirected to SWO (Serial Wire Output).

View solution in original post

3 Replies
YoLi_2201496
Level 1
Level 1
First like given

Can Anybody help?

I really want to redirect all the stdout  to a led screen

0 Likes
Anonymous
Not applicable

you may check and overwrite platform_stdio_write() in platform_stdio.c

I agree it will be nice if STDOUT can redirected to SWO (Serial Wire Output).

thanks.....

0 Likes