please help us;
we area trying to spi interface b/w 1176 with 7462 nfc reader , i checked with logic analyzer it will not generating any signals . help us to how to configure and send data,
how to change the wakeup mode , the default we press "F8" it will debug, i wants to change spi intrupt to wake up and data to sent and receive in spi only , in this case it prints the data in console we wants to prints the data in terminal how to change it ...
thankyou.......
int main(void) {
uint8_t bCount;
uint16_t status;
phFlashBoot_Main();
/* Initialize LED's */
phLED_Init();
/** Configure IRQ and Data ready ping to LOW on bootup*/
PH_REG_CLEAR_BIT(PCR_PADOUT_REG, PADOUT_IRQ);
/** Configure the Data Ready pin as OUTPUT */
PH_REG_SET_BITN(PCR_PADGPIO1_REG,
PCR_PADGPIO1_REG_GPIO1_EN_OUT_POS);
/** De-Assert the Data Ready pin.*/
PH_REG_CLEAR_BIT(PCR_PADOUT_REG, PADOUT_GPIO1);
/*Configuring GPIO's 4,5,6,7,8 as Inputs*/
for(bCount = 4 ; bCount < 9 ;bCount ++)
{
phhalPcr_ConfigPuPd(bCount,false,true);
phhalPcr_ConfigInput(bCount,true,false,false,false,true,false);
}
PH_HAL_GPIO_SETGPIOVAL(PH_EXHIF_HW_GPIO_IN_PORT_L,0);
PH_HAL_GPIO_SETGPIOVAL(PH_EXHIF_HW_GPIO_IN_PORT_H,1);
PH_HAL_GPIO_SETGPIOVAL(PH_EXHIF_HW_GPIO_COMM_PORT_L,0);
PH_HAL_GPIO_SETGPIOVAL(PH_EXHIF_HW_GPIO_COMM_PORT_M,1);
PH_HAL_GPIO_SETGPIOVAL(PH_EXHIF_HW_GPIO_COMM_PORT_H,0);
/* Create the Event group for HIF transactions */
gphExHif_Hw_HifEvents = phRtos_EventGroupCreate();
/* Execute the Hif Application*/
phExHif_HifTask();
phhalSPIM_Init(PH_HW_SPIM_TIMEOUT) ;
phhalSPIM_Configure(0, 0,E_SPIM_MODE1, 3,0, 0) ;
while(1)
{
status =phhalSPIM_Transmit(PH_EXHIF_HW_SPIM_SLAVE, PH_EXHIF_HW_SPIM_INIT_CRC, PH_EXHIF_HW_SPIM_APPEND_CRC, PH_EXHIF_HW_SPIM_CRC_INIT, 1, cmd_buf, PH_EXHIF_HW_SPIM_CRC_OFFSET);
LOG_X32("sent data status : ",status);
}
/*
status = phhalSPIM_Receive(PH_EXHIF_HW_SPIM_SLAVE, PH_EXHIF_HW_SPIM_INIT_CRC, PH_EXHIF_HW_SPIM_CRC_INIT, 1, dst, PH_EXHIF_HW_SPIM_CRC_OFFSET);
*/
return 0;
}
You can refer to my answer in the following post.
Re: pn7462 interface - NXP Community
Regards,
Felipe