-
Notifications
You must be signed in to change notification settings - Fork 1.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
esp32s2: spi (and other peripherals?) don't claim pins properly #3715
Comments
I can confirm this bug to be present on other peripherals and not just related to spi. |
Almost certainly related to #3643 |
Actually, looks like I misread - the reset problem will cause conflicts pins that have been released, but it shouldn't allow pins in the claimed array to be claimed again. This could be an issue with the bit shifting in the pin claiming system. |
@microdev1 can you point out specific modules where you have also had this problem? Turns out this was just that the SPI module didn't have pin claiming in it. The other Busio modules have it, as does DigitalIO and AnalogIO, but if you've encountered it elsewhere I can fold a fix into my PR. |
@hierophect I am able to see this on basically all of the io modules. |
Update... Pin claiming seems to work until |
@microdev1 found it, it was a variable size issue with in pin claiming mask operations. |
I noticed that it was possible to create a DigitalIO from some pin while the pin was already in use by an SPI instance:
tested on a kaluga with a 6.1-ish firmware
The text was updated successfully, but these errors were encountered: