Giter Club home page Giter Club logo

Comments (5)

gavincabbage avatar gavincabbage commented on June 16, 2024

Just starting the training and I found I needed to increase the system event task's stack size to get any the hardware-check example to work, otherwise I saw this error:

***ERROR*** A stack overflow in task sys_evt has been detected.

I added this line to sdkconfig.defaults after eventually finding this documentation:

CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=9216

It took me a while to piece this together so some hints for new users in the training materials themselves would be helpful for the next person struggling with this issue.

from std-training.

SergioGasquez avatar SergioGasquez commented on June 16, 2024

to

Just starting the training and I found I needed to increase the system event task's stack size to get any the hardware-check example to work, otherwise I saw this error:

***ERROR*** A stack overflow in task sys_evt has been detected.

I added this line to sdkconfig.defaults after eventually finding this documentation:

CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=9216

It took me a while to piece this together so some hints for new users in the training materials themselves would be helpful for the next person struggling with this issue.

Which devkit were you using?

from std-training.

gavincabbage avatar gavincabbage commented on June 16, 2024

@SergioGasquez I apologize I'm not sure how to answer your question , but here are the contents of the config files that hopefully include the info you're looking for:

cat .cargo/config.toml
[build]
target = "xtensa-esp32-espidf"

[target.xtensa-esp32-espidf]
linker = "ldproxy"
runner = "espflash --monitor"
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
# See also https://github.com/ivmarkov/embuild/issues/16
rustflags = ["-C", "default-linker-libraries"]

[unstable]
build-std = ["std", "panic_abort"]
build-std-features = ["panic_immediate_abort"]

[env]
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v4.4.4)
ESP_IDF_VERSION = { value = "tag:v4.4.4" }

# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
# that you might put in the root of the project
# The easiest way to generate a full "sdkconfig[.release|debug]" configuration (as opposed to manually enabling only the necessary flags via "sdkconfig.defaults[.*]"
# is by running "cargo pio espidf menuconfig" (that is, if using the pio builder)
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.release", relative = true }
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.debug", relative = true }
ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }

cat rust-toolchain.toml
[toolchain]
channel = "esp"

cat sdkconfig.defaults
# Rust often needs a bit of an extra main task stack size compared to C (the default is 3K)
CONFIG_ESP_MAIN_TASK_STACK_SIZE=14336
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=9216

This setup is working for me as of a few days ago so I'll be continuing through the training materials soon.

from std-training.

SergioGasquez avatar SergioGasquez commented on June 16, 2024

I see you are using an ESP32, do you know the name of the development board that you are using?

from std-training.

gavincabbage avatar gavincabbage commented on June 16, 2024

Yes! It is a FireBeetle 2 from DFRobot.

from std-training.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.