<?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>adding pwm to ble_template</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17910/adding-pwm-to-ble_template</link><description>Hello everyone!
I&amp;#39;m very shy to ask probably a stupid question, but...
I&amp;#39;m trying get abitity to change pwm signal via ble.
I&amp;#39;ve created service, characteristic, then I try to add some code from pwm_library example but Keil doesn&amp;#39;t like my idea to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Aug 2018 12:16:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17910/adding-pwm-to-ble_template" /><item><title>RE: adding pwm to ble_template</title><link>https://devzone.nordicsemi.com/thread/142387?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 12:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f895797-dc47-461a-8892-f7e7e1b1b996</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="wqf"]I also encountered the same problem. I also defined the definition related to transplantation.[/quote]
&lt;p&gt;What problem did you encounter? What errors are you seeing? What do you mean by &amp;quot;defined the definition related to transplantation&amp;quot;?&lt;/p&gt;
&lt;p&gt;If you read the comments, you see how the issue was solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding pwm to ble_template</title><link>https://devzone.nordicsemi.com/thread/142331?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 09:03:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fec6d912-b21c-4761-ad23-ee74c5c4fdaa</guid><dc:creator>wqf</dc:creator><description>&lt;p&gt;How do I solve this problem? I have the same problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding pwm to ble_template</title><link>https://devzone.nordicsemi.com/thread/142320?ContentTypeID=1</link><pubDate>Wed, 01 Aug 2018 08:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de192bfc-f740-4dc6-8598-fd04dfbe57e1</guid><dc:creator>wqf</dc:creator><description>&lt;p&gt;I also encountered the same problem. I also defined the definition related to transplantation. How did you solve it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding pwm to ble_template</title><link>https://devzone.nordicsemi.com/thread/69056?ContentTypeID=1</link><pubDate>Sun, 27 Nov 2016 05:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79ff0447-cb9e-471f-b540-95d7edb2d91a</guid><dc:creator>Stas</dc:creator><description>&lt;p&gt;Thanks. One thing I can&amp;#39;t clearly understand is this raw:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_nus-&amp;gt;data_handler(p_nus, p_evt_write-&amp;gt;data, p_evt_write-&amp;gt;len);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Couldn&amp;#39;t you brevity explain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding pwm to ble_template</title><link>https://devzone.nordicsemi.com/thread/69054?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 09:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f49e2ed-8fe5-439d-8a4e-34e3e19a5241</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;On a write to the characteristic, you will get a &lt;code&gt;BLE_GATTS_EVT_WRITE&lt;/code&gt; event in the BLE event handler for your service. Here you can handle the newly received value and assign it to the PWM interface. Have a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/ble_sdk_app_nus_eval.html?cp=4_0_0_4_2_2_18"&gt;ble_app_uart&lt;/a&gt; example, especially the &lt;code&gt;ble_nus_on_ble_evt()&lt;/code&gt; and &lt;code&gt;on_write()&lt;/code&gt; functions in &lt;em&gt;ble_nus.c&lt;/em&gt; file, to get an idea how this can be handled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding pwm to ble_template</title><link>https://devzone.nordicsemi.com/thread/69055?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 03:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47cc1383-b5d3-434d-856f-9c60e1e1527a</guid><dc:creator>Stas</dc:creator><description>&lt;p&gt;Thanks a lot. I didn&amp;#39;t know about sdk_config things).
After I write new value to my characteristic (from nrf_connect app) how can I refer to that written value from main.c  for adding to pwm set function? Should I create new extern variable in pwm_service.h file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding pwm to ble_template</title><link>https://devzone.nordicsemi.com/thread/69053?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 14:34:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39c6136f-68e6-49f2-9b28-d1818cd12690</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you enable app_pwm in &lt;em&gt;sdk_config.h&lt;/em&gt;? &lt;code&gt;#define APP_PWM_ENABLED 1&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding pwm to ble_template</title><link>https://devzone.nordicsemi.com/thread/69052?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 14:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3508c1a3-08b5-44b3-935c-6a36624bd9db</guid><dc:creator>Stas</dc:creator><description>&lt;p&gt;Thank you. It&amp;#39;s worked now.
but I  have such errors:&lt;/p&gt;
&lt;p&gt;._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_pwm_channel_duty_set (referred from main.o).
._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_pwm_enable (referred from main.o).
._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_pwm_init (referred from main.o).&lt;strong&gt;strong text&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;app_pwm.c added to nrf_library&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding pwm to ble_template</title><link>https://devzone.nordicsemi.com/thread/69051?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 13:53:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:366b9581-1cc1-40f4-9c59-1b94c91d057c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you also set &lt;code&gt;#define TIMER_ENABLED 1&lt;/code&gt; in &lt;em&gt;sdk_config.h&lt;/em&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>