2023-01-05 06:41:40 -05:00
|
|
|
/*
|
2024-04-29 12:32:00 -04:00
|
|
|
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
2023-01-05 06:41:40 -05:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Utility functions */
|
|
|
|
|
|
|
|
void die(const char* msg) __attribute__ ((noreturn));
|
|
|
|
|
|
|
|
/* Functions causing an exception/panic in different ways */
|
|
|
|
|
|
|
|
void test_abort(void);
|
|
|
|
|
|
|
|
void test_abort_cache_disabled(void);
|
|
|
|
|
|
|
|
void test_int_wdt(void);
|
|
|
|
|
|
|
|
void test_task_wdt_cpu0(void);
|
|
|
|
|
2024-01-19 02:51:57 -05:00
|
|
|
#if CONFIG_ESP_SYSTEM_HW_STACK_GUARD
|
2023-05-04 11:31:31 -04:00
|
|
|
void test_hw_stack_guard_cpu0(void);
|
2024-01-19 02:51:57 -05:00
|
|
|
#if !CONFIG_FREERTOS_UNICORE
|
|
|
|
void test_hw_stack_guard_cpu1(void);
|
|
|
|
#endif // CONFIG_FREERTOS_UNICORE
|
|
|
|
#endif // CONFIG_ESP_SYSTEM_HW_STACK_GUARD
|
2023-05-04 11:31:31 -04:00
|
|
|
|
2023-01-05 06:41:40 -05:00
|
|
|
#if CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH && CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
|
|
|
|
void test_panic_extram_stack(void);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !CONFIG_FREERTOS_UNICORE
|
|
|
|
void test_task_wdt_cpu1(void);
|
|
|
|
#endif
|
|
|
|
|
2024-04-15 11:09:11 -04:00
|
|
|
void test_loadprohibited(void);
|
|
|
|
|
2023-01-05 06:41:40 -05:00
|
|
|
void test_storeprohibited(void);
|
|
|
|
|
|
|
|
void test_cache_error(void);
|
|
|
|
|
|
|
|
void test_int_wdt_cache_disabled(void);
|
|
|
|
|
|
|
|
void test_stack_overflow(void);
|
|
|
|
|
|
|
|
void test_illegal_instruction(void);
|
|
|
|
|
|
|
|
void test_instr_fetch_prohibited(void);
|
|
|
|
|
|
|
|
void test_ub(void);
|
|
|
|
|
|
|
|
void test_assert(void);
|
|
|
|
|
|
|
|
void test_assert_cache_disabled(void);
|
|
|
|
|
2024-04-25 12:13:46 -04:00
|
|
|
void test_assert_cache_write_back_error_can_print_backtrace(void);
|
|
|
|
|
|
|
|
void test_assert_cache_write_back_error_can_print_backtrace2(void);
|
|
|
|
|
2023-10-11 07:24:24 -04:00
|
|
|
void test_illegal_access(void);
|
|
|
|
|
2024-03-11 16:19:17 -04:00
|
|
|
void test_capture_dram(void);
|
|
|
|
|
2024-04-29 12:32:00 -04:00
|
|
|
#if CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH && CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
|
|
|
void test_setup_coredump_summary(void);
|
|
|
|
void test_coredump_summary(void);
|
|
|
|
#endif
|
|
|
|
|
2023-01-05 06:41:40 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|