-
Notifications
You must be signed in to change notification settings - Fork 2k
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
periph/spi: Leftovers from SPI rework in #4780 #6437
Comments
Nice! |
@ks156 this is a gentle reminder to test SPI on the WeIO board. Please report errors here or better, check the box in the issue description on success. You can find a procedure that we used for testing SPI drivers in this table |
Please add to the list that the |
Dammit! Totally forgot that one. Thanks for the hint |
@lebrush no problem, I can do the adaption quickly now, if you are volunteering to test it (as I don't have the device...). |
We have one here |
and here is the fix: #6478 |
build the test-app with |
Actually, the |
@PeterKietzmann I'm sorry but I won't be able to test the SPI now ... I don't have an oscilloscope under the hand anymore, and I don't currently have SPI devices for tests... |
Tested encx24j600 on nucleo-f334, works like a charm after disabling of onboard led (#6501) |
@kaspar030 did you also test it on a stm32f4discovery board? |
@haukepetersen when I run SPI (with |
BTW: Same applies to |
I unset the box for lis3dh because of #6567 |
@gebart I commented out the complete line for powering off [1], but no luck. [1] https://github.com/RIOT-OS/RIOT/blob/master/cpu/kinetis_common/periph/spi.c#L155 |
@BytesGalore Sorry, I meant https://github.com/RIOT-OS/RIOT/blob/master/cpu/kinetis_common/periph/spi.c#L71. Leave the MDIS stuff in. If it doesn't make a difference, try removing both the SIM_SCGC line and the SPI_MCR MDIS line. |
I think turning off the clock domain for the SPI is a wrong move on Kinetis. It doesn't affect the power consumption as far as I can measure, and it have caused issues on multiple occasions. |
It doesn't affect power consumption positively on SAMR21 either... |
@gebart I'd like to get rid of this old-timer. The only uncovered points are:
Do you have a chance to test the adt7310? I would guess that after 1.5 years a SPI defect in this driver would have already popped up. For the latter issue I propose to cover it within #6567. |
Fixes a problem with hardware CS when using slow SPI speeds, mentioned in RIOT-OS#6437 (comment)
My adt7310 breakout is in a box somewhere but I will not be able to get to it until August. Regarding the Kinetis SPI module disable issue: #9438 |
Fixes a problem with hardware CS when using slow SPI speeds, mentioned in RIOT-OS#6437 (comment)
Fixes a problem with hardware CS when using slow SPI speeds, mentioned in RIOT-OS#6437 (comment)
Tested on the adt7310 with nucleo-f401re, aside from not supporting the 10MHz in the driver test (changed to 400kHz) it seemed to pass. Can we close? |
Yes, thank you very much! |
Fixes a problem with hardware CS when using slow SPI speeds, mentioned in RIOT-OS#6437 (comment)
This issue acts as a place to collect and track leftovers and TODOs from the SPI rework done in #4780.
Test peripheral driver on lpc11u34EDIT: Do the prformance analysis one SPI hardware testing is around
Performance analysis/optimization for all SPI driversatmega_commoncc2538kinetis_commonlpc11u34lpc2387msp430fxyznrf5x_commonsam21_commonsam3stm32_commonThe text was updated successfully, but these errors were encountered: