-
Notifications
You must be signed in to change notification settings - Fork 151
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
SPI - odd sequence at end of data #553
Comments
@eh2k Does the odd sequence at the end happen when building your app for the system bootloader instead of with BOOT_SRAM, or is the issue dependent on it being a bootloader application? |
yes - the problem also occurs with APP_TYPE==BOOT_NONE (flash mode). Here is my test program where the display just works:
|
found out the reason: Line 278 in 07a813a
with |
My current issue/findings:
I have the SM rev 3, and with the current libDaisy and BOOT_SRAM the display stays black when I control it with the hardware SPI transport. I only got this to work with SpiHandle::Config::BaudPrescaler::PS_128 and if I used the ScopedIrqBlocker around the display.Update(). As far as I can remember, the ScopedIrqBlocker was only necessary when executing hw.StartAudio(). I also examined the whole thing with a LogicAnlyser and found that at the end the SPI sequence is somethig strange with the clock (at the end there is an unnecessary clock change).
I also noticed that the SPI ports D9, D8 are read by the ADC. I have removed these testwise from the ADC initialization (without success).
After some googling I found the stm32h7 errata, where it says that there are SPI problems at high clock rates. After further investigation I found out that the whole clock configuration in the System::Init() is skipped in the BOOT_SRAM case, or probably done in the bootloader (closed source).
Maybe there is still some other solution, but I thought that the SoftwareSPI implementation might be useful in general.
@GregBurns - Well - I recently started using the internal MidiUSBHandler - but i think it didn't work otherwise either.
Originally posted by @eh2k in #551 (comment)
The text was updated successfully, but these errors were encountered: