FRDM-K82F interface with RC663

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

FRDM-K82F interface with RC663

3,308 Views
sagar_prajapati
Contributor II

Hello all,

I have downloaded code from nxp site and made connection as per document. Also define PHDRIVER_FRDM_K82FRC663_BOARD in preprocessor. I am able to read chip id 0x1a but Card is not detected. Please help me to get out of this issue.

Thanks

Sagar

0 Kudos
Reply
7 Replies

3,007 Views
sagarprajapati
Contributor I

Hello @Kan_Li 

 

I am also faciing same problem. Code stucks in phOsal_sleep function that is called from phOsal_EventPend fuunction. can you please look into this and update as soon as possible?

0 Kudos
Reply

3,188 Views
sagar_prajapati
Contributor II

Code stops at phOsal_sleep() function.

0 Kudos
Reply

3,144 Views
yen_chen
Contributor III

Hi @sagar_prajapati 

Are you solved this issue?

If true,could you tell me what to do?

 

0 Kudos
Reply

3,136 Views
sagar_prajapati
Contributor II

Hello @yen_chen 

 

I have solved this issue.

Actually I do not remember exact solution for this but as I remember I have done 2 changes in the code that I suggest you to do.

1. Add minor delay in continous card detection polling loop.  I have checked the example for MifareClassic. I am attaching sample code for your reference.

2. Increase heap Size if you are running this code with RTOS. IF you are running with Baremetal then no need to increase heap Size. 

do
{
/* Field OFF */
status = phhalHw_FieldOff(pHal);
CHECK_STATUS(status);

status = phhalHw_Wait(pDiscLoop->pHalDataParams,PHHAL_HW_TIME_MICROSECONDS, 5100); //5100
CHECK_STATUS(status);

/* Configure Discovery loop for Poll Mode */
status = phacDiscLoop_SetConfig(pDiscLoop, PHAC_DISCLOOP_CONFIG_NEXT_POLL_STATE, PHAC_DISCLOOP_POLL_STATE_DETECTION);
CHECK_STATUS(status);

/* Run Discovery loop */
status = phacDiscLoop_Run(pDiscLoop, PHAC_DISCLOOP_ENTRY_POINT_POLL);
vTaskDelay(10);

}while((status & PH_ERR_MASK) != PHAC_DISCLOOP_DEVICE_ACTIVATED); /* Exit on Card detection */

Please do above changes and let me know whether this works or not. If you find any error please let me know I will bring the hardware and test again.

Waiting for your reply.

0 Kudos
Reply

3,133 Views
yen_chen
Contributor III

Hi @sagar_prajapati 

Thank you your reply.

I try the option2 but it can't work in my project.

I use example BasicDiscoveryLoop, it don't have delay can set.

I think maybe my pin define cause some error.

My pin didn't be pulled up in the DAL/board setting.

Thank you your reply again .

Br,

Yen

0 Kudos
Reply

3,124 Views
sagar_prajapati
Contributor II

Hello @yen_chen 

 

Give me some time I will collect hardware and check and update you.  I will also run basicdiscovery loop example.

0 Kudos
Reply

3,188 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Did you download the latest NFC reader library for FRDM-K82F?

pastedImage_1.png

and are you referring to https://www.nxp.com/docs/en/application-note/AN11908.pdf ?

Were CLEV6630B and FRDM-K82F used on your side?

Please kindly clarify.

Thanks for your patience!

Have a great day,
Kan

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply