NXP-NCI LPC122x example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NXP-NCI LPC122x example

Jump to solution
1,814 Views
breezeto
Contributor I

Hello,

I'm testing the NXP-NCI LPC122x example on OM5578/PN7150 NFC Controller demo kit + OM13008: LPCXpresso™ Board for LPC1227

The I2C communication is working between PN7150 and LPC1227.

The program loop to call the tml_WaitForRx function and check the IRQ pin.

But the IRQ pin has not been changed even place the NXP's NFC sample card on the antenna.

Do I need to make some change on the code for PN7150?

Thanks for your valuable comments and suggestions~

The below debug information is shown on LPCXpresso's Console.

Running the NXP-NCI project.
NCI >> 20 00 01 01
NCI << 40 00 03 00 11 01
NCI >> 20 01 00
NCI << 40 01 19 00 03 1e 03 00 08 00 01 02 03 80 81 82 83 02 d0 02 ff 02 00 04 88 10 01 10
NCI >> 20 02 b7 14 a0 0d 06 04 35 90 01 f4 01 a0 0d 06 06 44 01 90 03 00 a0 0d 06 06 30 b0 01 10 ...
NCI << 40 02 02 00 00
NCI >> 20 00 01 01
NCI << 40 00 03 00 11 01
NCI >> 20 01 00
NCI << 40 01 19 00 03 1e 03 00 08 00 01 02 03 80 81 82 83 02 d0 02 ff 02 00 04 88 10 01 10
NCI >> 21 00 16 07 04 02 02 05 03 03 01 01 01 02 01 01 03 01 01 04 01 02 80 01 80
NCI << 41 00 01 00
NCI >> 21 01 0c 00 02 01 03 00 01 04 01 03 00 01 05
NCI << 41 01 01 00
NCI >> 20 02 04 01 32 01 60
NCI << 40 02 02 00 00
NCI >> 20 02 1f 02 29 0d 46 66 6d 01 01 11 03 02 00 01 04 01 fa 61 0d 46 66 6d 01 01 11 03 02 00 ...
NCI << 40 02 02 00 00
NCI >> 21 03 15 0a 00 01 02 01 01 01 06 01 05 01 80 01 81 01 82 01 83 01 85 01
NCI << 41 03 01 00

WAITING FOR DEVICE DISCOVERY
NCI << 60 00 06 a0 00 79 df 00 00

Tags (1)
0 Kudos
1 Solution
1,226 Views
christianeisend
NXP Employee
NXP Employee

There seems to be a problem starting the discovery loop on PN7150. Discovery loop is used to poll for cards and is started with the 

NCI >> 21 03 15 0a ....

command. 

NCI << 41 03 01 00

is the acknowledge but the next line says that there is something wrong with starting the dicovery loop:

NCI << 60 00 06 a0 00 79 df 00 00

60 00 means NCI CORE RESET notification, so PN7150 performs a reset. '79 df 00 00' is the debug information or in fact the indication why the reset happen.

Reset in such situation can have two issues:

- The transmitter LDO can't be started because supply for LDO is not there

- The XTAL oscillator and/or the PLL for generating the 13.56Mhz RF frequency can't be started

Assuming you use the OM5578 demoboard - are you supplying the VANT pin (5V)?

Christian.

View solution in original post

7 Replies
1,226 Views
breezeto
Contributor I

Dear Christian,

Thank you for your valuable comments.

I have checked the voltage of VANT pin which is DC 5V and this pin is connected to the +5VIN on LPCXpresso™ Board for LPC1227. After checked the Board Schematics from LPC1227 LPCXpresso Board | Embedded Artists AB 

It found that this pin is not a 5V power supply (even it can measure a DC 5V).

I made a mistake on that.

Finally, I tried to connect the VANT pin to an external 5V power supply and all thing are working.

I would like to know the detail about the acknowledge data from NCI.

Would you give me an idea what document will show that?

Thanks again~

0 Kudos
1,226 Views
breezeto
Contributor I

Does not NXP support know how to solve this problem?

I have been waiting for almost a month and just want to execute NXP Example code!!!!

0 Kudos
1,227 Views
christianeisend
NXP Employee
NXP Employee

There seems to be a problem starting the discovery loop on PN7150. Discovery loop is used to poll for cards and is started with the 

NCI >> 21 03 15 0a ....

command. 

NCI << 41 03 01 00

is the acknowledge but the next line says that there is something wrong with starting the dicovery loop:

NCI << 60 00 06 a0 00 79 df 00 00

60 00 means NCI CORE RESET notification, so PN7150 performs a reset. '79 df 00 00' is the debug information or in fact the indication why the reset happen.

Reset in such situation can have two issues:

- The transmitter LDO can't be started because supply for LDO is not there

- The XTAL oscillator and/or the PLL for generating the 13.56Mhz RF frequency can't be started

Assuming you use the OM5578 demoboard - are you supplying the VANT pin (5V)?

Christian.

1,226 Views
breezeto
Contributor I

May I ask how can get a  support from NXP, please?! 

0 Kudos
1,226 Views
breezeto
Contributor I

NXP won't provide any support on their demo kit and development platform????

I just want to make your example code and your demo kit working together~~~~

0 Kudos
1,226 Views
breezeto
Contributor I

Hello~

Anyone know how can I get a support from NXP?

I just want to execute the NXP's Example on OM5578/PN7150 NFC Controller demo kit + OM13008: LPCXpresso™ Board for LPC1227 properly~

Thanks so much~

0 Kudos
1,226 Views
breezeto
Contributor I

Hello~ 

Anyone can help please?

0 Kudos