Page 1 of 1

What Files to flash in esp8266 only for AT COMMANDS ?

Posted: Thu Jul 07, 2022 12:23 am
by Baldhead
Hi,

I know that here is only for esp32, but could someone tell me which firmware(s) (.bin) i need to flash in esp8266 to work only in AT COMMAND ?

I downloaded the file "ESP8266-IDF-AT_V2.2.1.0", but already flash some bin files(only one at a time) and does not work.

I need to put more than a .bin file in flash ?
What offsets ?

I have an old board Lolin NODEMCU V3.
Its for teaching only.

I already erase the flash before put firmware and nothing.

I also don't know where to change the baud rate for communication in at command(115200 or another value).

After reseting the board, in a arduino terminal, the baudrate, which show correct characters after esp8266 hardware reset, is 74480.

Re: What Files to flash in esp8266 only for AT COMMANDS ?

Posted: Thu Jul 07, 2022 5:19 pm
by Baldhead
Any suggestion is appreciated.

Re: What Files to flash in esp8266 only for AT COMMANDS ?

Posted: Fri Jul 08, 2022 6:31 am
by ESP_Sun
Hi,

Whether there is a download.config file in the firmware package you downloaded, you can download it to the device according to the configuration in that file.

Re: What Files to flash in esp8266 only for AT COMMANDS ?

Posted: Fri Jul 08, 2022 11:04 pm
by Baldhead
Hi @ESP_Sun,

ESP8266-AT-V2.2.1.0

"download.config" file:
--flash_mode dio --flash_freq 80m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x9000 ota_data_initial.bin 0x0 bootloader/bootloader.bin 0x10000 esp-at.bin 0xF0000 at_customize.bin 0xFC000 customized_partitions/client_ca.bin 0x106000 customized_partitions/mqtt_key.bin 0x104000 customized_partitions/mqtt_cert.bin 0x108000 customized_partitions/mqtt_ca.bin 0xF1000 customized_partitions/factory_param.bin 0xF8000 customized_partitions/client_cert.bin 0xFA000 customized_partitions/client_key.bin

I need all these .bin for only a "simple" "at command" ?
My board i think that have 4MB too, so, maybe, the memory flash offset need to change, i dont know.

Also need two cables to test "at commands" in this board. I had initially imagined that only the single usb cable would work for esp32 program flashing as well as "AT" communication with esp8266.

Thank's.

Re: What Files to flash in esp8266 only for AT COMMANDS ?

Posted: Mon Jul 11, 2022 2:38 am
by ESP_Sun
Baldhead wrote:
Fri Jul 08, 2022 11:04 pm
Hi @ESP_Sun,

ESP8266-AT-V2.2.1.0

"download.config" file:
--flash_mode dio --flash_freq 80m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x9000 ota_data_initial.bin 0x0 bootloader/bootloader.bin 0x10000 esp-at.bin 0xF0000 at_customize.bin 0xFC000 customized_partitions/client_ca.bin 0x106000 customized_partitions/mqtt_key.bin 0x104000 customized_partitions/mqtt_cert.bin 0x108000 customized_partitions/mqtt_ca.bin 0xF1000 customized_partitions/factory_param.bin 0xF8000 customized_partitions/client_cert.bin 0xFA000 customized_partitions/client_key.bin

I need all these .bin for only a "simple" "at command" ?
My board i think that have 4MB too, so, maybe, the memory flash offset need to change, i dont know.

Also need two cables to test "at commands" in this board. I had initially imagined that only the single usb cable would work for esp32 program flashing as well as "AT" communication with esp32.

Thank's.
Hi,

Yes, you can download the factory/factory_xxx.bin to address 0, or several binaries to different addresses according to ESP-AT-Bin/download.config.

If your board is esp8266-wroom-02D or in this link (https://docs.espressif.com/projects/esp ... e.html#id4) Any 8266 module, if your board flash is greater than or equal to 2MB, theoretically you can directly use ESP8266 AT general firmware.

If you just want to use a USB to run 8266 AT commands, you can download the ESP8266-WROOM-02-N_AT_Bin firmware from github (<How to Download the Latest Temporary Version of AT Firmware from GitHub> https://docs.espressif.com/projects/esp ... rom-github), the command port of the firmware is the same serial port as the download port.

Re: What Files to flash in esp8266 only for AT COMMANDS ?

Posted: Tue Jul 12, 2022 8:42 am
by vijaylohan
I was wondering if the ESP chip is pre-bootloaded. I mean if I buy a chip(not the module) do I have to first burn the bootloader to start uploading the program? I am thinking to use the ESp32-S2 version.

Re: What Files to flash in esp8266 only for AT COMMANDS ?

Posted: Wed Jul 13, 2022 2:56 am
by ESP_Sprite
All ESP32 chips (as well as the ESP8266 and derivates) come with a bootloader in ROM (as in: from factory and not erasable or changable) that allows programming via the UART and (if the chip has them) the USB-OTG and USB-serial-JTAG ports. You should be able to flash the ESP32-S2 either via serial or via USB.

Re: What Files to flash in esp8266 only for AT COMMANDS ?

Posted: Wed Jul 13, 2022 5:16 am
by vijaylohan
Thanks @ESP_Sprite !! I was looking this one from quite a few time.