2024-06-18 02: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
2024-06-18 03:24 AM - edited 2024-06-18 03: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 :)!
2024-06-18 03:32 AM
Double check the clock polarity and phase and also please post pin configuration
2024-06-18 04:03 AM
2024-06-18 04:14 AM - edited 2024-06-18 04: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 :)!