STM32f407 UART Library

General discussion on mikroBasic PRO for ARM.
Post Reply
Author
Message
hamzazayyad
Posts: 30
Joined: 27 Apr 2012 17:13

STM32f407 UART Library

#1 Post by hamzazayyad » 04 Feb 2021 02:26

Hello,

The interrupt receive for UART1 AND 2 are not working on stm32f407 but its working well on stm32f103
void uart_recive() iv IVT_INT_USART2 ics ICS_AUTO {
if(UART2_Data_Ready()) {
UART2_Read_Text(output,"oK",8); //
USART2_SR.F5=0;
} }

void main () {

EnableInterrupts();
UE_USART2_CR1_bit = 1;
RE_USART2_CR1_bit = 1;
RXNEIE_USART2_CR1_bit = 1;
TXEIE_USART2_CR1_bit = 0;
NVIC_IntEnable(IVT_INT_USART2);

UART2_Init(9600); //****** UART2 :PA2/PA3
while(1)
;
}

hamzazayyad
Posts: 30
Joined: 27 Apr 2012 17:13

Re: STM32f407 UART Library

#2 Post by hamzazayyad » 04 Feb 2021 17:24

can you support plz???

Post Reply

Return to “mikroBasic PRO for ARM General”