Panic at hwcrypto aes

gongli
Posts: 10
Joined: Fri Dec 21, 2018 2:56 am

Panic at hwcrypto aes

Postby gongli » Tue Dec 25, 2018 6:49 am

I occasionally ran into panic as listed below:

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.
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.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Panic at hwcrypto aes

Postby Ritesh » Fri Dec 28, 2018 6:49 pm

gongli wrote:
Tue Dec 25, 2018 6:49 am
I occasionally ran into panic as listed below:

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.
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.
Hi,

Would you please check without using PSRAM 4MB to bifercate issue like it is due to PSRAM or something else? So that it will be helpful to debug further as per analysis or traces into deep level.
Regards,
Ritesh Prajapati

gongli
Posts: 10
Joined: Fri Dec 21, 2018 2:56 am

Re: Panic at hwcrypto aes

Postby gongli » Sat Dec 29, 2018 8:33 am

Ritesh wrote:
Fri Dec 28, 2018 6:49 pm

Would you please check without using PSRAM 4MB to bifercate issue like it is due to PSRAM or something else? So that it will be helpful to debug further as per analysis or traces into deep level.
Thanks. Totally cut out PSRAM from my system is somehow difficult as the data complexity in the system asks for more RAM. Still, the buffer passed to AES API is a static global buffer. It's likely to be on the chip's internal 520K RAM.

I list below another crash log caught a moment ago. To see if it helps.

Code: Select all

Guru Meditation Error: Core  1 panic'ed (Interrupt wdt timeout on CPU1)
Core 1 register dump:
PC      : 0x40081bf5  PS      : 0x00060734  A0      : 0x8011abb8  A1      : 0x3ffd1420
0x40081bf5: esp_dport_access_reg_read at /Users/gl/esp/esp-idf/components/esp32/dport_access.c:257

A2      : 0x3ff01004  A3      : 0x3f806f5f  A4      : 0x00000010  A5      : 0x3ffd1450
A6      : 0x94cec8a0  A7      : 0x8fdefb3a  A8      : 0x3ff40078  A9      : 0x00060723
A10     : 0x00000020  A11     : 0x00000003  A12     : 0x3ffb13cc  A13     : 0x00000007
A14     : 0x00060720  A15     : 0x00000000  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: 0x40081bf5:0x3ffd1420 0x4011abb5:0x3ffd1440 0x400d8bf6:0x3ffd1470 0x400e29b3:0x3ffd14a0 0x400eab0d:0x3ffd1660 0x400ebc65:0x3ffd17f0 0x40094d55:0x3ffd1810
0x40081bf5: esp_dport_access_reg_read at /Users/gl/esp/esp-idf/components/esp32/dport_access.c:257

0x4011abb5: 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

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 90 guests