Question
stm32f411c - No VCP-acceptance - usart2 initialisation under linux ...
Good Morning,
when I use the following short function for initialisation - no VCP is detected under Linux:
void USART2_Init(void){
RCC->APB1ENR|=RCC_APB1ENR_USART2EN;
RCC->AHB1ENR|=RCC_AHB1ENR_GPIOAEN;
... ?!?!
GPIOA->AFR[0]=0x0700;
GPIOA->MODER|=(1<<5);
GPIOA->MODER&=~(1<<4);
USART2->BRR = 0x0681;
USART2->CR1 |=0x2008;
}
Is it a RCC reset register issue?
Best regards
TIMBO
