cancel
Showing results for 
Search instead for 
Did you mean: 

PN532 NFC/RFID module with STM32F103

huonglq91
Associate II
Posted on September 22, 2014 at 12:23

Hi all.

I have a project that need to connect a NFC reader/writter to STM32F103. The MCU module is designed myself so I will not mention about some modules like Arduino,...

As far as I know, PN532 is a good choice for my project.

But I have some doubts, please clarify me.

1. For some PN532 module like PN532 NFC/RFID module of elechouse,... What is the best choice for connection between NFC module and STM32F103? I am considering between HSU(High Speed Uart), SPI, I2C.

2. I don't see any PN532 NFC/RFID libraries for STM32F103. I mean that libraries is commands that STM32F103 use to control PN532 module operation. Does anyone have this labraries? If yes, how can I use this libraries for my project?

I'm in the initial stages of project, don't know what i should do, and what is the best path. So Please help me.

Thank you so much.

#debugging
5 REPLIES 5
Posted on September 22, 2014 at 16:54

Research the hardware more thoroughly and experiment. Look for C libraries for other platforms, and integrate the USART IO level with ST firmware libraries.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Stastny.Petr
Associate III
Posted on September 23, 2014 at 01:42

Hello, I have the same problem. I use SPI communication, but the PN532 does not respond with correct bytes. Did you succeed with UART?

Posted on September 23, 2014 at 03:24

It seems improbable that he's that far along..

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Evangelist III
Posted on September 26, 2014 at 09:07

''What is the best (sic) choice for...''

There is no such thing as ''best'' - without a set of criteria with which to judge it!

It's your  project, so you  need to think about your  specific requirements & constraints and what most closely fits with them.

''I don't see any PN532 NFC/RFID libraries for STM32F103''

Think about it: the PN532 doesn't operate differently when connected to an STM32 from when connected to anything else - does it?

So don't expect there to be a specific, unique ''STM32'' library - rather, as clive1 suggests, look for a general  library and think about how the STM32-specific bits can be adjusted...

This is the basic way to approach any  project...
Andrew Neil
Evangelist III
Posted on September 26, 2014 at 09:12

''the PN532 does not respond with correct bytes''

So what bytes does  it respond with?

What thinking/testing/debugging have you  done to determine why this might be? 

http://www.catb.org/esr/faqs/smart-questions.html#beprecise

 

http://www.8052.com/faqs/120313

http://www.eetimes.com/discussion/break-point/4027526/Developing-a-good-bedside-manner?pageNumber=0