2026-03-23 1:57 PM
Hello Community,
I tried with different boards (073, 093, 533, 401) to work with the SPI1 or SPI2.
I used the examples, but there is no clock on an SPIx clock pin.
e.g. HAL_SPI_Transmit(&hspi1, SpiData, 2, 100);
Has anybody a working STM32Cube porject to load in the STM32CubeIde
for an SPI only master (no slave no DMA) in the send modus via MOSI pin.
Thank you
Michael
2026-03-23 2:35 PM
The STM32CubeMX examples work. Perhaps start there.
2026-03-24 9:33 AM
Thank you for your hint Super user.
I used all the availabe examples. Nothing of them worked.
I used also different NUCLEO bords.
Normaly that should be an easy topic to work as master and use only SPI_CLK and SPI_MOSI.
So I am interested on a complete STM32Cube project that I can import as .zip file.
With a working reference should be given no problem.
I used following NUCLEO bords:
- STM32F401
- STM32C092
- STM32H533
- STM32U575
I used the configuration tool and checked the produced code with the examples code in the internet.
It seems that the code is the same.
Best regards
Michael
2026-03-24 10:08 AM
If you can't get any of the existing examples to work, why do you think a different example is going to work? It's just busy work. If I load up a CubeMX example and show the CLK pin toggling on a scope, is that going to help you?
Pick an example and a board. Show what you've done, show how you've observed it "not working". Use the Example Selector in STM32CubeMX to load an example into STM32CubeIDE and run it.
2026-03-25 11:45 AM