-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards/nucleo64: Add Compile Warning about LED0 when using SPI #21338
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The CI was unhappy because the warning was printed to @mguetschow suggested to print the warning to stderr, that's what the fixup now does. One thing that remains is that the warning will be printed a lot for commands like
I added the "Nucleo64" remark so that it's a bit more obvious what causes the warning. |
Reminds me of this printout for PSA Crypto having the same issue. RIOT/makefiles/dependency_resolution.inc.mk Lines 124 to 129 in a3a53fb
I'd say fixing this is an exercise for a potential follow-up PR. Please squash! |
It would be possible to exclude the warning for Also it would be possible to exclude the CI by checking |
e026b75
to
a74927f
Compare
Thanks for helping with the CI errors :) |
Contribution description
The issue #21336 by @tanneberger raised the issue that the buildsystem will quietly disable LED0 when using
periph_spi
. While this is unavoidable, it is unfortunate that this is done quietly.Therefore this PR adds a red warning when using
periph_spi
to notify the user about this behavior.Further documentation will be added in #21337, because the
boards/common/nucleo64/doc.md
does not exist yet where this information would belong to.During the development of this PR I noticed that
periph_init_led0
got added toDISABLE_MODULE
three times. While this doesn't hurt anything, it doesn't help anything either. Since I wanted to avoid that the warning is printed three times as well, I added a check to only add it once.Testing procedure
Compile an application of your choice for a Nucleo64 board of your choice, enabling
periph_spi
.Issues/PRs references
Fixes #21336.