<?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>USBD with FreeRTOS not work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34413/usbd-with-freertos-not-work</link><description>Without FreeRTOS usbd working normaly with config: 
 #define NRF_SDH_DISPATCH_MODEL 0 #define APP_SCHEDULER_ENABLED 1 
 But with FreeRTOS need use 
 #define NRF_SDH_DISPATCH_MODEL 2 
 else it has errror 
 Error[Li006]: duplicate definitions for &amp;quot;SWI2_EGU2_IRQHandler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Jul 2018 04:31:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34413/usbd-with-freertos-not-work" /><item><title>RE: USBD with FreeRTOS not work</title><link>https://devzone.nordicsemi.com/thread/140475?ContentTypeID=1</link><pubDate>Wed, 18 Jul 2018 04:31:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78887258-14e2-4744-a6d6-04d07631d7c5</guid><dc:creator>silivanov</dc:creator><description>&lt;p&gt;I checked the code, SoftDevice still does not work.&lt;br /&gt;The application crashes to err_code = nrf_sdh_ble_enable (&amp;amp; ram_start);&lt;/p&gt;
&lt;p&gt;where error code = 4&lt;/p&gt;
&lt;p&gt;NRF_LOG_WARNING(&amp;quot;Change the RAM start location from 0x%x to 0x%x.&amp;quot;,&lt;br /&gt; app_ram_start_link, *p_app_ram_start);&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I change ram start address from 0x20002A98 to 0x&lt;/span&gt;20002AB8 (*&lt;span&gt;p_app_ram_start&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;and now it worked!!! =))&lt;/p&gt;
&lt;p&gt;Maybe someone will come in handy this solution.&lt;/p&gt;
&lt;p&gt;And thanks for the sample code! =))&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD with FreeRTOS not work</title><link>https://devzone.nordicsemi.com/thread/140182?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 09:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61573bb9-356c-4832-8c28-a6f6bceec09a</guid><dc:creator>Radoslaw Koppel</dc:creator><description>&lt;p&gt;Please remember to set NRF_SDH_DISPATCH_MODEL to 2 in the sdk_config.h for the example above to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD with FreeRTOS not work</title><link>https://devzone.nordicsemi.com/thread/140175?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 09:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c77da74-7e2b-4bae-abb8-0b051c40db35</guid><dc:creator>silivanov</dc:creator><description>&lt;p&gt;Thank you! I will check as soon as possible. Now I have USB working with RTOS, but does not work BLE, I hope an example of your code will help solve the problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD with FreeRTOS not work</title><link>https://devzone.nordicsemi.com/thread/140168?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 08:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01e0cc9d-8944-4c68-b9bc-d15cb16b1cc5</guid><dc:creator>Radoslaw Koppel</dc:creator><description>&lt;p&gt;Hi, this is part from pre 15.1 repository.&lt;/p&gt;
&lt;p&gt;First of all you have to change nrf_drv_power.c file a little. We could not do it, but it helps to write clean code next:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ret_code_t nrf_drv_power_init(nrf_drv_power_config_t const * p_config)
{
#ifdef SOFTDEVICE_PRESENT
+    if (m_initialized)
+    {
+        return NRF_ERROR_MODULE_ALREADY_INITIALIZED;
+    }
    if (nrf_sdh_is_enabled())
    {
        return NRF_ERROR_INVALID_STATE;
    }
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then the main.c goes:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4150.main.c"&gt;devzone.nordicsemi.com/.../4150.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD with FreeRTOS not work</title><link>https://devzone.nordicsemi.com/thread/140005?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 06:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c2af9ea-4566-47e5-9d24-1cb83a301fa2</guid><dc:creator>silivanov</dc:creator><description>&lt;p&gt;???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD with FreeRTOS not work</title><link>https://devzone.nordicsemi.com/thread/136519?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 10:16:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e8835b6-8cb7-47d1-a8a0-c9edfdc9d391</guid><dc:creator>silivanov</dc:creator><description>&lt;p&gt;Do I understand correctly that I should initialize everything in the same way as in individual examples, but in the same project?&lt;br /&gt;Do I need to call the app_usbd_event_queue_process () function?&lt;br /&gt;The application falls into error when you call this function&lt;/p&gt;
&lt;p&gt;Can you give a piece of sample code? Only main.c file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD with FreeRTOS not work</title><link>https://devzone.nordicsemi.com/thread/135610?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 14:01:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:040007fd-abfd-4c61-b985-d57542f473ef</guid><dc:creator>Radoslaw Koppel</dc:creator><description>[quote userid="71212" url="~/f/nordic-q-a/34413/usbd-with-freertos-not-work"]Error[Li006]: duplicate definitions for &amp;quot;SWI2_EGU2_IRQHandler&amp;quot;&lt;br /&gt;How to solve this problem? What methods of USB need polling for working with FreeRTOS?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is not a problem. See the description of NRF_SDH_DISPATCH_MODEL_POOLING:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**@brief   SoftDevice events are polled manually using @ref nrf_sdh_evts_poll().
 *
 * @note    In this mode, a user application can also implement SD_EVT_IRQHandler() to receive a
 *          notification about incoming events.
 */
 #define NRF_SDH_DISPATCH_MODEL_POLLING    2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is not an USB requirement - it is an SDH implementation in FreeRTOS. This configuration is required for SDH module to remove interrupt implementation. It means that after that you may use pool to check the SD status or you may implement your own interrupt implementation. This is something that is done inside nrf_sdh_freertos.c.&lt;/p&gt;
&lt;p&gt;We are going to provide an example with SoftDevice, together with USBD and working using FreeRTOS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD with FreeRTOS not work</title><link>https://devzone.nordicsemi.com/thread/132727?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 11:12:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:638333d1-ed1e-4e2d-9be7-6ef510f2a727</guid><dc:creator>silivanov</dc:creator><description>&lt;p&gt;Sure.&amp;nbsp;Here: &lt;a href="http://rgho.st/private/7PcBJKX2Q/81475111051ddc87bf9b6cc273bb02c3"&gt;http://rgho.st/7PcBJKX2Q&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And my libraries for project:&amp;nbsp;&lt;a href="http://rgho.st/private/8mhvk2yXk/e0a5f691880aaa4ff4f71db085b0ba93"&gt;http://rgho.st/private/8mhvk2yXk/e0a5f691880aaa4ff4f71db085b0ba93&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Inside the project assembly with FreeRTOS,&amp;nbsp;&lt;span&gt;without FreeRTOS and bootloader.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;At the same time the question about Bootloader: &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;why does not the part of the periphery work in the bootloader (BLE, USB, Timer)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="text-decoration:underline;"&gt;USB&lt;/span&gt; - The controller restarts when the function&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;app_usbd_event_queue_process()&lt;/span&gt; is called (only when cable connected).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="text-decoration:underline;"&gt;Timer&lt;/span&gt; - The controller restarts when triggered interrupt from the timer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;BLE&lt;/u&gt; - When BLE stack initialization (&lt;span style="text-decoration:underline;"&gt;ble_stack_init()&lt;/span&gt;), it gets into the svc_handler () of which there is no implementation of the handler.&lt;/p&gt;
&lt;p&gt;&lt;span&gt; The initialization is the same as in the main program, I use the same files from my libraries nRF5x_LIB15&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD with FreeRTOS not work</title><link>https://devzone.nordicsemi.com/thread/132654?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 07:51:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95912103-1595-460a-905a-20eb11039fb2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Is it possible to attach the project to this case? we can make it private case if you think it is necessary to share the code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>