Question
STM32CUBE Problem configuring MISO
Posted on March 09, 2015 at 19:27
- CubeMx version: 4.6.0
- Target: STM32L152VBTx
I configured SPI1 as a full duplex master.
I put MISO on PE14Cube configured the GPIO as a standard input.It wouldn't let me set it to Alternate function.I was able to overcome the problem with:// Set GPIOE14 as MISO
GPIOE->AFR[1] |= 0x05 << (14 - 8) * 4; GPIOE->MODER |= 0x02 << 28;