Page 1 of 2
esp32c3 arduino ide my code is not executed
Posted: Fri Aug 06, 2021 8:09 pm
by maggymtac
Hello,
I have two module esp32C3, i develop my code to manage lcd screen and connect to my network.
I upload on the module but i get any traces on serial monitor. My code is good.
The module works fine with esp-idf toolchain get with github repository.
Where is the problem?
Thank you.
Re: esp32c3 arduino ide my code is not executed
Posted: Fri Aug 13, 2021 9:15 am
by maggymtac
Anyone have an idea? Is it possible to compile my arduino code with esp-idf toolchain and flash it ?
Re: esp32c3 arduino ide my code is not executed
Posted: Fri Aug 13, 2021 2:36 pm
by chegewara
From information you provided is hard to say what is wrong.
There is no crash, logs from boot are not complete, which suggest some problem, but there is no way to say what problem.
Did you try to flash simple sketch using arduino IDE? I tested with master branch and "all" work fine.
Re: esp32c3 arduino ide my code is not executed
Posted: Sat Aug 14, 2021 8:37 am
by maggymtac
Yes i try a simple sketch with Arduino IDE, same problem. Very strange.
I try esp-idf repository example, hello-world it's works. I try other Arduino IDE v2 same problem. Other solution to use sketch without Arduino IDE if this is the problem for ESP-C3-13?
Re: esp32c3 arduino ide my code is not executed
Posted: Sun Aug 15, 2021 6:42 pm
by chegewara
It is working to me and other users, so in that case my suggestion is to re-install arduino-esp32.
If you upgraded from earlier version, like v1.0.4 or 1.0.6, did you re-run get.exe?
Next thing i would do is to update arduino-esp32 to master branch if you are on RC1 or alpha, which have few updates.
EDIT also change core log level to Info or Debug
Re: esp32c3 arduino ide my code is not executed
Posted: Mon Aug 16, 2021 1:56 pm
by maggymtac
I have 2 things:
1) On the first side toolchaine esp32-idf, which i try example
2) The second side Arduino IDE, esp32 boards release rc1 which i see my code is not running.
My board:
Re: esp32c3 arduino ide my code is not executed
Posted: Mon Aug 16, 2021 11:44 pm
by khoih-prog
This happens to some
ESP32_C3 boards from some companies, I think, because of bad or incompatible bootloader.
Try first upload to C3 board, using normal way (select ESP32C3_DEV, 480600, 2MB, Minimal(1.3+700), etc.). You can see some garbage on terminal after finishing upload.
Then select ESP32_DEV, and reupload. You'll get some complaint in Arduino IDE, but the board will run normally with the previous sketch now.
Very funny and inconvenient way to use. But it works anyway
Re: esp32c3 arduino ide my code is not executed
Posted: Tue Aug 17, 2021 1:57 pm
by maggymtac
I try as you explain, its works now. I need only unplug/usb to execute my code after reupload with "ESP32 Dev module" selected.
If the problems comes from bootloader, is it possible to flash other bootloader?
Re: esp32c3 arduino ide my code is not executed
Posted: Tue Aug 17, 2021 3:10 pm
by khoih-prog
I'm glad it's working for you now. I really don't know where the problem is now as I haven't spent time to research. Just my wild guess that the bootloader is not fully compatible with Arduino IDE.
We just have to leave this issue for concerning experts to solve.
Re: esp32c3 arduino ide my code is not executed
Posted: Tue Aug 17, 2021 3:25 pm
by maggymtac
khoih-prog wrote: ↑Tue Aug 17, 2021 3:10 pm
I'm glad it's working for you now. I really don't know where the problem is now as I haven't spent time to research. Just my wild guess that the bootloader is not fully compatible with Arduino IDE.
We just have to leave this issue for concerning experts to solve.
Thank you for this help.