<?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>Unable to Establish Connection to BC832 on NRF Connect After Programming via NRF52 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117183/unable-to-establish-connection-to-bc832-on-nrf-connect-after-programming-via-nrf52-dk</link><description>I am trying to program the BC832 ( https ://www .fanstel .com /bt832 -1 ) using the NRF52DK (NRF52832). BC832 is a Bluetooth Low Energy (BLE) 5.3 with NFC module using Nordic nRF52832 SoC. A chip antenna is integrated. 
 I followed the wiring instructions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Dec 2024 20:48:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117183/unable-to-establish-connection-to-bc832-on-nrf-connect-after-programming-via-nrf52-dk" /><item><title>RE: Unable to Establish Connection to BC832 on NRF Connect After Programming via NRF52 DK</title><link>https://devzone.nordicsemi.com/thread/514815?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 20:48:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90dbb9fb-2805-4b9b-97ed-70f399f154f0</guid><dc:creator>Steven F</dc:creator><description>&lt;p&gt;I sincerely want to thank you for your valuable guidance regarding the use of the nRF52 series and LFCLK initialization. Your clear and professional explanation has greatly helped me better understand how to manage this in my project. At the same time, I&amp;rsquo;d like to apologize if my frequent questions have caused any inconvenience or disruption. I truly appreciate your patience and generosity in taking the time to assist me.&lt;/p&gt;
&lt;p&gt;Thank you once again, and I wish you all the best!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Establish Connection to BC832 on NRF Connect After Programming via NRF52 DK</title><link>https://devzone.nordicsemi.com/thread/514802?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 16:40:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b115620-3cf7-42da-9efb-81d25e0d62ff</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;The LFCLK, crystal etc is handled for you when using BLE, so remove your code and instead rely on the correct configuration;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    // Initialize.
    uart_init();
    log_init();
    timers_init();
    buttons_leds_init(&amp;amp;erase_bonds);
    power_management_init();
    ble_stack_init();      // &amp;lt;&amp;lt;== this function initialises LFCLK for you
    ...
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For the BC832 which does not have a 32.768kHz low frequency crystal, place the following lines at the top of sdk_config.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRFX_CLOCK_CONFIG_LF_SRC         0
#define CLOCK_CONFIG_LF_SRC              0
#define NRF_SDH_CLOCK_LF_SRC             0
#define NRF_SDH_CLOCK_LF_RC_CTIV        16
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV    2
#define NRF_SDH_CLOCK_LF_ACCURACY        1 // &amp;lt;1=&amp;gt; NRF_CLOCK_LF_ACCURACY_500_PPM
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do not write to LFCLK in your init_pins() as the SoftDevice handles that for you. Pin P0.01 is not used for BLE connectivity as there is no low frequency crystal.&lt;/p&gt;
&lt;p&gt;Nordic support team should step in here and propose nRFConnect SDK .. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Establish Connection to BC832 on NRF Connect After Programming via NRF52 DK</title><link>https://devzone.nordicsemi.com/thread/514770?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 14:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5790767-f916-4f58-a169-88fe3bd2bf26</guid><dc:creator>Steven F</dc:creator><description>&lt;p&gt;Thank you so much for your suggestion about checking whether the pins are working properly. Using the following code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;nrf_gpio.h&amp;quot;
#include &amp;quot;nrf_delay.h&amp;quot;

#define TEST_PIN NRF_GPIO_PIN_MAP(0, 2) // P0.01
//#define TEST_PIN NRF_GPIO_PIN_MAP(0, 2) // P0.02 

int main(void)
{
    NRF_CLOCK-&amp;gt;TASKS_LFCLKSTOP = 1; 
    NRF_CLOCK-&amp;gt;LFCLKSRC = CLOCK_LFCLKSRC_SRC_RC &amp;lt;&amp;lt; CLOCK_LFCLKSRC_SRC_Pos; 
    NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1; 

    nrf_gpio_cfg_default(TEST_PIN); 
    nrf_gpio_cfg_output(TEST_PIN); 
    // 


    while (1)
    {
        nrf_gpio_pin_set(TEST_PIN);   
        nrf_delay_ms(1000);         
        nrf_gpio_pin_clear(TEST_PIN); 
        nrf_delay_ms(1000);          
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I was able to test Pin 12 (P0.01) and Pin 13 (P0.02), and now I can detect voltage transitions. It seems that the issue was caused by not configuring the low-frequency clock properly and not resetting the pins to their default state.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8132.png" /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/BC832_5F00_V2.01_5F00_Dec_2D00_2017.pdf"&gt;devzone.nordicsemi.com/.../BC832_5F00_V2.01_5F00_Dec_2D00_2017.pdf&lt;/a&gt;Here are the pin assignments and datasheet of BC832.&lt;/p&gt;
&lt;p&gt;After configuring Pin 12 (P0.01) and Pin 13 (P0.02) for GPIO functionality, I noticed that nRF Connect is unable to scan for BC832. I suspect this might be due to a conflict with BLE functionality, as &lt;span&gt;Pin 12 (P0.01)&lt;/span&gt;&amp;nbsp;is being used for GPIO instead of connecting to the external crystal oscillator required by BLE.&lt;/p&gt;
&lt;p&gt;To address this, I plan to use PIN 9 (P0.03) and Pin 12 (P0.01) for GPIO high/low transitions, keeping P0.01 available for BLE connectivity. However, even after making this change, I&amp;rsquo;m still unable to scan and detect BC832.&lt;/p&gt;
&lt;p&gt;Here is the project on SES now:&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_bc832-_2D00_-cannot-scaned.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_bc832-_2D00_-cannot-scaned.zip&lt;/a&gt;path:&lt;span&gt;&amp;quot;\ble_app_uart_bc832\pca10040\s132\ses&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And here is the previous project where the BC832 could be detected, but pins 12 and 13 could not toggle voltage:&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_bc832-_2D00_-detected.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_bc832-_2D00_-detected.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could this issue still be related to the crystal oscillator configuration, or am I missing something else critical? Thank you again for your time and expertise!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Steven&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Establish Connection to BC832 on NRF Connect After Programming via NRF52 DK</title><link>https://devzone.nordicsemi.com/thread/514586?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 16:08:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:111e35dd-d40d-4710-b676-dcacd96a5d37</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Pin 12 (P0.01) may be set to the external crystal mode though pin 13 (P0.02) should work. One assumes you are using P0.01 and P0.02 and not P0.12 and P0.13?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;12 P01/XL2  C7 P0.01 GPIO, connection for 32.768kHz crystal
13 P02/AIN0 C6 P0.02 GPIO, Analog input 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Should pin 13 work but not pin 12 try this, highly unlikely it would be required though:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;   // Select 32kHz clock source to be internal RC
   //NRF_CLOCK-&amp;gt;LFCLKSRC = CLOCK_LFCLKSRC_SRC_Xtal &amp;lt;&amp;lt; CLOCK_LFCLKSRC_SRC_Pos;
     NRF_CLOCK-&amp;gt;LFCLKSRC = CLOCK_LFCLKSRC_SRC_RC &amp;lt;&amp;lt; CLOCK_LFCLKSRC_SRC_Pos;
   //NRF_CLOCK-&amp;gt;LFCLKSRC = CLOCK_LFCLKSRC_SRC_Synth &amp;lt;&amp;lt; CLOCK_LFCLKSRC_SRC_Pos;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Establish Connection to BC832 on NRF Connect After Programming via NRF52 DK</title><link>https://devzone.nordicsemi.com/thread/514545?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 14:17:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d99cc6aa-a301-4d0c-a87c-10d44b8845b7</guid><dc:creator>Steven F</dc:creator><description>&lt;p&gt;Thank you again for your previous help! I&amp;rsquo;ve successfully connected the BC832 module. However, I&amp;rsquo;ve encountered a new issue and was hoping you could offer some guidance.&lt;/p&gt;
&lt;p&gt;Currently, I am trying to send commands to change the voltage levels of pins 12 and 13 on the BC832. I used a multimeter to measure the voltage on these pins, and after sending the &lt;code&gt;01&lt;/code&gt; and &lt;code&gt;02&lt;/code&gt; commands, the measured voltage remains around 100mV. I am powering the BC832 via the VDD_nrf pin on the NRF52 DK, so theoretically, I expect the voltage on pins 12 and 13 to be around 3V when the corresponding commands are sent.&lt;/p&gt;
&lt;p&gt;To troubleshoot, I tried running the same code directly on the NRF52 DK, and I was able to change the voltage levels of pins 12 and 13 successfully using nRF Connect. The measured voltage was around 3V as expected.&lt;/p&gt;
&lt;p&gt;This leads me to believe the issue might be related to the code or its interaction with the BC832. Could you please offer any additional insights or advice on what might be causing this behavior?&lt;/p&gt;
&lt;p&gt;Thank you so much for your time and expertise!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Establish Connection to BC832 on NRF Connect After Programming via NRF52 DK</title><link>https://devzone.nordicsemi.com/thread/514368?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 19:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d0a7ebf-9d05-42c6-9315-69582c6fe8ac</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Sloppy low-frequency clocks are fine for advertising but useless for a BLE connection.&amp;nbsp;There is no 32kHz crystal fitted to this module (unless you added one) so these definitions (which assume LF crystal) are incorrect:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//==========================================================

// &amp;lt;h&amp;gt; Clock - SoftDevice clock configuration

//==========================================================
// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_SRC  - SoftDevice clock source.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_SRC_RC 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_SRC_XTAL 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_SRC_SYNTH 

#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 1
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. 
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. 
// &amp;lt;i&amp;gt; How often (in number of calibration intervals) the RC oscillator shall be calibrated
// &amp;lt;i&amp;gt;  if the temperature has not changed.

#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_ACCURACY  - External clock accuracy used in the LL to compute timing.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_ACCURACY_250_PPM 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_ACCURACY_500_PPM 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_ACCURACY_150_PPM 
// &amp;lt;3=&amp;gt; NRF_CLOCK_LF_ACCURACY_100_PPM 
// &amp;lt;4=&amp;gt; NRF_CLOCK_LF_ACCURACY_75_PPM 
// &amp;lt;5=&amp;gt; NRF_CLOCK_LF_ACCURACY_50_PPM 
// &amp;lt;6=&amp;gt; NRF_CLOCK_LF_ACCURACY_30_PPM 
// &amp;lt;7=&amp;gt; NRF_CLOCK_LF_ACCURACY_20_PPM 
// &amp;lt;8=&amp;gt; NRF_CLOCK_LF_ACCURACY_10_PPM 
// &amp;lt;9=&amp;gt; NRF_CLOCK_LF_ACCURACY_5_PPM 
// &amp;lt;10=&amp;gt; NRF_CLOCK_LF_ACCURACY_2_PPM 
// &amp;lt;11=&amp;gt; NRF_CLOCK_LF_ACCURACY_1_PPM 

#ifndef NRF_SDH_CLOCK_LF_ACCURACY
#define NRF_SDH_CLOCK_LF_ACCURACY 7
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Rather than messing around trying to fix this I usually add the following at the top of &lt;strong&gt;&lt;em&gt;sdk_config.h&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRFX_CLOCK_CONFIG_LF_SRC         0
#define CLOCK_CONFIG_LF_SRC              0
#define NRF_SDH_CLOCK_LF_SRC             0
#define NRF_SDH_CLOCK_LF_RC_CTIV        16
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV    2
#define NRF_SDH_CLOCK_LF_ACCURACY        1 // &amp;lt;1=&amp;gt; NRF_CLOCK_LF_ACCURACY_500_PPM
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Establish Connection to BC832 on NRF Connect After Programming via NRF52 DK</title><link>https://devzone.nordicsemi.com/thread/514363?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 18:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bcb77ac-18c0-4584-aa3f-0289976724a2</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;Hello Steven,&lt;/div&gt;
&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;&lt;/div&gt;
&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;You have been able to program it correctly and it is starting up as it is advertising and you can see that. The issue you see is most likely related to a couple of things. Potential noise on the strings you have attached to the module really close and if not on the antenna of the module. I also don&amp;#39;t know the material&amp;nbsp; you have placed the module on and the tape.&amp;nbsp;&lt;/div&gt;
&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;&lt;/div&gt;
&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;In the wiring instructions you&amp;#39;ve linked to, have a look at the cables connected and how they are kept short and tucked away behind the module. The antenna is unfortunately placed downwards and towards the breakout board, so you want to do the opposite. Have the antenna in as much free space as possible and pointing upwards. You&amp;#39;ll get there, just have another attempt with the soldering iron and tuck away cables from the antenna. Keep cables and wires short and preferably through a header like done in the instructions, at least initially.&amp;nbsp;&lt;/div&gt;
&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;&lt;/div&gt;
&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;Say hi to the vegan Deli in George/South st from me:)&lt;/div&gt;
&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;&lt;/div&gt;
&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;&lt;/div&gt;
&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;Best regards&lt;/div&gt;
&lt;div style="border:0;color:rgba(0, 0, 0, 1);direction:ltr;font-size:11pt;font-style:normal;font-weight:400;letter-spacing:normal;line-height:inherit;margin:0;padding:0;text-indent:0;text-transform:none;vertical-align:baseline;white-space:normal;"&gt;Asbjørn&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>