Closed Zhaoningx closed 3 years ago
just bisected to
commit f1a27a8189e338f2c2d59c146002952bd9537feb
Author: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
Date: Mon Mar 1 11:25:49 2021 +0100
arm: cortex_m: assert if DebugMonitor exc is enabled in debug mode
Assert if the null pointer de-referencing detection (via DWT) is
enabled when the processor is in debug mode, because the debug
monitor exception can not be triggered in debug mode (i.e. the
behavior is unpredictable). Add a note in the Kconfig definition
of the null-pointer detection implementation via DWT, stressing
that the solution requires the core be in normal mode.
Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
arch/arm/core/aarch32/cortex_m/Kconfig | 1 +
arch/arm/include/aarch32/cortex_m/dwt.h | 8 ++++++++
2 files changed, 9 insertions(+)
@hakehuang @ioannisg , could you take look at it? It blocks the testing with twister on almost all ARM boards.
@LeiW000 isn't this fixed now in master?
Hi @ioannisg @LeiW000 , just now, I had a try to run testcases on these platforms manually, it seems frdm_k64f , sam_e70b_xplained and mimxrt1050_evk are good to work in master, but reel_board is still not working, it showed me timeout failure, and the device.log info:
[ztest@localhost zephyr]$ vi /home/ztest/zephyrproject/zephyr/twister-out/reel_board/tests/kernel/stack/stack/kernel.stack.usage/device.log
0004915:INFO:loader:Erased 81920 bytes (20 sectors), programmed 81920 bytes (20 pages), skipped 4096 bytes (1 page) at 19.21 kB/s
@LeiW000 this happens on all NXP platforms, the SH number for me is: zephyr-v2.5.0-947-gdc6e880eab
It looks that the issue is fixed partially. We still see it on reel_board.
It looks that the issue is fixed partially. We still see it on reel_board.
Confirmed. I'll share a fix to this for us to test out.
@LeiW000 I submitted a PR that addresses the issue with the reel_board (essentially, a pyocd issue). Could you please check if you can run CI on reel_board using #33386 ?
Describe the bug: I find some testcases timeout failed after twister changed. More detail as below:
frdm_k64f platform: Just select a testcase to demo this failure. command: twister -p frdm_k64f --device-testing --device-serial /dev/ttyACM0 -T tests/kernel/stack/ -j 1 -vv and it showed me timeout failed, and device.log shows:
And I reset to commit c5caa9b916d1 , It is good to work.
sam_e70b_xplained platform: command: twister -p sam_e70b_xplained --device-testing --device-serial /dev/ttyACM1 -T tests/kernel/stack/stack/ -j 1 -vv and it showed me timeout failed, device.log shows:
And I reset to commit c5caa9b916d1 , It is good to work.
mimxrt1050_evk platform: command: twister -p mimxrt1050_evk --device-testing --device-serial /dev/ttyACM0 -T tests/kernel/stack/stack/ -j 1 -vv and it showed me build failed, and there is nothing wrong in build.log file. And I reset to commit c5caa9b916d1 , It is good to work.
And reel_board platform is also not work, more detail refer above.
Environment OS: Fedora33 Toolchain:zephyr-sdk-0.12.2 Commit ID: 4118ed1d4d6fe50f4