cancel
Showing results for 
Search instead for 
Did you mean: 

Uart Rx interrupt not working if clock for GPIOD is enabled

yafisdamda
Associate II
Posted on February 20, 2016 at 15:33

Hello.

I am using a custom board with STM32F030R8 as my dev platform. I am using Uart2 to configure the board. The RX interrupt is enabled to receive data. i am using PD2 as a GPIO.

When i enable peripheral clock to GPIOD, i am not getting uart rx interrupt but uart tx works fine. But when i do not enable the GPIOD peripheral clock everything works fine.

I have no idea what is the problem here...

Is there something i am missing here?

#interrupt #stm32 #uart #gpiod
2 REPLIES 2
Posted on February 20, 2016 at 16:57

Show the complete source that demonstrates this, and it might be more apparent why it is occurring.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
yafisdamda
Associate II
Posted on February 25, 2016 at 17:27

Apologies for the late response..was caught up with some other stuff.

I suspect it to be a hardware issue. Here is the deal.

a max-485 chip is connected via UART2. PD2 is connected to the control pins of the 485 chip, i.e driver output enable and receiver output enable. So when i enable the clk for GPIOD, i dont receive anything over the UART.