<?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>CDC_ACM with softdevice.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39199/cdc_acm-with-softdevice</link><description>Hi, 
 
 I have a BLE application, which I want to interface with PC via serial communication through USB. 
 It seems that just adding Softdevice breaks the USB_CDC_ACM example, which I have ported to Dongle (Worked fine without softdevice). 
 I have also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Oct 2018 14:17:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39199/cdc_acm-with-softdevice" /><item><title>RE: CDC_ACM with softdevice.</title><link>https://devzone.nordicsemi.com/thread/152911?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 14:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10f4423e-6ce7-4669-ae31-cd37a034969a</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I was able to make it work (SOFTDEVICE_PRESENT with the CDC_ACM example) in the follwing manner:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Started with the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fusbd_ble_uart_example.html&amp;amp;cp=4_0_0_4_5_50_1"&gt;USBD BLE UART Example&lt;/a&gt;, deleted all the content of the main.c file&lt;/li&gt;
&lt;li&gt;Copied the content of the main file from the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fusbd_cdc_acm_example.html&amp;amp;cp=4_0_0_4_5_50_3"&gt;USB CDC ACM Example&lt;/a&gt;&amp;nbsp;into the example above&lt;/li&gt;
&lt;li&gt;Added the necessary path&amp;#39;s, files and sdk_config definitions for the cli functionality to work&lt;/li&gt;
&lt;li&gt;Builded successfully&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I have not run the example yet, or added any SoftDevice functionality.&lt;/p&gt;
&lt;p&gt;The project is included as a zipped file.&lt;/p&gt;
&lt;p&gt;Best regards, Simon&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5d17cfd2b0d549c4927457d1865ba378/usbd_5F00_ble_5F00_uart_5F00_modified.zip"&gt;devzone.nordicsemi.com/.../usbd_5F00_ble_5F00_uart_5F00_modified.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDC_ACM with softdevice.</title><link>https://devzone.nordicsemi.com/thread/152647?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 09:30:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:586f6ccc-980c-4db7-8d2a-d7c9f1e6a888</guid><dc:creator>Mike Wazowski</dc:creator><description>&lt;p&gt;Simon, I have tried that. The issue is that if SoftDevice is present, that is &lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:21px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;SOFTDEVICE_PRESENT macro defined, CDC_ACM would not compile. It is difficult to make it simplier example than a single define statement.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDC_ACM with softdevice.</title><link>https://devzone.nordicsemi.com/thread/152644?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 09:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee66bf36-24fb-421e-8d80-7249a244d20a</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I would recommend you to start with a simple example where the SoftDevice is already present (for example &lt;em&gt;ble_app_blinky&lt;/em&gt; or &lt;em&gt;ble_app_template),&lt;/em&gt;&amp;nbsp;then add code for the CDC ACM. This is an easier approach. See my steps explained in the initial answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDC_ACM with softdevice.</title><link>https://devzone.nordicsemi.com/thread/152320?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 09:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:478aa969-1608-431c-895e-c4a05d25f68b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Ok, I will look into your problem then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDC_ACM with softdevice.</title><link>https://devzone.nordicsemi.com/thread/152313?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 08:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b67fa89-0cfb-46b2-be97-fa3ce49f6d6a</guid><dc:creator>Mike Wazowski</dc:creator><description>&lt;p&gt;Yes, I have seen the link. I would still like to do it myself, I think it will be easier later on to have minimal cdc_acm template to merge with different Bluetooth applications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDC_ACM with softdevice.</title><link>https://devzone.nordicsemi.com/thread/152231?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 13:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47e98f37-1c07-4f51-83be-29bb29460815</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Did you see my update? There I provided a link to an example where the softdevice is combined with the usb_cdc_acm example. The example is located in&amp;nbsp; &lt;em&gt;examples\peripheral\usbd_ble_uart&lt;/em&gt;. But if you did see it and want to do it yourself, please tell me, and I can help you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDC_ACM with softdevice.</title><link>https://devzone.nordicsemi.com/thread/152067?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 13:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57364b2a-a066-48b7-b929-516657de9d06</guid><dc:creator>Mike Wazowski</dc:creator><description>&lt;p&gt;Thanks for the answer.&lt;/p&gt;
&lt;p&gt;I have ported example to dongle and it works fine without softdevice.&lt;/p&gt;
&lt;p&gt;With SOFTDEVICE_PRESENT macro defined, I can&amp;#39;t get it to compile. I have made necessary defines in sdk_config.h and gotten as far as linker, but then I get the following error:&lt;/p&gt;
&lt;p&gt;Output/usbd_cdc_acm_pca10056 Release/Obj/nrf_sdh.o:C:\Mesh Project\nRF5_SDK_15.2.0_9412b96234\nRF5_SDK_15.2.0_9412b96\components\softdevice\common/nrf_sdh.c:89: undefined reference to `__start_sdh_stack_observers&amp;#39;&lt;/p&gt;
&lt;p&gt;The entire SDK folder does not contain anything mentioning&amp;nbsp;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;`__start_sdh_stack_observers&amp;#39;, so I am stuck for now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;Only file that I changed in SDK itself was nrf_error.h where I commented out #ifndef SOFTDEVICE_PRESENT&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:transparent;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;The project is attached. Any tips or ideas what would prevent this example from working?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3005.usbd_5F00_cdc_5F00_acm.zip"&gt;devzone.nordicsemi.com/.../3005.usbd_5F00_cdc_5F00_acm.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDC_ACM with softdevice.</title><link>https://devzone.nordicsemi.com/thread/151976?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 08:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:318a1658-f84c-41a9-b51e-30ed224cc9a5</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;strong&gt;UPDATE:&amp;nbsp;&lt;/strong&gt;It is not necessary to go through the steps below,&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fusbd_ble_uart_example.html&amp;amp;cp=4_0_0_4_5_50_1"&gt;here&lt;/a&gt;&amp;nbsp;is an example that combines the ble_app_uart example with the usb_cdc_acm&amp;nbsp;module.&lt;/p&gt;
&lt;p&gt;I would approach it by starting with a simple ble example (e.g. &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fble_sdk_app_blinky.html&amp;amp;cp=4_0_0_4_1_2_3"&gt;BLE Blinky Application&lt;/a&gt;), then I would add line by line from the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fusbd_cdc_acm_example.html&amp;amp;cp=4_0_0_4_5_50_3"&gt;USB CDC ACM Example&lt;/a&gt;. While doing this you will encounter many errors, which can be resolved by adding the appropriate .c (Include them in the project explorer window to the left) and .h files (include them at the top in the main file, and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/37534/why-can-not-compile-the-h-from-the-nrf5_sdk_15-0-0_a53641a-to-the-nrf5_sdk_for_mesh_v2-1-1_src-s-light_switch--server-project"&gt;add the path&lt;/a&gt;). You must also remember to enable the necessary peripherals and settings in the sdk_config.h file.&lt;/p&gt;
&lt;p&gt;If you encounter any problems while doing this, please ask.&lt;/p&gt;
&lt;p&gt;Best regards, Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>