cancel
Showing results for 
Search instead for 
Did you mean: 

BUG in stm32f1cube

askari.nima
Associate II
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);

 
3 REPLIES 3
Uwe Bonnes
Principal II
Posted on January 26, 2015 at 19:17

Does that mean that there is a stm32f1cube now?

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
Up vote any posts that you find helpful, it shows what's working..
Posted on January 26, 2015 at 23:33

STM32CubeF1 version 1.0.0 is downloadable from within CubeMX.

It is dated 17-December-2014.