Uart Rx interrupt not working if clock for GPIOD is enabled
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-20 6:33 AM
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
Labels:
- Labels:
-
GPIO-EXTI
-
Interrupt
-
UART-USART
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-20 7:57 AM
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..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-25 8:27 AM
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.