mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 16:14:34 +02:00
fix(test_apps): Fix coredump_uart_bin_crc.test_hw_stack_guard_cpu0 test
This commit is contained in:
committed by
BOT
parent
49ba674fb5
commit
d348258f2c
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||||
*/
|
*/
|
||||||
@@ -64,10 +64,18 @@ void test_task_wdt_cpu0(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((optimize("-O0")))
|
__attribute__((optimize("-O0")))
|
||||||
|
static void test_hw_stack_guard_cpu(void* arg)
|
||||||
|
{
|
||||||
|
uint32_t buf[256];
|
||||||
|
test_hw_stack_guard_cpu(arg);
|
||||||
|
}
|
||||||
|
|
||||||
void test_hw_stack_guard_cpu0(void)
|
void test_hw_stack_guard_cpu0(void)
|
||||||
{
|
{
|
||||||
uint32_t buf[128];
|
xTaskCreatePinnedToCore(test_hw_stack_guard_cpu, "HWSG0", 512, NULL, 1, NULL, 0);
|
||||||
test_hw_stack_guard_cpu0();
|
while (true) {
|
||||||
|
vTaskDelay(100);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH && CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
|
#if CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH && CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
|
||||||
|
Reference in New Issue
Block a user