No data on MOSI spi STM32H7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-18 2:49 AM
Hi i am struggling to make SPI work on my nucleo-h723z board. I am using Cubemx to configure and i press when asked to used the default setup for the nucleo board when creating the project.
CubeIDE is v. 1.15.1
CubeMX is v. 1.11.1
my code is very basic:
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
uint8_t address = 0x80;
HAL_SPI_Transmit(&hspi4, &address, 1, 100);
HAL_Delay(1000);
}
I have put a logic analyzer on the clock, MOSI and MISO, but no matter what, I can only see the clock signal.
SPI in cubeMX is:
Any suggestions?
Friendly Regards, David
- Labels:
-
SPI
-
STM32CubeMX
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-18 3:24 AM - edited ‎2024-06-18 3:37 AM
Hello,
Are you sure about the GPIO pin you configured in CubeMx for MOSI and what you probed with the analyzer? are they the same?
Are you sure you have used the correct Analyzer channel? I sometime use the incorrect channel :)!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-18 3:32 AM
Double check the clock polarity and phase and also please post pin configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-18 4:03 AM
Thank you for your reply!!
The pin configuration from cubeMx:
* I only scope SCK, MISO and MOSI on logic analyzer.
Setup is attached (_1781.png).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-18 4:14 AM - edited ‎2024-06-18 4:15 AM
Hello,
Could you please double check my points above?
1- Are you sure you connected PE6 to channel 1 of the analyzer?
2- Are you sure you have used the correct analyzer channel? I sometime use the incorrect channel :)!
