10 years, 8 months ago.

SPI not working

Hello,

I connected the PN532 Board just as described, triple checked the connections between the LPC and the PN532 board, and the onboard jumpers on the PN532 board, all seems to me fine, but whenever I upload the comiled program to the controller, the code cant pass nfc.init(), stucks there. If I comment out from the main the nfc initialization, then the status LED starts flashing, otherwise the program can not reach that point. I tried to catch the signals on the SPI bus with oscilloscope, but I cant catch any, there is no communication on the SPI bus. Please, can someone help me?

Thanks!

Question relating to:

Hello I have exactly the same Issue as you. The main program don't even start with the line nfc.init(), did you find a solution about this ? Thanks by advance

posted by sebastien videau 11 Jun 2014

1 Answer

9 years, 10 months ago.

Hello I have exactly the same Issue as you. The main program don't even start with the line nfc.init(), did you find a solution about this ? Thanks by advance

Please, share you program. Did you check if there's no error shown on the output console? You might be using pins which are not supported by a peripheral module for your target.

posted by Martin Kojtal 11 Jun 2014

No. I had not much time to investigate this problem, so I left it there, and moved to an other solution.

posted by Peter Szabo 11 Jun 2014

The code is exactly the same as Mr Donatien Garnier has written (AppNearMe_MuNFC_PN532_Test) but i had to update the library. I use SPI (pin 11, 12,13) and the same connection between the LPC and PN532 board as described. With some printf I can see on termite (output console) the line "bool ret = nfc.init();" prevents the programe to launch correctly. thanks for the help. If I can provide you more informations just ask.

posted by sebastien videau 11 Jun 2014