Open franzhoepfinger opened 3 weeks ago
lets try:
#define ECHO_TASK_STACK_SIZE (2*2048)
also the Watchdog is triggered:
[ 0x0D 0x0A 0x0A 0x0A 0x7E (72636) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (72636) task_wdt: - IDLE0 (CPU 0)
E (72636) task_wdt: Tasks currently running:
E (72636) task_wdt: CPU 0: uart_echo_task
E (72636) task_wdt: CPU 1: IDLE1
E (72636) task_wdt: Print CPU 0 (current core) backtrace
Backtrace: 0x4200CDC3:0x3FC94320 0x4200D1E0:0x3FC94340 0x4037725D:0x3FC94370 0x4200644A:0x3FC9AD80 0x4200731F:0x3FC9ADB0 0x4200A395:0x3FC9ADD0 0x4200F35A:0x3FC9ADF0 0x42009EE4:0x3FC9AE10 0x4200A395:0x3FC9AE30 0x4200ED9A:0x3FC9AE50 0x4200E5D5:0x3FC9AE70 0x4200E626:0x3FC9AE90 0x4200EBCA:0x3FC9AEB0 0x42012CD3:0x3FC9AEE0 0x42012679:0x3FC9AF00 0x4200EC9B:0x3FC9B220 0x4200AC77:0x3FC9B270 0x4037B39D:0x3FC9B2C0
0x4200cdc3: task_wdt_timeout_handling at /home/franz/esp-idf-v5.3/components/esp_system/task_wdt/task_wdt.c:434
0x4200d1e0: task_wdt_isr at /home/franz/esp-idf-v5.3/components/esp_system/task_wdt/task_wdt.c:507
0x4037725d: _xt_lowint1 at /home/franz/esp-idf-v5.3/components/xtensa/xtensa_vectors.S:1240
0x4200644a: uart_ll_get_txfifo_len at /home/franz/esp-idf-v5.3/components/hal/esp32s3/include/hal/uart_ll.h:390
(inlined by) uart_tx_char at /home/franz/esp-idf-v5.3/components/esp_driver_uart/src/uart_vfs.c:170
0x4200731f: uart_write at /home/franz/esp-idf-v5.3/components/esp_driver_uart/src/uart_vfs.c:223
0x4200a395: esp_vfs_write at /home/franz/esp-idf-v5.3/components/vfs/vfs.c:502 (discriminator 4)
0x4200f35a: write at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/syscalls/syswrite.c:11 (discriminator 1)
0x42009ee4: console_write at /home/franz/esp-idf-v5.3/components/esp_vfs_console/vfs_console.c:67
0x4200a395: esp_vfs_write at /home/franz/esp-idf-v5.3/components/vfs/vfs.c:502 (discriminator 4)
0x4200ed9a: __swrite at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/stdio.c:94
0x4200e5d5: __sflush_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/fflush.c:224
0x4200e626: _fflush_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/fflush.c:278
0x4200ebca: __sfvwrite_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/fvwrite.c:232
0x42012cd3: __sprint_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/vfiprintf.c:429
(inlined by) __sprint_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/vfprintf.c:399
0x42012679: _vfprintf_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/vfprintf.c:1766 (discriminator 1)
0x4200ec9b: printf at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/printf.c:56
0x4200ac77: echo_task at /home/franz/git/fli/uart_echo_rs485/uart_echo_rs485/main/rs485_example.c:113
0x4037b39d: vPortTaskWrapper at /home/franz/esp-idf-v5.3/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134
it says v5.3 dirty, are you on v5.3 tag? do you have local changes? did you update submodules?
I (39) boot.esp32s3: Boot SPI Speed : 80MHz
It seems to only occur on esp32s3.
Please try using something other than esp32s3.
it says v5.3 dirty, are you on v5.3 tag? do you have local changes? did you update submodules?
yes, have installed this https://github.com/espressif/esp-idf/issues/14337#issuecomment-2278106938
Answers checklist.
General issue report
https://github.com/espressif/esp-idf/tree/master/examples/peripherals/uart/uart_echo_rs485