Panic at hwcrypto aes
Posted: Tue Dec 25, 2018 6:49 am
I occasionally ran into panic as listed below:
In my design, the encrypt/decrypt data size will be no more than 250 bytes. I use a 4MB PSRAM so encrypt/decrypt data buffer may be either on internal RAM or on the external PSRAM. I report the crash here to see if someone experienced can help.
Code: Select all
Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)
Core 1 register dump:
PC : 0x4011c576 PS : 0x00060f34 A0 : 0x800d8c09 A1 : 0x3ffd1150
0x4011c576: DPORT_REG_READ at /Users/gl/esp/esp-idf/components/esp32/hwcrypto/aes.c:343
(inlined by) esp_aes_block at /Users/gl/esp/esp-idf/components/esp32/hwcrypto/aes.c:132
(inlined by) esp_aes_crypt_cbc at /Users/gl/esp/esp-idf/components/esp32/hwcrypto/aes.c:224
A2 : 0x3ff01000 A3 : 0x00000001 A4 : 0x000000e0 A5 : 0x3ffd1268
A6 : 0x3f806687 A7 : 0x3f806687 A8 : 0x8011c588 A9 : 0x3ffd1130
A10 : 0x00000000 A11 : 0x3f806697 A12 : 0x00000010 A13 : 0x3ffd1160
A14 : 0x871b880a A15 : 0x6e5244b9 SAR : 0x00000018 EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x4009b059 LEND : 0x4009b08d LCOUNT : 0x00000000
0x4009b059: memcpy at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/memcpy.S:291
0x4009b08d: memcpy at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/memcpy.S:324
Backtrace: 0x4011c576:0x3ffd1150 0x400d8c06:0x3ffd1180 0x400e2cf9:0x3ffd11f0 0x400eaf61:0x3ffd13f0 0x400ebfed:0x3ffd19a0 0x40094d55:0x3ffd19c0
0x4011c576: DPORT_REG_READ at /Users/gl/esp/esp-idf/components/esp32/hwcrypto/aes.c:343
(inlined by) esp_aes_block at /Users/gl/esp/esp-idf/components/esp32/hwcrypto/aes.c:132
(inlined by) esp_aes_crypt_cbc at /Users/gl/esp/esp-idf/components/esp32/hwcrypto/aes.c:224
... //SOME LINES OMITTED HERE FOR BREVITY
0x40094d55: vPortTaskWrapper at /Users/gl/esp/esp-idf/components/freertos/port.c:403
Core 0 register dump:
PC : 0x4018b01a PS : 0x00060634 A0 : 0x800d5fcd A1 : 0x3ffbd170
0x4018b01a: esp_pm_impl_waiti at /Users/gl/esp/esp-idf/components/esp32/pm_esp32.c:487
A2 : 0x00000000 A3 : 0x3ffb1140 A4 : 0x00000000 A5 : 0x3f80538c
A6 : 0x00000000 A7 : 0x0000000a A8 : 0x800ec372 A9 : 0x3ffbd0c0
A10 : 0x00007169 A11 : 0x00000000 A12 : 0x3ffce384 A13 : 0x00000000
A14 : 0x00000000 A15 : 0x3ffbcc60 SAR : 0x00000000 EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace: 0x4018b01a:0x3ffbd170 0x400d5fca:0x3ffbd190 0x40096cf1:0x3ffbd1b0 0x40094d55:0x3ffbd1d0
0x4018b01a: esp_pm_impl_waiti at /Users/gl/esp/esp-idf/components/esp32/pm_esp32.c:487
0x400d5fca: esp_vApplicationIdleHook at /Users/gl/esp/esp-idf/components/esp32/freertos_hooks.c:86
0x40096cf1: prvIdleTask at /Users/gl/esp/esp-idf/components/freertos/tasks.c:3537
0x40094d55: vPortTaskWrapper at /Users/gl/esp/esp-idf/components/freertos/port.c:403
CPU halted.