<?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>pwm can not work with softdevice, when i use s110(v7.1) , sdk 6.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12024/pwm-can-not-work-with-softdevice-when-i-use-s110-v7-1-sdk-6-1</link><description>Hi Nordics, 
 I copy pwm sample code into my proximity project, to drive a buzzer . 
 I init pwm before softdevice. but, once &amp;quot;SOFTDEVICE_HANDLER_INIT&amp;quot; is excuted, the buzzer pin no longer toggle. 
 My question is , softdevice use TIMER0, my pwm use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Mar 2016 12:34:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12024/pwm-can-not-work-with-softdevice-when-i-use-s110-v7-1-sdk-6-1" /><item><title>RE: pwm can not work with softdevice, when i use s110(v7.1) , sdk 6.1</title><link>https://devzone.nordicsemi.com/thread/45506?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 12:34:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:537489d0-7118-483b-9435-ef464b77822f</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You need to change to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define GPIOTE_ENABLED 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in nrf_drv_config.h. You may also miss some files, in that case go into &amp;quot;Select Software Packs..&amp;quot; and add the files that are missing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm can not work with softdevice, when i use s110(v7.1) , sdk 6.1</title><link>https://devzone.nordicsemi.com/thread/45505?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 10:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8928a44-d7b2-467c-8767-12aca8998e0c</guid><dc:creator>bob</dc:creator><description>&lt;p&gt;alse some project errors.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/project-error.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm can not work with softdevice, when i use s110(v7.1) , sdk 6.1</title><link>https://devzone.nordicsemi.com/thread/45504?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 10:43:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8862889-36f0-4c9b-9cc0-427dd181a75a</guid><dc:creator>bob</dc:creator><description>&lt;p&gt;I found this example is for NRF51422, so I changed project settings.
1, select device &amp;#39;nRF51822_xxab&amp;#39;
2, set IROM1: start at &amp;#39;0x18000&amp;#39;, size &amp;#39;0x28000&amp;#39;
3, set IRAM1: start at &amp;#39;0x20002000&amp;#39;, size &amp;#39;4000&amp;#39;&lt;/p&gt;
&lt;p&gt;rebuild, there are 18 errors:&lt;/p&gt;
&lt;p&gt;Build target &amp;#39;nrf51422_xxac_s110&amp;#39;
compiling nrf_drv_gpiote.c...
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\gpiote\nrf_drv_gpiote.c(43): error:  #20: identifier &amp;quot;GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS&amp;quot; is undefined
nrf_drv_gpiote_evt_handler_t handlers[NUMBER_OF_GPIO_TE+GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS];
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\gpiote\nrf_drv_gpiote.c(157): error:  #20: identifier &amp;quot;GPIOTE_CONFIG_IRQ_PRIORITY&amp;quot; is undefined
nrf_drv_common_irq_enable(GPIOTE_IRQn, GPIOTE_CONFIG_IRQ_PRIORITY);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\gpiote\nrf_drv_gpiote.c: 0 warnings, 2 errors
compiling nrf_drv_uart.c...
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\uart\nrf_drv_uart.c(74): error:  #20: identifier &amp;quot;UART0_CONFIG_PSEL_TXD&amp;quot; is undefined
static const nrf_drv_uart_config_t m_default_config = NRF_DRV_UART_DEFAULT_CONFIG;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\uart\nrf_drv_uart.c(74): error:  #20: identifier &amp;quot;UART0_CONFIG_PSEL_RXD&amp;quot; is undefined
static const nrf_drv_uart_config_t m_default_config = NRF_DRV_UART_DEFAULT_CONFIG;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\uart\nrf_drv_uart.c(74): error:  #20: identifier &amp;quot;UART0_CONFIG_PSEL_CTS&amp;quot; is undefined
static const nrf_drv_uart_config_t m_default_config = NRF_DRV_UART_DEFAULT_CONFIG;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\uart\nrf_drv_uart.c(74): error:  #20: identifier &amp;quot;UART0_CONFIG_PSEL_RTS&amp;quot; is undefined
static const nrf_drv_uart_config_t m_default_config = NRF_DRV_UART_DEFAULT_CONFIG;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\uart\nrf_drv_uart.c(74): error:  #20: identifier &amp;quot;UART0_CONFIG_HWFC&amp;quot; is undefined
static const nrf_drv_uart_config_t m_default_config = NRF_DRV_UART_DEFAULT_CONFIG;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\uart\nrf_drv_uart.c(74): error:  #20: identifier &amp;quot;UART0_CONFIG_PARITY&amp;quot; is undefined
static const nrf_drv_uart_config_t m_default_config = NRF_DRV_UART_DEFAULT_CONFIG;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\uart\nrf_drv_uart.c(74): error:  #20: identifier &amp;quot;UART0_CONFIG_BAUDRATE&amp;quot; is undefined
static const nrf_drv_uart_config_t m_default_config = NRF_DRV_UART_DEFAULT_CONFIG;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\uart\nrf_drv_uart.c(74): error:  #20: identifier &amp;quot;UART0_CONFIG_IRQ_PRIORITY&amp;quot; is undefined
static const nrf_drv_uart_config_t m_default_config = NRF_DRV_UART_DEFAULT_CONFIG;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.1.0\uart\nrf_drv_uart.c: 0 warnings, 8 errors
compiling app_uart.c...
RTE\nRF_Drivers\nRF51822_xxAB\app_uart.c(55): error:  #20: identifier &amp;quot;UART0_CONFIG_PSEL_TXD&amp;quot; is undefined
nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;
RTE\nRF_Drivers\nRF51822_xxAB\app_uart.c(55): error:  #20: identifier &amp;quot;UART0_CONFIG_PSEL_RXD&amp;quot; is undefined
nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;
RTE\nRF_Drivers\nRF51822_xxAB\app_uart.c(55): error:  #20: identifier &amp;quot;UART0_CONFIG_PSEL_CTS&amp;quot; is undefined
nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;
RTE\nRF_Drivers\nRF51822_xxAB\app_uart.c(55): error:  #20: identifier &amp;quot;UART0_CONFIG_PSEL_RTS&amp;quot; is undefined
nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;
RTE\nRF_Drivers\nRF51822_xxAB\app_uart.c(55): error:  #20: identifier &amp;quot;UART0_CONFIG_HWFC&amp;quot; is undefined
nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;
RTE\nRF_Drivers\nRF51822_xxAB\app_uart.c(55): error:  #20: identifier &amp;quot;UART0_CONFIG_PARITY&amp;quot; is undefined
nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;
RTE\nRF_Drivers\nRF51822_xxAB\app_uart.c(55): error:  #20: identifier &amp;quot;UART0_CONFIG_BAUDRATE&amp;quot; is undefined
nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;
RTE\nRF_Drivers\nRF51822_xxAB\app_uart.c(55): error:  #20: identifier &amp;quot;UART0_CONFIG_IRQ_PRIORITY&amp;quot; is undefined
nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;
RTE\nRF_Drivers\nRF51822_xxAB\app_uart.c: 0 warnings, 8 errors
&amp;quot;._build\nrf51422_xxac_s110.axf&amp;quot; - 18 Error(s), 0 Warning(s).
Target not created.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm can not work with softdevice, when i use s110(v7.1) , sdk 6.1</title><link>https://devzone.nordicsemi.com/thread/45503?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 13:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6a85857-50ea-4a03-a84f-006726ea72fc</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Then you need to change to &lt;code&gt;SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, NULL)&lt;/code&gt; or similar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm can not work with softdevice, when i use s110(v7.1) , sdk 6.1</title><link>https://devzone.nordicsemi.com/thread/45502?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 11:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6719b9e-5a7c-4f11-9e02-d9c405b6a8d9</guid><dc:creator>bob</dc:creator><description>&lt;p&gt;Hi, Ole Bauck,
The proximity example from SDK10 can run on my board.
My board is using NRF51822QFABC0 and External XTAL 16MHz, but no XTAL 32.76khz.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm can not work with softdevice, when i use s110(v7.1) , sdk 6.1</title><link>https://devzone.nordicsemi.com/thread/45501?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 09:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ff2501c-0fa0-4d33-8199-533978bb0c77</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;SDK 10 should also work fine, it has S110 examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm can not work with softdevice, when i use s110(v7.1) , sdk 6.1</title><link>https://devzone.nordicsemi.com/thread/45500?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 06:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cff61682-d935-446a-a694-cefd544f5092</guid><dc:creator>bob</dc:creator><description>&lt;p&gt;Ole Bauck, thanks for your answer. however, when i go to newest SDK, all samples are using S130 etc., costing much more space of my NRF51822QFAB, so space not enough. i do not want to change to NRF51822QFAA. do you have any idea ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm can not work with softdevice, when i use s110(v7.1) , sdk 6.1</title><link>https://devzone.nordicsemi.com/thread/45499?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 15:21:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90f95eb4-bf5e-4c2e-8ee7-b088afb1ac5f</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;If you are using the code in pwm_example it may be because the example access some registers that are restricted when using SoftDevice, more specific NRF_CLOCK and NRF_POWER, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.sds.v1.0/dita/softdevices/s130/sd_resource_reqs/hw_block_interrupt_vector.html?cp=2_7_2_0_10_2"&gt;here&lt;/a&gt;. You will need to use sd_clock_hfclk_request and sd_power_mode_set instead, although these are not necessary (pwm will work fine with RC clock and not constant latency mode).&lt;/p&gt;
&lt;p&gt;This PWM example has a high possibility of inverting when using it with a SoftDevice. I will recommend to update to our newest SDK to use the newest driver which does not have this bug. You will need to update the SoftDevice also.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>