AnsweredAssumed Answered

Discovery & SPI2

Question asked by crocker.lee on Jul 27, 2015
Latest reply on Jul 28, 2015 by crocker.lee
I'm trying what seems like it should be a simple SPI setup: Using SPI2 in master mode, setting pins PB13...PB15 to AF0, using A8 as a manual chip select. SPI2 is enabled in APB1ENR, all the settings are basically default (only bits set are SSM, MSTR, and or course SPE and BR). When I invoke my xfer function, it waits for TXE, sends data, waits for RXNE, the returns data. Simple polling, no interrupts.

But I am not seeing any signals on PB13...PB15. PB13 should be clock, so that should be the easiest to identify, but it does nothing. My manual chip select A8 is fine, but I never see the clock or an data transfer. I don't think the Discovery board is using PB13 for anything else, and I don't see any code in samples I've looked at (like  STM32Cube_FW_L0_V1.1.0/Projects/STM32L053C8-Discovery/Examples/SPI/SPI_FullDuplex_ComIT/Src) that I'm leaving out. Do I need to turn on another clock or something?