본문 바로가기
프로세싱+아두이노+안드로이드

아두이노 ESP32 - 환경 설정 - 윈도우

by YJHTPII 2022. 6. 5.
반응형

아두이노 설정

보드매니저 URLs: https://dl.espressif.com/dl/package_esp32_index.json 

 

Deploy to ESP32

The following instructions will help you build and deploy this sample to ESP323 devices using the ESP IDF.

The sample has been tested on ESP-IDF version 4.0 with the following devices:

- ESP32-DevKitC

- ESP-EYE

 

Install the ESP IDF

Follow the instaruction of the ESP-IDF get started guide to setup the toolchain and the ESP-IDF itself.

The next steps assume that the IDF environment variables are set:

- The IDF_PATH environment variable is set

- idf.py and Xtensa-esp32 tools(e.g. xtensa-esp32-elf-gcc) are in $PATH

 

Generate the examples

The example project can be generated with the following command:

>make -f tensorflow/lite/micro/tools/make/Makefile TAGET=esp generate_hello_world_esp_project

 

Building the example

Go to the example project directory

>cd tensorflow/lite/micro/tools/make/gen/esp_xtensa-esp32/pri/hello_world/esp-idf

Then build with idf.py

>idf.py build

 

Load and run the example

To flash (replace /dev/ttyUSB0 with the device serial port):

idf.py --port /dev/ttyUSB0 flash

 

Monitor the serial output:

idf.py --port /dev/ttyUSB0 monitor

 

Use Ctrl+] to exit

The previous two commands can be combined:

idf.py --port /dev/ttyUSB0 flash monitor

반응형

댓글