esp32-C3 esp-idf issue

iamcalledusman
Posts: 28
Joined: Tue Mar 23, 2021 10:44 am

esp32-C3 esp-idf issue

Postby iamcalledusman » Tue Jun 29, 2021 7:41 pm

Hi All,
Need your help, I have installed the esp-IDF and espressif tools for esp32_c3. Version is the master branch. I also tried all versions of esp-idf 4.1,4.2 and 4.3 all have the same response. The response is that esp32_c3 reboots again and again with the following as mentioned in the attached image "reboots_continously". Can you help me in this regard? Everything works well, compiling and downloading into esp32_c3

Thanks in Advance
Attachments
reboots_continously.jpg
reboots_continously
reboots_continously.jpg (407 KiB) Viewed 6559 times

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

Re: esp32-C3 esp-idf issue

Postby chegewara » Tue Jun 29, 2021 7:56 pm

Just make sure you are not using strapping pins:
The strapping combination of GPIO8 = 0 and GPIO9 = 0 is invalid and will trigger unexpected behavior.
page 14: https://www.espressif.com/sites/default ... eet_en.pdf

iamcalledusman
Posts: 28
Joined: Tue Mar 23, 2021 10:44 am

Re: esp32-C3 esp-idf issue

Postby iamcalledusman » Wed Jun 30, 2021 7:43 am

thank you so much for the response. No, i am not using the strapping pins ,. One thing more which I have observed is that I have installed the esp-idf into another pc and its still working fine. In comparison between these two PCs, I have observed one thing that the working PC has the following sdkconfig file as attached wth the esp32_c3 is enabled and another image is attached with nonworking pc with esp32 enabled.

Is that the issue? can you help me where to enable esp32_c3 so that it gets enabled in the esp32_c3 file? I manually changed it but when I compiled all changes revert back.

Thanks in Advance and for the response !

Best Regards,
Attachments
sdkconfig_esp32.jpeg
non working pc sdkconfig file
sdkconfig_esp32.jpeg (170.09 KiB) Viewed 6516 times
sdkconfig_esp32_c3.jpeg
working pc sdkconfig file
sdkconfig_esp32_c3.jpeg (158.16 KiB) Viewed 6516 times

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

Re: esp32-C3 esp-idf issue

Postby chegewara » Wed Jun 30, 2021 8:58 am

There is 2 things:
- on PC with "esp32" you should not be able to flash C3 with this sdkconfig
- yes, you can use this command and all should be fine:

Code: Select all

idf.py set-target esp32c3
idf.py flash

iamcalledusman
Posts: 28
Joined: Tue Mar 23, 2021 10:44 am

Re: esp32-C3 esp-idf issue

Postby iamcalledusman » Wed Jun 30, 2021 12:14 pm

thank you for the response!

I run this command :idf.py set-target esp32c3"

and got the following response

"IDF_PATH environment variable needs to be set to use this tool"

I will try to resolve this message and try to flash the esp32_c3 by using commands as you mentioned. And will update you further on it.

Thank You!

iamcalledusman
Posts: 28
Joined: Tue Mar 23, 2021 10:44 am

Re: esp32-C3 esp-idf issue

Postby iamcalledusman » Wed Jun 30, 2021 8:39 pm

I have tested using the command and load the program as shown in the image "using_command_line".

and I get the same output on dock light . As shown in the image.

This time output changes but still rebooting . Talking about the chip revision which should be a minimum 3. Can you help me in this regard?

Thanks in advance !
Attachments
dock_light_output.jpg
after reboot
dock_light_output.jpg (384.76 KiB) Viewed 6440 times
using_command_line.jpg
using command line
using_command_line.jpg (230.48 KiB) Viewed 6440 times

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

Re: esp32-C3 esp-idf issue

Postby chegewara » Wed Jun 30, 2021 10:45 pm

Try:

Code: Select all

idf.py menuconfig
Then use slash(/) to enable searching and try to find word "revision" and change minimum required revision to 2.

iamcalledusman
Posts: 28
Joined: Tue Mar 23, 2021 10:44 am

Re: esp32-C3 esp-idf issue

Postby iamcalledusman » Thu Jul 01, 2021 10:07 am

thank you so much for the help !

It worked!

I want to share my observations for the newcomers in this post.

When I run the "idf.py menuconfig" command and find the "revision" by '/' character as described by you.

Made changes, and run these two commands
idf.py set-target esp32c3
idf.py flash

then it reverts changes back to revision = 3 and I got the same error.

but when I directly run the command " idf.py flash " after set revision =2, it worked!

is there any reason behind that?

In the end, again thank you!

Best Regards,

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

Re: esp32-C3 esp-idf issue

Postby chegewara » Fri Jul 02, 2021 5:57 pm

When you set target with

Code: Select all

idf.py set-target esp32xx
then default values are applied in sdkconfig.

iamcalledusman
Posts: 28
Joined: Tue Mar 23, 2021 10:44 am

Re: esp32-C3 esp-idf issue

Postby iamcalledusman » Sat Jul 03, 2021 8:45 am

thank you !

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 138 guests