AnsweredAssumed Answered

STM32L100RBT6 USART1 RAMAP PB6-7

Question asked by galazka.mariusz on Jun 23, 2014
Latest reply on Jun 24, 2014 by galazka.mariusz
Hello,
I have problem with USART1. Unfortunately I can't use dedicated pins (PA9-10). Since few days I'm trying to find some information about pin remapping in STM32L100. There is no MAPR register like in STM32F1. How can I resolve this problem? Where can I found more information? I use Std library. Here is my USART1 initialization code below:

   
  USART_InitTypeDef USART_InitStruct;
 
  RCC->AHBENR|=RCC_AHBENR_GPIOBEN;
  RCC->APB2ENR|=RCC_APB2ENR_USART1EN;    
  gpio_pin_cfg(GPIOB, 6 , GPIO_AF7_PP_10MHz);             //USART1 Tx
  gpio_pin_cfg(GPIOB, 7 , GPIO_AF7_PP_10MHz);             //USART1 Rx
   
  USART_InitStruct.USART_BaudRate=9600;                                                      
  USART_InitStruct.USART_HardwareFlowControl=USART_HardwareFlowControl_None;
  USART_InitStruct.USART_Mode=USART_Mode_Tx;
  USART_InitStruct.USART_WordLength = USART_WordLength_8b;
USART_InitStruct.USART_StopBits = USART_StopBits_1;
USART_InitStruct.USART_Parity = USART_Parity_No ;
  USART_Init(USART1, &USART_InitStruct);
  USART_Cmd(USART1, ENABLE);

Outcomes