2017-04-12 07:04 AM
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
#stm32l432Solved! Go to Solution.
2017-04-13 02:43 AM
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
2017-04-12 07:49 AM
Hi
edmcs
,Have you proceeded asdescribed in the readme.txt fileand
make the Hardware configuration/connectioncorrectly following the readme file ?
Thanks
Imen
2017-04-12 09:30 AM
Blinkey works?
JW
2017-04-13 02:28 AM
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..
2017-04-13 02:29 AM
Hi JW,
yes i have had blinky working and read from ADC pins etc.. with no issues..
2017-04-13 02:43 AM
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
2017-04-13 09:10 AM
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..
2017-04-13 10:23 AM
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..