Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device is resetting once it reaches idle : #142

Open
SilentBob83 opened this issue Jan 25, 2025 · 1 comment
Open

Device is resetting once it reaches idle : #142

SilentBob83 opened this issue Jan 25, 2025 · 1 comment

Comments

@SilentBob83
Copy link

Hello Romkabouter,
nice project... thank you for sharing it.
I finally got Platformio running and the code compiled.
But the device keeps resetting, I don't why.
It is a ESP32S (ESP WROOM 32)
I have not connected any mic or amp yet because i found no pin assignment.
Could this may be the problem ?

And what is this failed to read file error ? is this related to the reboot ?

rst:0x1 (POWERON_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:1184 
load:0x40078000,len:12776
load:0x40080400,len:3032 
entry 0x400805e4
Booting
Connect to Inmp441...
I2S headphone driver installed.

I2S driver mic installed.
Loading configuration    
Failed to read file, using default configuration
Creating I2Stask
Enter WifiDisconnected
Enter WifiConnected
Connected to Wifi with IP: 192.168.178.109, SSID: FRITZ!Box 7362 SL, BSSID: 34:31:C4:9E:77:A9, RSSI: -90
Enter MQTTDisconnected
Connecting MQTT: 192.168.178.54, 1883
Enter MQTTConnected
Connected as satellite
Connected to asynch MQTT!
Enter Idle

abort() was called at PC 0x4014baff on core 1


Backtrace:0x40083805:0x3ffefb700x4008bbb9:0x3ffefb90 0x40091229:0x3ffefbb0 0x4014baff:0x3ffefc30 0x4014bb46:0x3ffefc50 0x4014bc3f:0x3ffefc70 0x4014c567:0x3ffefc90 0x400d3596:0x3ffefcb0 0x400d8f8a:0x3ffefce0 0x40165db2:0x3ffefe60 0x400dbd11:0x3ffefe80 0x40166242:0x3ffefef0 0x400dcdb9:0x3ffeff20 0x400dce5b:0x3ffeff70 0x400db91a:0x3ffeff90 0x400db976:0x3fff0000 0x4014ebb9:0x3fff0020 0x4014ec31:0x3fff0050 0x4014f3ce:0x3fff0070 
  #0  0x40083805:0x3ffefb700 in panic_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/panic.c:402




ELF file SHA256: 0000000000000000

Rebooting...
ets Jun  8 2016 00:22:57

best regards
Bob

@SilentBob83
Copy link
Author

SilentBob83 commented Jan 25, 2025

ok i found how to deal with the pins... but the reset is still there...
How about The L/R Pin from the mic ? is there a connection needed ?

I found the reset occures only when wifi is connected. Somewhen the router refuses after too many reconnects in that short time. Then I can see in the console Wifi disconnect, but no reset anymore.

For Audio Out I have installed an PCM5102a. it should be compatible with the MAX.... but there i have an SCK pin not connected. Any idea if there is need to connect ?

Do i see it correct that you use 2 seperate I2S interfaces ? Because other projects they use commom connections between ESP MIC and AMP.

Actually i get this :
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)<\r><\n> configsip: 0, SPIWP:0xee<\r><\n> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00<\r><\n> mode:DIO, clock div:2<\r><\n> load:0x3fff0030,len:1184<\r><\n> load:0x40078000,len:12776<\r><\n> load:0x40080400,len:3032<\r><\n> entry 0x400805e4<\r><\n> Booting<\r><\n> Connect to Inmp441... <\n>I2S headphone driver installed.<\n><\r><\n> I2S driver mic installed.<\r><\n> Loading configuration<\r><\n> {<\r><\n> "siteid": "satellite",<\r><\n> "mqtt_host": "192.168.178.54",<\r><\n> "mqtt_port": 1883,<\r><\n> "mqtt_user": "username",<\r><\n> "mqtt_pass": "password",<\r><\n> "mute_input": true,<\r><\n> "mute_output": true,<\r><\n> "amp_output": 0,<\r><\n> "brightness": 15,<\r><\n> "hotword_brightness": 15,<\r><\n> "hotword_detection": 0,<\r><\n> "volume": 100,<\r><\n> "gain": 5,<\r><\n> "animation": 0<\r><\n> }<\r><\n> Creating I2Stask<\r><\n> Enter WifiDisconnected<\r><\n> Enter WifiConnected<\r><\n> Connected to Wifi with IP: 192.168.178.109, SSID: FRITZ!Box 7362 SL, BSSID: 2C:91:AB:F4:66:1B, RSSI: -81<\r><\n> Enter MQTTDisconnected<\r><\n> Connecting MQTT: 192.168.178.54, 1883<\r><\n> Enter MQTTConnected<\r><\n> Connected as satellite<\r><\n> Connected to asynch MQTT!<\r><\n> Enter Idle<\r><\n> <\r><\n> abort() was called at PC 0x4014baff on core 1<\r><\n> <\r><\n> <\r><\n> Backtrace:0x40083805:0x3ffefb700x4008bbb9:0x3ffefb90 0x40091229:0x3ffefbb0 0x4014baff:0x3ffefc30 0x4014bb46:0x3ffefc50 0x4014bc3f:0x3ffefc70 0x4014c567:0x3ffefc90 0x400d3596:0x3ffefcb0 0x400d8f8a:0x3ffefce0 0x40165db2:0x3ffefe60 0x400dbd11:0x3ffefe80 0x40166242:0x3ffefef0 0x400dcdb9:0x3ffeff20 0x400dce5b:0x3ffeff70 0x400db91a:0x3ffeff90 0x400db976:0x3fff0000 0x4014ebb9:0x3fff0020 0x4014ec31:0x3fff0050 0x4014f3ce:0x3fff0070 <\r><\n> <\r><\n>
and randomly i can reach the webserver.
Howerver I have connected those questioned pins to GND according to the datasheet of the PCM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant