rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
563 stars 39 forks source link

ESP32-C3 Won't boot, stuck on line : entry 0x403cc710 #458

Closed Stoufiler closed 2 months ago

Stoufiler commented 2 months ago

Hardware

ESP32-C3

Firmware version

v2.4.6

Application version

not display

What happened? What did you expect to happen?

Similar to https://github.com/rstrouse/ESPSomfy-RTS/issues/309

When I flashed my ESP32-C3 module (without anything connected on pins) got the following message and don't have the AP :

[19:08:55]ESP-ROM:esp32c3-api1-20210207
[19:08:55]Build:Feb  7 2021
[19:08:55]rst:0x15 (USB_UART_CHIP_RESET),boot:0xf (SPI_FAST_FLASH_BOOT)
[19:08:55]Saved PC:0x42080592
[19:08:55]SPIWP:0xee
[19:08:55]mode:DIO, clock div:1
[19:08:55]load:0x3fcd5810,len:0x438
[19:08:55]load:0x403cc710,len:0x90c
[19:08:55]load:0x403ce710,len:0x2624
[19:08:55]entry 0x403cc710

I've well taken the SomfyController.onboard.esp32c3.bin file

For Information, I've bought this one from aliexpress : https://fr.aliexpress.com/item/1005007217971966.html

How to reproduce it (step by step)

1. Go to https://web.esphome.io/
2. Connect the device through USB Forwarding
3. Click on `INSTALL`
4. Select file : SomfyController.onboard.esp32c3.bin
5. INSTALL the firmware
6. Configuration installed!
7. Click on logs
8. Got the line : [19:16:25]entry 0x403cc710
9. Press RESET DEVICE
10. Got the same line : [19:16:25]entry 0x403cc710

Logs

No response

rstrouse commented 2 months ago

I added a compile flag to disable jtag and enable serial output on some models of the C3 please download the SomfyController.onboard.esp32c3.zip file from the v2.4.7 pre-release. https://github.com/rstrouse/ESPSomfy-RTS/releases/tag/v2.4.7

Unzip this file and flash with the resulting SomfyController.onboard.esp32c3.bin file.

Stoufiler commented 2 months ago

Thanks a lot for the quieck answer !

Successfully installed got this now :

[19:58:04]ESP-ROM:esp32c3-api1-20210207
[19:58:04]Build:Feb  7 2021
[19:58:04]rst:0x15 (USB_UART_CHIP_RESET),boot:0xf (SPI_FAST_FLASH_BOOT)
[19:58:04]Saved PC:0x4207db0a
[19:58:04]SPIWP:0xee
[19:58:04]mode:DIO, clock div:1
[19:58:04]load:0x3fcd5810,len:0x438
[19:58:04]load:0x403cc710,len:0x90c
[19:58:04]load:0x403ce710,len:0x2624
[19:58:04]entry 0x403cc710
[19:58:04]
[19:58:04]Startup/Boot....
[19:58:04]Mounting File System...
[19:58:04]File system mounted successfully
[19:58:09]Chip Model ESP32-c3
Preference IP Free Entries: 547
SECURITY   Type:0 Username:[] Password:[] Pin:[] Permissions:0
[19:58:09]Connection Type: 1
NTP Settings 
[19:58:09]pool.ntp.org TZ:
[19:58:09]WIFI Settings
[19:58:09] SSID: [] PassPhrase: []
[19:58:09]
[19:58:09]Launching web server...
[19:58:09]Creating Web MicroServices...
[19:58:10]WiFi Mode: 0
[19:58:10](evt) WiFi interface ready
[19:58:10]WiFi station mode started
[19:58:10]Socket Server Started...
[19:58:10]App Version:2.4.7
Starting clean
[19:58:10]Initializing RX Queue
[19:58:10]
[19:58:10]Turning the HotSpot On
[19:58:10](evt) WiFi SoftAP Started IP:192.168.4.1
[19:58:10](evt) WiFi SoftAP Stopped
[19:58:10](evt) WiFi SoftAP Started IP:192.168.4.1

I sawn the hotspot 10 seconds, tried to connect to it, but it was gone

After 5 minutes or more, hotspot came back and I've well connected to it, and well configured the wifi

After that device successfully rebooted, got an IP Address, but it's so sloooooow

20:09:25]
[20:09:25]Launching web server...
[20:09:25]Creating Web MicroServices...
[20:09:26]WiFi Mode: 0
[20:09:26](evt) WiFi interface ready
[20:09:26]WiFi station mode started
[20:09:26]Socket Server Started...
[20:09:26]App Version:2.4.7
Starting clean
[20:09:26]Initializing RX Queue
[20:09:27]Connecting to AP
[20:09:27]Set hostname to:ESPSomfyRTS
[20:09:33]Timing Net: 204ms
Timing Net: 280ms
(evt) Disconnected from WiFi STA access point. Connecting: 1
Connecting to AP
[20:09:34]Set hostname to:ESPSomfyRTS
[20:09:36]Timing Net: 202ms
(evt) Connected to WiFi STA access point
[20:09:36](evt) Got WiFi STA IP: 192.168.10.25
[20:09:36]Setting connected...
[20:09:36]
[20:09:36]Successfully Connected to WiFi!!!!192.168.10.25 (-89dbm)
[20:09:36]MDNS Responder Started: serverId=2595A4
Max Heap: 139252
[20:09:36]Free Heap: 159484
[20:09:36]Min Heap: 159444
[20:09:37]Loading file /index.html
[20:09:43]Timing WebServer: 5482ms
Loading file /icons.css
[20:09:55]Timing WebServer: 12346ms
Loading file /main.css
[20:09:55]Loading file /widgets.css
[20:10:02]Timing WebServer: 7089ms
Loading file /index.js
rstrouse commented 2 months ago

Your wifi is only detected at -89dbm this indicates a poor link quality. Honestly, the ceramic antenna implementations are spotty. I have one on my desk that gets great connectivity when laying flat in one position then all I need to do is move it a couple of inches in another direction and the connection disappears. However, I have another that I can place in the same spot and the connectivity is great. 12 seconds to download a < 20k css file is crazy slow. The C3 and S3 boards with the external antenna seem to be great.

Stoufiler commented 2 months ago

Thanks for the information, I used a Wemos S2 mini, everything installed without a hitch and the speeds to access the web interface are perfect!

Thanks again for your speed on the issues as well as for the work provided and for sharing it in open-source!

BTW, I close this issue now that it works with pre-release version