From ac18567011c7e236aff9c18c8d603af34f08385a Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 23 Sep 2024 18:10:16 +0200 Subject: [PATCH] Fix up esp-idf steps Apply fb7472fff8afea3b375bd038cb1aa8fe41ddfa6e and bb28018c50a3c8686081199fba98893cf8374b70 from the slint repo. --- releases/1.8.0/docs/cpp/mcu/esp_idf.html | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/releases/1.8.0/docs/cpp/mcu/esp_idf.html b/releases/1.8.0/docs/cpp/mcu/esp_idf.html index c141ca102..781f6b0c4 100644 --- a/releases/1.8.0/docs/cpp/mcu/esp_idf.html +++ b/releases/1.8.0/docs/cpp/mcu/esp_idf.html @@ -453,13 +453,6 @@

First Steps -
  • Ensure that Espressif’s Rust toolchain is selected for building. Either set the RUSTUP_TOOLCHAIN environment variable to the value esp or create a file called rust-toolchain.toml in your project directory with the following contents:

  • - -
    [toolchain]
    -channel = "esp"
    -
    -
    -
    1. Remove main/slint-hello-world.c.

    2. Create a new file main/slint-hello-world.cpp with the following contents:

    @@ -514,7 +507,7 @@

    First Steps} -
      +
      1. Create main/app-window.slint with the following contents:

      -
        +
        1. Edit main/CMakeLists.txt to adjust for the new slint-hello-world.cpp, add slint as required component, and instruction the build system to compile app-window.slint to app-window.h. The file should look like this:

        @@ -538,7 +531,7 @@

        First Stepsslint_target_sources(${COMPONENT_LIB} app-window.slint) -
          +
          1. Open the configuration editor with idf.py menuconfig:

            • Change the stack size under Component config --> ESP System Settings --> Main task stack size to at least 8192. You may need to tweak this value in the future if you run into stack overflows.