<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SDK 12 PWM Driver + Softdevice 132 + NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18411/sdk-12-pwm-driver-softdevice-132-nrf52832</link><description>Hi Devzone. 
 I&amp;#39;ve taken the ble_app_hrs example,
and then added the example code from the PWM Driver example. 
 The PWM module is mostly functional,
however I have a fatal error that is prohibiting operation for more than a minute.
This only occurs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Dec 2016 23:18:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18411/sdk-12-pwm-driver-softdevice-132-nrf52832" /><item><title>RE: SDK 12 PWM Driver + Softdevice 132 + NRF52832</title><link>https://devzone.nordicsemi.com/thread/71050?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2016 23:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ba41ea-89d2-4557-b1f0-6e36c6c09f69</guid><dc:creator>ms360</dc:creator><description>&lt;p&gt;Update - Looks like it was going to sleep.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/68597/how-to-let-nrf51822-ble_app_uart-never-sleep/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 12 PWM Driver + Softdevice 132 + NRF52832</title><link>https://devzone.nordicsemi.com/thread/71049?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2016 21:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54e8df94-c367-4c7c-b4c4-f40ed2e1b7fa</guid><dc:creator>ms360</dc:creator><description>&lt;p&gt;As a sanity check, I&amp;#39;ve disabled the PWM entirely, just to monitor the task function.
Even the task function by itself does not survive much longer than a minute.&lt;/p&gt;
&lt;p&gt;It looks like I should probably hold off on the PWM until this works properly.&lt;/p&gt;
&lt;p&gt;The task function is currently logging and toggling a byte:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void pwm_task_fxn( void *pvParameters )
{
    for (;;)
        {
            vTaskDelay(100 / portTICK_PERIOD_MS);
            m_change ^= 0x01;
            printf(&amp;quot;m_change: 0x%02x\r\n&amp;quot;, m_change);
       }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I initialize the task like this&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BaseType_t xReturned = xTaskCreate(    /* Create the task, storing the handle. */
                pwm_task_fxn,    /* Function that implements the task. */
                &amp;quot;PWM&amp;quot;,           /* Text name for the task. */
                2*60,              /* Stack size in words, not bytes. */
                ( void * ) 1,    /* Parameter passed into the task. */
                tskIDLE_PRIORITY,/* Priority at which the task is created. */
                &amp;amp;xHandle );      /* Used to pass out the created task&amp;#39;s handle. */

if( xReturned != pdPASS )
{
    APP_ERROR_HANDLER(NRF_ERROR_NO_MEM);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>