I am using PN7462 HostIF in UART (HSU) mode. The same firmware and pin configuration work correctly on the PN7462 evaluation board, but on a custom board TX works while RX callbacks are not triggered. I also observe HSU_RX_FER_STATUS interrupts immediately after boot, even when no host data is transmitted.
Below is my current HostIF UART initialization configuration:
- Interface: E_HIF_HSU
- Baud rate: E_HSU_BAUDRATE_9_6K
- Stop bits: 1
- Dummy bytes: 0
- EOF: 0
- Timeout: 0
- Buffer type: E_BUFFER_FORMAT_FREE
- Short frame length: 0
- Store error data: 0
- Header size: 0
Initialization flow:
- phhalHif_Init(&gHifConfig, Hif_UartErrorCallback)
- phhalHif_InitRxBuffer(E_RX_BUFFER_ID0, ..., Hif_UartRxCallback)
Could someone verify whether this configuration is sufficient for UART RX operation?
Specifically:
- Is any additional interrupt configuration required apart from phhalHif_Init() and phhalHif_InitRxBuffer()?
- Do HostIF interrupts need to be explicitly enabled or cleared before initialization?
- Is additional NVIC/IRQ configuration required for RX callbacks?
- Is E_BUFFER_FORMAT_FREE appropriate for UART communication, or should another buffer format be used?
- Could missing interrupt configuration explain why RX callbacks are not triggered while TX works correctly?
- Is repeated HSU_RX_FER_STATUS at startup an indication of incorrect initialization or hardware configuration?
Any guidance on recommended HostIF UART initialization or interrupt setup would be appreciated.
Thanks.