Posted on April 13, 2018 at 09:24
STM32CubeMX v4.0
STM32CubeF1 Firmware Package v1.6.1
The following is the code generated by STM32CubeMX.
void MX_GPIO_Init(void)
{
LL_GPIO_InitTypeDef GPIO_InitStruct;
// ...
GPIO_InitStruct.Mode = ...
Posted on March 20, 2018 at 03:55I also have this problem and I found this problem affects not only MODIFY_REG(AFIO->MAPR but also SET_BIT(AFIO->MAPR, e.g. #define __HAL_AFIO_REMAP_USART1_ENABLE() SET_BIT(AFIO->MAPR, AFIO_MAPR_USART1_REMAP)