arduino / arduino/ArduinoCore-renesas
SPI: SPI.end() before SPI.begin() causes the board to become unresponsive
- Dominant language
- C
- Stars
- 193
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
### Issue:
Calling `SPI.end()` before `SPI.begin()` causes the board to become unresponsive.
### Example:
```cpp
#include
void setup() {
SPI.end();
}
void loop() {
}
```
### Expected behavior
`SPI.end()` should return safely if SPI has not been initialized.
### Hardware
* Arduino UNO R4 Minima
### Core version
* ArduinoCore-renesas 1.6.0
A fix is proposed in #551 .
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the provided Arduino UNO R4 Minima example, then inspect the SPI.end() and SPI.begin() entry points in the ArduinoCore-renesas implementation. Done means calling SPI.end() before SPI.begin() returns safely and the board remains responsive.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100