2022-12-19 07:54 PM
Hello, I am trying to open a project that can turn on the low power MCU stm32l031 with ANT7-T-25DV64KC while turning high and low periodically for GPO pin of the MCU. I tried many different ways but still not done with any of them (steval code and using NFC4 and 7 provided by stm32cubeide).
Would you please suggest me for any reference or sample for St25DV-i2c?
Solved! Go to Solution.
2023-01-30 09:30 AM
Hi @WPARK.1,
Great that you solved your issue, Happy for you.
I hope this can help you.
Kind Regards.
2023-01-03 07:10 AM
Hello,
Just to be sure I understand what you want to do:
Best regards.
2023-01-03 06:41 PM
Actually, I donot need any data to read. I want to turn on the MCU using the EH of ST25 and when RF is detected, GPO makes some PWM kind of signal.
Thank you for reading.
2023-01-04 12:01 AM
Hello,
There is 2 ways of using EH: on-demand or at boot.
On demand means that you activate/deactivate it with a command from the reader. For this, you need to write a 1 into the EH_CTRL_Dyn register.
At boot means that every time the RF field is rising, the EH will be activated automatically. To enable this mode, you need first to set the EH_MODE configuration byte to 0 (you need first to present the RF configuration password to be able to write this).
Please keep in mind that EH power delivery is small and very dependent on the distance with the reader and on antennas size and coupling. So do not try to power too many thing with this.
For GPO, there is a RF command to toggle the level of the GPO pin. It is the ManageGPO command. It allows the RF reader to change level of the GPO pin on demand.
Best regards.
2023-01-04 01:53 AM
Yes, I am aware of that as I ran this kind of project with Arduino before using ST25 Arduino library. However, I realized that with Arduino, it is not possible to make a batteryless circuit as Atmega328 is not LP MCU. Therefore, I would like to make a project similar with STEVAL-SMARTAG1 with stm32l031. But it is not easy to find any reference project or sample code that can be operated in STM32CubeIDE.
Thank you for reading.
2023-01-04 04:06 AM
Hi @WPARK.1,
Unfortunately we do not have ready to use examples using STM32L031 with STM32CubeIDE.
I think the best way would be to start a new stm32 project in STM32CubeIDE with the correct MCU selected. And then include source files from NFC7 examples.
You can also start a new STM32 project using ioc file from SMARTAG1 project (which uses STM32L031) but this project is configure to work with other components (be careful that SMARTAG uses ST25DVxxK and not ST25DVxxKC, they are quite similar but some registers are different and Ref IC is not identical, so you'll need to get ST25DVxxKc component drivers from NFC7 package to use with your ANT7-T-25DV64KC).
It is not clear what you would like to do, here are some information about feature you mention on previous posts:
Maybe if you could give more information on your project it would be easier to help.
Kind Regards.
2023-01-04 08:54 AM
Hello,
First of all, thank you for your clarification.
For my project, I want to collect the power from the antenna of the NFC chip (it is the reason why I am mentioning EH of ST25) to turn on the LP MCU (STM32L031). Then, through I2C, I want to make a PWM kind of digital signal at GPO of the NFC chip to periodically turn on and off a simple device (I am thinking of 2 ways actually, by setting a timer I can high and low the GPO of NFC or if the power collected by the antenna is enough, I can directly use LP MCU digital pin to do it).
Actually, I tried NFC7 package before, but I failed to modify code for STM32L031 (the original sample code triggered by reading button input so I tried to make it always on when MCU is booted but after modification, it cannot escape from a specific code).
Thank you for reading.
2023-01-04 08:55 AM
Hello,
First of all, thank you for your clarification.
For my project, I want to collect the power from the antenna of the NFC chip (it is the reason why I am mentioning EH of ST25) to turn on the LP MCU (STM32L031). Then, through I2C, I want to make a PWM kind of digital signal at GPO of the NFC chip to periodically turn on and off a simple device (I am thinking of 2 ways actually, by setting a timer I can high and low the GPO of NFC or if the power collected by the antenna is enough, I can directly use LP MCU digital pin to do it).
Actually, I tried NFC7 package before, but I failed to modify code for STM32L031 (the original sample code triggered by reading button input so I tried to make it always on when MCU is booted but after modification, it cannot escape from a specific code).
Thank you for reading.
2023-01-04 09:06 AM
Hi,
"Then, through I2C, I want to make a PWM kind of digital signal at GPO of the NFC chip to periodically turn on and off a simple device (I am thinking of 2 ways actually, by setting a timer I can high and low the GPO of NFC or if the power collected by the antenna is enough, I can directly use LP MCU digital pin to do it)."
Be aware that it is not possible to make ST25DV's GPO pin toggle from I2C interface of the ST25DV. It is only possible using an RF command or from specific RF events. There is no timer inside the ST25DV to toggle GPO pin like a PWM.
So you will have to do the PWM from a MCU digital pin.
Best regards.
2023-01-04 09:19 AM
Hello,
I see. So I need to turn on the MCU using antenna first and then, through I2C, I need to do EH for providing stable power for LP MCU, then by setting a timer on MCU, I can make periodic control on the digital pin of MCU.
Thank you for reading.