cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with UART1 for NucleoF103

SS.Sagar
Associate III
Posted on October 01, 2016 at 19:46

Hi,

I am using Nucleo F103 and Keil compiler. I m facing some problem while receiving data. In debug i could see data is receiving in DR register. But data is not getting transfer in other register. Even breakpoint is also not stoping at that point. I gave following condition

tempp = huart1.Instance->SR;
if(tempp & 0x00000020 == 0x00000020)
{
[Breakpoint] dataa = (uint32_t)huart1.Instance->DR;
rx_sign = 1; 
}

I gave breakpoint in if condition. it is not at all stopping there. Even i could see SR register having proper value. Even i tried with UART rx interrupt then also it was not getting hit in handler. plz help me with this problem with reception. #uart #nucleo #stm32
1 REPLY 1
Amel NASRI
ST Employee
Posted on October 06, 2016 at 15:50

Hi hobb.epy,

Are you facing same issue if you test the example STM32Cube_FW_F1_V1.4.0\Projects\STM32F103RB-Nucleo\Examples\UART\UART_TwoBoards_ComPolling?

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.