2023-04-12 01:22 AM
SPI communication on STM32H7
Working on interfacing Nucleo-H7A3 to COMX-CN-FB evaluation board which embedded netX made by Hischer using SPI interface.
Using SPL's SPI Transmit & Receive library, I implemented and proved the SPI data transmit & receive and confirmed SCK, MISO, MOSI, and SS signal on the Nucleo-H7A3 evaluation board.
And then, I transformed the source code for the Nucleo-H7A3 evaluation board but did not get the expected results on the oscilloscope. What did I miss out on configuring SPI, and what is this phenomenon induced from?
Please refer to the screenshot of the SPI oscilloscope waveform on the Nucleo-H7A3 evaluation board and on the Nucleo-F446 evaluation board in the attachment file.
2023-04-12 07:00 PM
The SPI IP generation/version is different between F4 and H7. HW Fifo being one difference in the data flow.
2023-04-13 01:41 AM
Thank you for your reply.
What are there differences between F4 and H7 for SPI IP generation?
And where can I get some reference materials for SPI implementation of H7?
2023-04-13 07:01 AM
See the STM32H7 online training
They don't have such slides on 'F4. May be the 'L4 slides could help.
https://st-onlinetraining.s3.amazonaws.com/STM32L4_Peripheral_SPI_interface_(SPI)/index.html
2023-04-13 08:59 AM
another problem could be the cache...
just try: D-cache off.