AnsweredAssumed Answered

STM32CUBE Problem configuring MISO

Question asked by rubinstein.michael on Mar 9, 2015
Latest reply on Mar 18, 2015 by STM32Cube-T
       
  • CubeMx version: 4.6.0
  •    
  • Target: STM32L152VBTx
I configured SPI1 as a full duplex master.
I put MISO on PE14
Cube 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; 


Outcomes