-
Notifications
You must be signed in to change notification settings - Fork 9
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 issue with STM32CubeH7 MCU Firmware Package v1.11.1 #18
Comments
Is it an ii3dwb issue or STM32CUBEH7? |
As far as I can see, this seems an STM32CUBEH7 issue (because it has changed, and iis3dwb driver has not changed), even if it's the iis3dwb that fails and doesn't work anymore. |
After some investigation I have some news, and one question related to iis3dwb. I want to read samples continously without any "wake up" event, and so I configured iis3dwb in "continous mode: if the FIFO is full, the new sample overwrites the older one" (from the datasheet) - see page 31 of AN5444 application note. When I receive a FIFO_FULL interrupt I read all the samples. |
Yes, of course. If a new FIFO_FULL interrupt is generated during the previous handling you may lose it and block everything. |
Sorry for my bad explanation when I wrote:
I mean that I set a watermark (WTM) and so I configured INT1 to give FIFO_WTM_IA interrupt (when I wrote FIFO_FULL I meant WTM_FULL, since I use WTM). But if I'm too slow in reading samples, is there a risk of blocking everything in this case too? |
I've just discovered that even if iis3dwb driver works well with STM32H7 if MCU Firmware Package is v1.10.0, after I upgraded the firmware packgae to v1.11.1 - and no other change to my source code - iis3dwb device started having some issues on the SPI communication.
Basically, there are some conditons that stops then device from answering on the SPI.
One of them is using another SPI peripheral on the MCU to write into an external EEPROM.
After my investigation, what happens is similar to the issue described STMicroelectronics/STM32CubeH7#249 but it's 10 months old and no patch has been provided.
I had to switch back to v1.10.0
The text was updated successfully, but these errors were encountered: