mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-12-13 00:41:43 +08:00
Merge branch 'bugfix/abort_log_error_v3.2' into 'release/v3.2'
newlib: fix abort function cause critical error (backport v3.2) See merge request sdk/ESP8266_RTOS_SDK!1201
This commit is contained in:
@@ -158,7 +158,9 @@ void _free_r(struct _reent *r, void *ptr)
|
|||||||
|
|
||||||
void abort(void)
|
void abort(void)
|
||||||
{
|
{
|
||||||
ESP_LOGE("ABORT","Error found and abort!");
|
#ifndef CONFIG_ESP_PANIC_SILENT_REBOOT
|
||||||
|
ets_printf("abort() was called at PC %p on core %d\r\n", __builtin_return_address(0) - 3, xPortGetCoreID());
|
||||||
|
#endif
|
||||||
|
|
||||||
/* cause a exception to jump into panic function */
|
/* cause a exception to jump into panic function */
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user