Hi,
I just discovered the real time terminal functionality available with j-link and I think it's great.
I also like the feature that printf can be re-targeted to use the Segger RTT, however with uVision the standard way of re-targeting printf() is by supplying my own version of fputc() and fgetc().
The functions provided and the retarget examples are intended for use at a higher level because they handle the entire string and not 1 character at a time.
I know that for uVision in fputc() I could just call SEGGER_RTT_Write() and just pass 1 character at a time, but that seems inefficient. Is there a way to retarget higher level functions similar size_t __write() in IAR.
Or is there a better approach?
I hope that I explained myself clearly.
Regards,
Alex
I just discovered the real time terminal functionality available with j-link and I think it's great.
I also like the feature that printf can be re-targeted to use the Segger RTT, however with uVision the standard way of re-targeting printf() is by supplying my own version of fputc() and fgetc().
The functions provided and the retarget examples are intended for use at a higher level because they handle the entire string and not 1 character at a time.
I know that for uVision in fputc() I could just call SEGGER_RTT_Write() and just pass 1 character at a time, but that seems inefficient. Is there a way to retarget higher level functions similar size_t __write() in IAR.
Or is there a better approach?
I hope that I explained myself clearly.
Regards,
Alex