esp-idf, can we get an updated version?

chris12892 wrote on January 20, 2019:

Seems like the esp-idf package in the demo repo does not have support for CAN. Could we get an update to this package? I tried to just direct the makefile to a new cloned esp-idf outside of the demo repo, but I got the following build error:



Python requirements from /home/chris/espiot/esp-idf/requirements.txt are satisfied.
Building partitions from /home/chris/espiot/amazon-freertos/demos/espressif/esp32_devkitc_esp_wrover_kit/make/partitions_example.csv...
CC build/amazon-freertos-common/lib/mqtt/aws_mqtt_lib.o
CC build/amazon-freertos-common/lib/mqtt/aws_mqtt_agent.o
In file included from /home/chris/espiot/amazon-freertos/lib/include/private/portable.h:52:0,
                 from /home/chris/espiot/amazon-freertos/lib/include/FreeRTOS.h:62,
                 from /home/chris/espiot/amazon-freertos/lib/include/aws_mqtt_agent.h:36,
                 from /home/chris/espiot/amazon-freertos/lib/mqtt/aws_mqtt_agent.c:33:
/home/chris/espiot/amazon-freertos/lib/FreeRTOS/portable/ThirdParty/GCC/Xtensa_ESP32/include/portmacro.h:77:32: fatal error: xtensa/tie/xt_core.h: No such file or directory

Alexa-AWS wrote on January 22, 2019:

Hi Chris,

Thanks for this input. The tip of master is based on v3.1.1 of the Espressif IDF (which as you have pointed out, does not have CAN driver code).

We are currently working on updating our processes to incorporate updated versions of driver libraries more quickly, but I’m not sure what the timeline is for pulling in a version of the IDF that has CAN drivers included. I will pass this feedback on for prioritization.

My understanding from our partners at Espressif is that there are a couple additional steps that must be taken in addition to redirecting the makefile to a newer version of the IDF:
-Remove common components that are already present in Amazon FreeRTOS (such as the FreeRTOS kernel or mbedTLS)
-Modify the bootloader to comply with Amazon FreeRTOS over-the-air update requirements

In the meantime, the guidance from Espressif is that it would likely be easier to pull the CAN driver changes into Amazon FreeRTOS rather than point the makefile to an external IDF.

Alexa