{
    "key": "m5stack-core2",
    "kind": "board",
    "source": "authored",
    "status": "draft",
    "harness": {
        "gpio": {
            "notes": "Almost every pin is routable to almost any peripheral through the GPIO matrix, so a driver binds to a pin number chosen at deploy time rather than to a fixed function. The strapping pins and the pins bonded to on-package flash are the exceptions and must not be used.",
            "library": null,
            "pin_scheme": "gpio"
        },
        "flash": {
            "baud": 460800,
            "tool": "esptool.py",
            "notes": "Flashes through a CH9102 USB to UART bridge over the USB-C port. Most host systems need the CH9102 driver installed before the port appears.",
            "method": "usb-serial",
            "port_hint": "/dev/ttyUSB0"
        },
        "probe": {
            "commands": [
                "arduino-cli board list",
                "arduino-cli board details --fqbn <fqbn>"
            ],
            "model_file": null,
            "overlay_file": null
        },
        "runtime": {
            "python3": false,
            "os_family": null,
            "package_manager": null,
            "service_manager": null
        },
        "verified": {
            "by": null,
            "os": null,
            "date": null,
            "reviewed_by": null,
            "evidence_url": null
        },
        "transport": {
            "ota": true,
            "tls": true,
            "notes": "Connects to the broker directly over Wi-Fi. TLS works but the handshake is the largest memory spike in a typical device program, so size the heap around it rather than around steady state.",
            "network": [
                "wifi",
                "bluetooth"
            ],
            "mqtt_client": "umqtt.simple"
        },
        "toolchains": [
            "Arduino IDE",
            "Arduino CLI",
            "PlatformIO",
            "UIFlow",
            "ESP-IDF",
            "MicroPython"
        ],
        "local_inference": {
            "llm": {
                "notes": "Kilobytes of RAM. A general language model does not run here and never will. Send the reading to something that can.",
                "viable": false,
                "runtimes": [],
                "max_params_b": null,
                "quantisation": [],
                "max_model_size_gb": null
            },
            "notes": "Power is managed by an AXP192 over I2C, so peripherals including the screen backlight have to be switched on in software before they respond. A board that appears dead on first boot usually is not.",
            "tinyml": {
                "notes": "8MB PSRAM, original ESP32 core. Audio classification is the realistic ceiling.",
                "viable": true,
                "frameworks": [
                    "ESP-DL",
                    "TensorFlow Lite Micro"
                ]
            },
            "viable": true,
            "accelerator": null,
            "usable_memory_gb": null
        },
        "provisioning_model": "arduino-sketch",
        "component_attachment": "gpio-header",
        "supported_provisioning_models": [
            "arduino-sketch",
            "micropython",
            "vendor-firmware"
        ]
    },
    "platform": {
        "cpu": "Xtensa dual-core LX6 @ 240MHz",
        "ram": "520KB SRAM plus 8MB PSRAM",
        "name": "M5Stack Core2",
        "power": [
            {
                "source": "USB",
                "voltage_max": 5,
                "voltage_min": 5
            },
            {
                "source": "5V pin",
                "voltage_max": 5,
                "voltage_min": 5
            },
            {
                "source": "3V3 pin",
                "voltage_max": 3.3,
                "voltage_min": 3.3
            }
        ],
        "has_gpu": false,
        "has_npu": false,
        "has_tpu": false,
        "storage": "16MB Flash",
        "weight_g": 52,
        "gpio_pins": 10,
        "board_type": "Microcontroller",
        "interfaces": [
            {
                "type": "USB-C",
                "count": 1
            },
            {
                "type": "ILI9342C touch LCD 320x240",
                "count": 1
            },
            {
                "type": "Grove I2C",
                "count": 1
            },
            {
                "type": "microSD",
                "count": 1
            },
            {
                "type": "M-Bus header",
                "count": 1
            }
        ],
        "description": "ESP32 in a finished enclosure with a 2 inch capacitive touch screen, battery, speaker and real time clock. A device rather than a bare board.",
        "adc_channels": 4,
        "dac_channels": 0,
        "manufacturer": "M5Stack",
        "model_number": "Core2",
        "pwm_channels": 16,
        "datasheet_url": "https://docs.m5stack.com/en/core/core2",
        "dimensions_mm": "54 x 54 x 16",
        "serial_protocols": [
            {
                "count": 2,
                "protocol": "I2C"
            },
            {
                "count": 2,
                "protocol": "SPI"
            },
            {
                "count": 2,
                "protocol": "UART"
            },
            {
                "count": 1,
                "protocol": "I2S"
            }
        ],
        "operating_systems": [
            {
                "name": "Arduino Core"
            },
            {
                "name": "UIFlow"
            },
            {
                "name": "ESP-IDF"
            },
            {
                "name": "MicroPython"
            }
        ],
        "operating_voltage": "3.3V",
        "communication_chips": [
            {
                "protocol": "Wi-Fi",
                "standard": "802.11b/g/n",
                "chip_model": "ESP32-D0WDQ6-V3"
            },
            {
                "protocol": "Bluetooth",
                "standard": "4.2 BR/EDR and BLE",
                "chip_model": "ESP32-D0WDQ6-V3"
            }
        ]
    },
    "revision": 1
}