espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.63k stars 7.28k forks source link

ESP32-C6 support status (IDFGH-9013) #10423

Closed igrr closed 9 months ago

igrr commented 1 year ago

ESP-IDF v5.1, currently in development, will include initial support for ESP32-C6 chip.

For each feature, the status (Supported/Not supported) is given. An internal issue reference (such as "IDF-1234") is listed at the end of the feature description to help us keep this list up to date.

This list will be updated as the support for ESP32-C6 is being developed.

Wi-Fi

Note: Nested features can be considered as supported, if the parent feature is shown as "Supported", and it's not explicitly mentioned as "Not supported".

TRusselo commented 11 months ago

any word on i2s support?

image image

gojimmypi commented 11 months ago

Happy to announce wolfSSL Hardware Acceleration Support for the ESP32-C6! See wolfSSL #6990.

I also have a wolfSSL Managed Component update in the works that will include this change once the PR is merged. The wolfSSH and wolfMQTT Espressif Managed components be added soon as well.

jack0c commented 11 months ago

@igrr @jack0c

Do you have update for the upcoming 5.1.2 release? Do you have target timeline for feature complete? (Only 6 items are not yet supported)

The features supported in v5.1.2 were updated. Here are some comments for the features not supported: Broadcast TWT – Not supported (WIFI-5215) - Still WIP, will support in IDF v5.3. FTM (Fine Time Measurement) – Not supported (WIFI-5144) - Still WIP, doing an ECO to support it, plan to support in IDF v5.3 MSPI tuning (Flash & PSRAM DDR and/or over 80 MHz) - Not supported (IDF-5343) - Still WIP, not sure when to release SPI Flash auto suspend - Not supported (IDF-5344) - looks done, looks already in master 66bba5694e611980d2671b10ad0839ff1ad6e3e4 Timeout Module (New) - Not supported (IDF-5814) - No plan yet

Hedda commented 11 months ago

Could you please add Zigbee NCP Host (ZBOSS NCP) to the list? See -> https://github.com/espressif/esp-zigbee-sdk/issues/124

Zigbee NCP Host with ZBOSS serial protocol CLI support is needed some some implementations, such as example zigpy radio library support for Home Assistant’s ZHA integration (and others) to allow using ESP32-C6 as a remote Zigbee Coordinator adapter -> https://github.com/kardia-as/zigpy-zboss/issues/19 which in turn depends on the zigpy libary and its radio libraries for hardware abstraction -> https://github.com/zigpy/zigpy

wanckl commented 11 months ago

@embenix sorry for confusing you, a new suit of TWAI driver is coming, 2nd TWAI will supported on new driver in new version of IDF at end 2023. sorry for long time waiting.

2 TWAI on C6

Congratulations!! 2 TWAIs on C6 is already available on release 5.2 and later thanks to the fix commit https://github.com/espressif/esp-idf/commit/2ae3d4d7c4642b4f02501ad9eabfbb834b77a76b,

For detailed usage PLS refer to unit tests: (with post fix xxx_v2 APIs) https://github.com/espressif/esp-idf/blob/e49823f10c6b6b8dadbad376002ea2bc531b7b0f/components/driver/test_apps/twai/main/test_twai_loop_back.c#L87C1-L130C

And API guide https://docs.espressif.com/projects/esp-idf/en/release-v5.2/esp32c6/api-reference/peripherals/twai.html#_CPPv422twai_driver_install_v2PK21twai_general_config_tPK20twai_timing_config_tPK20twai_filter_config_tP13twai_handle_t

image

:fire: :fire: :fire:

txf- commented 9 months ago

RTC Watchdog issues:

in menuconfig there is this option and description: image

As far as I can tell there rtc_wdt_disable()and rtc_wdt_feed(), do not apply to anything but the ESP32 and ESP32-S2 as those functions seem to be guarded by ifdefs for those devices.

Will this API ever be supported on other devices?

tom-borcin commented 9 months ago

Update 2024/01/17:

Only remaining items are:

These remaining items will be supported based on customer requests. We are closing the issue and unpinning it. Please open new issue if you have a feature request, question or any other problem.

gojimmypi commented 9 months ago

Woohoo! Congratulations to everyone that contributed to this massive update for ESP32C6!!

AxelLin commented 9 months ago

I'm wondering if all the supported features of C6 will be back port to 5.1 and 5.2 releases? (People mainly use release branches for real projects)

Suxsem commented 9 months ago

Hi, I'm using the relase/5.2 branch and I'm trying to use the ADC_ONESHOT with light sleep.

On boot, I initialize the ADC: 1) adc_oneshot_new_unit 2) adc_oneshot_config_channel 3) adc_cali_create_scheme_curve_fitting

Periodically, it wakes up from deep sleep and read the voltage: 4) adc_oneshot_read 5) adc_cali_raw_to_voltage

Unfortunately, only the first read is correct (in my case 1.8v); reads the occurs after light sleep are totally wrong (4v).

Is calibrated oneshoot adc supported after light sleep 1for esp32-c6?

Relevant sdk configs:

CONFIG_PM_ENABLE=y
CONFIG_FREERTOS_USE_TICKLESS_IDLE=y
CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y
CONFIG_IEEE802154_SLEEP_ENABLE=y
CONFIG_FREERTOS_HZ=1000
CONFIG_ESP_SLEEP_POWER_DOWN_FLASH=y
Suxsem commented 9 months ago

@tom-borcin sorry for tagging you but can you please take a look at my previous comment? We have already produced some prototype pcbs and if adc is usable in light sleep we must find alternative solutions as soon as possible, thank you

tom-borcin commented 9 months ago

Hi @Suxsem, please open a new issue. We won't be able to track the progress of your issue here. Once you have an issue opened, we will triage it and assign engineer who will help you. Thank you!

ilker-aktuna commented 9 months ago

This post (issue) says Zigbee Home Automation is supported. Where can I find examples/documentation for that ? I want to make a simple sensor using this. But I can't find any examples for joining a hub and communicating.

igrr commented 9 months ago

@ilker-aktuna Please check https://github.com/espressif/esp-zigbee-sdk/tree/5f70b2f/examples/esp_zigbee_HA_sample and https://docs.espressif.com/projects/esp-zigbee-sdk/en/latest/esp32/developing.html

fillibar commented 9 months ago

@igrr: Those examples are for connecting between two of the ESP devices (one as end-device, one as coordinator) directly. They do not appear to show connecting to an existing ZigBee network/mesh that might be operated by a hub/controller (such as a Home Assistant or Hubitat). I think that is what @ilker-aktuna is looking for, ie: an end device that can communicate the data to that hub.

igrr commented 9 months ago

The readmes reference two ESP devices for simpler setup, but they can also be used with off-the-shelf hardware. For example, see https://github.com/espressif/esp-zigbee-sdk/issues/149. If you have further questions about ZigBee, please open an issue in esp-zigbee-sdk repository.

ilker-aktuna commented 9 months ago

The readmes reference two ESP devices for simpler setup, but they can also be used with off-the-shelf hardware. For example, see espressif/esp-zigbee-sdk#149.

@igrr I want to try these examples but I don't have development environment for these (VS) Is it possible to have an Arduino version of these ?

In fact, I see that this Arduino example: https://github.com/P-R-O-C-H-Y/arduino-esp32/blob/Zigbee-examples/libraries/ESP32/examples/Zigbee/Zigbee_Light_Bulb/Zigbee_Light_Bulb.ino

is the ported version of this: https://github.com/espressif/esp-idf/blob/master/examples/zigbee/light_sample/HA_on_off_light/main/esp_zb_light.c

is that correct ? if so, there is really not much difference. Can we also use the example from here , to port to Arduino: https://github.com/espressif/esp-zigbee-sdk/tree/main/examples/esp_zigbee_HA_sample/HA_on_off_light

I just don't understand where the include files below will be found by Arduino IDE :

include "esp_zigbee_core.h"

include "ha/esp_zigbee_ha_standard.h"

diplfranzhoepfinger commented 8 months ago

there is PSRAM on C6 ?

slaesh commented 8 months ago

there is PSRAM on C6 ?

@diplfranzhoepfinger , sadly not: https://esp32.com/viewtopic.php?t=33703

MichaelUray commented 4 months ago

Only remaining items are: UHCI (UART DMA mode) driver

Is there any timline for the UHCI implementation?

tom-borcin commented 4 months ago

@MichaelUray UHCI is implemented, we are testing it right now and it should be available in one month.