Skip to main content
Aswin Paranji
Associate
January 4, 2017
Solved

ST25 m24sr64y Interrupt

  • January 4, 2017
  • 5 replies
  • 1257 views
Posted on January 04, 2017 at 10:39

Hi,

We have integrated NFC chip to the beagle bone custom board. We would like to know how to use interrupt  which when triggered by phone allows our application in linux to read from the chip.Appreciate if you can provide some sample code. It has to use I2C protocols.

Thanks

Aswin

This topic has been closed for replies.
Best answer by Ronald B.
Posted on January 06, 2017 at 10:40

The board you mention is not based on a STmicroelectronics MCU, so the answer is no.

5 replies

Ronald B.
Visitor II
January 4, 2017
Posted on January 04, 2017 at 13:27

Hello Aswin,

I suggest you have a look to the M24SR-DISCOVERY board software, here:

http://www.st.com/content/st_com/en/products/embedded-software/st25-nfc-rfid-software/stsw-m24sr001.html

 

This software defines a M24SR_ManageGPO function to initialize the M24SR GPO.

In the M24SR-DISCOVERY demo, after calling this function, the application polls on the PIO connected on the M24SR GPO.

Please note, that the STSW-M24SR001 is a STM32 software (so not a Linux driver).

Regards.

Aswin Paranji
Associate
January 5, 2017
Posted on January 05, 2017 at 11:22

Hi

What you are suggesting is to poll. What I need is to trigger to be used and a call back function to be called.

I have gone through the software and trying to figure out how to call interrupt.

Please advice me how to use triggers.

Thanks

Aswin Paranji

Ronald B.
Visitor II
January 5, 2017
Posted on January 05, 2017 at 15:09

Hi Aswin,

Your request actually depends on the MCU & software framework you are using.

The following link (x-cube-nfc1) provides an example based on the STM32Cube framework:

https://my.st.com/content/my_st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-software/x-cube-nfc1.html

 

The GPIO used to detect the transitions on the M24SR GPO is configured by the M24SR_GPOInit function (main.c), the corresponding EXTI interrupt is enabled in the same function.

The original IRQ callback is defined in the stm32f4xx_it.c: function EXTI9_5_IRQHandler.

And the IRQ is redirected to the application GPO handler: HAL_GPIO_EXTI_Callback in stm32f4xx_hal_msp.c.

Does it help with your request?

Regards.