| <!-- |
| Documentation/_templates/layout.html |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. The |
| ASF licenses this file to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance with the |
| License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| License for the specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <!DOCTYPE html> |
| <html class="writer-html5" lang="en" > |
| <head> |
| <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> |
| |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| <title>ESP32-C6-DevKitC-1 — NuttX latest documentation</title> |
| <link rel="stylesheet" href="../../../../../_static/pygments.css" type="text/css" /> |
| <link rel="stylesheet" href="../../../../../_static/css/theme.css" type="text/css" /> |
| <link rel="stylesheet" href="../../../../../_static/copybutton.css" type="text/css" /> |
| <link rel="stylesheet" href="../../../../../_static/tabs.css" type="text/css" /> |
| <link rel="stylesheet" href="../../../../../_static/custom.css" type="text/css" /> |
| <link rel="shortcut icon" href="../../../../../_static/favicon.ico"/> |
| <!--[if lt IE 9]> |
| <script src="../../../../../_static/js/html5shiv.min.js"></script> |
| <![endif]--> |
| |
| <script src="../../../../../_static/jquery.js"></script> |
| <script src="../../../../../_static/_sphinx_javascript_frameworks_compat.js"></script> |
| <script data-url_root="../../../../../" id="documentation_options" src="../../../../../_static/documentation_options.js"></script> |
| <script src="../../../../../_static/doctools.js"></script> |
| <script src="../../../../../_static/sphinx_highlight.js"></script> |
| <script src="../../../../../_static/clipboard.min.js"></script> |
| <script src="../../../../../_static/copybutton.js"></script> |
| <script src="../../../../../_static/js/theme.js"></script> |
| <link rel="index" title="Index" href="../../../../../genindex.html" /> |
| <link rel="search" title="Search" href="../../../../../search.html" /> |
| <link rel="next" title="ESP32-C6-DevKitM-1" href="../esp32c6-devkitm/index.html" /> |
| <link rel="prev" title="Espressif ESP32-C6" href="../../index.html" /> |
| </head> |
| |
| <body class="wy-body-for-nav"> |
| <div class="wy-grid-for-nav"> |
| <nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
| <div class="wy-side-scroll"> |
| <div class="wy-side-nav-search" > |
| |
| <a href="../../../../../index.html" class="icon icon-home"> NuttX |
| |
| |
| |
| </a> |
| |
| <!-- this version selector is quite ugly, should be probably replaced by something |
| more modern --> |
| |
| <div class="version-selector"> |
| <select onchange="javascript:location.href = this.value;"> |
| |
| <option value="../../../../../../latest" selected="selected">latest</option> |
| |
| <option value="../../../../../../10.0.0" >10.0.0</option> |
| |
| <option value="../../../../../../10.0.1" >10.0.1</option> |
| |
| <option value="../../../../../../10.1.0" >10.1.0</option> |
| |
| <option value="../../../../../../10.2.0" >10.2.0</option> |
| |
| <option value="../../../../../../10.3.0" >10.3.0</option> |
| |
| <option value="../../../../../../11.0.0" >11.0.0</option> |
| |
| <option value="../../../../../../12.0.0" >12.0.0</option> |
| |
| <option value="../../../../../../12.1.0" >12.1.0</option> |
| |
| <option value="../../../../../../12.2.0" >12.2.0</option> |
| |
| <option value="../../../../../../12.2.1" >12.2.1</option> |
| |
| <option value="../../../../../../12.3.0" >12.3.0</option> |
| |
| <option value="../../../../../../12.4.0" >12.4.0</option> |
| |
| <option value="../../../../../../12.5.0" >12.5.0</option> |
| |
| <option value="../../../../../../12.5.1" >12.5.1</option> |
| |
| </select> |
| </div> |
| |
| |
| <div role="search"> |
| <form id="rtd-search-form" class="wy-form" action="../../../../../search.html" method="get"> |
| <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> |
| <input type="hidden" name="check_keywords" value="yes" /> |
| <input type="hidden" name="area" value="default" /> |
| </form> |
| </div> |
| |
| </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> |
| <p class="caption" role="heading"><span class="caption-text">Table of Contents</span></p> |
| <ul class="current"> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../index.html">Home</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../introduction/index.html">Introduction</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../quickstart/index.html">Getting Started</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../contributing/index.html">Contributing</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../introduction/inviolables.html">The Inviolable Principles of NuttX</a></li> |
| <li class="toctree-l1 current"><a class="reference internal" href="../../../../index.html">Supported Platforms</a><ul class="current"> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../arm/index.html">ARM</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../arm64/index.html">ARM64</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../avr/index.html">Microchip AVR</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../ceva/index.html">CEVA</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../hc/index.html">HC</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../mips/index.html">MIPS</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../misco/index.html">Misoc</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../or1k/index.html">OpenRISC</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../renesas/index.html">Renesas</a></li> |
| <li class="toctree-l2 current"><a class="reference internal" href="../../../index.html">RISC-V</a><ul class="current"> |
| <li class="toctree-l3"><a class="reference internal" href="../../../bl602/index.html">Bouffalo Lab BL602</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../bl808/index.html">Bouffalo Lab BL808</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../c906/index.html">THEAD C906</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../esp32c3-legacy/index.html">Espressif ESP32-C3 (Legacy)</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../esp32c3/index.html">Espressif ESP32-C3</a></li> |
| <li class="toctree-l3 current"><a class="reference internal" href="../../index.html">Espressif ESP32-C6</a><ul class="current"> |
| <li class="toctree-l4"><a class="reference internal" href="../../index.html#esp32-c6-toolchain">ESP32-C6 Toolchain</a></li> |
| <li class="toctree-l4"><a class="reference internal" href="../../index.html#second-stage-bootloader-and-partition-table">Second stage bootloader and partition table</a></li> |
| <li class="toctree-l4"><a class="reference internal" href="../../index.html#building-and-flashing">Building and flashing</a></li> |
| <li class="toctree-l4"><a class="reference internal" href="../../index.html#debugging-with-openocd">Debugging with OpenOCD</a></li> |
| <li class="toctree-l4"><a class="reference internal" href="../../index.html#peripheral-support">Peripheral Support</a></li> |
| <li class="toctree-l4 current"><a class="reference internal" href="../../index.html#supported-boards">Supported Boards</a><ul class="current"> |
| <li class="toctree-l5 current"><a class="current reference internal" href="#">ESP32-C6-DevKitC-1</a></li> |
| <li class="toctree-l5"><a class="reference internal" href="../esp32c6-devkitm/index.html">ESP32-C6-DevKitM-1</a></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../esp32h2/index.html">Espressif ESP32-H2</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../fe310/index.html">SiFive FE310</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../hpm6750/index.html">Hpmicro HPM6750</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../jh7110/index.html">StarFive JH7110</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../k210/index.html">Kendryte K210</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../k230/index.html">Kendryte K230</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../litex/index.html">Enjoy Digital LiteX FPGA’s</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../mpfs/index.html">Microchip PolarFire® SoC FPGA’s (MPFS)</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../qemu-rv/index.html">QEMU Generic RV32/RV64</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../../rv32m1/index.html">NXP RV32M1</a></li> |
| </ul> |
| </li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../sim/index.html">Simulators</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../sparc/index.html">SPARC</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../tricore/index.html">TriCore</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../x86/index.html">Intel 80x86</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../x86_64/index.html">Intel 80x86_64</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../xtensa/index.html">Xtensa</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../z16/index.html">Z16</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../../z80/index.html">Z80</a></li> |
| </ul> |
| </li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../components/index.html">OS Components</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../applications/index.html">Applications</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../implementation/index.html">Implementation Details</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../reference/index.html">API Reference</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../faq/index.html">FAQ</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../guides/index.html">Guides</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../../../../glossary.html">Glossary</a></li> |
| </ul> |
| |
| </div> |
| </div> |
| </nav> |
| |
| <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > |
| <i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
| <a href="../../../../../index.html">NuttX</a> |
| </nav> |
| |
| <div class="wy-nav-content"> |
| <div class="rst-content"> |
| <div role="navigation" aria-label="Page navigation"> |
| <ul class="wy-breadcrumbs"> |
| <li><a href="../../../../../index.html" class="icon icon-home" aria-label="Home"></a></li> |
| <li class="breadcrumb-item"><a href="../../../../index.html">Supported Platforms</a></li> |
| <li class="breadcrumb-item"><a href="../../../index.html">RISC-V</a></li> |
| <li class="breadcrumb-item"><a href="../../index.html">Espressif ESP32-C6</a></li> |
| <li class="breadcrumb-item active">ESP32-C6-DevKitC-1</li> |
| <li class="wy-breadcrumbs-aside"> |
| <a href="../../../../../_sources/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst.txt" rel="nofollow"> View page source</a> |
| </li> |
| </ul> |
| <hr/> |
| </div> |
| <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| <div itemprop="articleBody"> |
| |
| <section id="esp32-c6-devkitc-1"> |
| <h1>ESP32-C6-DevKitC-1<a class="headerlink" href="#esp32-c6-devkitc-1" title="Permalink to this heading"></a></h1> |
| <p>ESP32-C6-DevKitC-1 is an entry-level development board based on ESP32-C6-WROOM-1(U), |
| a general-purpose module with a 8 MB SPI flash. This board integrates complete Wi-Fi, |
| Bluetooth LE, Zigbee, and Thread functions. You can find the board schematic |
| <a class="reference external" href="https://espressif-docs.readthedocs-hosted.com/projects/esp-dev-kits/en/latest/_static/esp32-c6-devkitc-1/schematics/esp32-c6-devkitc-1-schematics_v1.2.pdf">here</a>.</p> |
| <p>Most of the I/O pins are broken out to the pin headers on both sides for easy interfacing. |
| Developers can either connect peripherals with jumper wires or mount ESP32-C6-DevKitC-1 on |
| a breadboard.</p> |
| <figure class="align-center align-default" id="id1"> |
| <img alt="ESP32-C6-DevKitC-1 Board Layout" src="../../../../../_images/esp32-c6-devkitc-1-isometric_v1.2.png" /> |
| <figcaption> |
| <p><span class="caption-text">ESP32-C6-DevKitC-1 Board Layout</span><a class="headerlink" href="#id1" title="Permalink to this image"></a></p> |
| </figcaption> |
| </figure> |
| <p>The block diagram below presents main components of the ESP32-C6-DevKitC-1.</p> |
| <figure class="align-center align-default" id="id2"> |
| <img alt="ESP32-C6-DevKitC-1 Electrical Block Diagram" src="../../../../../_images/esp32-c6-devkitc-1-v1.2-block-diagram.png" /> |
| <figcaption> |
| <p><span class="caption-text">ESP32-C6-DevKitC-1 Electrical Block Diagram</span><a class="headerlink" href="#id2" title="Permalink to this image"></a></p> |
| </figcaption> |
| </figure> |
| <section id="hardware-components"> |
| <h2>Hardware Components<a class="headerlink" href="#hardware-components" title="Permalink to this heading"></a></h2> |
| <figure class="align-center align-default" id="id3"> |
| <img alt="ESP32-C6-DevKitC-1 Hardware Components" src="../../../../../_images/esp32-c6-devkitc-1-v1.2-annotated-photo.png" /> |
| <figcaption> |
| <p><span class="caption-text">ESP32-C6-DevKitC-1 Hardware Components</span><a class="headerlink" href="#id3" title="Permalink to this image"></a></p> |
| </figcaption> |
| </figure> |
| <section id="buttons-and-leds"> |
| <h3>Buttons and LEDs<a class="headerlink" href="#buttons-and-leds" title="Permalink to this heading"></a></h3> |
| </section> |
| </section> |
| <section id="board-buttons"> |
| <h2>Board Buttons<a class="headerlink" href="#board-buttons" title="Permalink to this heading"></a></h2> |
| <p>There are two buttons labeled Boot and RST. The RST button is not available |
| to software. It pulls the chip enable line that doubles as a reset line.</p> |
| <p>The BOOT button is connected to IO9. On reset it is used as a strapping |
| pin to determine whether the chip boots normally or into the serial |
| bootloader. After reset, however, the BOOT button can be used for software |
| input.</p> |
| </section> |
| <section id="board-leds"> |
| <h2>Board LEDs<a class="headerlink" href="#board-leds" title="Permalink to this heading"></a></h2> |
| <p>There is one on-board LED that indicates the presence of power. |
| Another WS2812 LED is connected to GPIO8 and is available for software.</p> |
| <section id="current-measurement"> |
| <h3>Current Measurement<a class="headerlink" href="#current-measurement" title="Permalink to this heading"></a></h3> |
| <p>The J5 headers on the ESP32-C6-DevKitC-1 can be used for measuring the current |
| drawn by the ESP32-C6-WROOM-1(U) module:</p> |
| <blockquote> |
| <div><ul class="simple"> |
| <li><p>Remove the jumper: Power supply between the module and peripherals on the |
| board is cut off. To measure the module’s current, connect the board with an |
| ammeter via J5 headers;</p></li> |
| <li><p>Apply the jumper (factory default): Restore the board’s normal functionality.</p></li> |
| </ul> |
| </div></blockquote> |
| <div class="admonition note"> |
| <p class="admonition-title">Note</p> |
| <p>When using 3V3 and GND pin headers to power the board, please remove the J5 jumper, |
| and connect an ammeter in series to the external circuit to measure the module’s current.</p> |
| </div> |
| </section> |
| <section id="pin-mapping"> |
| <h3>Pin Mapping<a class="headerlink" href="#pin-mapping" title="Permalink to this heading"></a></h3> |
| <figure class="align-center align-default" id="id4"> |
| <img alt="ESP32-C6-DevKitC pin layout" src="../../../../../_images/esp32-c6-devkitc-1-pin-layout.png" /> |
| <figcaption> |
| <p><span class="caption-text">ESP32-C6-DevKitC-1 Pin Layout</span><a class="headerlink" href="#id4" title="Permalink to this image"></a></p> |
| </figcaption> |
| </figure> |
| </section> |
| <section id="configurations"> |
| <h3>Configurations<a class="headerlink" href="#configurations" title="Permalink to this heading"></a></h3> |
| <p>All of the configurations presented below can be tested by running the following commands:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>$ ./tools/configure.sh esp32c6-devkitc:<config_name> |
| $ make flash ESPTOOL_PORT=/dev/ttyUSB0 -j |
| </pre></div> |
| </div> |
| <p>Where <config_name> is the name of board configuration you want to use, i.e.: nsh, buttons, wifi… |
| Then use a serial console terminal like <code class="docutils literal notranslate"><span class="pre">picocom</span></code> configured to 115200 8N1.</p> |
| </section> |
| </section> |
| <section id="coremark"> |
| <h2>coremark<a class="headerlink" href="#coremark" title="Permalink to this heading"></a></h2> |
| <p>This configuration sets the CoreMark benchmark up for running on the maximum |
| number of cores for this system. It also enables some optimization flags and |
| disables the NuttShell to get the best possible score.</p> |
| <div class="admonition note"> |
| <p class="admonition-title">Note</p> |
| <p>As the NSH is disabled, the application will start as soon as the |
| system is turned on.</p> |
| </div> |
| </section> |
| <section id="gpio"> |
| <h2>gpio<a class="headerlink" href="#gpio" title="Permalink to this heading"></a></h2> |
| <p>This is a test for the GPIO driver. It uses GPIO1 and GPIO2 as outputs and |
| GPIO9 as an interrupt pin.</p> |
| <p>At the nsh, we can turn the outputs on and off with the following:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>nsh> gpio -o 1 /dev/gpio0 |
| nsh> gpio -o 1 /dev/gpio1 |
| |
| nsh> gpio -o 0 /dev/gpio0 |
| nsh> gpio -o 0 /dev/gpio1 |
| </pre></div> |
| </div> |
| <p>We can use the interrupt pin to send a signal when the interrupt fires:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>nsh> gpio -w 14 /dev/gpio2 |
| </pre></div> |
| </div> |
| <p>The pin is configured as a rising edge interrupt, so after issuing the |
| above command, connect it to 3.3V.</p> |
| </section> |
| <section id="nsh"> |
| <h2>nsh<a class="headerlink" href="#nsh" title="Permalink to this heading"></a></h2> |
| <p>Basic configuration to run the NuttShell (nsh).</p> |
| </section> |
| <section id="ostest"> |
| <h2>ostest<a class="headerlink" href="#ostest" title="Permalink to this heading"></a></h2> |
| <p>This is the NuttX test at <code class="docutils literal notranslate"><span class="pre">apps/testing/ostest</span></code> that is run against all new |
| architecture ports to assure a correct implementation of the OS.</p> |
| </section> |
| <section id="pwm"> |
| <h2>pwm<a class="headerlink" href="#pwm" title="Permalink to this heading"></a></h2> |
| <p>This configuration demonstrates the use of PWM through a LED connected to GPIO8. |
| To test it, just execute the <code class="docutils literal notranslate"><span class="pre">pwm</span></code> application:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>nsh> pwm |
| pwm_main: starting output with frequency: 10000 duty: 00008000 |
| pwm_main: stopping output |
| </pre></div> |
| </div> |
| </section> |
| <section id="rmt"> |
| <h2>rmt<a class="headerlink" href="#rmt" title="Permalink to this heading"></a></h2> |
| <p>This configuration configures the transmitter and the receiver of the |
| Remote Control Transceiver (RMT) peripheral on the ESP32-C6 using GPIOs 8 |
| and 2, respectively. The RMT peripheral is better explained |
| <a class="reference external" href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32c6/api-reference/peripherals/rmt.html">here</a>, |
| in the ESP-IDF documentation. The minimal data unit in the frame is called the |
| RMT symbol, which is represented by <code class="docutils literal notranslate"><span class="pre">rmt_item32_t</span></code> in the driver:</p> |
| <figure class="align-center"> |
| <img alt="../../../../../_images/rmt_symbol1.png" src="../../../../../_images/rmt_symbol1.png" /> |
| </figure> |
| <p>The example <code class="docutils literal notranslate"><span class="pre">rmtchar</span></code> can be used to test the RMT peripheral. Connecting |
| these pins externally to each other will make the transmitter send RMT items |
| and demonstrates the usage of the RMT peripheral:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>nsh> rmtchar |
| </pre></div> |
| </div> |
| <p><strong>WS2812 addressable RGB LEDs</strong></p> |
| <p>This same configuration enables the usage of the RMT peripheral and the example |
| <code class="docutils literal notranslate"><span class="pre">ws2812</span></code> to drive addressable RGB LEDs:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>nsh> ws2812 |
| </pre></div> |
| </div> |
| <p>Please note that this board contains an on-board WS2812 LED connected to GPIO8 |
| and, by default, this config configures the RMT transmitter in the same pin.</p> |
| </section> |
| <section id="rtc"> |
| <h2>rtc<a class="headerlink" href="#rtc" title="Permalink to this heading"></a></h2> |
| <p>This configuration demonstrates the use of the RTC driver through alarms. |
| You can set an alarm, check its progress and receive a notification after it expires:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>nsh> alarm 10 |
| alarm_daemon started |
| alarm_daemon: Running |
| Opening /dev/rtc0 |
| Alarm 0 set in 10 seconds |
| nsh> alarm -r |
| Opening /dev/rtc0 |
| Alarm 0 is active with 10 seconds to expiration |
| nsh> alarm_daemon: alarm 0 received |
| </pre></div> |
| </div> |
| </section> |
| <section id="spiflash"> |
| <h2>spiflash<a class="headerlink" href="#spiflash" title="Permalink to this heading"></a></h2> |
| <p>This config tests the external SPI that comes with the ESP32-C6 module connected |
| through SPI1.</p> |
| <p>By default a SmartFS file system is selected. |
| Once booted you can use the following commands to mount the file system:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>nsh> mksmartfs /dev/smart0 |
| nsh> mount -t smartfs /dev/smart0 /mnt |
| </pre></div> |
| </div> |
| </section> |
| <section id="timer"> |
| <h2>timer<a class="headerlink" href="#timer" title="Permalink to this heading"></a></h2> |
| <p>This config test the general use purpose timers. It includes the 4 timers, |
| adds driver support, registers the timers as devices and includes the timer |
| example.</p> |
| <p>To test it, just run the following:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>nsh> timer -d /dev/timerx |
| </pre></div> |
| </div> |
| <p>Where x in the timer instance.</p> |
| </section> |
| <section id="usbconsole"> |
| <h2>usbconsole<a class="headerlink" href="#usbconsole" title="Permalink to this heading"></a></h2> |
| <p>This configuration tests the built-in USB-to-serial converter found in ESP32-C6. |
| <code class="docutils literal notranslate"><span class="pre">esptool</span></code> can be used to check the version of the chip and if this feature is |
| supported. Running <code class="docutils literal notranslate"><span class="pre">esptool.py</span> <span class="pre">-p</span> <span class="pre"><port></span> <span class="pre">chip_id</span></code> should have <code class="docutils literal notranslate"><span class="pre">Chip</span> <span class="pre">is</span> |
| <span class="pre">ESP32-C6</span></code> in its output. |
| When connecting the board a new device should appear, a <code class="docutils literal notranslate"><span class="pre">/dev/ttyACMX</span></code> on Linux |
| or a <code class="docutils literal notranslate"><span class="pre">/dev/cu.usbmodemXXX</span></code> om macOS. |
| This can be used to flash and monitor the device with the usual commands:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>make download ESPTOOL_PORT=/dev/ttyACM0 |
| minicom -D /dev/ttyACM0 |
| </pre></div> |
| </div> |
| </section> |
| <section id="watchdog"> |
| <h2>watchdog<a class="headerlink" href="#watchdog" title="Permalink to this heading"></a></h2> |
| <p>This configuration tests the watchdog timers. It includes the 1 MWDTS, |
| adds driver support, registers the WDTs as devices and includes the watchdog |
| example application.</p> |
| <p>To test it, just run the following command:</p> |
| <div class="highlight-none notranslate"><div class="highlight"><pre><span></span>nsh> wdog -i /dev/watchdogX |
| </pre></div> |
| </div> |
| <p>Where X is the watchdog instance.</p> |
| </section> |
| </section> |
| |
| |
| </div> |
| </div> |
| <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> |
| <a href="../../index.html" class="btn btn-neutral float-left" title="Espressif ESP32-C6" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> |
| <a href="../esp32c6-devkitm/index.html" class="btn btn-neutral float-right" title="ESP32-C6-DevKitM-1" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> |
| </div> |
| |
| <hr/> |
| |
| <div role="contentinfo"> |
| <p>© Copyright 2023, The Apache Software Foundation.</p> |
| </div> |
| |
| |
| |
| </footer> |
| </div> |
| </div> |
| </section> |
| </div> |
| <script> |
| jQuery(function () { |
| SphinxRtdTheme.Navigation.enable(true); |
| }); |
| </script> |
| |
| </body> |
| </html> |