FRDM-K82F interface with RC663

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FRDM-K82F interface with RC663

3,307件の閲覧回数
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 件の賞賛
返信
7 返答(返信)

3,006件の閲覧回数
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 件の賞賛
返信

3,187件の閲覧回数
sagar_prajapati
Contributor II

Code stops at phOsal_sleep() function.

0 件の賞賛
返信

3,143件の閲覧回数
yen_chen
Contributor III

Hi @sagar_prajapati 

Are you solved this issue?

If true,could you tell me what to do?

 

0 件の賞賛
返信

3,135件の閲覧回数
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 件の賞賛
返信

3,132件の閲覧回数
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 件の賞賛
返信

3,123件の閲覧回数
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 件の賞賛
返信

3,187件の閲覧回数
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 件の賞賛
返信