zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.01k stars 6.16k forks source link

tests: drivers: uart and spi fails on nrf54h20 - ASSERTION FAIL heap size is too small #74404

Open nordic-piks opened 2 weeks ago

nordic-piks commented 2 weeks ago

Describe the bug The tests:

Observed for

To Reproduce Steps to reproduce the behavior:

  1. have nrf54h20dk/nrf54h20/cpurad connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T tests/drivers/spi -p nrf54h20dk/nrf54h20/cpurad --device-testing --device-serial /dev/ttyACM1 -v --inline-logs
  4. See console output with error

Expected behavior Valid console output

Impact Not clear

Logs and console output tests/drivers/spi/spi_controller_peripheral/drivers.spi.spi_4MHz

ASSERTION FAIL [bytes > heap_footer_bytes(bytes)] @ ../../../../../../../../../../zephyr/zephyr/lib/heap/heap.c:498
heap size is too small
E: r0/a1:  0x00000004  r1/a2:  0x000001f2  r2/a3:  0x00000000
E: r3/a4:  0x00000004 r12/ip:  0x00000001 r14/lr:  0x0e0671fd
E:  xpsr:  0x29000000
E: Faulting instruction address (r15/pc): 0x0e06fd0a
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Current thread: 0x23000588 (main)
E: Halting system

Environment (please complete the following information):

nordic-piks commented 2 weeks ago

@nika-nordic @nordic-krch I am guessing that this is caused by #71278

nordic-piks commented 2 weeks ago

My mistake, problem occurs at nrf54h20dk/nrf54h20/cpurad not app. Already changed description.

nordic-piks commented 21 hours ago

@nordic-krch https://github.com/zephyrproject-rtos/zephyr/pull/74689 fixes problems with:

however, there are still issues with:

eg. tests/drivers/spi/spi_controller_peripheral/drivers.spi.spi_4MHz

ASSERTION FAIL [heap_sz > chunksz(sizeof(struct z_heap))] @ ../../../../../../../../../../zephyr/zephyr/lib/heap/heap.c:507
heap size is too small
E: r0/a1:  0x00000004  r1/a2:  0x000001fb  r2/a3:  0x00000000
E: r3/a4:  0x00000004 r12/ip:  0x00000001 r14/lr:  0x0e0671fd
E:  xpsr:  0x29000000
E: Faulting instruction address (r15/pc): 0x0e06fd0e
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Current thread: 0x23000588 (main)
E: Halting system