In the previous tutorial, we saw how to build and flash ESP-AT, but we didn’t look at what configuration options were available. In this tutorial we

2. Customising ESP-AT Firmware

submited by
Style Pass
2021-06-06 07:33:14

In the previous tutorial, we saw how to build and flash ESP-AT, but we didn’t look at what configuration options were available. In this tutorial we will learn how to configure the ESP-AT firmware in order to use the UART-0 interface for both info logging and AT commands.

All the ESP* modules come with the default AT firmware installed, but this firmware sends logs to the UART-0 interface (on our board, this is connected to the USB port throught the USB/UART bridge), and expects the commands to be sent to the UART-1 interface:

To use the UART-0 interface for both logs and commands, thus not requiring any additional USB/UART bridge, we must alter the configuration of the ESP-AT firmware. Recompiling the AT firmware is useful for other purposes too, for instance the SPP protocol of classic BT is not enabled by default, and can be enabled with a few configuration changes.

First let’s check to see if the UART-0 interface is set as default console output port, so first head to the location you downloaded the ESP-AT source and open the menuconfig tool:

Leave a Comment