cancel
Showing results for 
Search instead for 
Did you mean: 

stm32l0 serial2 not responding to interrupts on PA3

sgabran
Associate III

Hi

I configured UART-2 to respond to interrupts.

If i use the RealTerm to write to the COMPORT of the STM (through the USB cable), the ISR works.

But, if I use usb-uart adaptor connected directly to PA3 (the UART-2 Rx pin), the ISR is not called.

If I replicate the same to UART-1, things work as expected.

Any clue what can be wrong ?

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions

Yes, you will still be able to program it, but the VCP line will no longer work.

The VCP isn't used for any programming functionality.

You'll need to take off SB28 so the line isn't driven by ST-Link anymore and you can drive it externally.

TDK_0-1693054976589.png

 

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

6 REPLIES 6
TDK
Guru

> Any clue what can be wrong ?

Probably you're using a nucleo board and "PA3" on the connector isn't connected to the chip. Are you connecting it via the D0 header pin?

TDK_0-1692995594054.png

PA3 should be connected either to st-link VCP or to your USB-UART adapter, but not to both. You shouldn't have two things trying to drive it.

If you feel a post has answered your question, please click "Accept as Solution".
sgabran
Associate III

yes, I am using the LoRa kit. We don't have access to UART-4-Rx or UART-5-Rx ( or Tx).

Is there a way we can connect PA3 to the chip ? any modification we can do ?

thanks

Which LoRa STM32L0 board ?

https://www.st.com/en/evaluation-tools/b-l072z-lrwan1.html

https://www.st.com/en/evaluation-tools/p-nucleo-lrwan1.html

 

Go to the CAD Resources Tab, pull a schematic, trace the wire, check solder-bridge options

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Which part number are you using? Helps to put that in the opening post so the answers can be more informed.

If you feel a post has answered your question, please click "Accept as Solution".
sgabran
Associate III

Hi, we are using the B-L072Z-LRWAN1.

So I think to be able to communicate directly with UART-2, I have to modify the eval-kit and desolder the bridge to STLink. But would I still be able to program the kit through STM-Cube ?

Thanks for your help

Yes, you will still be able to program it, but the VCP line will no longer work.

The VCP isn't used for any programming functionality.

You'll need to take off SB28 so the line isn't driven by ST-Link anymore and you can drive it externally.

TDK_0-1693054976589.png

 

If you feel a post has answered your question, please click "Accept as Solution".