-
Notifications
You must be signed in to change notification settings - Fork 8.2k
board/shields: x-nucleo-iks01a3: (FIX) use INT2 for LSM6DSO DRDY #20913
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
board/shields: x-nucleo-iks01a3: (FIX) use INT2 for LSM6DSO DRDY #20913
Conversation
|
@avisconti, is that fixing an already known issue ? |
@erwango |
|
@pabigot |
pabigot
left a comment
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.
Works with nrf52_pca10040 and iks01a3 shield. Soft reset and reflash both run without locking up.
|
@avisconti, can you create a matching issue so we can get this in v2.1 ? |
Yes, sure. |
On LSM6DSO sensor the INT1 pin is used for both generating the drdy interrupt and for switching to I3C hotjoin mode just after reset if it is at logical '1' level. If you reset the x_nucleo_shield3 board the LSM6DSO enter in hot join, as INT1 '1' level is preserved by the level shifter. This commit switch to INT2 to generate DRDY interrupt, so that INT1 always remain to logical '0' level. Fixes: zephyrproject-rtos#20933 Signed-off-by: Armando Visconti <[email protected]>
d7c8ef4 to
2c06445
Compare
|
Just repushed including the reference to the #20933 bug in the commit message. |
On LSM6DSO sensor the INT1 pin is used for both generating the drdy
interrupt and for switching to I3C hotjoin mode just after reset if
it is at logical '1' level. If you reset the x_nucleo_shield3 board
the LSM6DSO enter in hot join, as INT1 '1' level is preserved by
the level shifter.
This commit switch to INT2 to generate DRDY interrupt, so that INT1
always remain to logical '0' level.
Fixes: #20933
Signed-off-by: Armando Visconti [email protected]