tetele / onju-voice-satellite

An ESPHome config for the Onju Voice which makes it a Home Assistant voice satellite
MIT License
105 stars 18 forks source link

External RAM failed memory test! #57

Closed rosscullen closed 5 months ago

rosscullen commented 5 months ago

Flavor

MicroWakeWord

Checklist

Describe the issue

Hi, was having issues recently with Onju voice upgrading to a more recent ESPHome version.

So took it apart and plugged it in. Downloaded a copy of firmware. Used ESPHome Web to upload firmwire. Pushed button on board, plugged it in and flashed with firmware.

Getting error as per logs. Tried is a number of times but no joy. Can flash the standard ESPHome for first use and thats ok.

If anyone has seen this before or could point me in the right direction, that would be really appreciated! Thanks :-)

Reproduction steps

  1. Flashed a number of times
  2. Everything plugged together
  3. default 'first time' firmware works ok.
  4. YAML all looks good and is as per Github (with a few minor password changes etc) ...

Debug logs

[15:50:42]Rebooting...
[15:50:42]ESP-ROM:esp32s3-20210327
[15:50:42]Build:Mar 27 2021
[15:50:43]rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
[15:50:43]Saved PC:0x40376da4
[15:50:43]SPIWP:0xee
[15:50:43]mode:DIO, clock div:1
[15:50:43]load:0x3fce3808,len:0x16c4
[15:50:43]load:0x403c9700,len:0xbc0
[15:50:43]load:0x403cc700,len:0x2e90
[15:50:43]entry 0x403c9950
[15:50:43]I (24) boot: ESP-IDF 4.4.7 2nd stage bootloader
[15:50:43]I (24) boot: compile time 23:17:15
[15:50:43]I (24) boot: Multicore bootloader
[15:50:43]I (26) boot: chip revision: v0.2
[15:50:43]I (30) boot.esp32s3: Boot SPI Speed : 80MHz
[15:50:43]I (34) boot.esp32s3: SPI Mode       : DIO
[15:50:43]I (39) boot.esp32s3: SPI Flash Size : 4MB
[15:50:43]I (44) boot: Enabling RNG early entropy source...
[15:50:43]I (49) boot: Partition Table:
[15:50:43]I (53) boot: ## Label            Usage          Type ST Offset   Length
[15:50:43]I (60) boot:  0 otadata          OTA data         01 00 00009000 00002000
[15:50:43]I (68) boot:  1 phy_init         RF data          01 01 0000b000 00001000
[15:50:43]I (75) boot:  2 app0             OTA app          00 10 00010000 001c0000
[15:50:43]I (83) boot:  3 app1             OTA app          00 11 001d0000 001c0000
[15:50:43]I (90) boot:  4 nvs              WiFi data        01 02 00390000 0006d000
[15:50:43]I (98) boot: End of partition table
[15:50:43]I (102) esp_image: segment 0: paddr=00010020 vaddr=3c100020 size=5a038h (368696) map
[15:50:43]I (176) esp_image: segment 1: paddr=0006a060 vaddr=3fc98170 size=04018h ( 16408) load
[15:50:43]I (180) esp_image: segment 2: paddr=0006e080 vaddr=40374000 size=01f98h (  8088) load
[15:50:43]I (184) esp_image: segment 3: paddr=00070020 vaddr=42000020 size=fda54h (1038932) map
[15:50:43]I (377) esp_image: segment 4: paddr=0016da7c vaddr=40375f98 size=121cch ( 74188) load
[15:50:43]I (401) boot: Loaded app from partition at offset 0x10000
[15:50:43]I (402) boot: Disabling RNG early entropy source...
[15:50:43]I (402) cpu_start: Multicore app
[15:50:43]I (406) opi psram: vendor id : 0x0d (AP)
[15:50:43]I (410) opi psram: dev id    : 0x02 (generation 3)
[15:50:43]I (416) opi psram: density   : 0x03 (64 Mbit)
[15:50:43]I (421) opi psram: good-die  : 0x01 (Pass)
[15:50:43]I (426) opi psram: Latency   : 0x01 (Fixed)
[15:50:43]I (430) opi psram: VCC       : 0x01 (3V)
[15:50:43]I (435) opi psram: SRF       : 0x01 (Fast Refresh)
[15:50:43]I (441) opi psram: BurstType : 0x01 (Hybrid Wrap)
[15:50:43]I (446) opi psram: BurstLen  : 0x01 (32 Byte)
[15:50:43]I (451) opi psram: Readlatency  : 0x02 (10 cycles@Fixed)
[15:50:43]I (457) opi psram: DriveStrength: 0x00 (1/1)
[15:50:43]I (462) MSPI Timing: PSRAM timing tuning index: 6
[15:50:43]I (467) spiram: Found 64MBit SPI RAM device
[15:50:43]I (472) spiram: SPI RAM mode: sram 80m
[15:50:43]I (477) spiram: PSRAM initialized, cache is in normal (1-core) mode.
[15:50:43]I (484) cpu_start: Pro cpu up.
[15:50:43]I (487) cpu_start: Starting app cpu, entry point is 0x4037675c
[15:50:43]I (476) cpu_start: App cpu up.
[15:50:43]E (796) spiram: SPI SRAM error@3da01600:aaaaaf2a/aaa2af2a 
[15:50:43]
[15:50:43]E (797) spiram: SPI SRAM error@3da0cf80:aaaa994a/aaa2994a 
[15:50:43]
[15:50:43]E (798) spiram: SPI SRAM error@3da10700:aaaaeb6a/aaa2eb6a 
[15:50:43]
[15:50:43]E (915) spiram: SPI SRAM memory test fail. 552/262144 writes failed, first @ 3D201600
[15:50:43]
[15:50:43]E (915) cpu_start: External RAM failed memory test!
[15:50:43]
[15:50:43]abort() was called at PC 0x403769c9 on core 0
[15:50:43]
[15:50:43]
[15:50:43]Backtrace: 0x40377196:0x3fceb250 0x4037d625:0x3fceb270 0x40384406:0x3fceb290 0x403769c9:0x3fceb300 0x403cd884:0x3fceb340 0x403cdcd1:0x3fceb380 0x403c99b9:0x3fceb4b0 0x40045c01:0x3fceb570 0x40043ab6:0x3fceb6f0 0x40034c45:0x3fceb710
[15:50:43]
[15:50:43]
[15:50:43]
[15:50:43]
[15:50:43]ELF file SHA256: 40355b48d803101d
[15:50:43]
[15:50:43]Rebooting...