<?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 When the error GattProcError occurs in WK38, peripheral device cannot be scanned again. in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/When-the-error-GattProcError-occurs-in-WK38-peripheral-device/m-p/1398832#M12728</link>
    <description>&lt;P&gt;&lt;SPAN&gt;( Development environment list : )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Board = KW38 development board.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SDK = frdmkw38_wireless_uart_freertos.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Use case = KW38 is configured as Central, and 4 BLE devices is configured as Peripheral.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hello ~&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;My KW38 is trying to connect 4 peripherals using scan function, but sometimes KW36 will get a "GattProcError" error when connecting a peripheral&amp;nbsp;(not every time), then NXP SDK will go into GattProcError error handling case to disconnect this peripheral.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In my program, the KW38 will scan again for this peripheral and try to connect to it, but this peripheral will never be scanned again until I reset the KW38.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I integrated my program from KW36 SDK to KW38 SDK, I have never seen such a thing happen on the KW36 platform. Besides, the KW38 often crashes, So I tried adjusting the stack size used by the KW38 SDK to fix this, but still couldn't quite fix them.&lt;/P&gt;&lt;P&gt;I don't know the actual usage of my KW36 stack size, how to configure it correctly? and what the root cause is. At present, I just use try in error to adjust.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sihanchen_0-1642067764304.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167541i22483D8650C57721/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sihanchen_0-1642067764304.png" alt="sihanchen_0-1642067764304.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sihanchen_3-1642069049136.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167545iF31F0E4BA0F8FDE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sihanchen_3-1642069049136.png" alt="sihanchen_3-1642069049136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sihanchen_2-1642068988310.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167544iAE3141ABA475C4AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sihanchen_2-1642068988310.png" alt="sihanchen_2-1642068988310.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 10:37:48 GMT</pubDate>
    <dc:creator>sihanchen</dc:creator>
    <dc:date>2022-01-13T10:37:48Z</dc:date>
    <item>
      <title>When the error GattProcError occurs in WK38, peripheral device cannot be scanned again.</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/When-the-error-GattProcError-occurs-in-WK38-peripheral-device/m-p/1398832#M12728</link>
      <description>&lt;P&gt;&lt;SPAN&gt;( Development environment list : )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Board = KW38 development board.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SDK = frdmkw38_wireless_uart_freertos.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Use case = KW38 is configured as Central, and 4 BLE devices is configured as Peripheral.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hello ~&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;My KW38 is trying to connect 4 peripherals using scan function, but sometimes KW36 will get a "GattProcError" error when connecting a peripheral&amp;nbsp;(not every time), then NXP SDK will go into GattProcError error handling case to disconnect this peripheral.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In my program, the KW38 will scan again for this peripheral and try to connect to it, but this peripheral will never be scanned again until I reset the KW38.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I integrated my program from KW36 SDK to KW38 SDK, I have never seen such a thing happen on the KW36 platform. Besides, the KW38 often crashes, So I tried adjusting the stack size used by the KW38 SDK to fix this, but still couldn't quite fix them.&lt;/P&gt;&lt;P&gt;I don't know the actual usage of my KW36 stack size, how to configure it correctly? and what the root cause is. At present, I just use try in error to adjust.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sihanchen_0-1642067764304.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167541i22483D8650C57721/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sihanchen_0-1642067764304.png" alt="sihanchen_0-1642067764304.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sihanchen_3-1642069049136.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167545iF31F0E4BA0F8FDE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sihanchen_3-1642069049136.png" alt="sihanchen_3-1642069049136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sihanchen_2-1642068988310.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/167544iAE3141ABA475C4AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sihanchen_2-1642068988310.png" alt="sihanchen_2-1642068988310.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 10:37:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/When-the-error-GattProcError-occurs-in-WK38-peripheral-device/m-p/1398832#M12728</guid>
      <dc:creator>sihanchen</dc:creator>
      <dc:date>2022-01-13T10:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: When the error GattProcError occurs in WK38, peripheral device cannot be scanned again.</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/When-the-error-GattProcError-occurs-in-WK38-peripheral-device/m-p/1399096#M12730</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/126767"&gt;@sihanchen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Is it possible that you could look at the next document?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12600.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12600.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You could enable some defines, look at the Memory Manager debug feature.&lt;/P&gt;
&lt;P&gt;Seems the issue /*!&amp;lt; The procedure was terminated due to an error. */, could be because you are running out of memory pools.&lt;/P&gt;
&lt;P&gt;Please let me know your findings.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 21:45:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/When-the-error-GattProcError-occurs-in-WK38-peripheral-device/m-p/1399096#M12730</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2022-01-13T21:45:06Z</dc:date>
    </item>
  </channel>
</rss>

