sblu wrote on December 18, 2018:
I am trying to get the demo to run correctly and hitting ttwo errors
1. Failing to connect
2. failing to find SPIFFS partition.
here is the log
…
LD build/aws_demos.elf
esptool.py v2.2.1
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)…
esptool.py v2.2.1
Connecting…_____…_
Chip is ESP32D0WDQ5 (revision (unknown 0xa))
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600
Changed.
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 21952 bytes to 13045…
Wrote 21952 bytes (13045 compressed) at 0x00001000 in 0.2 seconds (effective 1150.7 kbit/s)…
Hash of data verified.
Compressed 596272 bytes to 378049…
Wrote 596272 bytes (378049 compressed) at 0x00010000 in 5.4 seconds (effective 882.3 kbit/s)…
Hash of data verified.
Compressed 3072 bytes to 82…
Wrote 3072 bytes (82 compressed) at 0x00008000 in 0.0 seconds (effective 6164.3 kbit/s)…
Hash of data verified.
Leaving…
Hard resetting…
MONITOR
— idf_monitor on /dev/ttyUSB0 115200 —
— Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6064
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:15784
entry 0x400792e8
I (30) boot: ESP-IDF v3.1-dev-322-gf307f41-dirty 2nd stage bootloader
I (30) boot: compile time 19:22:47
I (31) boot: Enabling RNG early entropy source…
I (36) boot: SPI Speed : 40MHz
I (40) boot: SPI Mode : DIO
I (44) boot: SPI Flash Size : 4MB
I (48) boot: Partition Table:
I (52) boot: ## Label Usage Type ST Offset Length
I (59) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (67) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (74) boot: 2 factory factory app 00 00 00010000 00100000
I (82) boot: End of partition table
I (86) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x12b2c ( 76588) map
I (121) esp_image: segment 1: paddr=0x00022b54 vaddr=0x3ffb0000 size=0x02424 ( 9252) load
I (125) esp_image: segment 2: paddr=0x00024f80 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _iram_start at /home/owais/Documents/freeRTOS/amazon-freertos/lib/FreeRTOS/portable/ThirdParty/GCC/Xtensa_ESP32/xtensa_vectors.S:1685
I (128) esp_image: segment 3: paddr=0x00025388 vaddr=0x40080400 size=0x0ac88 ( 44168) load
I (155) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x6e600 (452096) map
0x400d0018: _stext at ??:?
I (312) esp_image: segment 5: paddr=0x0009e620 vaddr=0x4008b088 size=0x032dc ( 13020) load
0x4008b088: _frxt_task_coproc_state at /home/owais/Documents/freeRTOS/amazon-freertos/lib/FreeRTOS/portable/ThirdParty/GCC/Xtensa_ESP32/portasm.S:647
I (318) esp_image: segment 6: paddr=0x000a1904 vaddr=0x400c0000 size=0x00000 ( 0) load
I (327) boot: Loaded app from partition at offset 0x10000
I (327) boot: Disabling RNG early entropy source…
I (331) cpu_start: Pro cpu up.
I (334) cpu_start: Single core mode
I (339) heap_init: Initializing. RAM available for dynamic allocation:
I (346) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (352) heap_init: At 3FFC07A8 len 0001F858 (126 KiB): DRAM
I (358) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (364) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (371) heap_init: At 4008E364 len 00011C9C (71 KiB): IRAM
I (377) cpu_start: Pro cpu start user code
I (59) cpu_start: Starting scheduler on PRO CPU.
I (84) wifi: wifi firmware version: f79168c
I (84) wifi: config NVS flash: enabled
I (84) wifi: config nano formating: disabled
I (84) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (94) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (104) wifi: Init dynamic tx buffer num: 32
I (104) wifi: Init data frame dynamic rx buffer num: 32
I (114) wifi: Init management frame dynamic rx buffer num: 32
I (114) wifi: wifi driver task: 3ffc73d8, prio:23, stack:4096
I (124) wifi: Init static rx buffer num: 10
I (124) wifi: Init dynamic rx buffer num: 32
I (134) wifi: wifi power manager task: 0x3ffcc018 prio: 21 stack: 2560
0 6 [main] WiFi module initialized. Connecting to AP insta…
I (194) phy: phy_version: 383.0, 79a622c, Jan 30 2018, 15:38:06, 0, 0
I (194) wifi: mode : sta (30:ae:a4:dd:8b:b4)
I (194) WIFI: SYSTEM_EVENT_STA_START
I (1524) wifi: n:11 0, o:1 0, ap:255 255, sta:11 0, prof:1
I (2504) wifi: state: init -> auth (b0)
I (2514) wifi: state: auth -> assoc (0)
I (2514) wifi: state: assoc -> run (10)
I (2534) wifi: connected with insta, channel 11
I (2534) WIFI: SYSTEM_EVENT_STA_CONNECTED
1 301 [IP-task] vDHCPProcess: offer c0a801f4ip
I (3104) event: sta ip: 192.168.1.244, mask: 255.255.255.0, gw: 192.168.1.1
I (3104) WIFI: SYSTEM_EVENT_STA_GOT_IP
2 303 [IP-task] vDHCPProcess: offer c0a801f4ip
3 303 [main] WiFi Connected to AP. Creating tasks which use network…
4 304 [main] Write code signing certificate…
I (3124) PKCS11: Initializing SPIFFS
E (3124) SPIFFS: spiffs partition could not be found
E (3124) PKCS11: Failed to find SPIFFS partition
5 306 [main] Key provisioning done…
6 306 [main] Creating MQTT Echo Task…
7 307 [MQTTEcho] MQTT echo attempting to connect to a19lc3yo4jfkf5.iot.us-east-1.amazonaws.com.
I (3254) PKCS11: Initializing SPIFFS
E (3254) SPIFFS: spiffs partition could not be found
E (3254) PKCS11: Failed to find SPIFFS partition
8 318 [MQTT] ERROR: Object with label Device Priv TLS Key not found.
9 319 [MQTTEcho] ERROR: MQTT echo failed to connect with error 1.
10 319 [MQTTEcho] MQTT echo test could not connect to broker.
11 320 [MQTTEcho] MQTT echo demo finished.
12 320 [MQTTEcho] ----Demo finished----
I (5514) wifi: pm start, type:0