arduino / arduino/ArduinoCore-mbed

SPI frequency setting is not accurate in Portenta H7

Open
#317 0 comments 0 reactions 0 assignees View on GitHub
Portenta
Dominant language
C
Stars
411
Forks
225
PR merge metrics
No merged PRs in 30d

Description

For example the following statement
SPI.beginTransaction (SPISettings (1000UL * 1000, MSBFIRST, SPI_MODE0)) ;
should set the SPI to 1MHz but the actual measured frequency is 631KHz

with the following settings
SPI.beginTransaction (SPISettings (4000UL * 1000, MSBFIRST, SPI_MODE0)) ;
SPI is set to 4MHz but the actual measured frequency is 2.4MHz

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported Portenta H7 behavior with the two SPI.beginTransaction(SPISettings(...)) examples and compare the measured frequencies with 1 MHz and 4 MHz. No source file or test is named; done means the configured SPI frequencies match the requested values, with a regression test if the project provides one.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.