esp-aws-iot icon indicating copy to clipboard operation
esp-aws-iot copied to clipboard

Request OTA example compatibility for ESP32-C3 (CA-196)

Open iceananas opened this issue 3 years ago • 2 comments

Expected Behavior

The OTA MQTT example is expected to build for esp32-c3 target.

Current Behavior

Building the example fails because /port/ota/aws_esp_ota_ops.c includes a header which the esp32-c3 does not have.

Steps to Reproduce

  1. Clone repository and go to examples/ota/ota_mqtt
  2. Switch target using idf.py set-target esp32c3
  3. Try to build the taget idf.py build
  4. The build fails with an error
..../esp-aws-iot/port/ota/aws_esp_ota_ops.c:37:10: fatal error: soc/dport_reg.h: No such file or directory
 #include "soc/dport_reg.h"

Context (Environment)

ESP-IDF version 4.3.2

iceananas avatar Feb 23 '22 18:02 iceananas

Hi @iceananas, thank you for reporting this. Please try the attached patch. c3-compatibility.txt It will be fixed in the port shortly.

dhavalgujar avatar Feb 23 '22 18:02 dhavalgujar

Well that was fast :) I can confirm that the example builds with the patch. Thanks!

iceananas avatar Feb 23 '22 18:02 iceananas