Skip to content

Conversation

@maidnl
Copy link
Contributor

@maidnl maidnl commented Sep 23, 2025

This PR solves #493.
The SPI settings were not updated in the strange context of the issue because the begin() function did update SPI setting without storing the values into the stored SPI settings (stored SPI settings are used to avoid the update of the settings in case new setting are the same of the ones already used).

@maidnl maidnl requested a review from pennam September 23, 2025 15:59
@per1234 per1234 linked an issue Sep 23, 2025 that may be closed by this pull request
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Sep 23, 2025
Copy link
Collaborator

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jampag tested this patch and reported on Arduino Forum that it does indeed fix #493:

https://forum.arduino.cc/t/arduino-r4-spi-cambio-velocita/1383392/5

I just checked with an oscilloscope that the frequency remains the set one and no longer 1MHz.

(translated to English)

@pennam pennam merged commit 5ef3c2a into arduino:main Oct 6, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected SPI Clock Speed Behavior on Arduino R4

3 participants