rzeldent / esp32cam-rtsp

Simple RTSP (streaming image) server for the ESP32CAM. Easy configuration and monitoring through the web interface.
663 stars 121 forks source link

Can't boot: "invalid header: 0x400d3f64 #97

Closed unfa closed 1 year ago

unfa commented 1 year ago

I have been flashing the firmware.bin file many times and all I got was an endless stream of these messages:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x400d3f64
invalid header: 0x400d3f64
invalid header: 0x400d3f64
invalid header: 0x400d3f64
invalid header: 0x400d3f64
invalid header: 0x400d3f64
invalid header: 0x400d3f64

I used ESPhome web tool since that's the easiest way for me to flash an ESP32 module.

Flashing the "prepare for first use" option works fine and I get proper logs from the device afterwards.

I've downloaded the firmware from previous release to test - same thing. I have taken out the microSD card I've put in - same thing.

I had 2 instances where something happened with the while LED - one time it flashed a short sequence, other time it became enabled (on low power, so indicator mode, not torch).

The module I use is a standard ESP32-CAM one with a dedicated MB programmer I've flashed the firmware generated by ESPHome (inside Home Assistant) and it works first try.

Have anybody had something like this happening before? I couldn't find anything relevant online.

Thank you for creating this project :) I hope I'll be able to use it soon!

rzeldent commented 1 year ago

Hi unfa,

If you use upload in platformio it will (build and) upload automatically!

On Thu, Nov 9, 2023 at 11:42 PM unfa @.***> wrote:

I have been flashing the firmware.bin file many times and all I got was an endless stream of these messages:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) invalid header: 0x400d3f64 invalid header: 0x400d3f64 invalid header: 0x400d3f64 invalid header: 0x400d3f64 invalid header: 0x400d3f64 invalid header: 0x400d3f64 invalid header: 0x400d3f64

I used ESPhome web tool https://web.esphome.io/ since that's the easiest way for me to flash an ESP32 module.

Flashing the "prepare for first use" option works fine and I get proper logs from the device afterwards.

I've downloaded the firmware from previous release to test - same thing. I have taken out the microSD card I've put in - same thing.

I had 2 instances where something happened with the while LED - one time it flashed a short sequence, other time it became enabled (on low power, so indicator mode, not torch).

The module I use is a standard ESP32-CAM one with a dedicated MB programmer I've flashed the firmware generated by ESPHome (inside Home Assistant) and it works first try.

Have anybody had something like this happening before? I couldn't find anything relevant online.

Thank you for creating this project :) I hope I'll be able to use it soon!

— Reply to this email directly, view it on GitHub https://github.com/rzeldent/esp32cam-rtsp/issues/97, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2ENBYB4DVMSYU2JCDHPJDYDVL6LAVCNFSM6AAAAAA7FJTD5OVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DMNJSGUYDQNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

unfa commented 1 year ago

Yes, using PlatformIO it did work.

I did install it on Arch Linux from the official repositories:

sudo pacman -Sy platformio

After that following your guide was incredibly easy, I just cloned the repo, run two commands using the PlatformIO (pio) executable and... it works!

This gives me ideas to maybe use this for maybe modifying the code myself in the future, maybe I'd be able to commit something useful.

One thing in my mind is making the LED turn on based on ambient light, so instead of just increasing camera gain, it could try to increase it less, but also increase the light. But I digress.

Thanks!

I don't know why it doesn't work with ESPHome, but I guess ESPhome web flasher is made for ESPhome-made firmware binaries.

rzeldent commented 1 year ago

Hi Unfa,

Glad to hear it worked out!

Using the CDS resistor and adapting the backlight to the surrounding light is exactly why it's there! Be aware that later boards do not have the CDS anymore on the board...

Kind regards,

Rene