Issue with SPI example for the STM32L432
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-12 7: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.
- Labels:
-
STM32L4 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-13 2: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-12 7:49 AM
Hi
edmcs
,Have you proceeded asdescribed in the readme.txt fileand
make the Hardware configuration/connectioncorrectly following the readme file ?
Thanks
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-12 9:30 AM
Blinkey works?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-13 2: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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-13 2:29 AM
Hi JW,
yes i have had blinky working and read from ADC pins etc.. with no issues..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-13 2: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-13 9: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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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..
