Skip to content

How to set CONFIG_ARDUINO_LOOP_STACK_SIZE? #4906

Closed
@torntrousers

Description

@torntrousers

Hardware:

Board: Heltec ESP32
Core Installation version: 1.0.5

Description:

Updating to the ESP32 Arduino core 1.0.5 I see there is now a define for CONFIG_ARDUINO_LOOP_STACK_SIZE in main.cpp, how can I set that? I've tried the sketch below but it doesn't get picked up.

Sketch:

#define CONFIG_ARDUINO_LOOP_STACK_SIZE 8192*4

void setup() {
  Serial.begin(115200); Serial.println();
  Serial.println(uxTaskGetStackHighWaterMark(NULL));
}

void loop() {
}

Debug Messages:

That sketch outputs 7524, whereas if I just update the stack size in main.cpp then uxTaskGetStackHighWaterMark does show the change.

Thanks for any pointers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions