-
Notifications
You must be signed in to change notification settings - Fork 2k
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
boards/nucleo-wl55jc: add ADC configuration #21235
base: master
Are you sure you want to change the base?
Conversation
I'll test the code once I'm home in the evening. Thank you for providing the PR :) |
28ce9cf
to
0434087
Compare
There is good news and there is bad news :D Good news: Generally your PR works.
Bad news 1: Apparently the Bad news 2: Enabling
Maybe I have some time to investigate this later today. However I am 99% sure that this is not caused by your PR. |
@crasbe thanks for your tests. I add module
Maybe in your environment this gives reasonable results and can help you. |
It points to this in my case:
The
This is so odd, because it doesn't even get to main() before it crashes. At least nothing from the initial lines in main is printed. |
Okay I found the issue. With Lines 418 to 425 in 0cb550a
This function is called from here: Lines 427 to 435 in 0cb550a
And this function is called from here, which is the RIOT/cpu/cortexm_common/vectors_cortexm.c Lines 144 to 156 in 0cb550a
Now... why does RIOT/cpu/stm32/periph/adc_wl.c Lines 86 to 92 in 0cb550a
I will create a PR that replaces |
I tested this extensively during the development of #21238 and IMO this is ready to be merged. |
Contribution description
This PR adds ADC support for
nucleo-wl55jc
.Testing procedure
Flash the board using
tests/periph/adc
program. Check if measured values changes when A0-A5 pins areconnected to the 3,3V, GND or to the potentiometer.
@crasbe - could you be so kind and test ADC config once again ;)
Issues/PRs references
PR #20971