|
| 1 | +.. zephyr:board:: m5stack_fire |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +M5Stack Fire is an ESP32-based development board from M5Stack. |
| 7 | + |
| 8 | +M5Stack Fire features the following integrated components: |
| 9 | + |
| 10 | +- ESP32-D0WDQ6 chip (240MHz dual core, 600 DMIPS, 520KB SRAM, Wi-Fi) |
| 11 | +- PSRAM 8MB |
| 12 | +- Flash 16MB |
| 13 | +- LCD IPS TFT 2", 320x240 px screen (ILI9342C) |
| 14 | +- Charger IP5306 |
| 15 | +- Audio NS4148 amplifier (1W-092 speaker) |
| 16 | +- USB CH9102F |
| 17 | +- SD-Card slot |
| 18 | +- Grove connector |
| 19 | +- IMO 6-axis IMU MPU6886 |
| 20 | +- MIC BSE3729 |
| 21 | +- Battery 500mAh 3,7V |
| 22 | +- Three physical buttons |
| 23 | +- LED strips |
| 24 | + |
| 25 | +Functional Description |
| 26 | +********************** |
| 27 | + |
| 28 | +The following table below describes the key components, interfaces, and controls |
| 29 | +of the M5Stack Core2 board. |
| 30 | + |
| 31 | +.. _M5Core2 Schematic: https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/480/M5-Core-Schematic_20171206.pdf |
| 32 | +.. _MPU-ESP32: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/esp32_datasheet_en_v3.9.pdf |
| 33 | +.. _MPU-6886: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/MPU-6886-000193%2Bv1.1_GHIC_en.pdf |
| 34 | +.. _LCD-ILI9342C: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/ILI9342C-ILITEK.pdf |
| 35 | +.. _IP5306: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/IIC_IP5306_REG_V1.4_cn.pdf |
| 36 | + |
| 37 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 38 | +| Key Component | Description | Status | |
| 39 | ++==================+========================================================================+===========+ |
| 40 | +| ESP32-D0WDQ6-V2 | This `MPU-ESP32`_ module provides complete Wi-Fi and Bluetooth | supported | |
| 41 | +| module | functionalities and integrates a 16-MB SPI flash. | | |
| 42 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 43 | +| USB Port | USB interface. Power supply for the board as well as the | supported | |
| 44 | +| | communication interface between a computer and the board. | | |
| 45 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 46 | +| Power Switch | Power on/off button. | supported | |
| 47 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 48 | +| General purpose | Three buttons on the front face of the device accesible using the GPIO | supported | |
| 49 | +| buttons | interface. | | |
| 50 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 51 | +| LCD screen | Built-in LCD TFT display \(`LCD-ILI9342C`_, 2", 320x240 px\) | supported | |
| 52 | +| | controlled via SPI interface | | |
| 53 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 54 | +| SD-Card slot | SD-Card connection via SPI-mode. | supported | |
| 55 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 56 | +| 6-axis IMU | The `MPU-6886`_ is a 6-axis motion tracker (6DOF IMU) device that | supported | |
| 57 | +| MPU6886 | combines a 3-axis gyroscope and a 3-axis accelerometer. | | |
| 58 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 59 | +| Grove port | Used to interface with the many available modules and sensors. | supported | |
| 60 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 61 | +| Built-in speaker | 1W speaker for analog audio output. | supported | |
| 62 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 63 | +| Built-in | The BSE3729 analog microphone. | todo | |
| 64 | +| microphone | | | |
| 65 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 66 | +| LED strip | LED strips on the side of the device. | todo | |
| 67 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 68 | +| Battery-support | Charging is supported automatically via the `IP5306`_. But there is no | todo | |
| 69 | +| | possibility to query current battery status. | | |
| 70 | ++------------------+------------------------------------------------------------------------+-----------+ |
| 71 | + |
| 72 | +Supported Features |
| 73 | +================== |
| 74 | + |
| 75 | +.. zephyr:board-supported-hw:: |
| 76 | +
|
| 77 | +Start Application Development |
| 78 | +***************************** |
| 79 | + |
| 80 | +Before powering up your M5Stack Fire, please make sure that the board is in good |
| 81 | +condition with no obvious signs of damage. |
| 82 | + |
| 83 | +System requirements |
| 84 | +=================== |
| 85 | + |
| 86 | +Prerequisites |
| 87 | +------------- |
| 88 | + |
| 89 | +Espressif HAL requires WiFi and Bluetooth binary blobs in order work. Run the command |
| 90 | +below to retrieve those files. |
| 91 | + |
| 92 | +.. code-block:: console |
| 93 | +
|
| 94 | + west blobs fetch hal_espressif |
| 95 | +
|
| 96 | +.. note:: |
| 97 | + |
| 98 | + It is recommended running the command above after :file:`west update`. |
| 99 | + |
| 100 | +Building & Flashing |
| 101 | +------------------- |
| 102 | + |
| 103 | +.. zephyr:board-supported-runners:: |
| 104 | +
|
| 105 | +Build and flash applications as usual (see :ref:`build_an_application` and |
| 106 | +:ref:`application_run` for more details). |
| 107 | + |
| 108 | +.. zephyr-app-commands:: |
| 109 | + :zephyr-app: samples/hello_world |
| 110 | + :board: m5stack_fire/esp32/procpu |
| 111 | + :goals: build |
| 112 | + |
| 113 | +The usual ``flash`` target will work with the ``m5stack_fire`` board |
| 114 | +configuration. Here is an example for the :zephyr:code-sample:`hello_world` |
| 115 | +application. |
| 116 | + |
| 117 | +.. zephyr-app-commands:: |
| 118 | + :zephyr-app: samples/hello_world |
| 119 | + :board: m5stack_fire/esp32/procpu |
| 120 | + :goals: flash |
| 121 | + |
| 122 | +The baud rate of 921600bps is set by default. If experiencing issues when flashing, |
| 123 | +try using different values by using ``--esp-baud-rate <BAUD>`` option during |
| 124 | +``west flash`` (e.g. ``west flash --esp-baud-rate 115200``). |
| 125 | + |
| 126 | +You can also open the serial monitor using the following command: |
| 127 | + |
| 128 | +.. code-block:: shell |
| 129 | +
|
| 130 | + west espressif monitor |
| 131 | +
|
| 132 | +After the board has automatically reset and booted, you should see the following |
| 133 | +message in the monitor: |
| 134 | + |
| 135 | +.. code-block:: console |
| 136 | +
|
| 137 | + ***** Booting Zephyr OS vx.x.x-xxx-gxxxxxxxxxxxx ***** |
| 138 | + Hello World! m5stack_fire |
| 139 | +
|
| 140 | +Debugging |
| 141 | +--------- |
| 142 | + |
| 143 | +M5Stack Fire debugging is not supported due to pinout limitations. |
| 144 | + |
| 145 | +Related Documents |
| 146 | +***************** |
| 147 | + |
| 148 | +- `M5Stack-Fire schematic <https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/480/M5-Core-Schematic_20171206.pdf>`_ (PDF) |
| 149 | +- `M5Stack-Fire docs <https://docs.m5stack.com/en/core/fire_v2.7>`_ |
| 150 | +- `ESP32 Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf>`_ (PDF) |
| 151 | +- `ESP32 Hardware Reference <https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/index.html>`_ |
0 commit comments