-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isr4 repeatedly gets triggered after test passes in tests/kernel/gen_isr_table #18635
Comments
This test, simply, does not work for platforms that do not have all IRQ lines implemented and available (from 0 to CONFIG_NUM_IRQS). E.g. fails in nrf9160_pca10090, too. Needs some rework. |
Hi @vanti can you please, re-confirm the behavior on CC1352r1_launchxl on current master branch? Is ISR4 keeps being triggered? |
I don't have the board to re-produce this. |
@ioannisg I see an error when I build the test: $ west build -b cc1352r1_launchxl
|
@vanti now it is clear what is happening here; one of the IRQ lines used in the test is used by the platform, e.g. in some driver. The script actually checks that IRQ_CONNECT is not called (check at build-time) multiple times on the same IRQ line. AFAIR, this check was added recently. Before this change was added, you were able to build and flash this test to this platform. The log you had earlier posted here makes sense: the IRQ line is used by the platform and keeps firing, causing the test-defined ISR to trigger continuously after the test is completed. So what we have to do is simply to exclude the platform from this test. For now that's probably ok, and AFAICS this is already the case; but this test is using up to 6 IRQ lines and it is natural that there are conflicts with certain platforms. We need a solution that makes the test aware (at built-time) of what IRQs can be used. Closing for now as the platform is excluded for this test in CI. |
Describe the bug
When run as part of the sanitycheck script, tests/kernel/gen_isr_table fails with a timeout on cc1352r1_launchxl:
In the log file 'sanity-out/cc1352r1_launchxl/tests/kernel/gen_isr_table/arch.interrupt/handler.log', isr4 is seen to continue to run after the test passes:
To Reproduce
Steps to reproduce the behavior:
To reproduce the timeout, run
./scripts/sanitycheck -p cc1352r1_launchxl --device-testing --device-serial /dev/ttyACM0
You can also build the test separately:
Expected behavior
The test should not result in a timeout when run as part of the sanitycheck script.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: