esp32c3 arduino ide my code is not executed

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

esp32c3 arduino ide my code is not executed

Postby maggymtac » Fri Aug 06, 2021 8:09 pm

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.
Attachments
Capture d’écran de 2021-08-01 10-22-14.png
Capture d’écran de 2021-08-01 10-22-14.png (147.67 KiB) Viewed 11107 times

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: esp32c3 arduino ide my code is not executed

Postby maggymtac » Fri Aug 13, 2021 9:15 am

Anyone have an idea? Is it possible to compile my arduino code with esp-idf toolchain and flash it ?

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: esp32c3 arduino ide my code is not executed

Postby chegewara » Fri Aug 13, 2021 2:36 pm

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.

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: esp32c3 arduino ide my code is not executed

Postby maggymtac » Sat Aug 14, 2021 8:37 am

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?
Attachments
226288599_987291228699124_5775597291488554108_n.jpg
226288599_987291228699124_5775597291488554108_n.jpg (264.9 KiB) Viewed 10692 times

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: esp32c3 arduino ide my code is not executed

Postby chegewara » Sun Aug 15, 2021 6:42 pm

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

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: esp32c3 arduino ide my code is not executed

Postby maggymtac » Mon Aug 16, 2021 1:56 pm

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:
Attachments
ESP32-C3-ESP-C3-ESP-C3-C3S-12F-13-13U-01M-32S-Mini-WiFi-BLE-5.jpg_Q90.jpg
ESP32-C3-ESP-C3-ESP-C3-C3S-12F-13-13U-01M-32S-Mini-WiFi-BLE-5.jpg_Q90.jpg (72.49 KiB) Viewed 10527 times

khoih-prog
Posts: 53
Joined: Sat Feb 22, 2020 8:16 pm

Re: esp32c3 arduino ide my code is not executed

Postby khoih-prog » Mon Aug 16, 2021 11:44 pm

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.

Image

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.

Image

Very funny and inconvenient way to use. But it works anyway :lol:

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: esp32c3 arduino ide my code is not executed

Postby maggymtac » Tue Aug 17, 2021 1:57 pm

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?

khoih-prog
Posts: 53
Joined: Sat Feb 22, 2020 8:16 pm

Re: esp32c3 arduino ide my code is not executed

Postby khoih-prog » 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.

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: esp32c3 arduino ide my code is not executed

Postby maggymtac » Tue Aug 17, 2021 3:25 pm

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.

Who is online

Users browsing this forum: No registered users and 154 guests