cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube SPI project for download

MiK1
Associate II

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

 

 

4 REPLIES 4
TDK
Super User

The STM32CubeMX examples work. Perhaps start there.

If you feel a post has answered your question, please click "Accept as Solution".
MiK1
Associate II

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

 

 

TDK
Super User

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.

If you feel a post has answered your question, please click "Accept as Solution".
MiK1
Associate II

I go now the other way. I send you my project.

With all the mentioned hardware I had no SPI Clock on the pin.

If its work on your platform probably then ist something with my hardware.

Thank you.

Michael