|
| 1 | +.. _m5stack_cores3: |
| 2 | + |
| 3 | +M5Stack CoreS3 |
| 4 | +############## |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +M5Stack CoreS3 is an ESP32-based development board from M5Stack. It is the third generation of the M5Stack Core series. |
| 10 | + |
| 11 | +M5Stack CoreS3 features consist of: |
| 12 | + |
| 13 | +- ESP32-S3 chip (dual-core Xtensa LX7 processor @240MHz, WIFI, OTG and CDC functions) |
| 14 | +- PSRAM 8MB |
| 15 | +- Flash 16MB |
| 16 | +- LCD ISP 2", 320x240 pixel ILI9342C |
| 17 | +- Capacitive multi touch FT6336U |
| 18 | +- Camera 30W pixel GC0308 |
| 19 | +- Speaker 1W AW88298 |
| 20 | +- Dual Microphones ES7210 Audio decoder |
| 21 | +- RTC BM8563 |
| 22 | +- USB-C |
| 23 | +- SD-Card slot |
| 24 | +- Geomagnetic sensor BMM150 |
| 25 | +- Proximity sensor LTR-553ALS-WA |
| 26 | +- 6-Axis IMU BMI270 |
| 27 | +- PMIC AXP2101 |
| 28 | +- Battery 500mAh 3.7 V |
| 29 | + |
| 30 | +.. figure:: img/m5stack_cores3.webp |
| 31 | + :align: center |
| 32 | + :alt: M5Stack-CoreS3 |
| 33 | + :width: 400 px |
| 34 | + |
| 35 | + M5Stack CoreS3 module |
| 36 | + |
| 37 | +Start Application Development |
| 38 | +***************************** |
| 39 | + |
| 40 | +Before powering up your M5Stack CoreS3, please make sure that the board is in good |
| 41 | +condition with no obvious signs of damage. |
| 42 | + |
| 43 | +System requirements |
| 44 | +=================== |
| 45 | + |
| 46 | +Prerequisites |
| 47 | +------------- |
| 48 | + |
| 49 | +Espressif HAL requires WiFi and Bluetooth binary blobs in order work. Run the command |
| 50 | +below to retrieve those files. |
| 51 | + |
| 52 | +.. code-block:: console |
| 53 | +
|
| 54 | + west blobs fetch hal_espressif |
| 55 | +
|
| 56 | +.. note:: |
| 57 | + |
| 58 | + It is recommended running the command above after :file:`west update`. |
| 59 | + |
| 60 | +Building & Flashing |
| 61 | +------------------- |
| 62 | + |
| 63 | +Build and flash applications as usual (see :ref:`build_an_application` and |
| 64 | +:ref:`application_run` for more details). |
| 65 | + |
| 66 | +.. zephyr-app-commands:: |
| 67 | + :zephyr-app: samples/hello_world |
| 68 | + :board: m5stack_cores3/esp32s3/procpu |
| 69 | + :goals: build |
| 70 | + |
| 71 | +The usual ``flash`` target will work with the ``m5stack_cores3/esp32s3/procpu`` board |
| 72 | +configuration. Here is an example for the :zephyr:code-sample:`hello_world` |
| 73 | +application. |
| 74 | + |
| 75 | +.. zephyr-app-commands:: |
| 76 | + :zephyr-app: samples/hello_world |
| 77 | + :board: m5stack_cores3/esp32s3/procpu |
| 78 | + :goals: flash |
| 79 | + |
| 80 | +The baud rate of 921600bps is set by default. If experiencing issues when flashing, |
| 81 | +try using different values by using ``--esp-baud-rate <BAUD>`` option during |
| 82 | +``west flash`` (e.g. ``west flash --esp-baud-rate 115200``). |
| 83 | + |
| 84 | +You can also open the serial monitor using the following command: |
| 85 | + |
| 86 | +.. code-block:: shell |
| 87 | +
|
| 88 | + west espressif monitor |
| 89 | +
|
| 90 | +After the board has automatically reset and booted, you should see the following |
| 91 | +message in the monitor: |
| 92 | + |
| 93 | +.. code-block:: console |
| 94 | +
|
| 95 | + *** Booting Zephyr OS build vx.x.x-xxx-gxxxxxxxxxxxx *** |
| 96 | + Hello World! m5stack_cores3/esp32s3/procpu |
| 97 | +
|
| 98 | +
|
| 99 | +Debugging |
| 100 | +--------- |
| 101 | + |
| 102 | +ESP32-S3 support on OpenOCD is available upstream as of version 0.12.0. |
| 103 | +Download and install OpenOCD from `OpenOCD`_. |
| 104 | + |
| 105 | +ESP32-S3 has a built-in JTAG circuitry and can be debugged without any additional chip. Only an USB cable connected to the D+/D- pins is necessary. |
| 106 | + |
| 107 | +Further documentation can be obtained from the SoC vendor in `JTAG debugging for ESP32-S3`_. |
| 108 | + |
| 109 | +.. _`OpenOCD`: https://github.com/openocd-org/openocd |
| 110 | +.. _`JTAG debugging for ESP32-S3`: https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/jtag-debugging/ |
| 111 | + |
| 112 | + |
| 113 | +Related Documents |
| 114 | +***************** |
| 115 | + |
| 116 | +- `M5Stack CoreS3 official docs <http://docs.m5stack.com/en/core/CoreS3>`_ |
| 117 | +- `M5Stack CoreS3 schematic <https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/K128%20CoreS3/Sch_M5_CoreS3_v1.0.pdf>`_ (PDF) |
0 commit comments