-
Notifications
You must be signed in to change notification settings - Fork 3k
SPI::write: fix number of transmitted symbols. #9624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Maybe API should be updated to remove this "fixed" (not useful) parameter ? |
This parameters are required by the new SPI HAL API: |
@mprse Looks like you have some formatting issues, can you please take a look at the astyle failures. |
Style issue has been fixed. |
@ithinuel Final approval? Ci triggered meantime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Test run: FAILEDSummary: 3 of 8 test jobs failed Failed test jobs:
|
|
The build error is very odd. We got mbed-os build error for
@0xc0170 @cmonr Why |
@mprse Could this line be the source of problems? https://github.com/ARMmbed/mbed-os/blob/feature-hal-spec-spi/targets/targets.json#L3748 When the feature branch was last rebased, was it tested against CI? |
I don't think so. The branch was recently rebased and CI has passed here last time: I have now idea what is causing this CI failures 😢 |
As it was few days back, I restarted CI and lets review it to resolve the failure if any |
Test run: FAILEDSummary: 3 of 8 test jobs failed Failed test jobs:
|
@0xc0170 This one is ready. |
Test run: FAILEDSummary: 1 of 7 test jobs failed Failed test jobs:
|
The error looks not related (
|
@ARMmbed/mbed-os-test ^^ - this argument was added recently, does this feature branch needs rebase ? @mprse how old is spi spec? |
About 2-3 weeks. Was green for a few days ;-) |
Can you test locally? If it is all ok, we can restart CI after 5.12.2 release candidate |
ci started |
Test run: FAILEDSummary: 2 of 11 test jobs failed Failed test jobs:
|
@mprse please take a look at the test failures. |
The results are unexpected. @adbridge can we try again with CI, to check if the results are constant. |
ci restarted |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
We got here
I tried to investigate what is causing this failure, so I cloned |
Restarted cloud-client-test |
It looks like its ok now! |
This one is ready to go. |
I restarted CI before I realized it was waiting for only cloud 🙄 |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Failures seem unrelated to this PR so will restart ci |
Description
This is a fix to issue reported by @jeromecoutant : spi communication problem with
ism43362
module on spi feature branch.It looks like there is a bug in
SPI::write
. Independently on symbol size number of transferred symbols should be always 1. This PR should fix this problem.mbed test -t GCC_ARM -m DISCO_F413ZH -n tests-netsocket-dns -v
Please note that to run the test spi support for
DISCO_F413ZH
needs to be enabled.Pull request type
Reviewers
@jeromecoutant @ithinuel