ESP_WROOM32_AT_V1.0 fails....

johnabel
Posts: 46
Joined: Sun Mar 26, 2017 5:06 pm

ESP_WROOM32_AT_V1.0 fails....

Postby johnabel » 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?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: ESP_WROOM32_AT_V1.0 fails....

Postby WiFive » Sun Dec 03, 2017 5:31 am

If the ESP32-AT bin fails to boot, and prints "ota data partition invalid", you should run make erase_flash to erase the entire flash.
https://github.com/espressif/esp32-at

johnabel
Posts: 46
Joined: Sun Mar 26, 2017 5:06 pm

Re: ESP_WROOM32_AT_V1.0 fails....

Postby johnabel » Sun Dec 03, 2017 5:56 am

Thanks, that works...
This has to be done in another project, whatever. That confused me.

tiriri
Posts: 1
Joined: Fri Dec 08, 2017 12:24 pm

Re: ESP_WROOM32_AT_V1.0 fails....

Postby tiriri » Fri Dec 08, 2017 12:34 pm

I also try to run this bin. In Download Tool I set:
phy_init_data.bin to 0xf000
\bootloader\bootloader.bin to 0x1000
partitions_at.bin to 0x8000
esp-at.bin to 0x100000

After flashing ESP say:

Code: Select all

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 (50) boot: Enabling RNG early entropy source... 
I (68) boot: SPI Speed      : 40MHz 
I (80) boot: SPI Mode       : DIO 
I (93) boot: SPI Flash Size : 4MB 
I (105) boot: Partition Table: 
I (116) boot: ## Label            Usage          Type ST Offset   Length 
I (139) boot:  0 phy_init         RF data          01 01 0000f000 00001000 
I (162) 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 (255) boot:  5 ota_1            OTA app          00 11 00280000 00180000 
I (279) boot: End of partition table 
I (292) boot: Disabling RNG early entropy source... 
I (309) boot: Loading app partition at offset 00100000 
I (1938) boot: segment 0: paddr=0x00100018 vaddr=0x00000000 size=0x0ffe8 ( 65512) 
I (1939) boot: segment 1: paddr=0x00110008 vaddr=0x3f400010 size=0x24a58 (150104) map 
I (1955) boot: segment 2: paddr=0x00134a68 vaddr=0x3ffc0000 size=0x02e2c ( 11820) load 
I (1987) boot: segment 3: paddr=0x0013789c vaddr=0x40080000 size=0x00400 (  1024) load 
I (2009) boot: segment 4: paddr=0x00137ca4 vaddr=0x40080400 size=0x11878 ( 71800) load 
I (2069) boot: segment 5: paddr=0x00149524 vaddr=0x400c0000 size=0x00064 (   100) load 
I (2070) boot: segment 6: paddr=0x00149590 vaddr=0x00000000 size=0x06a78 ( 27256) 
I (2093) boot: segment 7: paddr=0x00150010 vaddr=0x400d0018 size=0xc94d8 (824536) map 
I (2120) cpu_start: Pro cpu up. 
I (2131) cpu_start: Single core mode 
I (2145) heap_alloc_caps: Initializing. RAM available for dynamic allocation: 
I (2168) heap_alloc_caps: At 3FFAFF10 len 000000F0 (0 KiB): DRAM 
I (2189) heap_alloc_caps: At 3FFB3000 len 00005000 (20 KiB): DRAM 
I (2209) heap_alloc_caps: At 3FFBBB28 len 00002000 (8 KiB): DRAM 
I (2230) heap_alloc_caps: At 3FFD2F00 len 0000D100 (52 KiB): DRAM 
I (2251) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM 
I (2272) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM 
I (2294) heap_alloc_caps: At 40091C78 len 0000E388 (56 KiB): IRAM 
I (2315) cpu_start: Pro cpu start user code 
I (2369) cpu_start: Starting scheduler on PRO CPU. 
I (2575) uart: queue free spaces: 10 
Bin version(Wroom32):1.0.0 
I (2578) wifi: wifi firmware version: 621ab6b 
I (2578) wifi: config NVS flash: enabled 
I (2579) wifi: config nano formating: disabled 
I (2583) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE 
I (2593) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE 
I (2610) wifi: Init dynamic tx buffer num: 32 
I (2611) wifi: Init dynamic rx buffer num: 32 
I (2611) wifi: wifi driver task: 3ffbd388, prio:23, stack:4096 
I (2616) wifi: Init static rx buffer num: 10 
I (2620) wifi: Init dynamic rx buffer num: 32 
I (2624) wifi: Init rx ampdu len mblock:7 
I (2628) wifi: Init lldesc rx ampdu entry mblock:4 
I (2633) wifi: wifi power manager task: 0x3ffdbb08 prio: 21 stack: 2560 
I (2639) wifi: wifi timer task: 3ffdcb88, prio:22, stack:3584 
I (2675) phy: phy_version: 362.1, 75758b5, Nov  1 2017, 16:02:06, 0, 0 
I (2676) wifi: mode : softAP (24:0a:c4:02:d0:e1) 
I (2682) wifi: mode : sta (24:0a:c4:02:d0:e0) + softAP (24:0a:c4:02:d0:e1) 
I (2685) wifi: mode : softAP (24:0a:c4:02:d0:e1)
And that is all, not response for AT (I send 0x61 0x74 0x0A 0x0D)

where is the problem?

Who is online

Users browsing this forum: alubee, Baidu [Spider] and 140 guests