Page 1 of 1

ESP32 not flashing anymore

Posted: Wed Oct 20, 2021 8:32 am
by stefan.erni
Hi Ben

My ESP32 program was working fine until I play with the baudrate for the programmer

For this I made a compiler option ESP921. It's was not working, so I like to go back to Default.
But the default is not working anymore and I can not delet the compiler option ESP921 anymore

But the worst is, it does not flash correct anymore...
esp32_2021-10-20_9-06-14.png
esp32_2021-10-20_9-06-14.png (57.31 KiB) Viewed 2334 times
This is now: It's not longer flashing"
[1/4] Performing build step for 'bootloader'
ninja: no work to do.
[1/2] cmd.exe /C "cd /D C:\Users\Kfs-Forschung\Desktop\esp-idf\components\esptool_py && C:\Users\Kfs-Forschung\.espressif\tools\cmake\3.16.4\bin\cmake.exe -D IDF_PATH="C:/Users/Kfs-Forschung/Desktop/esp-idf" -D SERIAL_TOOL="C:/Users/Kfs-Forschung/.espressif/python_env/idf4.3_py3.7_env/Scripts/python.exe C:/Users/Kfs-Forschung/Desktop/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="C:/FcM5/RTC/RTC_ESP32_v2/build" -P C:/Users/Kfs-Forschung/Desktop/esp-idf/components/esptool_py/run_serial_tool.cmake"

Executing action: flash
Running ninja in directory c:\fcm5\rtc\rtc_esp32_v2\build
Executing "ninja flash"...
Done
This is how it was flashing before....
Performing build step for 'bootloader'
ninja: no work to do.
[1/2] cmd.exe /C "cd /D C:\Users\Kfs-Forschung\Desktop\esp-idf\components\esptool_py && C:\Users\Kfs-Forschung\.espressif\tools\cmake\3.16.4\bin\cmake.exe -D IDF_PATH="C:/Users/Kfs-Forschung/Desktop/esp-idf" -D SERIAL_TOOL="C:/Users/Kfs-Forschung/.espressif/python_env/idf4.3_py3.7_env/Scripts/python.exe C:/Users/Kfs-Forschung/Desktop/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="C:/FcM5/RTC/RTC_ESP32_v2/build" -P C:/Users/Kfs-Forschung/Desktop/esp-idf/components/esptool_py/run_serial_tool.cmake"

esptool.py esp32 -p COM9 -b 115200 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB
0x8000 partition_table/partition-table.bin
0x1000 bootloader/bootloader.bin
0x10000 esp-project.bin
esptool.py v3.1-dev
Serial port COM9
Connecting...
.

Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:a1:60:45:fd:28
Uploading stub...
Running stub...
Stub running...

Re: ESP32 not flashing anymore

Posted: Wed Oct 20, 2021 9:07 am
by LeighM
Try deleting the build directory,
Or copy your Flowcode project to a new name (e.g. v3)
And then recompile

Re: ESP32 not flashing anymore

Posted: Wed Oct 20, 2021 9:59 am
by stefan.erni
I did, It's still bad, please see the file.

Re: ESP32 not flashing anymore

Posted: Wed Oct 20, 2021 2:30 pm
by BenR
Hello,

It looks like it's a build step that's failing not the programming step.
[3/625] Performing build step for 'bootloader'
FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-build bootloader/bootloader.elf bootloader/bootloader.bin bootloader/bootloader.map
Did you edit the esp32_build.bat file at all? If you did then you should be able to revert back to stock using the library updates window in Flowcode.

Re: ESP32 not flashing anymore

Posted: Wed Oct 20, 2021 3:23 pm
by stefan.erni
Hi Ben

No I did not....I mean I can't

What I did is add Compiler option. I add two settings. How can I remove this two settings?

I reset the lib in the global option and updated the Lib again. This did not help
no_no2021-10-20_16-10-35.png
no_no2021-10-20_16-10-35.png (12.88 KiB) Viewed 2313 times

Re: ESP32 not flashing anymore

Posted: Thu Oct 21, 2021 9:20 am
by stefan.erni
Hi to All

I deleted the folder esp-if from the desktop an run
esp-if2021-10-21_10-17-46.png
esp-if2021-10-21_10-17-46.png (2.84 KiB) Viewed 2299 times

esp-idf-tools-setup-2.3.exe
esp32_2021-10-21_10-07-06.png
esp32_2021-10-21_10-07-06.png (38.71 KiB) Viewed 2299 times

Now it's working fine again

regards

Stefan

Info about install ESP32 here:
https://flowcode.co.uk/wiki/images/a/a4 ... ctions.pdf