Browse Source

esp32/boards/M5STACK_NANOC6: Add new M5Stack C6 board definition.

Signed-off-by: Matt Trentini <matt.trentini@gmail.com>
pull/11869/head
Matt Trentini 6 months ago
committed by Damien George
parent
commit
ee92198c8a
  1. 21
      ports/esp32/boards/M5STACK_NANOC6/board.json
  2. 18
      ports/esp32/boards/M5STACK_NANOC6/deploy_nanoc6.md
  3. 7
      ports/esp32/boards/M5STACK_NANOC6/mpconfigboard.cmake
  4. 8
      ports/esp32/boards/M5STACK_NANOC6/mpconfigboard.h
  5. 7
      ports/esp32/boards/M5STACK_NANOC6/pins.csv

21
ports/esp32/boards/M5STACK_NANOC6/board.json

@ -0,0 +1,21 @@
{
"deploy": [
"deploy_nanoc6.md"
],
"docs": "",
"features": [
"BLE",
"WiFi",
"RGB LED",
"USB",
"USB-C",
"JST-PH"
],
"images": [
"m5stack_nanoc6.jpg"
],
"mcu": "esp32c6",
"product": "M5Stack NanoC6",
"url": "https://shop.m5stack.com/products/m5stack-nanoc6-dev-kit",
"vendor": "M5Stack"
}

18
ports/esp32/boards/M5STACK_NANOC6/deploy_nanoc6.md

@ -0,0 +1,18 @@
Program your board using the esptool.py program, found
[here](https://github.com/espressif/esptool).
To put the NanoC6 into 'update mode', hold the button while connecting the USB
cable. It can be released after the connection is made.
If you are putting MicroPython on your board for the first time then you should
first erase the entire flash using:
```bash
esptool.py --chip esp32c6 --port /dev/ttyUSB0 erase_flash
```
From then on program the firmware starting at address 0x0:
```bash
esptool.py --chip esp32c6 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x0 M5STACK_NANOC6-20240602-v1.24.0.bin
```

7
ports/esp32/boards/M5STACK_NANOC6/mpconfigboard.cmake

@ -0,0 +1,7 @@
set(IDF_TARGET esp32c6)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
${SDKCONFIG_IDF_VERSION_SPECIFIC}
boards/sdkconfig.ble
)

8
ports/esp32/boards/M5STACK_NANOC6/mpconfigboard.h

@ -0,0 +1,8 @@
#define MICROPY_HW_BOARD_NAME "M5Stack NanoC6"
#define MICROPY_HW_MCU_NAME "ESP32C6"
#define MICROPY_HW_ENABLE_SDCARD (0)
#define MICROPY_PY_MACHINE_I2S (0)
#define MICROPY_HW_I2C0_SCL (1)
#define MICROPY_HW_I2C0_SDA (2)

7
ports/esp32/boards/M5STACK_NANOC6/pins.csv

@ -0,0 +1,7 @@
G1,GPIO1
G2,GPIO2
IR_LED,GPIO3
LED_BLUE,GPIO7
BUTTON,GPIO9
NEOPIXEL_POWER,GPIO19
NEOPIXEL,GPIO20
1 G1 GPIO1
2 G2 GPIO2
3 IR_LED GPIO3
4 LED_BLUE GPIO7
5 BUTTON GPIO9
6 NEOPIXEL_POWER GPIO19
7 NEOPIXEL GPIO20
Loading…
Cancel
Save