Repository navigation
fix(autoresearch): route the HSPI MISO pad so spiLoopback captures on hardware (#4942) - #4963
Merged
Merged
Conversation
… hardware
The spiLoopback bench configured only the MOSI/SCK pads, so GPIO12 (MISO) was
never muxed to SPI1 -- the duplex receive read the plain GPIO and returned 0
even with D7->D6 wired. Match the core's SPI.begin(): pinMode MISO/MOSI/SCK to
SPECIAL.
On-device (D1 mini, D7->D6 jumpered, /dev/ttyUSB0):
spiLoopback 32 -> {'sent': 32, 'success': True, 'last_got': 150, 'first_bad': -1}
spiLoopback 8 -> {'sent': 8, 'success': True, 'last_got': 30, 'first_bad': -1}
last_got matches the pattern (31*37+0x1B=150, 7*37+0x1B=30) and first_bad=-1:
byte-exact SPI output capture, verified on silicon.
Refs #4942, #4949.
|
Caution Review failedThe pull request is closed. Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bench muxed MOSI/SCK but not GPIO12 (MISO), so the duplex receive returned 0 even with D7->D6 wired. Now matches the core's
SPI.begin()(pinModeMISO/MOSI/SCK = SPECIAL).On-device (D1 mini, D7→D6 jumpered):
Byte-exact SPI capture, verified on silicon.