Skip to main content
Visitor II
June 18, 2024
Question

No data on MOSI spi STM32H7

  • June 18, 2024
  • 4 replies
  • 1602 views

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. 

DavidWahlberg_0-1718704055934.png

SPI in cubeMX is: 

DavidWahlberg_1-1718704094252.png

 

Any suggestions?

Friendly Regards, David

    This topic has been closed for replies.

    4 replies

    Technical Moderator
    June 18, 2024

    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 :)!

    Graduate
    June 18, 2024

    Double check the clock polarity and phase and also please post pin configuration

    Visitor II
    June 18, 2024

    Thank you for your reply!!
    The pin configuration from cubeMx:

    DavidWahlberg_0-1718707969420.png

    DavidWahlberg_1-1718708016686.png

    * I only scope SCK, MISO and MOSI on logic analyzer.

    Setup is attached (_1781.png).

    Technical Moderator
    June 18, 2024

    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 :)!

     

    Visitor II
    December 11, 2025

    Is it working on your side? I met up with the same issue.