Zephyr benchmark in NRF5340DK

I'm currently working on a project where I need to assess the power handling capability of my NRF5340-DK board using different scheduling algorithms. For this purpose, I've chosen to utilize the Zephyr benchmark scheduler (tests/benchmarks/sched/).

However, upon executing the benchmark on the NRF5340-DK board, I encountered a peculiar issue. The output obtained is quite different from what I expected based on previous experiences with a different board.

On the reference board, the output resembled the following pattern:

unpend 275 ready 381 switch 905 pend 1006 tot 2567 (avg 2567)
unpend 275 ready 381 switch 905 pend 1006 tot 2567 (avg 2567)
unpend 275 ready 381 switch 905 pend 1006 tot 2567 (avg 2567)
unpend 275 ready 381 switch 905 pend 1006 tot 2567 (avg 2567)

finCode

But on the NRF5340-DK board, the output deviates significantly:

unpend 1 ready 0 switch 0 pend 0 tot 1 (avg 0)
unpend 0 ready 0 switch 0 pend 0 tot 0 (avg 0)
unpend 0 ready 0 switch 1 pend 0 tot 1 (avg 0)
unpend 1 ready 0 switch 0 pend 0 tot 1 (avg 0)
unpend 0 ready 0 switch 0 pend 1 tot 1 (avg 0)
finCode

It seems that the benchmark is resetting the threads on the NRF5340-DK board, causing the total count (tot) to remain at 1 throughout the entire execution.

Could this behavior be attributed to some form of performance optimization specific to the Nordic board?

Related