<?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>BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33282/bl652-evk-crystal-problem</link><description>Hello, 
 I am working with the BL652 EVK from LAIRD. The EVK has nRF52832 IC inside of the module. I downloaded the &amp;quot; nRF5_SDK_15.0.0_a53641a&amp;quot; and trying to use &amp;quot;ble_app_uart_pca10040_s132” application. This application is for nRF52832 with external crystal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Apr 2018 10:01:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33282/bl652-evk-crystal-problem" /><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/128206?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 10:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88bc9940-b6eb-4c6f-8512-856ce1568ff1</guid><dc:creator>shewan</dc:creator><description>&lt;p&gt;By the way, the BL652 EVK had a 32KHz crystal on board. It is not connected by default, and you will need to bridge SB8 and SB9 to connect it to the module. See page 33 of the user guide&amp;nbsp;&lt;a href="https://assets.lairdtech.com/home/brandworld/files/BL652%20Dev%20Kit%20User%20Guide.pdf"&gt;assets.lairdtech.com/.../BL652 Dev Kit User Guide.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/128205?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 09:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b350299b-887d-4d95-9b47-2345793551d6</guid><dc:creator>shewan</dc:creator><description>&lt;p&gt;BL652 EVK has a 32KHz crystal on board, but it is not connected by default. You will need to bridge SB9 and SB8 to connect it to the module. See the user guide (page 33)&amp;nbsp; here:&amp;nbsp;&lt;a href="https://assets.lairdtech.com/home/brandworld/files/BL652%20Dev%20Kit%20User%20Guide.pdf"&gt;assets.lairdtech.com/.../BL652 Dev Kit User Guide.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/128198?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 09:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e284bfa-57f0-4713-bec2-a80375ce15cb</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;m glad it worked!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/128188?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 08:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30637162-d426-4ef5-bd16-376a7492baa4</guid><dc:creator>enkavak</dc:creator><description>&lt;p&gt;Hello Stian,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I fully erased the chip. Now I can debug the code successfully. Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/128182?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 08:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ea5c389-ca06-478f-ab6a-732c3eb8d6e4</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Ok, so just to summarize here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You have a ble_app_uart application with external crystal that runs fine on a pca10040 DK&lt;/li&gt;
&lt;li&gt;The ble_app_uart application does not run on the BL652, even if you change to LFRC.&lt;/li&gt;
&lt;li&gt;ble_app_blinky does run on the BL652 but debugging is not working.&lt;/li&gt;
&lt;li&gt;From the debug window it seems like you are running a bootloader? Since you have code in the 0x7F000 area.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Are you using bootloader? Maybe you flashed the bootloader in an earlier project and that you have never fully erased the chip afterwards? Then the previous values in UICR will redirect to the bootloader region, even though the code you are running now does not use the bootloader.&lt;/p&gt;
&lt;p&gt;Try to fully erase the chip. Open a terminal (cmd) and write: &lt;code&gt;nrfjprog --eraseall&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;What do you mean with &amp;quot;I can not debug the code&amp;quot;. Do you get any errors? Are you unable to set breakpoints, or does it never reach the breakpoints you set?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/128171?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 07:37:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bba8b10-28e0-43dd-bd44-abd4e2e2b7fb</guid><dc:creator>enkavak</dc:creator><description>&lt;p&gt;Hello Stian&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I&amp;nbsp;use the code in the below path.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;nRF5_SDK\examples\peripheral\blinky\pca10040\s132\ses&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;When I use &amp;quot;Build and Run&amp;quot;, the LEDs are blinking. However, When I use &amp;quot;Build and Debug&amp;quot;, I can not debug the code&amp;nbsp;and LEDs are not blinking.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/128170?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 07:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a92b8081-5265-4839-9502-7d0ce2f684b0</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Then I suspect there&amp;#39;s something else going on. Have you tried flashing the blinky example which does not use softdevice? Just to see if it the HW is actually working.&lt;/p&gt;
&lt;p&gt;Sorry, didn&amp;#39;t mean to debug, just check if the code is not hardfaulting or something.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/128168?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 07:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41cd640e-da87-44ab-93be-8cfd84fadd52</guid><dc:creator>enkavak</dc:creator><description>&lt;p&gt;Hello, picben&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I set a breakpoint in the main but nothing has changed. I can not debug the code.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I have attached my compiled hex file. How will you debug the code by using hex file?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_pca10040e_5F00_s112.hex"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_pca10040e_5F00_s112.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/128165?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 07:16:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21dc3fcb-2c09-4c61-b4e7-20f032e748eb</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Are you not able to set a breakpoint in top of main? You should be able to debug the code even with the wrong LF clock settings. The LF clock is not started until softdevice init.&lt;/p&gt;
&lt;p&gt;Maybe you can post your hex file here. Then I can try to debug it and see if it hardfaults.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/128153?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 05:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a64b1ccd-f641-4051-ac6b-47d186c1b544</guid><dc:creator>enkavak</dc:creator><description>&lt;p&gt;Hello, picben.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LED blinking is not the case since the flashed code is crashes somewhere. If there is another problem, then Why I can not debug the code, step by step?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I think that I have the crystal configuration problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Are you using the same SDK and application with me?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span&gt;I downloaded the &amp;quot;&lt;/span&gt;&lt;strong&gt;&lt;em&gt;nRF5_SDK_15.0.0_a53641a&amp;quot;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;span&gt;and trying to use&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;&amp;quot;ble_app_uart_pca10040_s132&amp;rdquo;&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In addition to all, I am using segger embedded studio&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/127871?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 14:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d9aa68a-ab0a-4947-93dd-79add9dcd376</guid><dc:creator>picben</dc:creator><description>&lt;p&gt;Alright, it doesn&amp;#39;t look like a clock configuration problem then, I am using the same configuration on a BL652 right now and it&amp;#39;s working fine (it&amp;#39;s on a custom PCB though, not on the evaluation kit).&lt;/p&gt;
&lt;p&gt;I was going to suggest to make sure the SoftDevice is flashed along with the application but looking at your screenshot I think it&amp;#39;s the case.&lt;/p&gt;
&lt;p&gt;I suggest that you check how the buttons and LEDs pins are mapped on your Evaluation board (SIO_13 to SIO_20 of the BL652) and make sure nothing will go wrong if the application tries to access them maybe.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/127862?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 14:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:add8142f-2f48-44dd-b7bb-23cf5693e359</guid><dc:creator>enkavak</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I have changed the accuracy to 250ppm and even 500ppm, but nothing has changes. still I can not debug the code.&lt;/p&gt;
&lt;p&gt;nrf_clock_lf_cfg_t const clock_lf_cfg =&lt;br /&gt; {&lt;br /&gt; .source = 0,&lt;br /&gt; .rc_ctiv = 16,&lt;br /&gt; .rc_temp_ctiv = 2,&lt;br /&gt; .accuracy = 1&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0334.Untitled.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL652 EVK Crystal Problem</title><link>https://devzone.nordicsemi.com/thread/127859?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 14:01:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de4ea9be-9fcd-4738-9aa3-843c8d558eb9</guid><dc:creator>picben</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The ble_app_uart example from the SDK calls the nrf_sdh_enable_request library function to enable the SoftDevice. This function gets the clock configuration from the sdk_config.h file. Have you tried changing the configuration of the clock directly in the sdk_config.h file ? A cleaner way, if you don&amp;#39;t want to modify SDK files directly would be to add a app_config.h in the project and add the USE_APP_CONFIG preprocessor symbol in the compiler options. You then just re-define the options you want in the app_config.h file (in your case NRF_SDH_CLOCK_LF_SRC, NRF_SDH_CLOCK_LF_RC_CTIV, NRF_SDH_CLOCK_LF_RC_TEMP_CTIV and NRF_SDH_CLOCK_LF_ACCURACY). You must set the accuracy to 250ppm (or even 500ppm, according to nRF52832 errata #146) to get a stable BLE connection with the internal RC.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Another thing that you might want to check is the mapping of all I/O used by the ble_app_uart example on your board. I think the UART pins mapping is the same between the nRF52 DK and the BL652 EVK but I&amp;#39;m not so sure about the buttons and LEDs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>