Skip to content

Commit ef9624f

Browse files
Josh-Tsaiamstan
authored andcommitted
fwk: cypd: increase the cypd stack size to 1280
When I used the console command "i2ctrace enable 2 0x40", the EC log print the panic message: ec:~> i2ctrace enable 2 0x40 i2c: 2:0x40 wr 0x06 0x00 rd 0x04 ec:~> : r0/a1: 0x00000002 r1/a2: 0xf0f0f0f0 r2/a3: 0x200c63d0 E: r3/a4: 0x00000002 r12/ip: 0x00000006 r14/lr: 0xfffffffd E: xpsr: 0x01000031 E: r4/v1: 0x00000004 r5/v2: 0x00000004 r6/v3: 0x200c40d8 E: r7/v4: 0x200c56f4 r8/v5: 0x00000000 r9/v6: 0x00000002 E: r10/v7: 0x00000001 r11/v8: 0x200c6608 psp: 0x200c63c0 E: EXC_RETURN: 0x0 E: Faulting instruction address (r15/pc): 0x100a0a80 E: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0 E: Fault during interrupt handling E: Current thread: 0x200c2380 (CYPD) This change increases the cypd stack size to 1280 to avoid the stack overflow. BRANCH=fwk-main BUG=enable pd chip i2ctrace will trigger the stack overflow TEST=i2ctrace enable 2 0x40 can trace the i2c log normally Signed-off-by: Josh Tsai <Josh_Tsai@compal.com> (cherry picked from commit 04f8ddf873c314a6aabad9f353b9b9dba0d98183)
1 parent eb70edf commit ef9624f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zephyr/Kconfig.stacks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ config TASK_PD_INT_STACK_SIZE
9292
config TASK_CYPD_STACK_SIZE
9393
default 1280 if SOC_SERIES_RISCV32_IT8XXX2
9494
default 1024 if SOC_SERIES_NPCX7
95-
default 1024 if SOC_SERIES_NPCX9
95+
default 1280 if SOC_SERIES_NPCX9
9696

9797
config TASK_ALS_STACK_SIZE
9898
default 1280 if SOC_SERIES_RISCV32_IT8XXX2

0 commit comments

Comments
 (0)