Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(ESP_SR): crash on watchdog timeout in iddle task#11376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
me-no-dev merged 1 commit intoespressif:masterfromvlastahajek:fix/esp_sr_crash
May 27, 2025

Conversation

vlastahajek
Copy link
Contributor

@vlastahajekvlastahajek commentedMay 19, 2025
edited
Loading

Description of Change

Fixing the crash that occurs after the wake-up word is recognized:

17:28:01.740 -> ESP-ROM:esp32s3-2021032717:28:01.740 -> Build:Mar 27 202117:28:01.740 -> rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)17:28:01.740 -> Saved PC:0x4037706d17:28:01.740 -> SPIWP:0xee17:28:01.740 -> mode:DIO, clock div:117:28:01.740 -> load:0x3fce2820,len:0x118c17:28:01.740 -> load:0x403c8700,len:0x417:28:01.740 -> load:0x403c8704,len:0xc2017:28:01.740 -> load:0x403cb700,len:0x30e017:28:01.786 -> entry 0x403c88b817:28:02.768 -> [    16][I][esp32-hal-psram.c:102] psramAddToHeap(): PSRAM added to the heap.17:28:02.815 -> =========== Before Setup Start ===========17:28:02.815 -> Chip Info:17:28:02.815 -> ------------------------------------------17:28:02.815 ->   Model             : ESP32-S317:28:02.815 ->   Package           : 017:28:02.815 ->   Revision          : 0.0117:28:02.815 ->   Cores             : 217:28:02.815 ->   CPU Frequency     : 240 MHz17:28:02.815 ->   XTAL Frequency    : 40 MHz17:28:02.815 ->   Features Bitfield : 0x0000001217:28:02.815 ->   Embedded Flash    : No17:28:02.815 ->   Embedded PSRAM    : No17:28:02.815 ->   2.4GHz WiFi       : Yes17:28:02.861 ->   Classic BT        : No17:28:02.861 ->   BT Low Energy     : Yes17:28:02.861 ->   IEEE 802.15.4     : No17:28:02.861 -> ------------------------------------------17:28:02.861 -> INTERNAL Memory Info:17:28:02.861 -> ------------------------------------------17:28:02.861 ->   Total Size        :   374656 B ( 365.9 KB)17:28:02.861 ->   Free Bytes        :   337816 B ( 329.9 KB)17:28:02.861 ->   Allocated Bytes   :    31808 B (  31.1 KB)17:28:02.861 ->   Minimum Free Bytes:   332968 B ( 325.2 KB)17:28:02.861 ->   Largest Free Block:   270324 B ( 264.0 KB)17:28:02.861 -> ------------------------------------------17:28:02.861 -> SPIRAM Memory Info:17:28:02.861 -> ------------------------------------------17:28:02.908 ->   Total Size        :  8388608 B (8192.0 KB)17:28:02.908 ->   Free Bytes        :  8386296 B (8189.7 KB)17:28:02.908 ->   Allocated Bytes   :        0 B (   0.0 KB)17:28:02.908 ->   Minimum Free Bytes:  8386296 B (8189.7 KB)17:28:02.908 ->   Largest Free Block:  8257524 B (8064.0 KB)17:28:02.908 ->   Bus Mode          : QSPI17:28:02.908 -> ------------------------------------------17:28:02.908 -> Flash Info:17:28:02.908 -> ------------------------------------------17:28:02.908 ->   Chip Size         :  8388608 B (8 MB)17:28:02.908 ->   Block Size        :    65536 B (  64.0 KB)17:28:02.908 ->   Sector Size       :     4096 B (   4.0 KB)17:28:02.908 ->   Page Size         :      256 B (   0.2 KB)17:28:02.956 ->   Bus Speed         : 80 MHz17:28:02.956 ->   Bus Mode          : QIO17:28:02.956 -> ------------------------------------------17:28:02.956 -> Partitions Info:17:28:02.956 -> ------------------------------------------17:28:02.956 ->                 nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS17:28:02.956 ->             otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA17:28:02.956 ->                app0 : addr: 0x00010000, size:  1920.0 KB, type:  APP, subtype: OTA_017:28:02.956 ->                app1 : addr: 0x001F0000, size:  1920.0 KB, type:  APP, subtype: OTA_117:28:02.956 ->              spiffs : addr: 0x003D0000, size:   960.0 KB, type: DATA, subtype: SPIFFS17:28:03.003 ->               model : addr: 0x004C0000, size:  3008.0 KB, type: DATA, subtype: SPIFFS17:28:03.003 ->            coredump : addr: 0x007B0000, size:    64.0 KB, type: DATA, subtype: COREDUMP17:28:03.003 -> ------------------------------------------17:28:03.003 -> Software Info:17:28:03.003 -> ------------------------------------------17:28:03.003 ->   Compile Date/Time : May 18 2025 11:45:2417:28:03.003 ->   Compile Host OS   : windows17:28:03.003 ->   ESP-IDF Version   : v5.4.1-1-g2f7dcd862a-dirty17:28:03.003 ->   Arduino Version   : 3.2.017:28:03.003 -> ------------------------------------------17:28:03.049 -> Board Info:17:28:03.049 -> ------------------------------------------17:28:03.049 ->   Arduino Board     : ESP32S3_DEV17:28:03.049 ->   Arduino Variant   : esp32s317:28:03.049 ->   Arduino FQBN      : esp32:esp32:esp32s3:JTAGAdapter=default,PSRAM=enabled,FlashMode=qio,FlashSize=8M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=custom,CPUFreq=240,UploadSpeed=921600,DebugLevel=debug,EraseFlash=none,ZigbeeMode=default17:28:03.049 -> ============ Before Setup End ============17:28:03.189 -> [   399][D][esp32-hal-sr.c:338] sr_start(): init model17:28:03.189 -> [   405][D][esp32-hal-sr.c:346] sr_start(): load wakenet 'wn9_hiesp'17:28:03.329 -> MC Quantized wakenet9: wakeNet9_v1h24_Hi,ESP_3_0.63_0.635, tigger:v3, mode:2, p:0, (Nov  5 2024 16:02:49)17:28:03.376 -> [   583][D][esp32-hal-sr.c:351] sr_start(): load multinet 'mn5q8_en'17:28:03.376 -> [   589][D][esp32-hal-sr.c:353] sr_start(): load model_data 'mn5q8_en'17:28:03.798 -> Quantized8 Multinet5: MN5Q8_v2_english_8_0.9_0.90, beam search:v2, (Nov  5 2024 16:02:48)17:28:03.798 -> [  1008][I][esp32-hal-sr.c:358] sr_start(): add 7 commands17:28:03.798 -> [  1021][I][esp32-hal-sr.c:361] sr_start():   cmd[0] phrase[0]:'Turn on the light'17:28:03.798 -> [  1029][I][esp32-hal-sr.c:361] sr_start():   cmd[0] phrase[1]:'Switch on the light'17:28:03.798 -> [  1036][I][esp32-hal-sr.c:361] sr_start():   cmd[1] phrase[2]:'Turn off the light'17:28:03.798 -> [  1044][I][esp32-hal-sr.c:361] sr_start():   cmd[1] phrase[3]:'Switch off the light'17:28:03.845 -> [  1051][I][esp32-hal-sr.c:361] sr_start():   cmd[1] phrase[4]:'Go dark'17:28:03.845 -> [  1058][I][esp32-hal-sr.c:361] sr_start():   cmd[2] phrase[5]:'Start fan'17:28:03.845 -> [  1065][I][esp32-hal-sr.c:361] sr_start():   cmd[3] phrase[6]:'Stop fan'17:28:03.845 -> [  1073][D][esp32-hal-sr.c:373] sr_start(): start tasks17:28:03.845 -> [  1078][I][esp32-hal-sr.c:142] audio_feed_task(): audio_chunksize=1024, feed_channel=317:28:03.845 -> [  1088][I][esp32-hal-sr.c:203] audio_detect_task(): ------------detect start------------17:28:03.893 -> =========== After Setup Start ============17:28:03.893 -> INTERNAL Memory Info:17:28:03.893 -> ------------------------------------------17:28:03.893 ->   Total Size        :   374656 B ( 365.9 KB)17:28:03.893 ->   Free Bytes        :   273972 B ( 267.6 KB)17:28:03.893 ->   Allocated Bytes   :    88612 B (  86.5 KB)17:28:03.893 ->   Minimum Free Bytes:   273972 B ( 267.6 KB)17:28:03.893 ->   Largest Free Block:   204788 B ( 200.0 KB)17:28:03.939 -> ------------------------------------------17:28:03.939 -> SPIRAM Memory Info:17:28:03.939 -> ------------------------------------------17:28:03.939 ->   Total Size        :  8388608 B (8192.0 KB)17:28:03.939 ->   Free Bytes        :  5123552 B (5003.5 KB)17:28:03.939 ->   Allocated Bytes   :  3256680 B (3180.4 KB)17:28:03.939 ->   Minimum Free Bytes:  5123552 B (5003.5 KB)17:28:03.939 ->   Largest Free Block:  5111796 B (4992.0 KB)17:28:03.939 -> ------------------------------------------17:28:03.985 -> GPIO Info:17:28:03.985 -> ------------------------------------------17:28:03.985 ->   GPIO : BUS_TYPE[bus/unit][chan]17:28:03.985 ->   --------------------------------------  17:28:03.985 ->      1 : GPIO17:28:03.985 ->      3 : I2S_STD_DIN17:28:03.985 ->      4 : I2S_STD_BCLK17:28:03.985 ->      9 : GPIO17:28:03.985 ->     11 : I2S_STD_WS17:28:03.985 ->     43 : UART_TX[0]17:28:03.985 ->     44 : UART_RX[0]17:28:03.985 -> ============ After Setup End =============17:28:07.221 -> [  4452][D][esp32-hal-sr.c:222] audio_detect_task(): wakeword detected17:28:07.221 -> WakeWord Detected!17:28:07.409 -> [  4632][D][esp32-hal-sr.c:232] audio_detect_task(): AFE_FETCH_CHANNEL_VERIFIED, channel index: 217:28:07.409 -> WakeWord Channel 2 Verified!17:28:12.552 -> E (20575) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:17:28:12.552 -> E (20575) task_wdt:  - IDLE0 (CPU 0)17:28:12.552 -> E (20575) task_wdt: Tasks currently running:17:28:12.552 -> E (20575) task_wdt: CPU 0: SR Feed Task17:28:12.552 -> E (20575) task_wdt: CPU 1: SR Detect Task17:28:12.552 -> E (20575) task_wdt: Aborting.17:28:12.598 -> E (20575) task_wdt: Print CPU 0 (current core) backtrace17:28:12.598 -> 17:28:12.598 -> 17:28:12.598 -> 17:28:12.598 -> 17:28:12.598 -> Backtrace: 0x42062bdf:0x3fcaff80 0x4201ffd5:0x3fcaff90 0x4201d02e:0x3fcaffe0 0x4201d1d4:0x3fcb0000 0x42003ffd:0x3fcb0020 0x4037ddae:0x3fcb006017:28:12.645 -> 17:28:12.645 -> 17:28:12.645 -> 17:28:12.645 -> 17:28:12.645 -> ELF file SHA256: b9f0425db17:28:12.645 -> 17:28:12.831 -> Rebooting...

Tests scenarios

Arduino Core ESP32 3.20
ESP32-S3 (ESP-S3-12k) N8R8 - ESP32S3Dev board used.
Custom partition table.

@github-actionsGitHub Actions
Copy link
Contributor

github-actionsbot commentedMay 19, 2025
edited
Loading

Messages
📖🎉 Good Job! All checks are passing!

👋Hello vlastahajek, we appreciate your contribution to this project!


📘 Please review the project'sContributions Guide for key guidelines on code, documentation, testing, and more.

🖊️ Please also make sure you haveread and signed theContributor License Agreement for this project.

Click to see more instructions ...


This automated output is generated by thePR linter DangerJS, which checks if your Pull Request meets the project's requirements and helps you fix potential issues.

DangerJS is triggered with eachpush event to a Pull Request and modify the contents of this comment.

Please consider the following:
- Danger mainly focuses on the PR structure and formatting and can't understand the meaning behind your code or changes.
- Danger isnot a substitute for human code reviews; it's still important to request a code review from your colleagues.
- To manuallyretry these Danger checks, please navigate to theActions tab and re-run last Danger workflow.

Review and merge process you can expect ...


We do welcome contributions in the form of bug reports, feature requests and pull requests.

1. An internal issue has been created for the PR, we assign it to the relevant engineer.
2. They review the PR and either approve it or ask you for changes or clarifications.
3. Once the GitHub PR is approved we do the final review, collect approvals from core owners and make sure all the automated tests are passing.
- At this point we may do some adjustments to the proposed change, or extend it by adding tests or documentation.
4. If the change is approved and passes the tests it is merged into the default branch.

Generated by 🚫dangerJS againstc6a81c2

@github-actionsGitHub Actions
Copy link
Contributor

github-actionsbot commentedMay 19, 2025
edited
Loading

Test Results

 76 files   76 suites   12m 45s ⏱️
 38 tests  38 ✅ 0 💤 0 ❌
241 runs  241 ✅ 0 💤 0 ❌

Results for commitc6a81c2.

♻️ This comment has been updated with latest results.

@@ -192,6 +192,7 @@ static void audio_feed_task(void *arg) {

/* Feed samples of an audio stream to the AFE_SR */
g_sr_data->afe_handle->feed(g_sr_data->afe_data, audio_buffer);
vTaskDelay(1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I will suggest to delay 2 ticks instead. That will ensure that there will be enough time for the schedules to switch the tasks

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Ok

@vlastahajek
Copy link
ContributorAuthor

Btw,@me-no-dev , would it be helpful if I created a PR with a partition table (and build hacks) for 8MB flash devices for SR example?

@me-no-dev
Copy link
Member

would it be helpful if I created a PR with a partition table (and build hacks) for 8MB flash devices for SR example?

Definitely! Please go ahead

@lucasssvazlucasssvaz added Area: LibrariesIssue is related to Library support. Status: Pending MergePull Request is ready to be merged labelsMay 23, 2025
@me-no-devme-no-dev merged commit07d662a intoespressif:masterMay 27, 2025
57 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@me-no-devme-no-devme-no-dev approved these changes

@lucasssvazlucasssvazlucasssvaz approved these changes

Assignees
No one assigned
Labels
Area: LibrariesIssue is related to Library support.Status: Pending MergePull Request is ready to be merged
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@vlastahajek@me-no-dev@lucasssvaz

[8]ページ先頭

©2009-2025 Movatter.jp