Espressif IDF – Console Output

Last updated on 7 January 2021 by Suffocation

Direct output to the console is achieved in the IDF using printf. However, this should be used sparingly, as there are other mechanisms available for debugging or error handling, for example. These can then also be switched on and off via Menuconfig and therefore do not burden the CODE.

This is what the test code for a simple output looks like:

The programme is created, flashed and displayed with a reminder.

idf.py build flash -p COMx monitor

The monitor is a simple way to hook into the serial port without always having to start Putty or even the Arduino environment. This is what it looks like on my end:

Espressif-ID - Simple Console Output

Conclusion

Even in the IDF, a hello-world programme is nothing to be afraid of.

Related Posts

Main contribution

Sources

IDF-Start a Project

IDF-Creating Examples

Leave a Reply

Your email address will not be published. Required fields are marked *