Abhishekmishra2808 opened a new pull request, #20124:
URL: https://github.com/apache/nuttx/pull/20124
## Summary
NuttX has ESP32-C3 DevKit and XIAO boards, but not the compact third-party
SuperMini (V1601). SuperMini uses USB-C Serial/JTAG, GPIO8 as an active-low
user LED, and GPIO9 as BOOT.
This adds `boards/risc-v/esp32c3/esp32c3-supermini` with `nsh`, `usbnsh`,
`gpio`, and `wifi` configs.
Documentation includes the V1601 header silkscreen and USB-C photos. The
DevKit page now points to this board.
## Impact
New board only. Existing ESP32-C3 boards are unchanged except for a DevKit
docs link to SuperMini.
CMake CI entries are added for `gpio`, `wifi`, and `usbnsh`. The Make glob
`/risc-v/esp32c[0-5]*` already covers this board.
## Testing
I confirm that changes are verified on local setup and works as intended:
* Build Host(s): Linux (WSL2), x86_64, GCC 13.3.0, `riscv32-esp-elf-gcc`
12.2.0 (crosstool-NG esp-12.2.0_20230208)
* Target(s): `esp32c3-supermini:usbnsh` (compile only), Sphinx HTML
(`Documentation/`)
Firmware compiled to `nuttx.bin`. The SuperMini was not flashed in this test.
### Board listing
```
$ ./tools/configure.sh -L | grep supermini
esp32c3-supermini:usbnsh
esp32c3-supermini:nsh
esp32c3-supermini:gpio
esp32c3-supermini:wifi
```
### Firmware (`esp32c3-supermini:usbnsh`)
```
$ make CROSSDEV=riscv32-esp-elf-
...
LD: nuttx
Memory region Used Size Region Size %age Used
ROM: 214300 B 4 MB 5.11%
iram0_0_seg: 14768 B 321296 B 4.60%
irom0_0_seg: 96728 B 4 MB 2.31%
dram0_0_seg: 22280 B 321296 B 6.93%
drom0_0_seg: 148728 B 4 MB 3.55%
rtc_iram_seg: 52 B 8168 B 0.64%
rtc_reserved_seg: 0 GB 24 B 0.00%
CP: nuttx.hex
MKIMAGE: NuttX binary
esptool.py -c esp32c3 elf2image --ram-only-header -fs 4MB -fm dio -ff "80m"
-o nuttx.bin nuttx
esptool v5.3.0
Creating ESP32-C3 image...
Merged 1 ELF section.
Successfully created ESP32-C3 image.
Generated: nuttx.bin
```
### Documentation (`pipenv run make html`)
```
$ cd Documentation
$ pipenv run make html
...
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.
The HTML pages are in _build/html.
```
Screenshots of the generated HTML after that build (SuperMini page, pinout,
configs, and the ESP32-C3 supported boards list):
### checkpatch
```
$ ./tools/checkpatch.sh -g HEAD
✔️ All checks pass.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]