arduino / arduino/ArduinoCore-arc32
SPI.beginTransaction allows SPISettings faster than 8 MHz
- Dominant language
- C
- Stars
- 330
- Forks
- 281
- PR merge metrics
- No merged PRs in 30d
Description
The SPI port on Arduino 101 does not properly receive MISO input when the clock is configured faster than 8 MHz. However, SPI.beginTransaction() does not properly limit the speed to 8 MHz when a program attempts to configure higher clock speeds.
I added a workaround in my work on the Ethernet library.
https://github.com/PaulStoffregen/Ethernet/commit/d7155e132c15823c7314e545bf2ae39ee1c27a75
I understand Arduino 101 is discontinued and nobody is likely to ever update the SPI library or other code. But created this issue to document the problem. Hopefully it'll help anyone else who tries to support SPI-based libs on Arduino 101.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with SPI.beginTransaction() and SPISettings, then inspect the Ethernet workaround commit linked in the report. Reproduce the Arduino 101 behavior above 8 MHz and trace where the requested clock is applied. Done means unsupported speeds are limited to 8 MHz and the behavior has a regression check.
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
- Needs clarification
- Newbie friendliness
- 32/100