What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

User avatar
DataDigger
Posts: 13
Joined: Sun Aug 20, 2017 1:58 am

What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

Postby DataDigger » Tue Mar 22, 2022 7:53 am

Hello
The Example shows how to flash an ESP32 and it works with my ESP32 :D
Now I have a few ESP-01 (not "S") and look for the Settings. :?:

Flash is a "T25S80, PB20s8, EE5502" recognised as 8Mbit.

But in v2.2.1.0_esp8266 are no server_cert.bin, server_key.bin, server_ca.bin ?
Do I have to make a custom "phy_init_data.bin" with a Hex Editor by hand ?

Code: Select all

0x? bootloader.bin
0x? at_customize.bin
0x? server_cert.bin (no File in Download ?)
0x? server_key.bin (no File in Download ?)
0x? server_ca.bin (no File in Download ?)
0x? client_cert.bin
0x? client_key.bin
0x? client_ca.bin
0x? phy_init_data.bin (no File in Download ?)
0x? esp-at.bin
0x? partitions_at.bin (no file, use instead partition-table.bin ?)


Btw, I tried for many hours V1.7.4-ESP8266_NonOS_AT_Bin_V1.7.4.zip get to work, but it does not boot:

Code: Select all

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 2592, room 16 
tail 0
chksum 0xef
load 0x88888888, len -2004318072, room 8 
flash read err, ets_unpack_flash_code
ets_main.c

Settings as in the Manual:

Code: Select all

blank.bin    0xFB000
esp_init_data_default.bin    0xFC000
blank.bin    0x7E000
blank.bin    0xFE000
boot.bin    0x00000
user1.1024.new.2.bin    0x01000  (from at/512+512)
Many Thanks in advance :)

ESP_Sun
Posts: 326
Joined: Thu Dec 30, 2021 9:52 am

Re: What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

Postby ESP_Sun » Wed Mar 23, 2022 7:04 am

Hi, you can download the firmware according to the configuration in the download.config file in the v2.2.1.0_esp8266 firmware you downloaded.(such as
download.rar
(286 Bytes) Downloaded 3857 times
). v2.2.1.0_esp8266 does not have server_cert.bin, server_key.bin, server_ca.bin, because 8266 AT does not support related commands.

User avatar
DataDigger
Posts: 13
Joined: Sun Aug 20, 2017 1:58 am

Re: What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

Postby DataDigger » Wed Mar 23, 2022 10:02 am

Looks better, but with the Settings

Code: Select all

--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 get the error

Code: Select all

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 6960, room 16 
tail 0
chksum 0xef
load 0x00000000, len 0, room 8 
tail 0
chksum 0xef
load 0x00000000, len 0, room 0 
tail 0
chksum 0xef
csum 0xef
csum err
ets_main.c

ESP_Sun
Posts: 326
Joined: Thu Dec 30, 2021 9:52 am

Re: What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

Postby ESP_Sun » Wed Mar 23, 2022 10:13 am

You can change the --flash_mode to DOUT and try to download it again.

User avatar
DataDigger
Posts: 13
Joined: Sun Aug 20, 2017 1:58 am

Re: What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

Postby DataDigger » Wed Mar 23, 2022 8:25 pm

Same error :(

User avatar
DataDigger
Posts: 13
Joined: Sun Aug 20, 2017 1:58 am

Re: What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

Postby DataDigger » Wed Mar 23, 2022 10:39 pm

I tried:

Code: Select all

$ esptool.py --port /dev/ttyUSB0 --baud 115200 flash_id
esptool.py v3.3
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: <secret>
Uploading stub...
Running stub...
Stub running...
Manufacturer: 5e
Device: 3214
Detected flash size: 1MB
Hard resetting via RTS pin...
So I changed the programming sequence (only dout gives no error) and dropped the mqtt:

Code: Select all

$ esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_mode dout --flash_freq 26m --flash_size 1MB 0x8000 partition_table/partition-table.bin 0x9000 ota_dat
a_initial.bin 0x0 bootloader/bootloader.bin 0x10000 esp-at.bin 0xF0000 at_customize.bin 0xFC000 customized_partitions/client_ca.bin 0xF1000 customized_partitions/factor
y_param.bin 0xF8000 customized_partitions/client_cert.bin 0xFA000 customized_partitions/client_key.bin
Result:

Code: Select all

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 6960, room 16 
tail 0
chksum 0x4f
load 0x3ffe8008, len 24, room 8 
tail 0
chksum 0xc6
load 0x3ffe8020, len 3196, room 8 
tail 4
chksum 0x3a
csum 0x3a
.
No error, but no function and the the blue LED is permanent on. But there is progress ;)

ESP_Sun
Posts: 326
Joined: Thu Dec 30, 2021 9:52 am

Re: What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

Postby ESP_Sun » Thu Mar 24, 2022 2:16 am

Seeing this sentence "Detected flash size: 1MB", I think you should download esp8285-1MB-at firmware from github and try it out (test temporary link: https://github.com/espressif/esp-at/act ... 1805278287), you can read the documentation how to download the latest temporary version of AT firmware from GitHub (https://docs.espressif.com/projects/esp ... ithub.html)

User avatar
DataDigger
Posts: 13
Joined: Sun Aug 20, 2017 1:58 am

Re: What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

Postby DataDigger » Thu Mar 24, 2022 8:44 am

Thanks for the link, but I don't have nerves left after the "only 5 minutes" to upload already took 3 days, and now also trying to compile.
I ordered bigger Flash devices, to solve the problems and even get more features 8-) :D
Thank you very much !

Arnaud Baixas
Posts: 1
Joined: Fri Apr 15, 2022 11:45 am

Re: What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

Postby Arnaud Baixas » Fri Apr 15, 2022 12:56 pm

Hello

I am trying to download the firmware to have recent AT command support on my ESP8266 on ESP-01 .
To do that, I use USB->UART adapter (based on CH340C) which seems pratical (for UART communication and to power ESP8266 using USB) . Only one rework concerning Reset and Flash signal.
I am using flash_download_tool_3.9.2.exe and also version "esp8285-1MB-at" you adviced ( https://github.com/espressif/esp-at/act ... 1805278287 taken from "artfact" area) .

With the "ESP8266 Download Tools V3.9.2" , I have the following information of my board :
(I do manually : Flash & reset at GND , then after Start push , Reset is unplugged)
Flash vendor:
85h:N/A
flash devID:6014h
N/A:8MBit
crystal 26MHz

Then I have programmed the chip by following setup indicated in the package "esp8285-1MB-at" :
(I copy by hand all setting obtained in flasher_args.json into the GUI of the programmer)

Code: Select all

        "0x8000" : "partition_table/partition-table.bin",
        "0x9000" : "ota_data_initial.bin",
        "0x0" : "bootloader/bootloader.bin",
        "0x20000" : "esp-at.bin",
        "0x18000" : "at_customize.bin",
        "0x1A000" : "customized_partitions/client_cert.bin",
        "0x1B000" : "customized_partitions/client_key.bin",
        "0x1C000" : "customized_partitions/client_ca.bin",
        "0x1D000" : "customized_partitions/mqtt_cert.bin",
        "0x1E000" : "customized_partitions/mqtt_key.bin",
        "0x1F000" : "customized_partitions/mqtt_ca.bin",
        "0x19000" : "customized_partitions/factory_param.bin"
Still from that flasher_args.json , I setup the programmer flash configuration : dout , 80MHz.
(No way to set the flash_size on the programmer GUI)

After have programmed the chip. I unplugged Flash pin and I unplug USB . (to power down)
Then I plug USB my UART->USB (power up) (Reset and flash signal unplugged).

I see that led ESP8266 ESP-01 stay blue . Then , no communication possible with my Uart console :o :shock: (Transmit CR+LF , Receive LF , 115200bps ,8bit data, no parity, 1bit stop) . That console configuration did work before firmware update.

Have you some ideas to help me to enable AT communication ? Is it something wrong regarding the programming of the chip ?
Thanks in advance for your help and best regards
Arnaud
ESPFront.JPG
ESPFront.JPG (68.74 KiB) Viewed 57179 times
ESPUnder.JPG
ESPUnder.JPG (60.91 KiB) Viewed 57179 times
ESPFront.JPG
ESPFront.JPG (68.74 KiB) Viewed 57179 times
Attachments
Programmer.JPG
Programmer.JPG (127.59 KiB) Viewed 57179 times

User avatar
DataDigger
Posts: 13
Joined: Sun Aug 20, 2017 1:58 am

Re: What Setting to get ESP-AT v2.2.1.0_esp8266 to work on ESP-01 ?

Postby DataDigger » Fri Apr 29, 2022 12:07 am

Depends on your Terminal Programm, eg. the Arduino Serial Monitor works, but you can't get screen or minicom
to send Line Feed (LF; \n) instead of Carriage Return (CR; \r)

So I use the Arduine IDE or:

Code: Select all

minicom --device /dev/ttyUSB0 --baudrate 112500 --noinit

AT  Ctrl+M  Ctrl+J  (no Enter nor Return Key)
OK

Who is online

Users browsing this forum: No registered users and 10 guests