ESP_WROOM32_AT_V1.0 fails....
Posted: Sat Dec 02, 2017 9:28 pm
Hi,
I got the pre-built AT example v1.0 and flashed it into a DevKit with the following command, as per the included document download.config:
esp_tool 0x1000 bootloader.bin 0x20000 at_customize.bin 0x21000 customized_partitions/ble_data.bin 0x24000 customized_partitions/server_cert.bin 0x26000 customized_partitions/server_key.bin 0x28000 customized_partitions/server_ca.bin 0xf000 phy_init_data.bin 0x100000 esp-at.bin 0x8000 partitions_at.bin
where esp_tool is an alias:
alias esp_tool='python /home/user/esp-idf-v2.1.1/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect'
The chip is flashed correctly, but when I reset it, what I get on the console is:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:4576
load:0x40078000,len:11640
load:0x40080000,len:896
entry 0x400802b8
I (30) boot: Detected ESP32
I (50) boot: ESP-IDF v2.1-65-g8bca703 2nd stage bootloader
I (50) boot: compile time 07:53:05
I (51) boot: Enabling RNG early entropy source...
I (68) boot: SPI Speed : 40MHz
I (81) boot: SPI Mode : DIO
I (93) boot: SPI Flash Size : 4MB
I (105) boot: Partition Table:
I (117) boot: ## Label Usage Type ST Offset Length
I (139) boot: 0 phy_init RF data 01 01 0000f000 00001000
I (163) boot: 1 otadata OTA data 01 00 00010000 00002000
I (186) boot: 2 nvs WiFi data 01 02 00012000 0000e000
I (209) boot: 3 at_customize unknown 40 00 00020000 000e0000
I (232) boot: 4 ota_0 OTA app 00 10 00100000 00180000
I (256) boot: 5 ota_1 OTA app 00 11 00280000 00180000
I (279) boot: End of partition table
E (292) boot: ota data partition invalid and no factory, can't boot
user code done
Any explanation?
I got the pre-built AT example v1.0 and flashed it into a DevKit with the following command, as per the included document download.config:
esp_tool 0x1000 bootloader.bin 0x20000 at_customize.bin 0x21000 customized_partitions/ble_data.bin 0x24000 customized_partitions/server_cert.bin 0x26000 customized_partitions/server_key.bin 0x28000 customized_partitions/server_ca.bin 0xf000 phy_init_data.bin 0x100000 esp-at.bin 0x8000 partitions_at.bin
where esp_tool is an alias:
alias esp_tool='python /home/user/esp-idf-v2.1.1/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect'
The chip is flashed correctly, but when I reset it, what I get on the console is:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:4576
load:0x40078000,len:11640
load:0x40080000,len:896
entry 0x400802b8
I (30) boot: Detected ESP32
I (50) boot: ESP-IDF v2.1-65-g8bca703 2nd stage bootloader
I (50) boot: compile time 07:53:05
I (51) boot: Enabling RNG early entropy source...
I (68) boot: SPI Speed : 40MHz
I (81) boot: SPI Mode : DIO
I (93) boot: SPI Flash Size : 4MB
I (105) boot: Partition Table:
I (117) boot: ## Label Usage Type ST Offset Length
I (139) boot: 0 phy_init RF data 01 01 0000f000 00001000
I (163) boot: 1 otadata OTA data 01 00 00010000 00002000
I (186) boot: 2 nvs WiFi data 01 02 00012000 0000e000
I (209) boot: 3 at_customize unknown 40 00 00020000 000e0000
I (232) boot: 4 ota_0 OTA app 00 10 00100000 00180000
I (256) boot: 5 ota_1 OTA app 00 11 00280000 00180000
I (279) boot: End of partition table
E (292) boot: ota data partition invalid and no factory, can't boot
user code done
Any explanation?