Skip to main content
wxuan.1
Associate II
April 3, 2023
Solved

How to receive the GPO signal via using STM8L MCU?

  • April 3, 2023
  • 3 replies
  • 1110 views

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?

    This topic has been closed for replies.
    Best answer by Rene Lenerve

    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.

    3 replies

    Tesla DeLorean
    Guru
    April 3, 2023

    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    wxuan.1
    wxuan.1Author
    Associate II
    April 3, 2023

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

    Rene Lenerve
    Rene LenerveBest answer
    ST Employee
    April 3, 2023

    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.