Git Product home page Git Product logo

Comments (6)

shmuelzon avatar shmuelzon commented on July 28, 2024

Hey,

First of all, spiffs should have been compiled during along with everything else. It worked fine on my Mac, so I'm not sure why it failed.
Anyways, the reason your ESP32 keeps rebooting is because it couldn't load the configuration file.
One reason might be that your JSON file isn't valid. Could you please try and pass it through a JSON validator first? If your configuration file is valid, another issue might be a mismatched SPIFFS version since I'm not sure what you compiled is the same (and configured the same) as what ESP-IDF is using.

Let me know...

from esp32-ble2mqtt.

shmuelzon avatar shmuelzon commented on July 28, 2024

@eercanayar, any updates?

from esp32-ble2mqtt.

shmuelzon avatar shmuelzon commented on July 28, 2024

@eercanayar, I'm closing this issue for now as I haven't heard back from you. If you're still experiencing trouble, let me know.

from esp32-ble2mqtt.

fabiosoft avatar fabiosoft commented on July 28, 2024

I have the same issue... no spiffs.bin file is generated while building... so flashing without gives me a bunch of error before reboot.

I'm using Mac os Catalina.

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:6152
load:0x40078000,len:10180
load:0x40080400,len:6660
entry 0x40080764
.[0;32mI (29) boot: ESP-IDF v3.2.2 2nd stage bootloader.[0m
.[0;32mI (29) boot: compile time 23:59:42.[0m
.[0;32mI (29) boot: Enabling RNG early entropy source....[0m
.[0;32mI (34) boot: SPI Speed      : 40MHz.[0m
.[0;32mI (38) boot: SPI Mode       : DIO.[0m
.[0;32mI (42) boot: SPI Flash Size : 4MB.[0m
.[0;32mI (46) boot: Partition Table:.[0m
.[0;32mI (49) boot: ## Label            Usage          Type ST Offset   Length.[0m
.[0;32mI (57) boot:  0 nvs              WiFi data        01 02 00009000 00004000.[0m
.[0;32mI (64) boot:  1 otadata          OTA data         01 00 0000d000 00002000.[0m
.[0;32mI (72) boot:  2 phy_init         RF data          01 01 0000f000 00001000.[0m
.[0;32mI (79) boot:  3 ota_0            OTA app          00 10 00010000 00180000.[0m
.[0;32mI (87) boot:  4 ota_1            OTA app          00 11 00190000 00180000.[0m
.[0;32mI (94) boot:  5 fs_0             Unknown data     01 82 00310000 00040000.[0m
.[0;32mI (101) boot:  6 fs_1             Unknown data     01 82 00350000 00040000.[0m
.[0;32mI (109) boot: End of partition table.[0m
.[0;32mI (113) boot: No factory image, trying OTA 0.[0m
.[0;32mI (118) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x37e6c (228972) map.[0m
.[0;32mI (207) esp_image: segment 1: paddr=0x00047e94 vaddr=0x3ffbdb60 size=0x05934 ( 22836) load.[0m
.[0;32mI (217) esp_image: segment 2: paddr=0x0004d7d0 vaddr=0x40080000 size=0x00400 (  1024) load.[0m
.[0;32mI (217) esp_image: segment 3: paddr=0x0004dbd8 vaddr=0x40080400 size=0x02438 (  9272) load.[0m
.[0;32mI (229) esp_image: segment 4: paddr=0x00050018 vaddr=0x400d0018 size=0xf0ef4 (986868) map.[0m
.[0;32mI (580) esp_image: segment 5: paddr=0x00140f14 vaddr=0x40082838 size=0x13e48 ( 81480) load.[0m
.[0;32mI (628) boot: Loaded app from partition at offset 0x10000.[0m
.[0;32mI (628) boot: Disabling RNG early entropy source....[0m
.[0;32mI (628) cpu_start: Pro cpu up..[0m
.[0;32mI (632) cpu_start: Starting app cpu, entry point is 0x40081020.[0m
.[0;32mI (624) cpu_start: App cpu up..[0m
.[0;32mI (642) heap_init: Initializing. RAM available for dynamic allocation:.[0m
.[0;32mI (649) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM.[0m
.[0;32mI (655) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM.[0m
.[0;32mI (661) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM.[0m
.[0;32mI (667) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM.[0m
.[0;32mI (674) heap_init: At 3FFD33B8 len 0000CC48 (51 KiB): DRAM.[0m
.[0;32mI (680) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM.[0m
.[0;32mI (686) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM.[0m
.[0;32mI (692) heap_init: At 40096680 len 00009980 (38 KiB): IRAM.[0m
.[0;32mI (699) cpu_start: Pro cpu start user code.[0m
.[0;32mI (46) cpu_start: Starting scheduler on PRO CPU..[0m
.[0;32mI (0) cpu_start: Starting scheduler on APP CPU..[0m
.[0;32mI (131) BLE2MQTT: Version: v0.11.0-1-gea67a23.[0m
.[0;32mI (131) Config: Initializing configuration.[0m
.[0;31mE (171) Config: Failed loading partition 0, falling back to 1.[0m
.[0;31mE (201) Config: Failed loading partition 1 as well.[0m
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x40090424
file: "/Users/fabio/Downloads/esp32-ble2mqtt/main/ble2mqtt.c" line 753
func: app_main
expression: config_initialize()

Backtrace: 0x4008ffdc:0x3ffbb450 0x40090427:0x3ffbb470 0x40104dc1:0x3ffbb490 0x400d0e36:0x3ffbb4d0 0x4008c939:0x3ffbb4f0

Rebooting...

from esp32-ble2mqtt.

shmuelzon avatar shmuelzon commented on July 28, 2024

Yes, without a valid configuration, you can't run the application

(131) Config: Initializing configuration
(171) Config: Failed loading partition 0, falling back to 1
(201) Config: Failed loading partition 1 as well

As for why spiffs.bin isn't generated, we'll discuss on #48.

from esp32-ble2mqtt.

fabiosoft avatar fabiosoft commented on July 28, 2024

after compiled mkspiffs, it worked.
Thanks

from esp32-ble2mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.