1822 views|3 replies

106

Posts

0

Resources
The OP
 

[ESP32-Korvo Review] 07 Compile the first project hello world [Copy link]

 

It took me a week and several nights to finally set up the ESP-IDF development environment. In order to verify whether there are any problems, I compiled a project to see.

After ESP-IDF is installed, many examples will be generated in the examples directory. As usual, let's take the classic Hello world project as an example.

Start ESP-IDF Command Prompt.exe and use the cd command to navigate to the directory:

examples\get-started\hello_world”。

(1) Enter the command: idf.py set-target esp32 to set the target chip type;

(2) Enter the command: idf.py menuconfig to enter the configuration page;

For the hello world example, no additional configuration is required.

Enter the Flash Size configuration interface. The default is 2MB . The default size of the ESP32-WROVER module used by the development board is 4MB , so configure the flash size to 4MB here .

After saving, exit the menuconfig configuration interface.

(3) Enter the command: idf.py build to start compiling the project;

Although it is just a simple hello world program, the compilation time is very long. After waiting for a while, you can see the compilation success message and a hello-world.bin file is generated.

(4) Enter the command: idf.py -p COM3 flash to burn the bin file into the Flash of the ESP32 module of the development board ;

(5) Enter the command: idf.py -p COM3 monitor to start the serial port monitor. You can see the log information printed by the program.

The hello world demonstration shows that the development environment has been successfully built and can be used happily.

This post is from Domestic Chip Exchange

Latest reply

It works fine under Linux, but I haven't tried it under Windows. The key is the network.   Details Published on 2024-4-25 13:55
 
 

1662

Posts

0

Resources
2
 

Playing with the development board, after the environment is completed, the most exciting thing is to see "hello world"

This post is from Domestic Chip Exchange
 
 
 

1412

Posts

3

Resources
3
 

Thanks for sharing, looking forward to follow-up reviews

This post is from Domestic Chip Exchange
Personal signature

没有什么不可以,我就是我,不一样的烟火! 

 
 
 

22

Posts

0

Resources
4
 

It works fine under Linux, but I haven't tried it under Windows. The key is the network.

This post is from Domestic Chip Exchange
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list