Conversation
wmrsouza
requested review from
acassis,
anchao,
eren-terzioglu,
fdcavalcanti,
jerpelea,
lupyuen,
pussuw,
raiden00pl and
tmedicci
as code owners
September 15, 2026 14:51
wmrsouza
marked this pull request as draft
September 15, 2026 14:52
Contributor
|
@wmrsouza please also add the Assisted-by: LLM Vendor / Model used |
wmrsouza
force-pushed
the
port/esp32c2
branch
5 times, most recently
from
September 16, 2026 16:18
4e4cb54 to
89b9568
Compare
wmrsouza
marked this pull request as ready for review
September 16, 2026 16:40
acassis
marked this pull request as draft
September 16, 2026 16:54
Contributor
|
@wmrsouza let's keep it as draft until you fix the reviewing I think the first two commit aren't related to the initial port, since the are generic: arch/risc-v/espressif: add line-fitting ADC calibration arch/risc-v/espressif: pick oneshot TIMG from SoC instance count |
wmrsouza
force-pushed
the
port/esp32c2
branch
2 times, most recently
from
September 16, 2026 20:16
d7d5676 to
b1cee77
Compare
Contributor
|
@wmrsouza please read (or ask your AI agent to read it): https://nuttx.apache.org/docs/latest/contributing/guide.html We don't use: Co-authored-by: Cursor cursoragent@cursor.com and you forgot to add your Signed-off-by. Please use git rebase and fix it on all commits. |
Contributor
Author
|
Thanks @acassis I'll be addressing these issues as soon as possible. |
Some SoCs have a single timer group, so a hardcoded GROUP_ID of 1 overflowed soc_timg_gptimer_signals and crashed in periph_rcc_acquire_enter. Guard gptimer group 1 behind TIMG_LL_GET(INST_NUM) as well. Assisted-by: Claude:claude-opus-5 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
wmrsouza
force-pushed
the
port/esp32c2
branch
from
September 18, 2026 19:31
8a2abd7 to
fc46951
Compare
SoCs such as the ESP32-C2 have no RTC retention memory, so RTC_DATA_ATTR cannot be used for the persistent RTC time. Place the backup data in DRAM on those chips, where the saved time does not survive deep sleep. Assisted-by: Claude:claude-opus-5 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Introduce RV32IMC chip architecture with HAL integration and Espressif common Kconfig for the ESP8684 SoC, including XTAL, UART0 pin range, and SPI flash clock options. Assisted-by: Claude:claude-opus-5 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Add linker scripts and shared board drivers reused by ESP32-C2 boards, and wire common Kconfig into the board configuration tree. Assisted-by: Claude:claude-opus-5 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Add NSH bringup for the Espressif ESP8684-DevKitM. The nsh defconfig uses a 26 MHz XTAL, 4 MB flash, and debug features for the MINI-1 module. Assisted-by: Claude:claude-opus-5 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Add ADC, I2C, LEDC, SPI, SPI flash, MMCSD and RNG helpers used by the ESP32-C2 board bring-up. Assisted-by: Claude:claude-opus-5 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Add GPIO, buttons, and defconfigs/bring-up for ADC, I2C, PWM, SPI, timers, watchdog, eFuse, crypto, RTC, and related C2 peripherals. Assisted-by: Claude:claude-opus-5 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Add BMP180/BMP280 helpers and ROMFS init scripts used by non-SoC board features. Assisted-by: Claude:claude-opus-5 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Add BMP180, ROMFS, MCUBoot NSH, ostest, tickless, and power-management defconfigs plus the matching bring-up hooks. Assisted-by: Claude:claude-opus-5 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Bring in Wi-Fi, BLE, coexistence, and wireless glue for the ESP32-C2 radio. Assisted-by: Claude:claude-opus-5 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Add the Wi-Fi board helper, wifi and ble defconfigs, and BLE bring-up for the ESP32-C2 radio. Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
Document the chip (toolchain, Simple Boot, peripherals, MCUBoot) and the DevKitM-1 board (pinout, headers, RGB, existing defconfigs), including vendor figures. Assisted-by: Cursor:Grok 4.6 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
ESP32-C2 only supports UART active-edge wakeup like C3, and the HAL has no sleep_cpu port, so autopm needs a no-op sleep_cpu_configure(). Co-authored-by: Cursor <cursoragent@cursor.com>
wmrsouza
force-pushed
the
port/esp32c2
branch
from
September 18, 2026 20:47
fc46951 to
5d1ab4e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds ESP32-C2 chip support on NuttX
Impact
Impact on user: No.
Impact on hardware: No.
Impact on documentation: No.
Impact on compatibility: No.
Testing