Page 1 of 1

ESP32 WRover Flashs but does NOT Execute Code

Posted: Sun Jul 30, 2023 8:58 am
by youngblacksage
Hi I am new to this forum, so please let me know any corrections I need to make moving forward.

Anyways here's the issue. I am trying to flash a program onto my esp board, but I think the flash is not actually working correctly. when I run the "idf.py flash" it comes back successful, but when I launch the monitor the code just calls and returns from main immediately, not running any of the code inside of main(). I have had a little success by making new projects when the problem occurs, but this is annoying to have to do so frequently.
In addition, I tried flashing the board with some of my older programs and they worked fine. I even tried just blinking an LED using my old project file and it works, but when I try to blink an LED in my new project file, the program will flash on the board, but I don't think it is really running. I already doubled checked and don't see any crashs. Any help would be greatly appreciated. I just bought this board not too long ago and am quite frustrated by the issues I've been facing with it since them.
There is not error message as i don

Re: ESP32 WRover Flashs but does NOT Execute Code

Posted: Sun Jul 30, 2023 4:53 pm
by MicroController
youngblacksage wrote:
Sun Jul 30, 2023 8:58 am
I think the flash is not actually working correctly.
I think differently.
Do you build your project (idf.py build) before you flash it?

Re: ESP32 WRover Flashs but does NOT Execute Code

Posted: Sun Jul 30, 2023 6:11 pm
by youngblacksage
Yes the project builds and I don’t see any errors or warning. I’m not by my laptop otherwise I would add a screen shot of the build command.
The only issue I can think that’s build related is the following. When I set device the project will not build successfully. However in the past, I have never had to set the device and the program will build and flash just fine.