vdeschwb / esp32-signal-generator

Open-Source Signal Generator using the ESP32 uC
MIT License
122 stars 32 forks source link

The website is not displayed #22

Open stmb-100 opened 4 weeks ago

stmb-100 commented 4 weeks ago

Hi

I use the ESP32 D1R32 or the ESP32 Wrover Module

The Upload index.html was OK

LittleFS Filesystem Uploader v1.2.0 -- https://github.com/earlephilhower/arduino-littlefs-upload

Sketch Path: C:\Users\stefa\Downloads\Signalgeneratoren\esp32-signal-generator\SigGen Data Path: C:\Users\stefa\Downloads\Signalgeneratoren\esp32-signal-generator\SigGen\data Device: ESP32 series, model esp32 Using partition: default Partitions: C:\Users\stefa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.17\tools\partitions\default.csv

Building LittleFS filesystem Command Line: C:\Users\stefa\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933\mklittlefs.exe -c C:\Users\stefa\Downloads\Signalgeneratoren\esp32-signal-generator\SigGen\data -p 256 -b 4096 -s 1441792 C:\Users\stefa\AppData\Local\Temp\tmp-10732-yHKn3KsgSKO0-.littlefs.bin /index.html

Uploading LittleFS filesystem Command Line: C:\Users\stefa\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1\esptool.exe --chip esp32 --port COM9 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 2686976 C:\Users\stefa\AppData\Local\Temp\tmp-10732-yHKn3KsgSKO0-.littlefs.bin esptool.py v4.5.1 Serial port COM9 Connecting.... Chip is ESP32-D0WD-V3 (revision v3.1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: e4:65:b8:77:1e:8c Uploading stub... Running stub... Stub running... Changing baud rate to 921600 Changed. Configuring flash size... Auto-detected Flash size: 4MB Flash will be erased from 0x00290000 to 0x003effff... Compressed 1441792 bytes to 183052... Writing at 0x00290000... (8 %) Writing at 0x00364ed6... (16 %) Writing at 0x00377b5a... (25 %) Writing at 0x0037cf78... (33 %) Writing at 0x003823ba... (41 %) Writing at 0x003877ef... (50 %) Writing at 0x003a527e... (58 %) Writing at 0x003b4e26... (66 %) Writing at 0x003c061e... (75 %) Writing at 0x003c9f56... (83 %) Writing at 0x003da81e... (91 %) Writing at 0x003ecd4b... (100 %) Wrote 1441792 bytes (183052 compressed) at 0x00290000 in 8.0 seconds (effective 1444.5 kbit/s)... Hash of data verified.

Leaving... Hard resetting via RTS pin...

Completed upload.

After reboot i get this Message

load:0x3fff0030,len:1344 load:0x40078000,len:13964 load:0x40080400,len:3600 entry 0x400805f0 E (289) esp_coredump����sh: Incorrect size of core dump image: 500053537 E (195) psram: PSRAM ID read error: 0xffffffff

E (223) SPIFFS: mount failed, -10025 Loading Settings from ROM... ssid: '' password: '' local_ip: '0.0.0.0' gateway: '0.0.0.0' subnet: '0.0.0.0' Could not connect to WiFi. Starting AP... AP started successfully. IP: 192.168.4.1

When i browse to the Website 192.168.4.1 i get a empty Site When i browse to the Website 192.168.4.1/config iget back this { "ssid": "", "local_ip": "0.0.0.0", "gateway": "0.0.0.0", "subnet": "0.0.0.0" }

Do you have any idea what this could be?

jariw commented 2 days ago

I noticed it to. But it seems it has to do with the SPiffs file system.

The LittleFS Uploader puts it in a different kind of filesystem i gues.

i changed the code a litle.

include "LittleFS.h"

//#define FILESYSTEM SPIFFS

define FILESYSTEM LittleFS

then i've got the website

grts

jari