Gateway kuoli?

Ruuvi gateway pimeni jostain syystä totaalisesti. Ainoa elonmerkki on virtavalo mikä syttyy, kun laittaa virtajohdon kiinni. Ethernet portin valot ei syty vaikka on kaapeli kiinni ja ei reagoi factory resettiin eli hotspottia ei muodostu, jotta pääsisi uudelleen konfiguroimaan. Onko jotain mahdollisuuksia saada se vielä henkiin?

Järjestelin eilen töpseleitä uudelleen jotta sain kaikki laitteet sopimaan pistorasiaan jolloin siitä lähti sähköt muutamia kertoja mahdollisesti nopeastikin uudelleen juuri kun oli virrat tulleet. Myös kytkin mitä kautta netti gatewaylle oli kytketty hävisi myös samalla tapaa mahdollisesti.

Olisiko tuolla sitten jotain tekemistä? Tosin on kyllä aiemmin selvinnyt sähkökatkosta ihan ilman ongelmia…

Hei,

Pahoittelut ongelmasta Gatewayn kanssa.

Gatewayn pitäisi pärjätä sähkökatkojen ylitse ilman ongelmia. Jos sarjaportin lukeminen PCllä on tuttua, voit ottaa Gatewayn USB-sarjaporttiin yhteyttä PuTTYllä tai Minicomilla 115200 baud nopeudella. Jos Gateway tulostaa jotain sarjaporttiin ongelma on ehkä ratkaistavissa.

Jos sarjaportin lukeminen ei ole tuttua tai Gateway on sielläkin mykkänä, ota yhteyttä sales@ruuvi.com takuuvaihtoa varten.

Terve,

Onnistuu kyllä sarjaportin lukeminen. Näkyy olevan buuttiluupissa tuo gateway.

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:7020
load:0x40078000,len:14172
ho 0 tail 12 room 4
load:0x40080400,len:4352
entry 0x400806ec
I (72) boot: Chip Revision: 3
I (73) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (41) boot: ESP-IDF v4.0.3 2nd stage bootloader
I (41) boot: compile time 10:56:38
I (50) boot: Enabling RNG early entropy source...
I (50) boot: SPI Speed      : 40MHz
I (50) boot: SPI Mode       : DIO
I (54) boot: SPI Flash Size : 16MB
I (59) boot: Partition Table:
I (62) boot: ## Label            Usage          Type ST Offset   Length
I (69) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (77) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (84) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (92) boot:  3 ota_0            OTA app          00 10 00100000 00400000
I (99) boot:  4 fatfs_gwui       Unknown data     01 81 00500000 000c0000
I (107) boot:  5 fatfs_nrf52      Unknown data     01 81 005c0000 00040000
I (114) boot:  6 ota_1            OTA app          00 11 00600000 00400000
I (122) boot:  7 fatfs_gwui_2     Unknown data     01 81 00a00000 000c0000
I (129) boot:  8 fatfs_nrf52_2    Unknown data     01 81 00ac0000 00040000
I (137) boot: End of partition table
I (141) boot_comm: chip revision: 3, min. application chip revision: 0
I (148) esp_image: segment 0: paddr=0x00100020 vaddr=0x3f400020 size=0x47b98 (293784) map
I (262) esp_image: segment 1: paddr=0x00147bc0 vaddr=0x3ffb0000 size=0x02bfc ( 11260) load
I (267) esp_image: segment 2: paddr=0x0014a7c4 vaddr=0x40080000 size=0x05854 ( 22612) load
I (279) esp_image: segment 3: paddr=0x00150020 vaddr=0x400d0020 size=0xc9f40 (827200) map
I (575) esp_image: segment 4: paddr=0x00219f68 vaddr=0x40085854 size=0x12938 ( 76088) load
I (621) boot: Loaded app from partition at offset 0x100000
I (621) boot: Disabling RNG early entropy source...
I (622) cpu_start: Pro cpu up.
I (626) cpu_start: Application information:
I (630) cpu_start: Project name:     ruuvi_gateway_esp
I (636) cpu_start: App version:      v1.11.2
I (641) cpu_start: Compile time:     Mar  1 2022 08:39:36
I (647) cpu_start: ELF file SHA256:  0fc1a9112b1305b6...
I (653) cpu_start: ESP-IDF:          v4.2.2
I (658) cpu_start: Single core mode
I (663) heap_init: Initializing. RAM available for dynamic allocation:
I (670) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (676) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (682) heap_init: At 3FFBFA28 len 000205D8 (129 KiB): DRAM
I (688) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (695) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (701) heap_init: At 4009818C len 00007E74 (31 KiB): IRAM
I (707) cpu_start: Pro cpu start user code
I (725) spi_flash: detected chip: generic
I (725) spi_flash: flash io: dio
I (725) cpu_start: Starting scheduler on PRO CPU.
I (729) fw_update: [main] Project name     : ruuvi_gateway_esp
I (735) fw_update: [main] Firmware version : v1.11.2
I (741) fw_update: [main] Boot partition: ota_0
I (746) fw_update: [main] Currently running partition: ota_0
I (752) fw_update: [main] Currently running partition state: VALID
I (759) fw_update: [main] Next update partition: ota_1: address 0x00600000, size 0x400000
I (768) fw_update: [main] Next fatfs_gwui partition: fatfs_gwui_2: address 0x00a00000, size 0xc0000
I (777) fw_update: [main] Next fatfs_nrf52 partition: fatfs_nrf52_2: address 0x00ac0000, size 0x40000
I (787) SwitchCtrl: [main] GPIO SwitchCtrl init
I (793) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (802) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (811) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (821) LEDS: [main] leds_init
I (824) LEDS: [main] TaskWatchdog: leds_task: Create timer
I (831) os_task: [main] Start thread 'leds_task' with priority 6, stack size 2048 bytes
I (839) LEDS: [leds_task] leds_task started
I (844) LEDS: [leds_task] TaskWatchdog: Register current thread
I (850) LEDS: [leds_task] TaskWatchdog: Start timer
Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4008bbc1  PS      : 0x00060530  A0      : 0x8008b6f0  A1      : 0x3ffc0130
A2      : 0x7bf40404  A3      : 0x00000000  A4      : 0x3ff81f18  A5      : 0x00000000
A6      : 0x3ff81fb0  A7      : 0x00060023  A8      : 0x0004044d  A9      : 0x0004044d
A10     : 0x0004044d  A11     : 0x3ffc0150  A12     : 0x3ffb00fc  A13     : 0x3ffb06b0
A14     : 0x3ff60000  A15     : 0xb83fc000  SAR     : 0x00000000  EXCCAUSE: 0x0000001d
EXCVADDR: 0x00040455  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000

Backtrace:0x4008bbbe:0x3ffc0130 0x4008b6ed:0x3ffc0150 0x4008b7b3:0x3ffc0190 0x40088ea5:0x3ffc01c0


ELF file SHA256: 0fc1a9112b1305b6

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:7020
load:0x40078000,len:14172
ho 0 tail 12 room 4
load:0x40080400,len:4352
entry 0x400806ec
I (72) boot: Chip Revision: 3
I (73) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (41) boot: ESP-IDF v4.0.3 2nd stage bootloader
I (41) boot: compile time 10:56:38
I (50) boot: Enabling RNG early entropy source...
I (50) boot: SPI Speed      : 40MHz
I (50) boot: SPI Mode       : DIO
I (54) boot: SPI Flash Size : 16MB
I (59) boot: Partition Table:
I (62) boot: ## Label            Usage          Type ST Offset   Length
I (69) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (77) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (84) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (92) boot:  3 ota_0            OTA app          00 10 00100000 00400000
I (99) boot:  4 fatfs_gwui       Unknown data     01 81 00500000 000c0000
I (107) boot:  5 fatfs_nrf52      Unknown data     01 81 005c0000 00040000
I (114) boot:  6 ota_1            OTA app          00 11 00600000 00400000
I (122) boot:  7 fatfs_gwui_2     Unknown data     01 81 00a00000 000c0000
I (129) boot:  8 fatfs_nrf52_2    Unknown data     01 81 00ac0000 00040000
I (137) boot: End of partition table
I (141) boot_comm: chip revision: 3, min. application chip revision: 0
I (148) esp_image: segment 0: paddr=0x00100020 vaddr=0x3f400020 size=0x47b98 (293784) map
I (262) esp_image: segment 1: paddr=0x00147bc0 vaddr=0x3ffb0000 size=0x02bfc ( 11260) load
I (267) esp_image: segment 2: paddr=0x0014a7c4 vaddr=0x40080000 size=0x05854 ( 22612) load
I (279) esp_image: segment 3: paddr=0x00150020 vaddr=0x400d0020 size=0xc9f40 (827200) map
I (575) esp_image: segment 4: paddr=0x00219f68 vaddr=0x40085854 size=0x12938 ( 76088) load
I (621) boot: Loaded app from partition at offset 0x100000
I (621) boot: Disabling RNG early entropy source...
I (622) cpu_start: Pro cpu up.
I (626) cpu_start: Application information:
I (630) cpu_start: Project name:     ruuvi_gateway_esp
I (636) cpu_start: App version:      v1.11.2
I (641) cpu_start: Compile time:     Mar  1 2022 08:39:36
I (647) cpu_start: ELF file SHA256:  0fc1a9112b1305b6...
I (653) cpu_start: ESP-IDF:          v4.2.2
I (658) cpu_start: Single core mode
I (663) heap_init: Initializing. RAM available for dynamic allocation:
I (670) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (676) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (682) heap_init: At 3FFBFA28 len 000205D8 (129 KiB): DRAM
I (688) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (695) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (701) heap_init: At 4009818C len 00007E74 (31 KiB): IRAM
I (707) cpu_start: Pro cpu start user code
I (725) spi_flash: detected chip: generic
I (725) spi_flash: flash io: dio
I (725) cpu_start: Starting scheduler on PRO CPU.
I (729) fw_update: [main] Project name     : ruuvi_gateway_esp
I (735) fw_update: [main] Firmware version : v1.11.2
I (741) fw_update: [main] Boot partition: ota_0
I (746) fw_update: [main] Currently running partition: ota_0
I (752) fw_update: [main] Currently running partition state: VALID
I (759) fw_update: [main] Next update partition: ota_1: address 0x00600000, size 0x400000
I (768) fw_update: [main] Next fatfs_gwui partition: fatfs_gwui_2: address 0x00a00000, size 0xc0000
I (777) fw_update: [main] Next fatfs_nrf52 partition: fatfs_nrf52_2: address 0x00ac0000, size 0x40000
I (787) SwitchCtrl: [main] GPIO SwitchCtrl init
I (793) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (802) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (811) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (821) LEDS: [main] leds_init
I (824) LEDS: [main] TaskWatchdog: leds_task: Create timer
I (831) os_task: [main] Start thread 'leds_task' with priority 6, stack size 2048 bytes
I (839) LEDS: [leds_task] leds_task started
I (844) LEDS: [leds_task] TaskWatchdog: Register current thread
I (850) LEDS: [leds_task] TaskWatchdog: Start timer
Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4008bbc1  PS      : 0x00060530  A0      : 0x8008b6f0  A1      : 0x3ffc0130
A2      : 0x7bf40404  A3      : 0x00000000  A4      : 0x3ff81f18  A5      : 0x00000000
A6      : 0x3ff81fb0  A7      : 0x00060023  A8      : 0x0004044d  A9      : 0x0004044d
A10     : 0x0004044d  A11     : 0x3ffc0150  A12     : 0x3ffb00fc  A13     : 0x3ffb06b0
A14     : 0x3ff60000  A15     : 0xb83fc000  SAR     : 0x00000000  EXCCAUSE: 0x0000001d
EXCVADDR: 0x00040455  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000

Backtrace:0x4008bbbe:0x3ffc0130 0x4008b6ed:0x3ffc0150 0x4008b7b3:0x3ffc0190 0x40088ea5:0x3ffc01c0


ELF file SHA256: 0fc1a9112b1305b6
1 Like

Sain gatewayn henkiin jälleen asentamalla firmiksen uusiksi näiden ohjeiden mukaan
https://github.com/ruuvi/ruuvi.gateway_esp.c

Mutta uusimmalla firmiksellä ei lähtenyt toimimaan vaan piti asentaa tuo toisiksi uusin versio jolloin gateway heräsi jälleen henkiin
https://github.com/ruuvi/ruuvi.gateway_esp.c/releases/tag/v1.11.1

1 Like

Kiitos ongelman tutkimisesta @Marko_Moilanen . Kysyn meidän GW-kehittäjältä tähän apua.

@Alexey_Skvortsov We have a gateway that crashed on update to v1.11.2. It ends up in a boot loop, log is in an above post. The gateway works with firmware v1.11.1. This is observed only on one Gateway (at least so far). Could this be a hardware issue, maybe something related to the antenna control?

Seems that gateway has done automatic update to version v1.11.2 and its still alive. Haven’t tried manual restart yet so i cannot say will it work after that also.

1 Like

Maybe the power cycle happened right in middle of the update process and update got corrupted somehow. The Gateway should detect a corrupted update and revert back to previous version automatically, so maybe the main question is why the fallback to old version did not work as expected during the reboot loop.

Happy to hear that the Gateway is working now, please let us know if you have more issues

I tried power cycle and again gateway got into boot loop.

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:0x3fff0030,len:7072
load:0x40078000,len:14416
load:0x40080400,len:3716
entry 0x40080680
I (27) boot: ESP-IDF v4.3.1 2nd stage bootloader
I (27) boot: compile time 10:36:00
I (27) boot: chip revision: 3
I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (46) boot.esp32: SPI Speed      : 40MHz
I (46) boot.esp32: SPI Mode       : DIO
I (46) boot.esp32: SPI Flash Size : 16MB
I (51) boot: Enabling RNG early entropy source...
I (56) boot: Partition Table:
I (60) boot: ## Label            Usage          Type ST Offset   Length
I (67) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (75) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (82) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (90) boot:  3 ota_0            OTA app          00 10 00100000 00400000
I (97) boot:  4 fatfs_gwui       Unknown data     01 81 00500000 000c0000
I (104) boot:  5 fatfs_nrf52      Unknown data     01 81 005c0000 00040000
I (112) boot:  6 ota_1            OTA app          00 11 00600000 00400000
I (120) boot:  7 fatfs_gwui_2     Unknown data     01 81 00a00000 000c0000
I (127) boot:  8 fatfs_nrf52_2    Unknown data     01 81 00ac0000 00040000
I (135) boot: End of partition table
I (139) boot_comm: chip revision: 3, min. application chip revision: 0
I (146) esp_image: segment 0: paddr=00600020 vaddr=3f400020 size=47b98h (293784) map
I (261) esp_image: segment 1: paddr=00647bc0 vaddr=3ffb0000 size=02bfch ( 11260) load
I (266) esp_image: segment 2: paddr=0064a7c4 vaddr=40080000 size=05854h ( 22612) load
I (276) esp_image: segment 3: paddr=00650020 vaddr=400d0020 size=c9f40h (827200) map
I (575) esp_image: segment 4: paddr=00719f68 vaddr=40085854 size=12938h ( 76088) load
I (618) boot: Loaded app from partition at offset 0x600000
I (618) boot: Disabling RNG early entropy source...
I (630) cpu_start: Pro cpu up.
I (630) cpu_start: Application information:
I (630) cpu_start: Project name:     ruuvi_gateway_esp
I (635) cpu_start: App version:      v1.11.2
I (640) cpu_start: Compile time:     Mar  1 2022 08:39:36
I (647) cpu_start: ELF file SHA256:  0fc1a9112b1305b6...
I (652) cpu_start: ESP-IDF:          v4.2.2
I (657) cpu_start: Single core mode
I (662) heap_init: Initializing. RAM available for dynamic allocation:
I (669) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (675) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (681) heap_init: At 3FFBFA28 len 000205D8 (129 KiB): DRAM
I (687) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (694) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (700) heap_init: At 4009818C len 00007E74 (31 KiB): IRAM
I (706) cpu_start: Pro cpu start user code
I (724) spi_flash: detected chip: generic
I (724) spi_flash: flash io: dio
I (724) cpu_start: Starting scheduler on PRO CPU.
I (728) fw_update: [main] Project name     : ruuvi_gateway_esp
I (734) fw_update: [main] Firmware version : v1.11.2
I (740) fw_update: [main] Boot partition: ota_1
I (745) fw_update: [main] Currently running partition: ota_1
I (751) fw_update: [main] Currently running partition state: VALID
I (758) fw_update: [main] Next update partition: ota_0: address 0x00100000, size 0x400000
I (767) fw_update: [main] Next fatfs_gwui partition: fatfs_gwui: address 0x00500000, size 0xc0000
I (776) fw_update: [main] Next fatfs_nrf52 partition: fatfs_nrf52: address 0x005c0000, size 0x40000
I (786) SwitchCtrl: [main] GPIO SwitchCtrl init
I (791) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (801) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (810) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (819) LEDS: [main] leds_init
I (823) LEDS: [main] TaskWatchdog: leds_task: Create timer
I (829) os_task: [main] Start thread 'leds_task' with priority 6, stack size 2048 bytes
I (837) LEDS: [leds_task] leds_task started
I (842) LEDS: [leds_task] TaskWatchdog: Register current thread
I (849) LEDS: [leds_task] TaskWatchdog: Start timer
I (855) ruuvi_gateway: [main] Init NVS
I (867) system_api: Base MAC address is not set
I (867) system_api: read default base MAC address from EFUSE
I (872) ruuvi_gateway: [main] Read saved Mac address: CA:44:F0:57:F0:B3
I (878) ruuvi_gateway: [main] Read saved WiFi SSID / Hostname: RuuviGatewayF0B3
I (886) LEDS: [main] leds_indication_on_nrf52_fw_updating
I (892) LEDS: [main] LED: Start blinking, interval: 1000 ms, duty cycle: 5%
I (900) nRF52Fw: [main] Hardware reset nRF52: true
I (905) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1014) nRF52Fw: [main] Hardware reset nRF52: false
I (1014) nRF52Fw: [main] Init SWD
I (1014) SWD: [main] nRF52 SWD init
D (1016) SWD: [main] /Users/otsojousimaa/git/ruuvi.gateway_esp.c/main/nrf52swd.c:120 {nrf52swd_init_spi_init}: spi_bus_initialize
D (1028) SWD: [main] /Users/otsojousimaa/git/ruuvi.gateway_esp.c/main/nrf52swd.c:134 {nrf52swd_init_spi_add_device}: spi_bus_add_device
D (1041) SWD: [main] /Users/otsojousimaa/git/ruuvi.gateway_esp.c/main/nrf52swd.c:194 {nrf52swd_init_internal}: libswd_init
D (1051) SWD: [main] /Users/otsojousimaa/git/ruuvi.gateway_esp.c/main/nrf52swd.c:147 {nrf52swd_libswd_debug_init}: libswd_debug_init
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x4009691c: 00000c46 980020c0 24a690d8
Core  0 register dump:
PC      : 0x40096922  PS      : 0x00060630  A0      : 0x800d6a60  A1      : 0x3ff81dd0
A2      : 0x400d691c  A3      : 0x00000001  A4      : 0x80089020  A5      : 0x3afaf440
A6      : 0x00000001  A7      : 0x00000901  A8      : 0x80096922  A9      : 0x3ff81da0
A10     : 0x00000000  A11     : 0x00000018  A12     : 0x00000014  A13     : 0x000000a5
A14     : 0x000000a5  A15     : 0x00060023  SAR     : 0x00000000  EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000

Backtrace:0x4009691f:0x3ff81dd0 |<-CORRUPTED


ELF file SHA256: 0fc1a9112b1305b6

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:0x3fff0030,len:7072
load:0x40078000,len:14416
load:0x40080400,len:3716
entry 0x40080680
I (27) boot: ESP-IDF v4.3.1 2nd stage bootloader
I (27) boot: compile time 10:36:00
I (27) boot: chip revision: 3
I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (46) boot.esp32: SPI Speed      : 40MHz
I (46) boot.esp32: SPI Mode       : DIO
I (46) boot.esp32: SPI Flash Size : 16MB
I (51) boot: Enabling RNG early entropy source...
I (56) boot: Partition Table:
I (60) boot: ## Label            Usage          Type ST Offset   Length
I (67) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (75) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (82) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (90) boot:  3 ota_0            OTA app          00 10 00100000 00400000
I (97) boot:  4 fatfs_gwui       Unknown data     01 81 00500000 000c0000
I (104) boot:  5 fatfs_nrf52      Unknown data     01 81 005c0000 00040000
I (112) boot:  6 ota_1            OTA app          00 11 00600000 00400000
I (120) boot:  7 fatfs_gwui_2     Unknown data     01 81 00a00000 000c0000
I (127) boot:  8 fatfs_nrf52_2    Unknown data     01 81 00ac0000 00040000
I (135) boot: End of partition table
I (139) boot_comm: chip revision: 3, min. application chip revision: 0
I (146) esp_image: segment 0: paddr=00600020 vaddr=3f400020 size=47b98h (293784) map
I (261) esp_image: segment 1: paddr=00647bc0 vaddr=3ffb0000 size=02bfch ( 11260) load
I (266) esp_image: segment 2: paddr=0064a7c4 vaddr=40080000 size=05854h ( 22612) load
I (276) esp_image: segment 3: paddr=00650020 vaddr=400d0020 size=c9f40h (827200) map
I (575) esp_image: segment 4: paddr=00719f68 vaddr=40085854 size=12938h ( 76088) load
I (618) boot: Loaded app from partition at offset 0x600000
I (618) boot: Disabling RNG early entropy source...
I (630) cpu_start: Pro cpu up.
I (630) cpu_start: Application information:
I (630) cpu_start: Project name:     ruuvi_gateway_esp
I (635) cpu_start: App version:      v1.11.2
I (640) cpu_start: Compile time:     Mar  1 2022 08:39:36
I (647) cpu_start: ELF file SHA256:  0fc1a9112b1305b6...
I (652) cpu_start: ESP-IDF:          v4.2.2
I (657) cpu_start: Single core mode
I (662) heap_init: Initializing. RAM available for dynamic allocation:
I (669) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (675) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (681) heap_init: At 3FFBFA28 len 000205D8 (129 KiB): DRAM
I (687) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (694) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (700) heap_init: At 4009818C len 00007E74 (31 KiB): IRAM
I (706) cpu_start: Pro cpu start user code
I (724) spi_flash: detected chip: generic
I (724) spi_flash: flash io: dio
I (724) cpu_start: Starting scheduler on PRO CPU.
I (728) fw_update: [main] Project name     : ruuvi_gateway_esp
I (734) fw_update: [main] Firmware version : v1.11.2
I (740) fw_update: [main] Boot partition: ota_1
I (745) fw_update: [main] Currently running partition: ota_1
I (751) fw_update: [main] Currently running partition state: VALID
I (758) fw_update: [main] Next update partition: ota_0: address 0x00100000, size 0x400000
I (767) fw_update: [main] Next fatfs_gwui partition: fatfs_gwui: address 0x00500000, size 0xc0000
I (776) fw_update: [main] Next fatfs_nrf52 partition: fatfs_nrf52: address 0x005c0000, size 0x40000
I (786) SwitchCtrl: [main] GPIO SwitchCtrl init
I (791) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (801) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (810) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (819) LEDS: [main] leds_init
I (823) LEDS: [main] TaskWatchdog: leds_task: Create timer
I (829) os_task: [main] Start thread 'leds_task' with priority 6, stack size 2048 bytes
I (837) LEDS: [leds_task] leds_task started
I (842) LEDS: [leds_task] TaskWatchdog: Register current thread
I (849) LEDS: [leds_task] TaskWatchdog: Start timer
Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4008bbc1  PS      : 0x00060130  A0      : 0x8008b6f0  A1      : 0x3ffc0130
A2      : 0x7fbc0404  A3      : 0x00000000  A4      : 0x3ff81f18  A5      : 0x00000000
A6      : 0x3ff81fb0  A7      : 0x00060023  A8      : 0x000401a4  A9      : 0x000401a4
A10     : 0x000401a4  A11     : 0x3ffc0150  A12     : 0x3ffb00fc  A13     : 0x3ffb06b0
A14     : 0x3ff60000  A15     : 0xb83fc000  SAR     : 0x00000000  EXCCAUSE: 0x0000001d
EXCVADDR: 0x000401ac  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000

Backtrace:0x4008bbbe:0x3ffc0130 0x4008b6ed:0x3ffc0150 0x4008b7b3:0x3ffc0190 0x40088ea5:0x3ffc01c0


ELF file SHA256: 0fc1a9112b1305b6

Now notable change was that power led blinks sometimes red. (See video)
https://photos.app.goo.gl/gQFkd5uubiioV6Ra9
Also trace has least once gone further

Again had to restore v1.11.1 firmware to get gateway working again.

Edit: Tried also following:

  • Install v1.11.1 → Factory reset → Update v1.11.2 from web ui → Power cycle → Boot loop
  • Install v1.11.1 → Update v1.11.2 from web ui → Factory reset → Power cycle → Boot loop
1 Like

Hello,

Please contact sales@ruuvi.com and we’ll exchange the Gateway under warranty. It’s possible that the flash area is somehow corrupted or damaged, but we’ll investigate it once we get the faulty device on our desk. Thank you for all the detailed investigation.

1 Like