Skip to main content
askari.nima
Associate III
January 25, 2015
Question

BUG in stm32f1cube

  • January 25, 2015
  • 3 replies
  • 685 views
Posted on January 25, 2015 at 09:45

when use i2c and remap pin , __HAL_AFIO_REMAP_I2C1_ENABLE(); function  must be run before

__HAL_AFIO_REMAP_I2C1_ENABLE();

 /**I2C1 GPIO Configuration    

    PB8     ------> I2C1_SCL

    PB9     ------> I2C1_SDA

    */

    GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9;

    GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;

    GPIO_InitStruct.Speed = GPIO_SPEED_LOW;

    HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);

 
    This topic has been closed for replies.

    3 replies

    Uwe Bonnes
    Chief
    January 26, 2015
    Posted on January 26, 2015 at 19:17

    Does that mean that there is a stm32f1cube now?

    Tesla DeLorean
    Guru
    January 26, 2015
    Posted on January 26, 2015 at 21:36

    Does that mean that there is a stm32f1cube now?

    I'd assume it's at beta sites.
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrei Chichak
    Lead
    January 26, 2015
    Posted on January 26, 2015 at 23:33

    STM32CubeF1 version 1.0.0 is downloadable from within CubeMX.

    It is dated 17-December-2014.