https://docs.espressif.com/projects/esp-at/en/latest/esp32/
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html
git clone -b v2.4.0.0 --recursive https://github.com/espressif/esp-at.git
Full Documentation at: https://docs.espressif.com/projects/esp-at/en/latest/esp32/Compile_and_Develop/How_to_clone_project_and_compile_it.html
- Clone ESP-AT v2.4.0.0:
git clone -b v2.4.0.0 --recursive https://github.com/espressif/esp-at.git
- Change to the repository directory:
cd esp-at
./build.py install
-> Select Platform: ESP32 (Option 1) -> Select Module: WROOM-32 (Option 1) -> Select Silence Mode (Option 1)./build.py menuconfig
-> (Top) -> Compiler options -> Optimization Level -> Enable (X) Optimize for size (-Os)
-> (Top) -> Component config -> AT -> Disable [ ] AT ble command support.
-> (Top) -> Component config -> AT -> Disable [ ] AT ble hid command support.
-> (Top) -> Component config -> AT -> Disable [ ] AT blufi command support.
-> (Top) -> Component config -> AT -> Disable [ ] AT bt command support.- Modify AT Command Port Pins to UART0
(https://docs.espressif.com/projects/esp-at/en/latest/esp32/Compile_and_Develop/How_to_set_AT_port_pin.html#modify-command-port-pins)
-> Editcomponents/customized_partitions/raw_data/factory_param/factory_param_data.csv
-> Set PLATFORM_ESP32 WROOM-32uart_port: 0
,uart_tx_pin: 1
,uart_rx_pin: 3
,uart_cts_pin: -1
,uart_rts_pin: -1
./build.py build
./build.py -p (PORT) flash
(replace PORT with your serial port name, for example/dev/ttyACM0
)
Documentation on how to flash:
https://docs.espressif.com/projects/esp-at/en/latest/esp32/Get_Started/Downloading_guide.html#linux-or-macos
Steps:
pip install esptool==4.3
(latest version should work also)
wget https://github.com/amiclaus/linux_noos_guides/releases/download/release/ESP32-WROOM-32-AT-NINA-W102.zip
unzip ESP32-WROOM-32-AT-NINA-W102.zip -d "$(basename -s .zip ESP32-WROOM-32-AT-NINA-W102.zip)"
cd ESP32-WROOM-32-AT-NINA-W102
esptool.py --chip auto --port PORTNAME --baud 115200 --before default_reset --after hard_reset write_flash -z download.config
(Replace download.config
with the content inside the file found in ESP32-WROOM-32-AT-NINA-W102 folder)
wget https://github.com/amiclaus/linux_noos_guides/releases/download/release/flash_nina.hex
Connect via serial port to the device and test the AT command support (baud rate 115200, CR+LF termination)
https://docs.espressif.com/projects/esp-at/en/latest/esp32/AT_Command_Set/Basic_AT_Commands.html#at-test-at-startup