jomjol / AI-on-the-edge-device

Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world
https://jomjol.github.io/AI-on-the-edge-device-docs/
5.27k stars 580 forks source link

As soon as I start with SD card psram check fails then entering a boot loop. Tried various sd cards #2972

Open sker65 opened 4 months ago

sker65 commented 4 months ago

The Problem

As soon as I start the device with initialized sd card inserted, I end up in a boot loop as the psram check fails (see log). With no sd card inserted the device starts fine, but of course complains about no sd card.

I also managed to boot with an empty sd card once, then uploading the remote_setup.zip, but as soon as there are files on the sd card, the error (psram check fail) ocours again. I've tried several sd cards already (4 different verndors).

Version

15.7.0

Logfile

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

rst:0xc (SW_CPU_RESET),boot:0x3b (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:7664
load:0x40078000,len:15360
load:0x40080400,len:3744
entry 0x4008067c
I (27) boot: ESP-IDF 4.3.2 2nd stage bootloader
I (27) boot: compile time 20:02:47
I (27) boot: chip revision: 3
I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (37) boot.esp32: SPI Speed      : 40MHz
I (42) boot.esp32: SPI Mode       : DIO
I (46) boot.esp32: SPI Flash Size : 4MB
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 (74) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (82) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (89) boot:  3 ota_0            OTA app          00 10 00010000 001db000
I (97) boot:  4 ota_1            OTA app          00 11 001f0000 001db000
I (104) boot: End of partition table
I (109) boot_comm: chip revision: 3, min. application chip revision: 0
I (116) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=40014h (262164) map
I (225) esp_image: segment 1: paddr=0005003c vaddr=3ffb0000 size=040e8h ( 16616) load
I (232) esp_image: segment 2: paddr=0005412c vaddr=40080000 size=0beech ( 48876) load
I (253) esp_image: segment 3: paddr=00060020 vaddr=400d0020 size=1100f4h (1114356) map
I (680) esp_image: segment 4: paddr=0017011c vaddr=4008beec size=0e354h ( 58196) load
I (718) boot: Loaded app from partition at offset 0x10000
I (718) boot: Disabling RNG early entropy source...
I (730) cpu_start: Multicore app
I (730) quad_psram: This chip is ESP32-D0WD
I (730) esp_psram: Found 8MB PSRAM device
I (731) esp_psram: Speed: 40MHz
I (734) esp_psram: PSRAM initialized, cache is in low/high (2-core) mode.
W (741) esp_psram: Virtual address not enough for PSRAM, map as much as we can. 4MB is mapped
I (749) cpu_start: Pro cpu up.
I (752) cpu_start: Starting app cpu, entry point is 0x40082e0c
I (744) cpu_start: App cpu up.
E (1636) esp_psram: SPI SRAM memory test fail. 28/131072 writes failed, first @ 3F8005C0

E (1636) cpu_start: External RAM failed memory test!

abort() was called at PC 0x40083020 on core 0

Expected Behavior

mounting the cd card, starting up

Screenshots

No response

Additional Context

No response

SybexX commented 4 months ago

is the wlan.ini on the sd? It is not present in remote_setup.zip. manual-setup.zip contains everything you need for the initial installation.

sker65 commented 4 months ago

the result is the same. I tried both: manual setup bigger zip extracted and then edited wlan.ini on the hist computer.

2nd try empty as card initial boot then uploading remote.zip and entering the SSID and password in the web UI.

until this stage it worked, but the final reboot resulted in a boot loop, see log output.

it seems as soon as the esp starts using the as card this psram check fails.

SybexX commented 4 months ago

First the PSRAM is initialized and then the SD card, from this I would conclude that something is wrong with your hardware

sker65 commented 4 months ago

It was just delivered today from amazon, but I'll order another one and give it a try. I'll report back

SybexX commented 4 months ago

maybe this will help you: https://github.com/jomjol/AI-on-the-edge-device/discussions/1732