espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
12.99k stars 7.29k forks source link

Add support for Low Power core of the ESP32C6 #9721

Open rrrus opened 1 month ago

rrrus commented 1 month ago

Related area

Low power core

Hardware specification

ESP32C6

Is your feature request related to a problem?

I am unable to program the low power core of the ESP32C6 with the Arduino IDE.

Describe the solution you'd like

Enable authoring, compiling, and running of code on both the high power and low power cores of the ESP32C6 in C & assembly at the very least, preferably C++, from within the Arduino IDE.

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

lbernstone commented 1 month ago

I have requested that this be added to the compiled sdk. Note that the LP-core is a RISC-V arch, and will is expected to be programmed in C, not assembly. I will test later today or tomorrow to see if this is even possible using the S3. IIRC, there is a 2-pass compile, and in esp-idf the ulp code gets compiled down and included as an asm blob. If that is the case, the arduino compiler probably will not be able to program the ulp properly.

me-no-dev commented 1 month ago

It's not yet possible, but we will revisit it later. For now only the FSM ULP can be used (where available)

SuGlider commented 1 month ago

@rrrus @lbernstone This is possible by using Arduino as IDF component. The IDF tools and building process will be available, making it feasible.

SuGlider commented 1 month ago

@sudeep-mohanty - Let talk about how to move forward with C6 LP support for Arduino IDE.