PN7462: unable to get GPIO configuration

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

PN7462: unable to get GPIO configuration

786 Views
piergiuseppe_tu
Contributor II

Hi.

I can't get phhalPcr_GetGpioStatus from HAL API to work since it gives an hard fault at each call.

I'm calling it as in the following snippet to know the status of GPIO4:

(...)

phhalPcr_GetGpioStatus_t status;

phhalPcr_GetGpioStatus(4, &status);

(...)

Anyone there has ever used phhalPcr_GetGpioStatus?

Best regards,

Peppe

Tags (1)
0 Kudos
2 Replies

686 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

You may refer to the following code shown in the document. In the document, the GPIOs' values are read, but the initialization example might help you: Copying NDEF text messages from one Tag to another 

Hope this helps.

BR,

Ivan.

0 Kudos

686 Views
piergiuseppe_tu
Contributor II

Hello Ivan, thank you for your prompt reply.

I'm referring to issues about phhalPcr_GetGpioStatus, not about phhalPcr_GetGpioVal: the latter works as expected, the former gives an instant hard fault.

Best regards,

P.

0 Kudos