<?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 pc-ble driver to Qt application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73079/adding-pc-ble-driver-to-qt-application</link><description>Hello, 
 I try to add the pc-ble driver from Nordic to my Qt application, but my application crashes all the time without a specific error. So I need some help with the implementation of the driver in my application (64 bit for windows). 
 Project file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Mar 2021 20:52:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73079/adding-pc-ble-driver-to-qt-application" /><item><title>RE: Adding pc-ble driver to Qt application</title><link>https://devzone.nordicsemi.com/thread/302470?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 20:52:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3d2c933-7f06-4167-8e60-f1aa48209762</guid><dc:creator>Kampino</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I forgot to copy the DLL files. My application is working now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding pc-ble driver to Qt application</title><link>https://devzone.nordicsemi.com/thread/301898?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 12:48:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c34917d-6680-44cb-a148-ca9da335f301</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No worries.&lt;/p&gt;
&lt;p&gt;I would check the way you do the hard coded serial port of &amp;quot;COM5&amp;quot;. I am not sure what the compiler does with that string literal: If it stores it as a global constant, or if it goes out of scope. This might be a long-shot, but if it goes out of scope, that might be an issue. Can you try with a statically allocated string variable instead?&lt;/p&gt;
&lt;p&gt;Apart from that, figuring out how Qt Designer can give you any error return value, or any indication what went wrong (segfault, etc.), would be of great help. Or if you can run a debug session. Anything else would be unguided guesswork, really.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding pc-ble driver to Qt application</title><link>https://devzone.nordicsemi.com/thread/301879?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 11:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f77cf527-f4f5-4fbc-bfbc-94eb69d5cb82</guid><dc:creator>Kampino</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/tesc"&gt;tesc&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;sorry for the late response...&lt;br /&gt;&lt;br /&gt;The application shouldn&amp;#39;t do much, because I want to identify the issue first (the application runs without any issues when I remove the SoftDevice code).&lt;/p&gt;
&lt;p&gt;The issue comes from the line&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;phy = sd_rpc_physical_layer_create_uart(&amp;quot;COM5&amp;quot;, 1000000, SD_RPC_FLOW_CONTROL_NONE, SD_RPC_PARITY_NONE);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and I don&amp;acute;t have any additional information about the reason for the crash, because Qt Designer only prints &amp;quot;The application has crashed&amp;quot; and the Debugger prints &amp;quot;The CDB process is closed&amp;quot; (CDB unexpected exit). And the amount of time is always the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding pc-ble driver to Qt application</title><link>https://devzone.nordicsemi.com/thread/301345?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 09:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dd63600-7de6-4896-bcfe-31d1a7f2f2ed</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From the code that you pasted, it does not look like the application does much. There&amp;#39;s several years since I last looked at Qt, but I assume that you are entering a main loop somewhere, so that it is not just the application exiting normally?&lt;/p&gt;
&lt;p&gt;What kind of crash is this, what return value do you get from the application, is it a segfault?&lt;/p&gt;
&lt;p&gt;Is there any logging from the application, so that you know how far it gets, and/or where it craches?&lt;/p&gt;
&lt;p&gt;How long does it take before it crashes, and does it always happen after the same amount of time?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>