arduino / arduino/ArduinoCore-mbed
NANO 33BLE REV2 SENSE SPI/GPIO issue
- Dominant language
- C
- Stars
- 411
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I believe I have found an issue with the NANO33 BLE REV2.
I am using Sense version but suspect this may affect standard version too.
Issue I have is that after using the SPI port to talk to an SD card, I am then no longer able to use GPIO pins even after SPI.end() has been called.
Identical code on Nano 33 IOT and original Nano allows access to GPIO after call to SPI.end().
It appears that NRF_SPIM2 enable register is not set to 0 by SPI.end() as such SPI is not disabled.
If I set manually set this 0 zero to disable the SPI, I can set the GPIO pins as desired.
Issue was raised on Arduino Forum:
[https://forum.arduino.cc/t/how-to-switch-off-sd-card/1409367](url)
Suggestion on forum was made to raise issue here.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the SD-card SPI sequence described in the issue and compare the NANO 33BLE REV2 behavior with the Nano 33 IoT and original Nano. Inspect the SPI.end() entry point and the NRF_SPIM2 enable register, using the forum report as additional context. Done means GPIO access works after SPI.end() without manually changing the register.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100