PN7462 HSUart

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

PN7462 HSUart

753件の閲覧回数
damianogilioli
Contributor I

Hi All,

I am new on PN7462 and I’m working in PNEV7462c development board.

My goal is integrate the HSUart in the PN7462AU_ex_phexMain project example, so i created a new Task and inside the task there are the HSUart init.

Below the task code:

 

 

      RfidCom.eInterface = E_HIF_HSU;

    RfidCom.sConfig.sHsuConfig.bIsHsuBoot = 0;

    RfidCom.sConfig.sHsuConfig.bEOF = 8;

    RfidCom.sConfig.sHsuConfig.bStopBits = 1;

    RfidCom.sConfig.sHsuConfig.bDummyBytes = 0;

    RfidCom.eBufferType = E_BUFFER_FORMAT_FREE;

    RfidCom.bShortFrameLen = 0;

    RfidCom.bStoreErrData = 0;

    RfidCom.bHeaderSize = 0;

    RfidCom.bTimeout = 100;

    RfidCom.sConfig.sHsuConfig.bBaudRate = E_HSU_BAUDRATE_9_6K;

 

 

    phhalHif_Init(&RfidCom, &Generic_CallBack);

 

    phRtos_TaskDelay(100);

 

    for(;;)

    {

 

I’m not able to understand why when the code arrives at the instruction “phRtos_TaskDelay(100)” the execution jump at the function “phFlashBoot_HardFault_Handler()

Any idea to solve the problem?

ラベル(1)
  • RF

0 件の賞賛
1 返信

556件の閲覧回数
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

Have you flashed and debug the board before trying to implement that? 

Could you please refer to the PN7462AU_ex_phExHif example? That might guide you through the clock settings and GPIOs for HSUART, you can find all the initialization in the phExHif_Hw.c file. 

Also, I believe the AN11784 PN7462AU How to integrate RTOS  will be helpful as well for you. 

Regards, 
Estephania 

0 件の賞賛