Compiling rtos sdk idf project with CMake

Deous
Posts: 7
Joined: Thu Feb 14, 2019 8:54 pm

Re: Compiling rtos sdk idf project with CMake

Postby Deous » Mon Mar 16, 2020 11:28 am

I just installed Toolchain 1.0 and worked fine. When I installed the newest esp32 Toolchain 2.2 that includest newest Python - the idf.py would error on some missing paths and some other things with complex projects like f.ex. with protocols
Can you tell the steps of your toolchain installation in details ? Thanks

mriksman
Posts: 9
Joined: Wed Mar 11, 2020 4:10 pm

Re: Compiling rtos sdk idf project with CMake

Postby mriksman » Mon Mar 16, 2020 1:25 pm

These are my notes;

Code: Select all

    Install Git For Windows
    Install Python 3.x (ESP-IDF makes a note that their may be issues with 3.x and to use 2.7)
    Install CMake For Windows
          When the installer asks for Install Options, select ‘Add CMake to the system PATH for the current user’.
    Download Ninja
          Extract the executable file to the bin folder within CMake.
          As CMake is now in the PATH environment variable, you won’t have to add another PATH.
    Download the Toolchain
              ESP-IDF             https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-win32.zip
              ESP8266             https://dl.espressif.com/dl/xtensa-lx106-elf-win32-1.22.0-100-ge567ec7-5.2.0.zip
         Create a folder called esp32 (or esp8266)
         Extract xtensa-esp32-elf (or xtensa-lx106-elf) folder into it.
    Download the SDK
         Open PowerShell and navigate to the esp32/esp8266 folder.
         Run 
             git clone --recursive https://github.com/espressif/esp-idf.git
             git clone --recursive https://github.com/espressif/ESP8266_RTOS_SDK.git
     The folder structure will look like this
               esp32                                    esp8266
                 |-- esp-idf                            |-- ESP8266_RTOS_SDK
                 └-- xtensa-esp32-elf                   └-- xtensa-lx106-elf
    Install the Python dependencies
            pip install -r "path\to\esp32\esp-idf\requirements.txt"

For ESP-IDF pre 4.0 and ESP RTOS SDK v3.x, you’ll need to supply a prebuilt binary called mconf-idf. Place the files in esp8266\ESP8266_RTOS_SDK\tools

Deous
Posts: 7
Joined: Thu Feb 14, 2019 8:54 pm

Re: Compiling rtos sdk idf project with CMake

Postby Deous » Thu Mar 19, 2020 7:32 am

Hey thanks for all the information)
Hopefully they will polish that SDK and make it super efficient

krankins
Posts: 1
Joined: Thu Aug 06, 2020 6:39 pm

Re: Compiling rtos sdk idf project with CMake

Postby krankins » Thu Aug 06, 2020 6:48 pm

I was able to use only toolchain 1.0 (Windows 10) with Python 2.7

handoi
Posts: 1
Joined: Fri Oct 02, 2020 3:59 pm

Re: Compiling rtos sdk idf project with CMake

Postby handoi » Fri Oct 02, 2020 4:03 pm

Thanks. I finally downloaded both SDKs and Toolchains and configured VSCode. SO much better than PlatformIO (which uses ESP8266 RTOS 1.5). It's great being able to have code that can be (almost) reused on both chips.
The sooner Espressif roll BOTH ESP8266 and ESP32 into a single IDF, the better! run 3

spiceagent11
Posts: 1
Joined: Sat Dec 11, 2021 6:38 am

Re: Compiling rtos sdk idf project with CMake

Postby spiceagent11 » Sat Dec 11, 2021 6:39 am

I am still facing the same issue

Who is online

Users browsing this forum: No registered users and 3 guests