<?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>Kinetis MicrocontrollersのトピックRe: [FRDM-MKW38] Unable to set advertising parameters</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1341441#M61497</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In app_preinclude.h, you define the&amp;nbsp;gAppExtAdvEnable_d. So the kw38 will use the extended adv. The legacy adv function can't be used. The legacy adv is realized by extended adv. So the&amp;nbsp;extended adv can broadcast like the legacy adv. The first parameter of gapExtAdvertisingParameters_t has 4 definition. The first&amp;nbsp;definition is&amp;nbsp; 'mLegacyAdvSetId_c'. So it will tell the mcu to broadcast like the&amp;nbsp; legacy adv.&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days 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>Thu, 16 Sep 2021 09:02:20 GMT</pubDate>
    <dc:creator>nxf56274</dc:creator>
    <dc:date>2021-09-16T09:02:20Z</dc:date>
    <item>
      <title>[FRDM-MKW38] Unable to set advertising parameters</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1340396#M61480</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to advertise using the Connectivity Framework:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/* in app_config.c */
gAdvParams = gGapDefaultAdvertisingParameters_d;

/* in app.c */
void BleApp_Start(void)
{
  /*
  ...
  */

  bleResult_t ret;
  ret = Gap_SetAdvertisingParameters(&amp;amp;gAdvParams);
  // gBleFeatureNotSupported_c == ret (0x04U)
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out why Gap_SetAdvertisingParameters() returns with gBleFeatureNotSupported_c, any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 08:01:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1340396#M61480</guid>
      <dc:creator>rahme</dc:creator>
      <dc:date>2021-09-15T08:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: [FRDM-MKW38] Unable to set advertising parameters</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1341053#M61492</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You should assign the struct value to the&amp;nbsp;gAdvParams when this variable is defined.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'gAdvParams = gGapDefaultAdvertisingParameters_d' is not legal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The legal statement is :&lt;/P&gt;
&lt;P&gt;const gapAdvertisingParameters_t gAdvParams =&amp;nbsp;gGapDefaultAdvertisingParameters_d.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days 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>Thu, 16 Sep 2021 02:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1341053#M61492</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2021-09-16T02:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: [FRDM-MKW38] Unable to set advertising parameters</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1341416#M61495</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your answer. I changed my gAdvParams definition to the following:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;gapAdvertisingParameters_t gAdvParams = {
    /* minInterval */         gGapAdvertisingIntervalDefault_c,
    /* maxInterval */         gGapAdvertisingIntervalDefault_c,
    /* advertisingType */     gAdvConnectableUndirected_c,
    /* addressType */         gBleAddrTypePublic_c,
    /* directedAddressType */ gBleAddrTypePublic_c,
    /* directedAddress */     {0, 0, 0, 0, 0, 0},
    /* channelMap */          (gapAdvertisingChannelMapFlags_t) (gGapAdvertisingChannelMapDefault_c),
    /* filterPolicy */        gProcessAll_c
};&lt;/LI-CODE&gt;&lt;P&gt;I used the same definition as the adv_ext_central demo. Still running into the same issue.&lt;/P&gt;&lt;P&gt;Something worth mentioning, my code for advertising has adv_ext_central demo as a baseline (for some reason). I want to know if this can be a problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S: I have no issue running my code using the adv_ext_peripheral demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 08:38:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1341416#M61495</guid>
      <dc:creator>rahme</dc:creator>
      <dc:date>2021-09-16T08:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: [FRDM-MKW38] Unable to set advertising parameters</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1341441#M61497</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In app_preinclude.h, you define the&amp;nbsp;gAppExtAdvEnable_d. So the kw38 will use the extended adv. The legacy adv function can't be used. The legacy adv is realized by extended adv. So the&amp;nbsp;extended adv can broadcast like the legacy adv. The first parameter of gapExtAdvertisingParameters_t has 4 definition. The first&amp;nbsp;definition is&amp;nbsp; 'mLegacyAdvSetId_c'. So it will tell the mcu to broadcast like the&amp;nbsp; legacy adv.&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days 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>Thu, 16 Sep 2021 09:02:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1341441#M61497</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2021-09-16T09:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: [FRDM-MKW38] Unable to set advertising parameters</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1346665#M61569</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank your for your answer. From "Bluetooth Low Energy Application Developper Guide.pdf"&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;If one attempts to use an API that is not supported (for instance, calling Gap_Connect with the&lt;BR /&gt;lib_ble_5-0_host_peripheral_cm0p_iar.a and lib_ble_5-0_host_peripheral_cm0p_gcc.a), then the API returns the&lt;BR /&gt;gBleFeatureNotSupported_c error code. Similarly, if the API for AE is used with a host library that does not have&lt;BR /&gt;support for AE (for instance, calling Gap_SetExtAdvertisingParameters with the lib_ble_5-0_host_peripheral_cm0p_iar.a and&lt;BR /&gt;lib_ble_5-0_host_peripheral_cm0p_gcc.a), then gBleFeatureNotSupported_c is returned.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;All I have to do is to link against&amp;nbsp;lib_ble_5-0_host_cm0p_gcc.a to have support for both Peripheral/Central API.&lt;/P&gt;&lt;P&gt;Have a good day.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 09:10:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-MKW38-Unable-to-set-advertising-parameters/m-p/1346665#M61569</guid>
      <dc:creator>rahme</dc:creator>
      <dc:date>2021-09-27T09:10:25Z</dc:date>
    </item>
  </channel>
</rss>

