Espressif Systems ESP32--C3--MINI--1 User Manual Download Page 9

2

Get Started on ESP32-C3-MINI-1

ESP-IDF will be downloaded into

~

/esp/esp-idf. Consult

ESP-IDF Versions

for information about which ESP-IDF

version to use in a given situation.

2.3.3 Set up Tools

Aside from the ESP-IDF, you also need to install the tools used by ESP-IDF, such as the compiler, debugger, Python

packages, etc. ESP-IDF provides a script named ’install.sh’ to help set up the tools in one go.

1

cd ~/esp/esp-idf

2

./install.sh

2.3.4 Set up Environment Variables

The installed tools are not yet added to the PATH environment variable. To make the tools usable from the command

line, some environment variables must be set. ESP-IDF provides another script ’export.sh’ which does that. In the

terminal where you are going to use ESP-IDF, run:

1

. $HOME/esp/esp-idf/export.sh

Now everything is ready, you can build your first project on ESP32-C3-MINI-1 module.

2.4 Create Your First Project

2.4.1 Start a Project

Now you are ready to prepare your application for ESP32-C3-MINI-1 module. You can start with

get-started/hello_world

project from

examples directory

in ESP-IDF.

Copy get-started/hello_world to

~

/esp directory:

1

cd ~/esp

2

cp -r $IDF_PATH/examples/get-started/hello_world .

There is a range of

example projects

in the examples directory in ESP-IDF. You can copy any project in the same

way as presented above and run it. It is also possible to build examples in-place, without copying them first.

2.4.2 Connect Your Device

Now connect your ESP32-C3-MINI-1 module to the computer and check under what serial port the module is

visible. Serial ports in Linux start with ‘/dev/tty’ in their names. Run the command below two times, first with the

board unplugged, then with plugged in. The port which appears the second time is the one you need:

1

ls /dev/tty*

Note:

Keep the port name handy as you will need it in the next steps.

2.4.3 Configure

Navigate to your ‘hello_world’ directory from Step

2.4.1

. Start a Project, set ESP32-C3 as the target and run the

project configuration utility ‘menuconfig’.

Espressif Systems

9

ESP32-C3-MINI-1 User Manual v0.1

Summary of Contents for ESP32--C3--MINI--1

Page 1: ...ESP32 C3 MINI 1 User Manual Pre release v0 1 Espressif Systems Copyright 2021 www espressif com...

Page 2: ...rt download documents Revision History For revision history of this document please refer to the last page Documentation Change Notification Espressif provides email notifications to keep you updated...

Page 3: ...isites 8 2 3 2 Get ESP IDF 8 2 3 3 Set up Tools 9 2 3 4 Set up Environment Variables 9 2 4 Create Your First Project 9 2 4 1 Start a Project 9 2 4 2 Connect Your Device 9 2 4 3 Configure 9 2 4 4 Build...

Page 4: ...ge 2412 2462 MHz Bluetooth Protocols Bluetooth LE Bluetooth 5 and Bluetooth mesh Radio Class 1 class 2 and class 3 transmitter Hardware Module interfaces GPIO SPI UART I2C I2S remote control periphera...

Page 5: ...GND IO0 IO1 GND NC IO10 NC IO4 IO5 IO6 IO7 IO8 IO9 NC NC IO18 IO19 NC NC RXD0 TXD0 NC NC NC NC GND GND GND GND GND GND GND GND GND GND GND GND GND Keepout Zone Figure 1 Pin Layout Top View The module...

Page 6: ...18 I O T GPIO4 ADC1_CH4 FSPIHD MTMS IO5 19 I O T GPIO5 ADC2_CH0 FSPIWP MTDI IO6 20 I O T GPIO6 FSPICLK MTCK IO7 21 I O T GPIO7 FSPID MTDO IO8 22 I O T GPIO8 IO9 23 I O T GPIO9 NC 24 NC NC 25 NC IO18 2...

Page 7: ...refer to ESP IDF Programming Guide 2 2 Hardware Connection 1 Solder the ESP32 C3 MINI 1 module to the RF testing board as shown in Figure 2 Figure 2 Hardware Connection 2 Connect the RF testing board...

Page 8: ...To compile with ESP IDF you need to get the following packages CentOS 7 1 sudo yum install git wget flex bison gperf python cmake ninja build ccache dfu util Ubuntu and Debian one command breaks into...

Page 9: ...ready to prepare your application for ESP32 C3 MINI 1 module You can start with get started hello_world project from examples directory in ESP IDF Copy get started hello_world to esp directory 1 cd es...

Page 10: ...could be different in your terminal You can change the appearance with the option style Please run idf py menuconfig help for further information 2 4 4 Build the Project Build the project by running...

Page 11: ...rate by replacing BAUD with the baud rate you need The default baud rate is 460800 For more information on idf py arguments see idf py Note The option flash automatically builds and flashes the proje...

Page 12: ...o_world is indeed running type idf py p PORT monitor Do not forget to replace PORT with your serial port name This command launches the IDF Monitor application 1 idf py p dev ttyUSB0 monitor 2 Running...

Page 13: ...I 1 That s all what you need to get started with ESP32 C3 MINI 1 module Now you are ready to try some other examples in ESP IDF or go right to developing your own applications Espressif Systems 13 ESP...

Page 14: ...Extensive documentation for the ESP IDF development framework ranging from hardware guides to API reference ESP32 C3 Technical Reference Manual Detailed information on how to use the ESP32 C3 memory a...

Page 15: ...Revision History Revision History Date Version Release notes 2021 02 01 V0 1 Preliminary release Espressif Systems 15 ESP32 C3 MINI 1 User Manual v0 1...

Page 16: ...OPOSAL SPECIFICATION OR SAMPLE All liability including liability for infringement of any proprietary rights relating to use of information in this document is disclaimed No licenses express or implied...

Reviews: