espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.53k stars 7.26k forks source link

[ESP32S3] sysview_tracing permanently crashing in v4.4 (IDFGH-9226) #10613

Open KonssnoK opened 1 year ago

KonssnoK commented 1 year ago

Answers checklist.

IDF version.

v4.4.3-354-gb3e8121fb0

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

PowerShell

Development Kit.

ESP32S3-WROOM N8R2

Power Supply used.

USB

What is the expected behavior?

Run sysview

What is the actual behavior?

continuous crash on timer installation

Steps to reproduce.

  1. Build example
  2. flash
  3. monitor ...

Debug Logs.

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403755a8
0x403755a8: esp_restart_noos at C:/src/esp-idf/components/esp_system/port/soc/esp32s3/system_internal.c:151 (discriminator 1)

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x1670
load:0x403c9700,len:0xb4c
load:0x403cc700,len:0x2efc
SHA-256 comparison failed:
Calculated: 9b3f828a1a05a4639ba64223a7cc8f08bde10f5091df78db944cf848dc129fa6
Expected: c8905b56e0c8552ec0d8b388daaa12e1295f3a6f559f762113f9ebfe525d71d6
Attempting to boot anyway...
entry 0x403c9934
I (47) boot: ESP-IDF v4.4.3-354-gb3e8121fb0 2nd stage bootloader
I (48) boot: compile time 13:31:45
I (48) boot: chip revision: 0
I (51) boot.esp32s3: Boot SPI Speed : 80MHz
I (55) boot.esp32s3: SPI Mode       : DIO
I (60) boot.esp32s3: SPI Flash Size : 8MB
I (65) boot: Enabling RNG early entropy source...
I (70) boot: Partition Table:
I (74) boot: ## Label            Usage          Type ST Offset   Length
I (81) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (89) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (96) boot:  2 factory          factory app      00 00 00010000 00100000
I (103) boot: End of partition table
I (108) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=08094h ( 32916) map
I (122) esp_image: segment 1: paddr=000180bc vaddr=3fc92940 size=02824h ( 10276) load
I (127) esp_image: segment 2: paddr=0001a8e8 vaddr=40374000 size=05730h ( 22320) load
I (138) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=17840h ( 96320) map
I (159) esp_image: segment 4: paddr=00037868 vaddr=40379730 size=0920ch ( 37388) load
I (173) boot: Loaded app from partition at offset 0x10000
I (173) boot: Disabling RNG early entropy source...
I (185) cpu_start: Pro cpu up.
I (185) cpu_start: Single core mode
I (194) cpu_start: Pro cpu start user code
I (194) cpu_start: cpu freq: 160000000
I (194) cpu_start: Application information:
I (197) cpu_start: Project name:     sysview_tracing
I (203) cpu_start: App version:      v4.4.3-354-gb3e8121fb0
I (209) cpu_start: Compile time:     Jan 25 2023 13:29:22
I (215) cpu_start: ELF file SHA256:  bdb65e11a6718537...
I (221) cpu_start: ESP-IDF:          v4.4.3-354-gb3e8121fb0
I (227) heap_init: Initializing. RAM available for dynamic allocation:
I (234) heap_init: At 3FC96218 len 00039DE8 (231 KiB): D/IRAM
I (241) heap_init: At 3FCD8000 len 00011710 (69 KiB): D/IRAM
I (247) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (254) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (260) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (267) spi_flash: detected chip: gd
I (271) spi_flash: flash io: dio
I (275) sleep: Configure to isolate all GPIO pins in sleep state
I (281) sleep: Enable automatic switching of GPIO sleep configuration
I (288) esp_apptrace: Initialized TRAX on CPU0
I (293) cpu_start: Starting scheduler on PRO CPU.
I (299) example: 0x3fcea284: run task
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4200436c  PS      : 0x00060a33  A0      : 0x820044b9  A1      : 0x3fce9ff0
0x4200436c: find_desc_for_source at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:161

A2      : 0x00000035  A3      : 0x00000000  A4      : 0x3fc96610  A5      : 0x00000000
A6      : 0x00000031  A7      : 0x3fce9f20  A8      : 0x0004a2ba  A9      : 0x00000000
A10     : 0x3fcea490  A11     : 0x3fcea490  A12     : 0x3fce9f44  A13     : 0x3c027238
A14     : 0x0000000a  A15     : 0xff000000  SAR     : 0x0000001e  EXCCAUSE: 0x0000001c
EXCVADDR: 0x0004a2ba  LBEG    : 0x400556d5  LEND    : 0x400556e5  LCOUNT  : 0xfffffffd

Backtrace: 0x42004369:0x3fce9ff0 0x420044b6:0x3fcea010 0x420046f3:0x3fcea050 0x420069b7:0x3fcea090 0x420052b2:0x3fcea0d0 0x4037d725:0x3fcea110
0x42004369: find_desc_for_source at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:160

0x420044b6: get_available_int at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:299

0x420046f3: esp_intr_alloc_intrstatus at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:486

0x420069b7: timer_isr_register at C:/src/esp-idf/components/driver/timer.c:267 (discriminator 2)

.0x420052b2: example_task at C:/src/esp-idf/examples/system/sysview_tracing/main/sysview_tracing.c:140

0x4037d725: vPortTaskWrapper at C:/src/esp-idf/components/freertos/port/xtensa/port.c:142

ELF file SHA256: bdb65e11a6718537

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403755a8
0x403755a8: esp_restart_noos at C:/src/esp-idf/components/esp_system/port/soc/esp32s3/system_internal.c:151 (discriminator 1)

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x1670
load:0x403c9700,len:0xb4c
load:0x403cc700,len:0x2efc
SHA-256 comparison failed:
Calculated: 9b3f828a1a05a4639ba64223a7cc8f08bde10f5091df78db944cf848dc129fa6
Expected: c8905b56e0c8552ec0d8b388daaa12e1295f3a6f559f762113f9ebfe525d71d6
Attempting to boot anyway...
entry 0x403c9934
I (47) boot: ESP-IDF v4.4.3-354-gb3e8121fb0 2nd stage bootloader
I (48) boot: compile time 13:31:45
I (48) boot: chip revision: 0
I (51) boot.esp32s3: Boot SPI Speed : 80MHz
I (55) boot.esp32s3: SPI Mode       : DIO
I (60) boot.esp32s3: SPI Flash Size : 8MB
I (65) boot: Enabling RNG early entropy source...
I (70) boot: Partition Table:
I (74) boot: ## Label            Usage          Type ST Offset   Length
I (81) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (89) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (96) boot:  2 factory          factory app      00 00 00010000 00100000
I (103) boot: End of partition table
I (108) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=08094h ( 32916) map
I (122) esp_image: segment 1: paddr=000180bc vaddr=3fc92940 size=02824h ( 10276) load
I (127) esp_image: segment 2: paddr=0001a8e8 vaddr=40374000 size=05730h ( 22320) load
I (138) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=17840h ( 96320) map
I (159) esp_image: segment 4: paddr=00037868 vaddr=40379730 size=0920ch ( 37388) load
I (173) boot: Loaded app from partition at offset 0x10000
I (173) boot: Disabling RNG early entropy source...
I (185) cpu_start: Pro cpu up.
I (185) cpu_start: Single core mode
I (194) cpu_start: Pro cpu start user code
I (194) cpu_start: cpu freq: 160000000
I (194) cpu_start: Application information:
I (197) cpu_start: Project name:     sysview_tracing
I (203) cpu_start: App version:      v4.4.3-354-gb3e8121fb0
I (209) cpu_start: Compile time:     Jan 25 2023 13:29:22
I (215) cpu_start: ELF file SHA256:  bdb65e11a6718537...
I (221) cpu_start: ESP-IDF:          v4.4.3-354-gb3e8121fb0
I (227) heap_init: Initializing. RAM available for dynamic allocation:
I (234) heap_init: At 3FC96218 len 00039DE8 (231 KiB): D/IRAM
I (241) heap_init: At 3FCD8000 len 00011710 (69 KiB): D/IRAM
I (247) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (254) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (260) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (267) spi_flash: detected chip: gd
I (271) spi_flash: flash io: dio
I (275) sleep: Configure to isolate all GPIO pins in sleep state
I (281) sleep: Enable automatic switching of GPIO sleep configuration
I (288) esp_apptrace: Initialized TRAX on CPU0
I (293) cpu_start: Starting scheduler on PRO CPU.
I (299) example: 0x3fcea284: run task
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4200436c  PS      : 0x00060a33  A0      : 0x820044b9  A1      : 0x3fce9ff0  
0x4200436c: find_desc_for_source at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:161

A2      : 0x00000035  A3      : 0x00000000  A4      : 0x3fc96610  A5      : 0x00000000
A6      : 0x00000031  A7      : 0x3fce9f20  A8      : 0x0004a2bf  A9      : 0x00000000
A10     : 0x3fcea490  A11     : 0x3fcea490  A12     : 0x3fce9f44  A13     : 0x3c027238
A14     : 0x0000000a  A15     : 0xff000000  SAR     : 0x0000001e  EXCCAUSE: 0x0000001c
EXCVADDR: 0x0004a2bf  LBEG    : 0x400556d5  LEND    : 0x400556e5  LCOUNT  : 0xfffffffd

Backtrace: 0x42004369:0x3fce9ff0 0x420044b6:0x3fcea010 0x420046f3:0x3fcea050 0x420069b7:0x3fcea090 0x420052b2:0x3fcea0d0 0x4037d725:0x3fcea110
0x42004369: find_desc_for_source at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:160

0x420044b6: get_available_int at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:299

.0x420046f3: esp_intr_alloc_intrstatus at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:486

0x420069b7: timer_isr_register at C:/src/esp-idf/components/driver/timer.c:267 (discriminator 2)

0x420052b2: example_task at C:/src/esp-idf/examples/system/sysview_tracing/main/sysview_tracing.c:140

0x4037d725: vPortTaskWrapper at C:/src/esp-idf/components/freertos/port/xtensa/port.c:142

ELF file SHA256: bdb65e11a6718537

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403755a8
0x403755a8: esp_restart_noos at C:/src/esp-idf/components/esp_system/port/soc/esp32s3/system_internal.c:151 (discriminator 1)

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x1670
load:0x403c9700,len:0xb4c
load:0x403cc700,len:0x2efc
SHA-256 comparison failed:
Calculated: 9b3f828a1a05a4639ba64223a7cc8f08bde10f5091df78db944cf848dc129fa6
Expected: c8905b56e0c8552ec0d8b388daaa12e1295f3a6f559f762113f9ebfe525d71d6
Attempting to boot anyway...
entry 0x403c9934
I (47) boot: ESP-IDF v4.4.3-354-gb3e8121fb0 2nd stage bootloader
I (48) boot: compile time 13:31:45
I (48) boot: chip revision: 0
I (51) boot.esp32s3: Boot SPI Speed : 80MHz
I (55) boot.esp32s3: SPI Mode       : DIO
I (60) boot.esp32s3: SPI Flash Size : 8MB
I (65) boot: Enabling RNG early entropy source...
I (70) boot: Partition Table:
I (74) boot: ## Label            Usage          Type ST Offset   Length
I (81) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (89) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (96) boot:  2 factory          factory app      00 00 00010000 00100000
I (103) boot: End of partition table
I (108) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=08094h ( 32916) map
I (122) esp_image: segment 1: paddr=000180bc vaddr=3fc92940 size=02824h ( 10276) load
I (127) esp_image: segment 2: paddr=0001a8e8 vaddr=40374000 size=05730h ( 22320) load
I (138) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=17840h ( 96320) map
I (159) esp_image: segment 4: paddr=00037868 vaddr=40379730 size=0920ch ( 37388) load
I (173) boot: Loaded app from partition at offset 0x10000
I (173) boot: Disabling RNG early entropy source...
I (185) cpu_start: Pro cpu up.
I (185) cpu_start: Single core mode
I (194) cpu_start: Pro cpu start user code
I (194) cpu_start: cpu freq: 160000000
I (194) cpu_start: Application information:
I (197) cpu_start: Project name:     sysview_tracing
I (203) cpu_start: App version:      v4.4.3-354-gb3e8121fb0
I (209) cpu_start: Compile time:     Jan 25 2023 13:29:22
I (215) cpu_start: ELF file SHA256:  bdb65e11a6718537...
.I (221) cpu_start: ESP-IDF:          v4.4.3-354-gb3e8121fb0
I (227) heap_init: Initializing. RAM available for dynamic allocation:
I (234) heap_init: At 3FC96218 len 00039DE8 (231 KiB): D/IRAM
I (241) heap_init: At 3FCD8000 len 00011710 (69 KiB): D/IRAM
I (247) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (254) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (260) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (267) spi_flash: detected chip: gd
I (271) spi_flash: flash io: dio
I (275) sleep: Configure to isolate all GPIO pins in sleep state
I (281) sleep: Enable automatic switching of GPIO sleep configuration
I (288) esp_apptrace: Initialized TRAX on CPU0
I (293) cpu_start: Starting scheduler on PRO CPU.
I (299) example: 0x3fcea284: run task
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4200436c  PS      : 0x00060a33  A0      : 0x820044b9  A1      : 0x3fce9ff0  
0x4200436c: find_desc_for_source at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:161

A2      : 0x00000035  A3      : 0x00000000  A4      : 0x3fc96610  A5      : 0x00000000
A6      : 0x00000031  A7      : 0x3fce9f20  A8      : 0x0004a2c1  A9      : 0x00000000
A10     : 0x3fcea490  A11     : 0x3fcea490  A12     : 0x3fce9f44  A13     : 0x3c027238  
A14     : 0x0000000a  A15     : 0xff000000  SAR     : 0x0000001e  EXCCAUSE: 0x0000001c
EXCVADDR: 0x0004a2c1  LBEG    : 0x400556d5  LEND    : 0x400556e5  LCOUNT  : 0xfffffffd  

Backtrace: 0x42004369:0x3fce9ff0 0x420044b6:0x3fcea010 0x420046f3:0x3fcea050 0x420069b7:0x3fcea090 0x420052b2:0x3fcea0d0 0x4037d725:0x3fcea110
.0x42004369: find_desc_for_source at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:160

0x420044b6: get_available_int at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:299

0x420046f3: esp_intr_alloc_intrstatus at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:486

0x420069b7: timer_isr_register at C:/src/esp-idf/components/driver/timer.c:267 (discriminator 2)

0x420052b2: example_task at C:/src/esp-idf/examples/system/sysview_tracing/main/sysview_tracing.c:140

0x4037d725: vPortTaskWrapper at C:/src/esp-idf/components/freertos/port/xtensa/port.c:142

ELF file SHA256: bdb65e11a6718537

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403755a8
0x403755a8: esp_restart_noos at C:/src/esp-idf/components/esp_system/port/soc/esp32s3/system_internal.c:151 (discriminator 1)

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x1670
load:0x403c9700,len:0xb4c
load:0x403cc700,len:0x2efc
SHA-256 comparison failed:
Calculated: 9b3f828a1a05a4639ba64223a7cc8f08bde10f5091df78db944cf848dc129fa6
Expected: c8905b56e0c8552ec0d8b388daaa12e1295f3a6f559f762113f9ebfe525d71d6
Attempting to boot anyway...
entry 0x403c9934
I (47) boot: ESP-IDF v4.4.3-354-gb3e8121fb0 2nd stage bootloader
I (48) boot: compile time 13:31:45
I (48) boot: chip revision: 0
I (51) boot.esp32s3: Boot SPI Speed : 80MHz
I (55) boot.esp32s3: SPI Mode       : DIO
I (60) boot.esp32s3: SPI Flash Size : 8MB
I (65) boot: Enabling RNG early entropy source...
I (70) boot: Partition Table:
I (74) boot: ## Label            Usage          Type ST Offset   Length
I (81) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (89) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (96) boot:  2 factory          factory app      00 00 00010000 00100000
I (103) boot: End of partition table
I (108) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=08094h ( 32916) map
I (122) esp_image: segment 1: paddr=000180bc vaddr=3fc92940 size=02824h ( 10276) load
I (127) esp_image: segment 2: paddr=0001a8e8 vaddr=40374000 size=05730h ( 22320) load
I (138) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=17840h ( 96320) map
I (159) esp_image: segment 4: paddr=00037868 vaddr=40379730 size=0920ch ( 37388) load
I (173) boot: Loaded app from partition at offset 0x10000
I (173) boot: Disabling RNG early entropy source...
I (185) cpu_start: Pro cpu up.
I (185) cpu_start: Single core mode
I (194) cpu_start: Pro cpu start user code
I (194) cpu_start: cpu freq: 160000000
I (194) cpu_start: Application information:
I (197) cpu_start: Project name:     sysview_tracing
I (203) cpu_start: App version:      v4.4.3-354-gb3e8121fb0
I (209) cpu_start: Compile time:     Jan 25 2023 13:29:22
.I (215) cpu_start: ELF file SHA256:  bdb65e11a6718537...
I (221) cpu_start: ESP-IDF:          v4.4.3-354-gb3e8121fb0
I (227) heap_init: Initializing. RAM available for dynamic allocation:
I (234) heap_init: At 3FC96218 len 00039DE8 (231 KiB): D/IRAM
I (241) heap_init: At 3FCD8000 len 00011710 (69 KiB): D/IRAM
I (247) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (254) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (260) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (267) spi_flash: detected chip: gd
I (271) spi_flash: flash io: dio
I (275) sleep: Configure to isolate all GPIO pins in sleep state
I (281) sleep: Enable automatic switching of GPIO sleep configuration
I (288) esp_apptrace: Initialized TRAX on CPU0
I (293) cpu_start: Starting scheduler on PRO CPU.
I (299) example: 0x3fcea284: run task
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4200436c  PS      : 0x00060a33  A0      : 0x820044b9  A1      : 0x3fce9ff0  
0x4200436c: find_desc_for_source at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:161

A2      : 0x00000035  A3      : 0x00000000  A4      : 0x3fc96610  A5      : 0x00000000
A6      : 0x00000031  A7      : 0x3fce9f20  A8      : 0x0004a2bf  A9      : 0x00000000
A10     : 0x3fcea490  A11     : 0x3fcea490  A12     : 0x3fce9f44  A13     : 0x3c027238
A14     : 0x0000000a  A15     : 0xff000000  SAR     : 0x0000001e  EXCCAUSE: 0x0000001c
EXCVADDR: 0x0004a2bf  LBEG    : 0x400556d5  LEND    : 0x400556e5  LCOUNT  : 0xfffffffd

Backtrace: 0x42004369:0x3fce9ff0 0x420044b6:0x3fcea010 0x420046f3:0x3fcea050 0x420069b7:0x3fcea090 0x420052b2:0x3fcea0d0 0x4037d725:0x3fcea110
0x42004369: find_desc_for_source at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:160

0x420044b6: get_available_int at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:299

0x420046f3: esp_intr_alloc_intrstatus at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:486

0x420069b7: timer_isr_register at C:/src/esp-idf/components/driver/timer.c:267 (discriminator 2)

0x420052b2: example_task at C:/src/esp-idf/examples/system/sysview_tracing/main/sysview_tracing.c:140

0x4037d725: vPortTaskWrapper at C:/src/esp-idf/components/freertos/port/xtensa/port.c:142

ELF file SHA256: bdb65e11a6718537

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403755a8
0x403755a8: esp_restart_noos at C:/src/esp-idf/components/esp_system/port/soc/esp32s3/system_internal.c:151 (discriminator 1)

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x1670
load:0x403c9700,len:0xb4c
.load:0x403cc700,len:0x2efc
SHA-256 comparison failed:
Calculated: 9b3f828a1a05a4639ba64223a7cc8f08bde10f5091df78db944cf848dc129fa6
Expected: c8905b56e0c8552ec0d8b388daaa12e1295f3a6f559f762113f9ebfe525d71d6
Attempting to boot anyway...
entry 0x403c9934
I (47) boot: ESP-IDF v4.4.3-354-gb3e8121fb0 2nd stage bootloader
I (48) boot: compile time 13:31:45
I (48) boot: chip revision: 0
I (51) boot.esp32s3: Boot SPI Speed : 80MHz
I (55) boot.esp32s3: SPI Mode       : DIO
I (60) boot.esp32s3: SPI Flash Size : 8MB
I (65) boot: Enabling RNG early entropy source...
I (70) boot: Partition Table:
I (74) boot: ## Label            Usage          Type ST Offset   Length
I (81) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (89) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (96) boot:  2 factory          factory app      00 00 00010000 00100000
I (103) boot: End of partition table
I (108) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=08094h ( 32916) map
I (122) esp_image: segment 1: paddr=000180bc vaddr=3fc92940 size=02824h ( 10276) load
I (127) esp_image: segment 2: paddr=0001a8e8 vaddr=40374000 size=05730h ( 22320) load
I (138) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=17840h ( 96320) map
I (159) esp_image: segment 4: paddr=00037868 vaddr=40379730 size=0920ch ( 37388) load
I (173) boot: Loaded app from partition at offset 0x10000
I (173) boot: Disabling RNG early entropy source...
I (185) cpu_start: Pro cpu up.
I (185) cpu_start: Single core mode
I (194) cpu_start: Pro cpu start user code
I (194) cpu_start: cpu freq: 160000000
I (194) cpu_start: Application information:
I (197) cpu_start: Project name:     sysview_tracing
I (203) cpu_start: App version:      v4.4.3-354-gb3e8121fb0
I (209) cpu_start: Compile time:     Jan 25 2023 13:29:22
I (215) cpu_start: ELF file SHA256:  bdb65e11a6718537...
I (221) cpu_start: ESP-IDF:          v4.4.3-354-gb3e8121fb0
I (227) heap_init: Initializing. RAM available for dynamic allocation:
I (234) heap_init: At 3FC96218 len 00039DE8 (231 KiB): D/IRAM
I (241) heap_init: At 3FCD8000 len 00011710 (69 KiB): D/IRAM
I (247) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (254) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (260) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (267) spi_flash: detected chip: gd
I (271) spi_flash: flash io: dio
I (275) sleep: Configure to isolate all GPIO pins in sleep state
I (281) sleep: Enable automatic switching of GPIO sleep configuration
I (288) esp_apptrace: Initialized TRAX on CPU0
I (293) cpu_start: Starting scheduler on PRO CPU.
I (299) example: 0x3fcea284: run task
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4200436c  PS      : 0x00060a33  A0      : 0x820044b9  A1      : 0x3fce9ff0
0x4200436c: find_desc_for_source at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:161

A2      : 0x00000035  A3      : 0x00000000  A4      : 0x3fc96610  A5      : 0x00000000
A6      : 0x00000031  A7      : 0x3fce9f20  A8      : 0x0004a2be  A9      : 0x00000000
A10     : 0x3fcea490  A11     : 0x3fcea490  A12     : 0x3fce9f44  A13     : 0x3c027238
A14     : 0x0000000a  A15     : 0xff000000  SAR     : 0x0000001e  EXCCAUSE: 0x0000001c
EXCVADDR: 0x0004a2be  LBEG    : 0x400556d5  LEND    : 0x400556e5  LCOUNT  : 0xfffffffd  

Backtrace: 0x42004369:0x3fce9ff0 0x420044b6:0x3fcea010 0x420046f3:0x3fcea050 0x420069b7:0x3fcea090 0x420052b2:0x3fcea0d0 0x4037d725:0x3fcea110
0x42004369: find_desc_for_source at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:160

0x420044b6: get_available_int at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:299

0x420046f3: esp_intr_alloc_intrstatus at C:/src/esp-idf/components/esp_hw_support/intr_alloc.c:486

0x420069b7: timer_isr_register at C:/src/esp-idf/components/driver/timer.c:267 (discriminator 2)

0x420052b2: example_task at C:/src/esp-idf/examples/system/sysview_tracing/main/sysview_tracing.c:140

.0x4037d725: vPortTaskWrapper at C:/src/esp-idf/components/freertos/port/xtensa/port.c:142

ELF file SHA256: bdb65e11a6718537

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403755a8
0x403755a8: esp_restart_noos at C:/src/esp-idf/components/esp_system/port/soc/esp32s3/system_internal.c:151 (discriminator 1)

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x1670
load:0x403c9700,len:0xb4c
load:0x403cc700,len:0x2efc
SHA-256 comparison failed:
Calculated: 9b3f828a1a05a4639ba64223a7cc8f08bde10f5091df78db944cf848dc129fa6
Expected: c8905b56e0c8552ec0d8b388daaa12e1295f3a6f559f762113f9ebfe525d71d6
Attempting to boot anyway...
entry 0x403c9934

More Information.

on master branch it works, some backport is missing. I remind you v4.4 is still an active stable branch supporting esp32s3.

gerekon commented 1 year ago

Can reproduce this problem. It happens due to stack overflow. In v5.0 the stack size for the tasks was increased https://github.com/espressif/esp-idf/commit/02f6b83f4708f68bf8727e595af372060cf29b5d#diff-5e35b069c93e046316c229df63fa26c51b822f6ab98598808f090e39ffee2298R159

KonssnoK commented 1 year ago

@gerekon my current crash is related to the interrupts not being taken correctly by CPU, but i see also that part was changed in 5.0 without backporting

if !CONFIG_APPTRACE_SV_TS_SOURCE_TIMER_10
    example_timer_init(TIMER_GROUP_1, TIMER_0, 2000);
#else
#warning "Timer (Group 1, Timer 0) is used by sysview module itself!"
#endif

#if !CONFIG_APPTRACE_SV_TS_SOURCE_TIMER_00
    example_timer_init(TIMER_GROUP_0, TIMER_0, 4000);
#else
#warning "Timer (Group 0, Timer 0) is used by sysview module itself!"
#endif

to

    for (int i = 0; i < portNUM_PROCESSORS; i++) {
        gptimer_config_t timer_config = {
            .clk_src = GPTIMER_CLK_SRC_APB,
            .direction = GPTIMER_COUNT_UP,
            .resolution_hz = 1000000,
        };
        ESP_ERROR_CHECK(gptimer_new_timer(&timer_config, &event_data[i].gptimer));
        event_data[i].period = 1000000 * (i + 1);
    }