Skip to main content
mrubinstein
Associate II
March 9, 2015
Question

STM32CUBE Problem configuring MISO

  • March 9, 2015
  • 1 reply
  • 577 views
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; 

    This topic has been closed for replies.

    1 reply

    stm32cube-t
    ST Employee
    March 18, 2015
    Posted on March 18, 2015 at 11:03

    Hello this will be corrected in next STM32CubeMX 4.7 release.