<?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>topic SE050 Middleware heap overflow observed in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2314908#M59377</link>
    <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m trying to integrate the Se050 with the LPC55S.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The physical connections are as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Host MCU -&amp;gt; Se050 -&amp;gt; Sensor (on I2C)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When the bus communications intervene between the Host MCU and Se050, it hangs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following sequence is applied to recover it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I2C recovery using GPIOs&lt;/P&gt;&lt;P&gt;- Reinitialize the Se050 by executing the following sequence:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - sss_close_session()&lt;/P&gt;&lt;P&gt;&amp;nbsp; - open_boot_session()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During the open session, I encountered an error indicating that the open session failed. With a retry mechanism and a 100ms wait period between each retry, if the first attempt fails, I’m able to communicate again with the Se050. However, to simulate this condition, we manually caused the I2C hang multiple times and discovered that the heap memory overflows when the reinit and open session fails with timeout error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a known issue?&lt;BR /&gt;please provide any workarounds.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Feb 2026 18:53:54 GMT</pubDate>
    <dc:creator>pranavitraj</dc:creator>
    <dc:date>2026-02-09T18:53:54Z</dc:date>
    <item>
      <title>SE050 Middleware heap overflow observed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2314908#M59377</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m trying to integrate the Se050 with the LPC55S.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The physical connections are as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Host MCU -&amp;gt; Se050 -&amp;gt; Sensor (on I2C)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When the bus communications intervene between the Host MCU and Se050, it hangs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following sequence is applied to recover it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I2C recovery using GPIOs&lt;/P&gt;&lt;P&gt;- Reinitialize the Se050 by executing the following sequence:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - sss_close_session()&lt;/P&gt;&lt;P&gt;&amp;nbsp; - open_boot_session()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During the open session, I encountered an error indicating that the open session failed. With a retry mechanism and a 100ms wait period between each retry, if the first attempt fails, I’m able to communicate again with the Se050. However, to simulate this condition, we manually caused the I2C hang multiple times and discovered that the heap memory overflows when the reinit and open session fails with timeout error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a known issue?&lt;BR /&gt;please provide any workarounds.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 18:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2314908#M59377</guid>
      <dc:creator>pranavitraj</dc:creator>
      <dc:date>2026-02-09T18:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: SE050 Middleware heap overflow observed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2315968#M59379</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/147246"&gt;@pranavitraj&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please specify the MW version that you are testing with? and which demo is referred? We may try to reproduce this issue here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your patience!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 02:54:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2315968#M59379</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2026-02-11T02:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: SE050 Middleware heap overflow observed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2332095#M59452</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Kan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried the newer version of the middleware which resolved the heap issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you so much for your support and time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just one more small observation: during the same test, the se_reinit sometimes got stuck waiting for an ACK. This happened specifically when we received continuous NACKs from the SE device because there was no termination. Please suggest a solution for this as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 02:18:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2332095#M59452</guid>
      <dc:creator>pranavitraj</dc:creator>
      <dc:date>2026-03-13T02:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: SE050 Middleware heap overflow observed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2340748#M59484</link>
      <description>&lt;P&gt;Hi kan&lt;/P&gt;&lt;P&gt;can you please help on above query&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 05:10:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2340748#M59484</guid>
      <dc:creator>pranavitraj</dc:creator>
      <dc:date>2026-03-27T05:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: SE050 Middleware heap overflow observed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2345654#M59501</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Kan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggetion for above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is specific call stack for no termination&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;systick_delay() at timer_kinetis_bm.c&lt;BR /&gt;sm_sleep() at timer_kinetis_bm.c&lt;BR /&gt;BackOffDelay_Wait() at i2c_lpc55sxx.c&lt;BR /&gt;kinetisI2cStatusToAxStatus() at i2c_lpc55sxx.c&lt;BR /&gt;axI2CRead() at i2c_lpc55sxx.c &lt;BR /&gt;phPalEse_i2c_read() at phNxpEsePal_i2c.c &lt;BR /&gt;phNxpEse_readPacket() at phNxpEse_Api.c&lt;BR /&gt;phNxpEse_read() at phNxpEse_Api.c &lt;BR /&gt;phNxpEseProto7816_GetRawFrame() at phNxpEseProto7816_3.c &lt;BR /&gt;phNxpEseProto7816_ProcessResponse() at phNxpEseProto7816_3.c&lt;BR /&gt;TransceiveProcess() at phNxpEseProto7816_3.c&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;there is no termination for the number of times nack it waits forever&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also we see one problem related to the&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deinit and reinit of se050 sequence&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after deinit which is a END_OF_APDU command SE did not reply for 5 seconds&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can you please suggest for this also or is it known time ???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pranav&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 13:38:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SE050-Middleware-heap-overflow-observed/m-p/2345654#M59501</guid>
      <dc:creator>pranavitraj</dc:creator>
      <dc:date>2026-04-06T13:38:06Z</dc:date>
    </item>
  </channel>
</rss>

