cancel
Showing results for 
Search instead for 
Did you mean: 

How to receive the GPO signal via using STM8L MCU?

wxuan.1
Associate II

Hello.I have a question.I use the STM8L MCU to design my product.In the product, I also the ST25DV04K tag. Now I cannot receive the GPO signal in the stm8l15x_it.c.In the official demo about STM32F4,GPO signal is received by the function called BSP_GPO_Callback.But in my STM8L,I cannot use the official demo.So,how to solve the problem?

1 ACCEPTED SOLUTION

Accepted Solutions
Rene Lenerve
ST Employee

Hi @wxuan.1​,

There is no example with ST25DV and STM8L available on st.com, all examples are provided with STM32, but you can find here examples with STM8L and EXTI, Then you need to use a global variable (As buttons in examples) in the interrupt handler (and as it is done in BSP_GPO_Callback).

Hope this can help you.

Best Regards.

View solution in original post

3 REPLIES 3

Figure out how to get an interrupt from a GPIO pin. Perhaps find an example and apply it here.​

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

In fact,I can not find a simple example about ST25DV for STM8L.

Rene Lenerve
ST Employee

Hi @wxuan.1​,

There is no example with ST25DV and STM8L available on st.com, all examples are provided with STM32, but you can find here examples with STM8L and EXTI, Then you need to use a global variable (As buttons in examples) in the interrupt handler (and as it is done in BSP_GPO_Callback).

Hope this can help you.

Best Regards.