ESP32 not flashing anymore

For general Flowcode discussion that does not belong in the other sections.
Post Reply
stefan.erni
Valued Contributor
Posts: 738
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

ESP32 not flashing anymore

Post 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 2272 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...

LeighM
Valued Contributor
Posts: 394
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 69 times
Been thanked: 208 times

Re: ESP32 not flashing anymore

Post by LeighM »

Try deleting the build directory,
Or copy your Flowcode project to a new name (e.g. v3)
And then recompile

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 not flashing anymore

Post by stefan.erni »

I did, It's still bad, please see the file.
Attachments
ESP32_post_1.msg.txt
(4.44 KiB) Downloaded 97 times

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: ESP32 not flashing anymore

Post 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.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 not flashing anymore

Post 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 2251 times

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: ESP32 not flashing anymore

Post 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 2237 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 2237 times

Now it's working fine again

regards

Stefan

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

Post Reply