<?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>52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104506/52832-sdk15-3-app_error_check-pwm</link><description>HI: 
 When I Used the uart_init() and pwm_init(), Sometimes , the chip 52832 will reset , I can&amp;#39;t find what&amp;#39;s problem. the reset reason is 0x04 = Reset from soft reset detected. 
 1、So, I want to known that , if I Deltet APP_ERROR_CHECK(err_code); What</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Oct 2023 01:03:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104506/52832-sdk15-3-app_error_check-pwm" /><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/450930?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 01:03:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d67bc1f-6322-4d5c-a4bf-06bf6e176b89</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/450281?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 11:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54f5e8a2-1f67-47cd-91c4-640573a24788</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. I don&amp;#39;t think the UART is directly related to the issue, but it may affect the timing. Please add more logging to your code. For example, &amp;quot;Start playing sound&amp;quot; when&amp;nbsp;My_PWM_Start() is called, and &amp;quot;Stop playing sound&amp;quot; when PWM_Stop() is called, then upload your log here.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/450166?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 01:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cadf55a6-5f50-4d06-afe7-2310c6c995cf</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;Hi：&lt;/p&gt;
&lt;p&gt;My program is based on&amp;nbsp;&lt;/p&gt;
&lt;p&gt;...\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_uart\pca10040\s132\arm5_no_packs&lt;/p&gt;
&lt;p&gt;to&amp;nbsp;develop.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, When I Open the UART，It seems that mistakes are more likely to occur。&lt;/p&gt;
&lt;p&gt;My project is&amp;nbsp;Open UART as needed.&amp;nbsp; The UART is normally turned off to save power.&lt;/p&gt;
&lt;p&gt;as follow:&lt;/p&gt;
&lt;p&gt;When UART is needed:&amp;nbsp; &amp;nbsp;uart_init() -&amp;gt; UART Tx/Rx Data -&amp;gt;&amp;nbsp;my_app_uart_close()&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When Data Tx/Rx finish, will colse the UART.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void uart_init(void)
{
    uint32_t                     err_code;
    app_uart_comm_params_t const comm_params =
    {
        .rx_pin_no    = RX_PIN_NUMBER,
        .tx_pin_no    = TX_PIN_NUMBER,
        .rts_pin_no   = RTS_PIN_NUMBER,
        .cts_pin_no   = CTS_PIN_NUMBER,
        .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
        .use_parity   = false,
#if defined (UART_PRESENT)
        .baud_rate    = NRF_UART_BAUDRATE_115200
#else
        .baud_rate    = NRF_UARTE_BAUDRATE_115200
#endif
    };

    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);
		
    APP_ERROR_CHECK(err_code);
}

void my_app_uart_close(void)
{
		uint32_t err_code;
	
		if(bMy_UART_Enable_Fg == false)			// 如果当前UART没有打开，则不需要重复关闭
		{		return;		}
		bMy_UART_Enable_Fg = false;
		
		nrf_uart_task_trigger(NRF_UART0, NRF_UART_TASK_STOPRX);		// 触发串口停止接收事件
		nrf_uart_event_clear(NRF_UART0, NRF_UART_EVENT_RXDRDY);		// 清空串口接收标志
	
		err_code = app_uart_close();						// 关闭串口 
		APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449841?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 13:16:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae78451f-b3e1-447a-b358-24d425dc08ac</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for confirming. I asked because I wanted to know if there were errors elsewhere, for example, from the UART callback.&lt;/p&gt;
[quote userid="76678" url="~/f/nordic-q-a/104506/52832-sdk15-3-app_error_check-pwm/449746"]when I used the UART, also&amp;nbsp;Frequent switch.[/quote]
&lt;p&gt;Could you clarify what you mean? Is it that the error seems to occur more frequently when using UART?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449831?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 12:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62b2b2d1-04f7-460a-9467-ff48ca95e082</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;Yes, I enable Debug, and the error raised in&amp;nbsp; My_PWM_Start() -&amp;gt;&amp;nbsp;APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;the error code is 8.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449797?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 11:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:654d99d9-3192-47ab-8a6f-9ce92bffc2c7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you enabled debug logging so you can see where the error(s) are raised?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449746?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 09:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ea60348-2032-45a9-80d9-21856ac54d54</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;My PWM use to control the Buzzer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I dont&amp;#39;t find what happen, when&amp;nbsp;&lt;span&gt;ignore the&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_ERROR_INVALID_STATE error.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I find that, when ignore the error, The number of restarts will be reduced, and didn&amp;#39;t find affect.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;color:#ff0000;"&gt;Does it have anything to do with&amp;nbsp;UART?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uart and pwm&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;when I used the UART, also&amp;nbsp;Frequent switch.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;UART_RX_PIN = P0.07;&amp;nbsp; &amp;nbsp;UART_TX_PIN = P0.05;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void uart_init(void)
{
    uint32_t                     err_code;
    app_uart_comm_params_t const comm_params =
    {
        .rx_pin_no    = RX_PIN_NUMBER,
        .tx_pin_no    = TX_PIN_NUMBER,
        .rts_pin_no   = RTS_PIN_NUMBER,
        .cts_pin_no   = CTS_PIN_NUMBER,
        .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
        .use_parity   = false,
#if defined (UART_PRESENT)
        .baud_rate    = NRF_UART_BAUDRATE_115200
#else
        .baud_rate    = NRF_UARTE_BAUDRATE_115200
#endif
    };
		
		bMy_UART_Enable_Fg = true;		// true = 串口已打开，只在这个地方置真

    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_event_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);
		
    APP_ERROR_CHECK(err_code);		// 屏蔽这里还有 PWM Initial 里面的，感觉重启的机率就很小了，或不出现
		
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449700?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 06:26:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3daf0f4-d2bb-490e-9cc2-451b3203ba7f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Calling &lt;span&gt;My_PWM_Start()&lt;/span&gt; when the PWM is already running might affect the PWM output. However, I wouldn&amp;#39;t expect it to impact other parts of your application – but keep in mind that I don&amp;#39;t know what role the PWM has in your app.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to see what happens if you simply ignore the&amp;nbsp;&lt;span&gt;NRF_ERROR_INVALID_STATE error?&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449680?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 01:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad319843-a278-4f44-8d2c-f2bd866eef05</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;Hi:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to sure that if I&amp;nbsp;&lt;span style="color:#ff0000;"&gt;Mask this error&lt;/span&gt;, as follow:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;//&lt;span&gt;APP_ERROR_CHECK(err_code);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // didn&amp;#39;t process this sentence, &lt;span style="background-color:#ffffff;"&gt;&lt;span style="color:#ff0000;"&gt;With what effect&lt;/span&gt;?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;font-size:150%;"&gt;If this statement is not executed, Will affect the whole program??&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thank you very much!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Because this error is not very often appear, and&amp;nbsp;Must appear when working with my equipment.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I think you might have a hard time getting it out.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449597?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 14:06:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d485977-bd63-4708-b016-5482afe12a85</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span style="font-family:inherit;"&gt;I&amp;#39;m not sure why you&amp;#39;re receiving the NRF_ERROR_INVALID_STATE from My_PWM_Start() if the program always follows the sequence you described: My_PWM_Start(); -&amp;gt; My_PWM_Stop(); -&amp;gt; My_PWM_Start(); and so on. Could you provide a minimal example for me to debug here?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449555?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 12:10:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc6ac63d-a102-481d-996c-77fe059e54ce</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;error position：&lt;/p&gt;
&lt;p&gt;void My_PWM_Start(void)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;......&lt;/p&gt;
&lt;p&gt;APP_ERROR_CHECK(err_code);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// error position&lt;/p&gt;
&lt;p&gt;......&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449554?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 12:08:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd8f42ae-5e00-45ce-bb2b-3299baf95668</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;Hi:&lt;br /&gt;Another problem.&lt;br /&gt;When I frequency switch PWM, it will An error occurred, as follow:&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;APP_ERROR_CHECK(err_code); err_code = 8 = NRF_ERROR_INVALID_STATE&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Why does this error occur?&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;1、Can I ignore this error?？？？？&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;2、have any Other solutions?？？？？&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My Call example:&lt;br /&gt;My_PWM_Start();&amp;nbsp; &amp;nbsp; continue 1 second;&amp;nbsp; &amp;nbsp; &amp;nbsp;My_PWM_Stop();&lt;br /&gt;after a few minutes:&lt;br /&gt;My_PWM_Start();&amp;nbsp; &amp;nbsp; continue 1 second;&amp;nbsp; &amp;nbsp; &amp;nbsp;My_PWM_Stop();&lt;br /&gt;......&lt;/p&gt;
&lt;p&gt;my pwm program as follow:&lt;pre class="ui-code" data-mode="c_cpp"&gt;//===================================================
void My_PWM_Start(void)
{	
	uint32_t err_code;
	
    nrf_drv_pwm_config_t const config0 =
    {
        .output_pins =
        {
            //PN_BUZZER | NRF_DRV_PWM_PIN_INVERTED, 			// channel 0, High Level
						PN_BUZZER, 																		// channel 0, Low Level
            PN_NC1 | NRF_DRV_PWM_PIN_NOT_USED, 						// channel 1
            PN_NC2 | NRF_DRV_PWM_PIN_NOT_USED, 						// channel 2
            PN_NC3 | NRF_DRV_PWM_PIN_NOT_USED  						// channel 3
        },
        .irq_priority = APP_IRQ_PRIORITY_LOWEST,
        .base_clock   = NRF_PWM_CLK_500kHz,
        .count_mode   = NRF_PWM_MODE_UP,
        .top_value    = 125,										
        .load_mode    = NRF_PWM_LOAD_INDIVIDUAL,
        .step_mode    = NRF_PWM_STEP_AUTO
    };
		
    err_code = nrf_drv_pwm_init(&amp;amp;m_pwm0, &amp;amp;config0, NULL);	
	APP_ERROR_CHECK(err_code);																// error position
	
	static nrf_pwm_values_individual_t seq_values[] = 
	{
			{63,0,0,0},																
	};
		
	nrf_pwm_sequence_t const seq =
	{
		.values.p_individual = seq_values,
	    .length = NRF_PWM_VALUES_LENGTH(seq_values),
		.repeats = 0,
		.end_delay = 0
	};
	
    (void)nrf_drv_pwm_simple_playback(&amp;amp;m_pwm0, &amp;amp;seq, 1, NRF_DRV_PWM_FLAG_LOOP);
}

//==================================================
void My_PWM_Stop(void)
{
		nrf_drv_pwm_stop(&amp;amp;m_pwm0, false);
	
		nrf_drv_pwm_uninit(&amp;amp;m_pwm0);
	
		IO_BUZZER_OFF;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449467?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 07:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e070a71b-346d-4544-b7fd-d3d68425bea2</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449450?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 07:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:999a1b76-5653-4e15-a79f-3cfb500fd736</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry, I noticed that you were using the NRF_DRV_PWM_PIN_INVERTED flag, and what I meant to suggest was that you remove it, but there was a typo in my sentence (edited now)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449448?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 06:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ee78e87-acb9-4dad-9d53-ca39887f1c55</guid><dc:creator>yzfy_12345</dc:creator><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I Have been configuration PIN as &amp;quot;&lt;span&gt;NRF_DRV_PWM_PIN_INVERTED&lt;/span&gt;&amp;quot;, as follow:&amp;nbsp; &amp;nbsp;I only use one pin for buzzer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;.output_pins =&lt;br /&gt; {&lt;br /&gt; PN_BUZZER | NRF_DRV_PWM_PIN_INVERTED, // channel 0&lt;br /&gt; PN_NC1 | NRF_DRV_PWM_PIN_NOT_USED, // channel 1&lt;br /&gt; PN_NC2 | NRF_DRV_PWM_PIN_NOT_USED, // channel 2&lt;br /&gt; PN_NC3 | NRF_DRV_PWM_PIN_NOT_USED // channel 3&lt;br /&gt; },&lt;/p&gt;
&lt;p&gt;when I stop the PWM, I test the result is the PIN (&lt;span&gt;PN_BUZZER) output high level, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;when I stop the PWM, I want&amp;nbsp; the pin (PN_BUZZER)&amp;nbsp; output low level.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I wish output Low level , when PWM idle&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How to config?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832，SDK15.3，APP_ERROR_CHECK(), PWM</title><link>https://devzone.nordicsemi.com/thread/449440?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 05:53:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d625fd2b-07e0-4249-a702-b30fd3547099</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The easiest way to debug issues like this is to enable debug logging and examine the crash log when the program enters the error handler (&lt;a title="Error module" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_error.html?cp=9_1_3_13"&gt;Error module&lt;/a&gt;).&amp;nbsp;If you use the &amp;#39;Debug&amp;#39; build configuration in Segger Embedded Studio, the crash log will include the file name and line number where the error occurred.&lt;/p&gt;
&lt;p&gt;Are you invoking the error handler on&amp;nbsp;APP_UART_COMMUNICATION_ERROR events as below? If so, consider commenting out APP_ERROR_HANDLER() to ignore UART errors and then check if you still experience resets.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1696916940108v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;2. Try to &lt;strong&gt;remove&lt;/strong&gt; NRF_DRV_PWM_PIN_INVERTED flag from your PWM pin configuration.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>