<?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>Error: L6218E: Undefined symbol nrf_drv_pwm_init (referred from main.o).</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28067/error-l6218e-undefined-symbol-nrf_drv_pwm_init-referred-from-main-o</link><description>Hello, 
 I am building a project that required pwm drivers and BLE UART. I started by using peripheral ble uart example in SDK 12 and adding the pwm driver source file from the SDK components. I am using Keil uVision 5. 
 When I use methods from the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Dec 2017 18:34:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28067/error-l6218e-undefined-symbol-nrf_drv_pwm_init-referred-from-main-o" /><item><title>RE: Error: L6218E: Undefined symbol nrf_drv_pwm_init (referred from main.o).</title><link>https://devzone.nordicsemi.com/thread/110558?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 18:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aca36e58-5df9-4dcc-872e-53bef4c8ed10</guid><dc:creator>Wayne</dc:creator><description>&lt;p&gt;its linking now, I had to also enable the following in sdk_config.h  (or makefile -D)&lt;/p&gt;
&lt;p&gt;PWM0_ENABLED
PWM1_ENABLED
PWM2_ENABLED&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: L6218E: Undefined symbol nrf_drv_pwm_init (referred from main.o).</title><link>https://devzone.nordicsemi.com/thread/110560?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 17:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08867649-7b31-4040-9fb8-10e152c0f77b</guid><dc:creator>Wayne</dc:creator><description>&lt;p&gt;forgot to say I did also already add:   $(SDK_ROOT)/components/drivers_nrf/pwm/nrf_drv_pwm.c \&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: L6218E: Undefined symbol nrf_drv_pwm_init (referred from main.o).</title><link>https://devzone.nordicsemi.com/thread/110559?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 17:05:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a168faf-9c5d-4e98-91e1-b17fb67154d3</guid><dc:creator>Wayne</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried setting the define as a -D in the Makefile: CFLAGS += -DPWM_ENABLED=1&lt;/p&gt;
&lt;p&gt;and in the sdk_config.h: #define PWM_ENABLED 1&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to add PWM driver demo2 to the HRS BLE example and am getting this error:&lt;/p&gt;
&lt;p&gt;nRF5_SDK_14.2.0_17b948a/examples/ble_peripheral/ble_app_hrs/pca10040/s132/armgcc//../../../main.c:1066: undefined reference to &lt;code&gt;nrf_drv_pwm_init&amp;#39; nRF5_SDK_14.2.0_17b948a/examples/ble_peripheral/ble_app_hrs/pca10040/s132/armgcc//../../../main.c:1108: undefined reference to&lt;/code&gt;nrf_drv_pwm_complex_playback&amp;#39;&lt;/p&gt;
&lt;p&gt;Is it necessary to go thru a SoftDevice API, hmmm...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: L6218E: Undefined symbol nrf_drv_pwm_init (referred from main.o).</title><link>https://devzone.nordicsemi.com/thread/110557?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2016 06:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6035fee0-a547-4024-919a-c4cb656c3bdd</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Make sure that &lt;code&gt;#define PWM_ENABLED&lt;/code&gt; in &lt;code&gt;sdk_config.h&lt;/code&gt; is set to 1. We have introduced a new SDK header config file in SDK 12, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/sdk_config.html?resultof=%22%73%64%6b%5f%63%6f%6e%66%69%67%22%20"&gt;this&lt;/a&gt; Infocenter page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: L6218E: Undefined symbol nrf_drv_pwm_init (referred from main.o).</title><link>https://devzone.nordicsemi.com/thread/110556?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 21:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16136410-cb0c-4c6d-b2f9-df719dd574f7</guid><dc:creator>had23j</dc:creator><description>&lt;p&gt;I am using Keil and I did include nrf_drv_pwm.c. I don&amp;#39;t think that keil linked nrf_drv_pwm.c to the project because all the methods that I used from the pwm driver give me errors like nrf_drv_pwm_init and nrf_drv_pwm_simple_playback. The error is as shown in the post above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: L6218E: Undefined symbol nrf_drv_pwm_init (referred from main.o).</title><link>https://devzone.nordicsemi.com/thread/110555?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2016 06:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08786009-d4c6-4206-8ddd-0e4705d29e07</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you using Keil? Have you remembered to add the &lt;code&gt;nrf_drv_pwm.c&lt;/code&gt; to your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>