cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with SPI example for the STM32L432

eddie McS
Associate III
Posted on April 12, 2017 at 16:04

Hi,

I have an STM32Nucleo board with the STM32L432 chip.

I am currently trying to get the SPI example working without success.. 

STM32Cube_FW_L4_V1.7.0\Projects\STM32L432KC-Nucleo\Examples\SPI\SPI_FullDuplex_ComPolling

I am using the System workbench platform to compile and build the example however when i actually run the example i see nothing(one spike sometimes) on the SPI clock line PA5 and transmission fails..

Has anyone successfully ran this example code before? 

Thanks

Ed

#stm32l432
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on April 13, 2017 at 09:43

just looks like the SPI is not being configured correctly..

Then read out and post the content of SPI registers and the relevant GPIO registers.

JW

View solution in original post

7 REPLIES 7
Imen.D
ST Employee
Posted on April 12, 2017 at 16:49

Hi

edmcs

,

Have you proceeded asdescribed in the readme.txt fileand

make the Hardware configuration/connectioncorrectly following the readme file ?

Thanks

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on April 12, 2017 at 18:30

Blinkey works?

JW

Posted on April 13, 2017 at 09:28

Hi Imen, thanks for the reply.. Yes i have triple checked the readme file and ensured the connections are correct.. just looks like the SPI is not being configured correctly..

Posted on April 13, 2017 at 09:29

Hi JW,

yes i have had blinky working and read from ADC pins etc.. with no issues.. 

Posted on April 13, 2017 at 09:43

just looks like the SPI is not being configured correctly..

Then read out and post the content of SPI registers and the relevant GPIO registers.

JW

Posted on April 13, 2017 at 16:10

Hi JW

So, checked the GPIO/SPI registers and all look fine except the 'transmission buffer empty' register which is constantly high meaning nothing is in the transmission buffer so obviously SPI has nothing to send.. Just not sure why the buffer is not been populated..

Posted on April 13, 2017 at 17:23

Although if i short MOSI MISO and debug i get data on the data register.. Just seems to be related to the Clock not clocking out the data..