esp32 window v4.0 version initial test and vscode configuration

esp32 window v4.0 version initial test and vscode configuration

The environment installation under window is so simple

Espressif used to build the system with traditional GNU Make, which led to an embarrassing situation. Under the window, it was necessary to simulate the unix environment, resulting in slower compilation speed. I used to use ubuntu to compile, the speed is okay, recently in Beep Libeili saw that Lexin actually lived in a compile environment installed under the window of station b . Unexpectedly, it has become so simple to build an environment under the window, so he was ready to try it.
Since I used v3.3.2 version before, now the official has started version 4.1, so I plan to try the new version.

vscode configuration

There are two particularly easy-to-use editor software here, one is the universe's first (dog head) vscode, the other is subline, subline is a light software, open fast, although it is charged, but you can not buy it Normal use.
When using vscode, a .vscode file will be created in the current folder, which contains some configuration files.
Insert picture description here
Open c_cpp_properties.json
. You need to configure two places. The
first is to add the header file path. The
second is to add the c file path.

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**",
                "C:\\Users\\Administrator\\Desktop\\esp-idf"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "intelliSenseMode": "msvc-x64",
            "compileCommands": "${workspaceFolder}/build/compile_commands.json",
            "browse": {
                "limitSymbolsToIncludedHeaders": true,
                "databaseFilename": "",
                "path": [
                    "${workspaceRoot}",
                    "C:\\Users\\Administrator\\Desktop\\esp-idf\\components"  
                   
                ]
            }
        }
    ],
    "version": 4
}

This is my configuration environment, after the configuration is complete, you can quickly view the function definition
Insert picture description here

Published 5 original articles · Like1 · Visits 310

Guess you like

Origin blog.csdn.net/qq_33862616/article/details/105628854