<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>NFCのトピックRe: PN7462 HSU UART TX Complete Callback Not Triggering</title>
    <link>https://community.nxp.com/t5/NFC/PN7462-HSU-UART-TX-Complete-Callback-Not-Triggering/m-p/2369839#M14233</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/261175"&gt;@uday_gowda&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Hope you are doing well.&lt;/P&gt;
&lt;P&gt;I am checking your inquiry.&lt;/P&gt;
&lt;P&gt;In the meantime, could you please take a look at the post &lt;A href="https://community.nxp.com/t5/NFC/PN7462-UART-Communication/td-p/2184916" target="_blank"&gt;PN7462 UART Communication&lt;/A&gt;? Perhaps you may find some useful hints in that discussion; please let me know your findings.&lt;/P&gt;
&lt;P&gt;Also, by any chance, have you referred to ex_phExHif demo from &lt;A href="https://www.nxp.com/applications/technologies/security/industrial-security/nfc-reader-library-software-support-for-nfc-frontend-solutions:NFC-READER-LIBRARY" target="_self"&gt;NFC Reader Library&lt;/A&gt;&amp;nbsp;for PN7462?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2026 00:17:15 GMT</pubDate>
    <dc:creator>EduardoZamora</dc:creator>
    <dc:date>2026-05-22T00:17:15Z</dc:date>
    <item>
      <title>PN7462 HSU UART TX Complete Callback Not Triggering</title>
      <link>https://community.nxp.com/t5/NFC/PN7462-HSU-UART-TX-Complete-Callback-Not-Triggering/m-p/2369679#M14230</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am working on HSU UART communication on PN7462 and have implemented HIF initialization as below:&lt;/P&gt;&lt;PRE&gt;void Hif_UartInit(void)
{
    phStatus_t status;

    gHifConfig.eInterface = E_HIF_HSU;

    gHifConfig.sConfig.sHsuConfig.bIsHsuBoot  = 0;
    gHifConfig.sConfig.sHsuConfig.bBaudRate   = E_HSU_BAUDRATE_9_6K;
    gHifConfig.sConfig.sHsuConfig.bStopBits   = 1;
    gHifConfig.sConfig.sHsuConfig.bDummyBytes = 0;
    gHifConfig.sConfig.sHsuConfig.bEOF        = 0;

    gHifConfig.bTimeout       = 0;
    gHifConfig.eBufferType    = E_BUFFER_FORMAT_FREE;
    gHifConfig.bShortFrameLen = 0;
    gHifConfig.bStoreErrData  = 0;
    gHifConfig.bHeaderSize    = 0;

    status = phhalHif_Init(
        &amp;amp;gHifConfig,
        (pphhalHif_Callback_t)Hif_UartErrorCallback
    );

    status = phhalHif_InitRxBuffer(
        E_RX_BUFFER_ID0,
        HIF_UART_RX_MAX_FRAME,
        gHifRxBuffer,
        (pphhalHif_Callback_t)Hif_UartRxCallback
    );

    gUartStream = xStreamBufferCreate(
        HIF_UART_STREAM_SIZE,
        1
    );
}&lt;/PRE&gt;&lt;P&gt;Observed behavior in my implementation:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;RX callback triggers correctly&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Commands are received successfully&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;TX API is invoked&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;However, TX complete callback is not triggered consistently&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Continuous transmission from main() does not complete as expected&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My simplified implementation is:&lt;/P&gt;&lt;PRE&gt;int main(void)
{
    phFlashBoot_Main();
    phhalTimer_Init();
    phOsal_Init();

    Hif_UartInit();

    while(1)
    {
        LOG_TXT("sending....\n");

        Hif_Print("hello");

        phUser_Wait(10000000);
    }

    return 0;
}&lt;/PRE&gt;&lt;P&gt;I also compared this with the PN7462 phExDoorAccess example.&lt;/P&gt;&lt;P&gt;In DoorAccess example:&lt;/P&gt;&lt;PRE&gt;int main(void)
{
    phFlashBoot_Main();
    phhalTimer_Init();
    phOsal_Init();

    phExDoorAccess_SystemTaskInit();

    phExDoorAccess_BootHandler();

    phRtos_Start();

    return 0;
}&lt;/PRE&gt;&lt;P&gt;Observed behavior in DoorAccess:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;System tasks are initialized&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;RTOS scheduler is started using phRtos_Start()&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After card detection/authentication, UART transmission over Host interface works correctly&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;TX completion callback is received successfully&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, in my implementation where transmission is triggered continuously from main(), TX completion callback is not observed.&lt;/P&gt;&lt;P&gt;I would like to understand:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Is additional HIF/HSU configuration required apart from phhalHif_Init() and phhalHif_InitRxBuffer()?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Does HSU TX callback require explicit registration or enabling?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is phRtos_Start() / scheduler mandatory for HSU TX completion callbacks?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Does HIF require a separate API to start RX/TX handling after buffer initialization?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Are there dependencies in the DoorAccess example (tasks/events/RTOS context) that enable UART TX completion handling?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Are there known conditions where transmit API is called successfully but TX complete callback is not generated?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please let me know if any initialization sequence or configuration is missing.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 15:34:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7462-HSU-UART-TX-Complete-Callback-Not-Triggering/m-p/2369679#M14230</guid>
      <dc:creator>uday_gowda</dc:creator>
      <dc:date>2026-05-21T15:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: PN7462 HSU UART TX Complete Callback Not Triggering</title>
      <link>https://community.nxp.com/t5/NFC/PN7462-HSU-UART-TX-Complete-Callback-Not-Triggering/m-p/2369839#M14233</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/261175"&gt;@uday_gowda&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Hope you are doing well.&lt;/P&gt;
&lt;P&gt;I am checking your inquiry.&lt;/P&gt;
&lt;P&gt;In the meantime, could you please take a look at the post &lt;A href="https://community.nxp.com/t5/NFC/PN7462-UART-Communication/td-p/2184916" target="_blank"&gt;PN7462 UART Communication&lt;/A&gt;? Perhaps you may find some useful hints in that discussion; please let me know your findings.&lt;/P&gt;
&lt;P&gt;Also, by any chance, have you referred to ex_phExHif demo from &lt;A href="https://www.nxp.com/applications/technologies/security/industrial-security/nfc-reader-library-software-support-for-nfc-frontend-solutions:NFC-READER-LIBRARY" target="_self"&gt;NFC Reader Library&lt;/A&gt;&amp;nbsp;for PN7462?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Eduardo.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 00:17:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7462-HSU-UART-TX-Complete-Callback-Not-Triggering/m-p/2369839#M14233</guid>
      <dc:creator>EduardoZamora</dc:creator>
      <dc:date>2026-05-22T00:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: PN7462 HSU UART TX Complete Callback Not Triggering</title>
      <link>https://community.nxp.com/t5/NFC/PN7462-HSU-UART-TX-Complete-Callback-Not-Triggering/m-p/2369988#M14237</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Thank you for the inputs and for sharing the references. I will go through the PN7462 UART Communication discussion as well as the &lt;/SPAN&gt;&lt;SPAN&gt;ex_phExHif&lt;/SPAN&gt;&lt;SPAN&gt; demo from the NFC Reader Library.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;In the meantime, I tried a simple periodic UART transmission test directly in the &lt;/SPAN&gt;&lt;SPAN&gt;phExDoorAccess&lt;/SPAN&gt;&lt;SPAN&gt; example project using the following implementation:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;#include &amp;lt;phExDoorAccess_Utils.h&amp;gt;

int main(void)
{
    phFlashBoot_Main();
    phhalTimer_Init();
    phOsal_Init();

    /* Initialize HSU */
    phExDoorAccess_Utils_HsuHifConfig();

    while(1)
    {
        LOG_TXT("sending....\n");

        phExDoorAccess_Utils_Fill_Tx_Buffer("hello nxp ");

        phExDoorAccess_Utils_Hsu_Print(
            gphExDoorAccess_Utils_SysHsuTxBuffer);

        phUser_Wait(10000000);
    }

    return 0;
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;SPAN&gt;The transmit API used is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;void phExDoorAccess_Utils_Hsu_Print(uint8_t *inBuf)
{
#ifdef PHFL_ENABLE_HSU
    phhalHif_Transmit(
        (uint32_t *)inBuf,
        (uint16_t)strlen((const char *)inBuf),
        (pphhalHif_Callback_t)
        &amp;amp;phExDoorAccess_Utils_HsuHifTransmitCallBack);
#endif
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;SPAN&gt;Observation:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;When UART transmission is triggered from normal DoorAccess flow (for example after card detection/authentication), transmission works and TX callback is received.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;However, when using the above periodic transmission test directly from &lt;/SPAN&gt;&lt;SPAN&gt;main()&lt;/SPAN&gt;&lt;SPAN&gt; before starting the RTOS/task flow, transmission does not work as expected.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN&gt;Could you please help clarify why this periodic HSU transmit approach in &lt;/SPAN&gt;&lt;SPAN&gt;main()&lt;/SPAN&gt;&lt;SPAN&gt; does not work, while UART transmission in the regular DoorAccess flow functions correctly? I would like to understand whether HSU TX completion depends on RTOS/task initialization, additional HIF setup, or another required execution context.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 06:41:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7462-HSU-UART-TX-Complete-Callback-Not-Triggering/m-p/2369988#M14237</guid>
      <dc:creator>uday_gowda</dc:creator>
      <dc:date>2026-05-22T06:41:32Z</dc:date>
    </item>
  </channel>
</rss>

