2014-09-22 03:23 AM
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. #debugging2014-09-22 07:54 AM
Research the hardware more thoroughly and experiment. Look for C libraries for other platforms, and integrate the USART IO level with ST firmware libraries.
2014-09-22 04:42 PM
Hello, I have the same problem. I use SPI communication, but the PN532 does not respond with correct bytes. Did you succeed with UART?
2014-09-22 06:24 PM
It seems improbable that he's that far along..
2014-09-26 12:07 AM
''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...2014-09-26 12:12 AM
''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