Example for DK-S3-ADC Internal Temperature Sensor with use of Calibration Data, internal Reference Voltage, printf redirect to USB-CDC with verbose debug output and Segment-LCD.

This is based on some Renesas Examples and an improvement of a previous version I attached to a thread in the forum.
Some features are:
-ADC-HAL with readout of Pin-Input Channel, Internal Temperature Sensor (with Calibration Data fetched via the ADC-driver), and Internal Reference Voltage
-printf-redirect to USB-CDC
-plain text debug output for some SSP-Error Codes, including source file and line. (There is one line of code that demonstrates this, it should be located easily as it says where it can be found in the source)
-Segment LCD

I found one free terminal programm "Termite 3.4" that allows to easily switch the Com Port On and Off, as well as toggling the DTR-Line.
To show the DTR- and other Controls the "Status LEDs" switch has to be enabled in "Settings" under "Plugins"
There is another feature: The DeviceName of the USB-Port that the CDC comes up with (found in the registry) can be inserted in the Termite.ini
In my case this is Port=\Device\USBSER000. Termite should then find the port by its name, independend from the COM-Port number.
Together with printf over USB-CDC it may help in situtions where a debugger can not be connected.

The example may be easily modified to toggle between "normal" printfs and the plain text error output using the RTS-Line.
Or to use the RTS-Line to control other behaviour. Just in case inputs via the terminal should not be allowed.
However, I experienced that in combination with Termite, changing the RTS-Line only shows an effect when DTR is toggled once after changing the RTS-Status. Somewhere in the project there is an outcommented line in which the RTS-Status is used.