espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
266 stars 157 forks source link

Not able to build subscribe_publish example for ESP32C3 target (CA-163) #71

Closed jitendraBLE closed 2 years ago

jitendraBLE commented 2 years ago

Hi All

I have ESP32C3 chip and want to build subscribe_publish example project for ESP32C3 target. When I set target esp32c3 using "idf.py set-target esp32c3" command and build the project I got following error:

riscv32-esp-elf-gcc: error: unrecognized command line option '-mlongcalls'

I read the espressif document which says esp-aws-iot sdk project is available for ESP32C3 target. Following link is for reference but it redirect to me on same project which I already tried to build for esp32c3 and it's gave above build error.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/libraries-and-frameworks/cloud-frameworks.html

Any help will be appreciated. Thanks

shahpiyushv commented 2 years ago

For any such build errors, the following steps generally help

jitendraBLE commented 2 years ago

Thanks Piyush for your quick response.

Does subscribe_publish example in esp-aws-iot repository works for ESP32C3 target?

jitendraBLE commented 2 years ago

Thanks Piyush. Issues now fixed by following your above comment.