<?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>Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74783/issue-trying-to-run-a-program-from-segger-embedded-studio</link><description>Hello all, 
 I am trying to use my nRF52832 DK for a wireless camera shutter for my phone. I have reviewed the example code from SDK 15.3.0 named ble_app_hids_keyboard as well as modifications to this code to include volume control. 
 link to GitHub that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Jun 2021 09:23:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74783/issue-trying-to-run-a-program-from-segger-embedded-studio" /><item><title>RE: Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/315333?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 09:23:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e23187c-ae1b-4de3-839d-8fe241ae3e13</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The application hardfaults because&amp;nbsp;&lt;em&gt;ble_hids_client_context_size_calc&lt;/em&gt;() returns an extremely high number that is passed on to &lt;em&gt;memset&lt;/em&gt;().&amp;nbsp;&lt;em&gt;ble_hids_client_context_size_calc&lt;/em&gt;() does this because its argument the&amp;nbsp;&lt;em&gt;p_hids&lt;/em&gt; it&amp;#39;s not initialized correctly. More specifically,&amp;nbsp;the member variables&amp;nbsp;&amp;nbsp;&lt;em&gt;input_report_array&lt;/em&gt;[] and&amp;nbsp;&lt;em&gt;output_report_array&lt;/em&gt;[] miss the static prefix when they are initialized in &lt;em&gt;hids_init&lt;/em&gt;().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The fix:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0243.pastedimage1623748873385v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/314803?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 00:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00dae514-ed98-4c6b-9c7e-b10cefed33f8</guid><dc:creator>Gerardo Martin</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_hids_5F00_keyboard.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_hids_5F00_keyboard.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here you are. I can run the example project from Nordic just fine, I would just like to add the consumer controls to it.&amp;nbsp;This isn&amp;#39;t the original nordic project from sdk 15.0. This has the code from github copied into it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/314756?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 14:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8781bc3-699a-4b9a-8dc9-6464df2c6b6e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you upload your entire project here as a zip so I can try to reproduce it at my end? As I&amp;#39;ve said earlier, I was able to download the project and run the example.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/314264?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 15:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6be01439-11e0-44df-b298-b5be8f4fb2ef</guid><dc:creator>Gerardo Martin</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x179/__key/communityserver-discussions-components-files/4/5635.Untitled.png" /&gt;&lt;/p&gt;
&lt;p&gt;I keep my sdk 15 in my C: drive and I&amp;#39;ve copied the github repo inside of ble_app_hids_keyboard&amp;nbsp;that&amp;#39;s in the ble_peripheral folder.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/314195?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 11:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bc01bfa-8343-43be-a827-d2e4792d0d9d</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Could you share a screenshot of debug view which shows where exactly it&amp;#39;s stuck and the call stack?&amp;nbsp;&lt;/p&gt;
[quote user="Gerardo Martin"]where I keep my nrf SDK 15.0.0 folder and I am getting a &amp;quot;stopped by vector catch&amp;quot; error.[/quote]
&lt;p&gt;&amp;nbsp;You have to specifically put it under SDK_ROOT&lt;span&gt;/examples/ble_peripheral folder&amp;nbsp;for it to work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/314024?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 17:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e77c025-46cc-42bb-980a-925ca6a4fb7b</guid><dc:creator>Gerardo Martin</dc:creator><description>&lt;p&gt;I cloned the GitHub repository where I keep my nrf SDK 15.0.0 folder and I am getting a &amp;quot;stopped by vector catch&amp;quot; error. In the call stack, it references ble_hids.c and the functions that were called. It looks like it&amp;#39;s getting stuck with the first call of memset inside of void on_connect().&lt;/p&gt;
&lt;p&gt;My phone won&amp;#39;t connect to it because it takes too long and the led that shows advertising stays on. It looks like there&amp;#39;s a memory issue with connecting a phone to it.&lt;/p&gt;
&lt;p&gt;Could you help with the debugging process on SES?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/310511?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 14:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb0eca8f-3679-4f9b-970e-1a1b21971987</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Gerardo Martin"] &lt;span style="text-decoration:underline;"&gt;do you have any&amp;nbsp;suggestions trying to&amp;nbsp;incorporate that gitHub code to include consumer controls such as volume control in the stock SDK?&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;&lt;span&gt;Are you referring&amp;nbsp;to the Github project? You only need to clone&amp;nbsp;the repository to../examples/ble_peripheral folder in the SDK.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/310265?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 20:15:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08854b89-ec76-4d38-8cc2-d09982fce2fa</guid><dc:creator>Gerardo Martin</dc:creator><description>&lt;p&gt;Well after a bit of snooping on this site, I was able to fix the problem thanks to this solution:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/71860/nrf52-dk-cannot-connect-to-j-link"&gt;J-link driver windows update&lt;/a&gt;&amp;nbsp;and the help of the youtube video you provided.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now that I can properly download code to the board from within SES, &lt;span style="text-decoration:underline;"&gt;do you have any&amp;nbsp;suggestions trying to&amp;nbsp;incorporate that gitHub code to include consumer controls such as volume control in the stock SDK?&lt;/span&gt; I can run the stock SDK&amp;nbsp;15 ble_app_hids_keyboard well on my board now but I would like these additional features. As I mentioned, there is Arduino code that can do volume control but it&amp;#39;s been a mess dealing with the bootloader stuff.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/310258?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 18:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b4363c5-e16f-4ba9-bbf9-21f2ff21fd66</guid><dc:creator>Gerardo Martin</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;SES will build and run the project just fine but with Bluetooth connection problems to my iPhone. Again, the hex files work perfectly fine. A problem that I am having now is SES will not recognize my nrf52 DK anymore. I get &amp;quot;No emulators connected via USB&amp;quot; in a little menu asking to connect via IP instead.&lt;/p&gt;
&lt;p&gt;I have been messing with this board in the arduino IDE, trying to flash a sketch (hid_camerashutter) built for an Adafruit nrf52832. I downloaded bsp for both adafruit nrf and nordic nrf. I burned the bootloader for the adafruit version to my DK and it worked. I probably shouldn&amp;#39;t have messed with it but I did. I tried it again for the nordic bsp in arduino, burned the bootloader but now nothing works. :/ I can&amp;#39;t upload any arduino sketches to my dk and SES won&amp;#39;t recognize it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The J-link menu still pops up when I plug in my device and I&amp;#39;ve dragged the J-link OB SAM3U128 bin file in it to try to fix any problems but to no avail.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue trying to run a program from Segger embedded studio</title><link>https://devzone.nordicsemi.com/thread/308681?ContentTypeID=1</link><pubDate>Fri, 07 May 2021 09:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4e340f5-7c71-41eb-9faf-6436d4a451f8</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The hex file is the output from the build process in SES. Usually we include the pre-compiled hex files with projects so that the end user doesn&amp;#39;t need to build the project before they can flash the project to their nRF.&amp;nbsp;&lt;/p&gt;
[quote user=""]When I try to build and run the&amp;nbsp;example code&amp;nbsp;in Segger embedded studio I&amp;nbsp;have problems connecting my iPhone to the board via Bluetooth[/quote]
&lt;p&gt;&amp;nbsp;I just tried downloading the project and after building and flashing it to the nRF it worked without any issue! Does it build in SES without any issues for you? You might need to shorten the project name as Windows has a maximum length on path.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, if you&amp;#39;re new to SES then I suggest watching &lt;a href="https://www.youtube.com/watch?v=YZouRE_Ol8g&amp;amp;list=PLx_tBuQ_KSqGHmzdEL2GWEOeix-S5rgTV&amp;amp;ab_channel=NordicSemiconductor"&gt;this&lt;/a&gt; tutorial.&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>