Page 1 of 1

ESP32 AT Download

Posted: Wed Apr 10, 2019 9:49 pm
by bmo_801
Hi all,

I am having issues downloading the esp-at from "ESP32 AT Bin V1.1.3" app to the ESP32-WROOM-32 using the "ESP32 DOWNLOAD TOOL V3.6.2.2". Does anyone know what the address locations need to be set for the bootloader, partition, and application needs to be? And also which bins need to be used for each? In the download.config file there are address locations for the bin files, but I cannot find one for the factory_param_WROOM-32.bin. I have tried every combo I can think of. I have also tried building the esp-at from scratch found on git, which resulted in a infinite reboot loop.

After downloading the following:
SPI SPEED 40MHz
SPI MODE DIO
FLASH SIZE 16Mbit
bootloader.bin @ 1x1000
factory_param_WROOM-32.bin @ 0x8000
esp-at.bin @ 0x10000

UART0 output:
ets Jun 8 2016 00:22:57(CR)(LF)
(CR)(LF)
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)(CR)(LF)
configsip: 0, SPIWP:0xee(CR)(LF)
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00(CR)(LF)
mode:DIO, clock div:2(CR)(LF)
load:0x3fff0018,len:4(CR)(LF)
load:0x3fff001c,len:5656(CR)(LF)
load:0x40078000,len:0(CR)(LF)
ho 12 tail 0 room 4(CR)(LF)
load:0x40078000,len:13844(CR)(LF)
entry 0x40078fc4(CR)(LF)
[0;32mI (30) boot: ESP-IDF v3.0.7 2nd stage bootloader[0m(CR)(LF)
[0;32mI (30) boot: compile time 09:04:31[0m(CR)(LF)
[0;32mI (30) boot: Enabling RNG early entropy source...[0m(CR)(LF)
[0;32mI (35) boot: SPI Speed : 40MHz[0m(CR)(LF)
[0;32mI (39) boot: SPI Mode : DIO[0m(CR)(LF)
[0;32mI (43) boot: SPI Flash Size : 4MB[0m(CR)(LF)
[0;31mE (47) flash_parts: partition 0 invalid magic number 0xfcfc[0m(CR)(LF)
[0;31mE (53) boot: Failed to verify partition table[0m(CR)(LF)
[0;31mE (58) boot: load partition table error![0m(CR)(LF)
user code done(CR)(LF)

Thanks,

Re: ESP32 AT Download

Posted: Thu Apr 11, 2019 1:53 am
by ESP_XCGuang
Please refer to `ESP32_AT_Release_Note.pdf` and chapter "1.2. Downloading AT Firmware into Flash" in `https://www.espressif.com/sites/default ... les_en.pdf`

Re: ESP32 AT Download

Posted: Thu Apr 11, 2019 10:35 pm
by bmo_801
xcguang,

Thanks for the suggestion. I have solved the problem. When building the esp32-at I was using the wrong idf version. I fixed this by re-naming my old idf and then running these commands using msys32 from inside the esp folder:
git clone --recursive https://github.com/espressif/esp32-at.git
rm sdkconfig
make defconfig
make menuconfig
make flash

This installs the esp-idf needed to build the esp32-at.

Thanks for the help!