cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CUBE Problem configuring MISO

mrubinstein
Associate II
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 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; 

1 REPLY 1
stm32cube-t
Senior III
Posted on March 18, 2015 at 11:03

Hello this will be corrected in next STM32CubeMX 4.7 release.