<?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>BLE doesn&amp;#39;t work in the custom board of NRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92356/ble-doesn-t-work-in-the-custom-board-of-nrf52840</link><description>Hi, 
 I recently started using Nordic microcontrollers and I have designed a custom board based on nRF52840 and its works except for Bluetooth. 
 First of all, I&amp;#39;m using vscode+zephyr to program the board, and the firmware I&amp;#39;m using is a sample firmware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Oct 2022 13:27:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92356/ble-doesn-t-work-in-the-custom-board-of-nrf52840" /><item><title>RE: BLE doesn't work in the custom board of NRF52840</title><link>https://devzone.nordicsemi.com/thread/389006?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 13:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebf68435-1bae-47d3-9fd4-7c042e43f0e9</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Sorry for not getting back to you sooner.&lt;/p&gt;
&lt;p&gt;The nRF part of the schematic looks good.&lt;/p&gt;
&lt;p&gt;You should contact Ignion, the antenna manufacturer, and get them to have a look at your PCB. They should be able to confirm whether your lack of antenna matching components is the cause of the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE doesn't work in the custom board of NRF52840</title><link>https://devzone.nordicsemi.com/thread/388571?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9db1d371-dec2-4f3a-a908-d9f62036d1dd</guid><dc:creator>salvatore_</dc:creator><description>&lt;p&gt;I am not very convinced that the problem is the antenna, okay the signal might be very weak but not nonexistent. I also tried to run a test via RSSI Viewer but nothing, it is as if the antenna is not totally connected.&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/Screenshot_5F00_22.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Could there be some error in the circuit? I followed &lt;strong&gt;configuration no. 6.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fref_circuitry.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fref_circuitry.html&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I cannot find the problem, perhaps I should redesign the board using an antenna PCB as in the dk.&amp;nbsp;However, before redesigning the board I would like to be sure that the problem is that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE doesn't work in the custom board of NRF52840</title><link>https://devzone.nordicsemi.com/thread/388499?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 09:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:380f17aa-466f-49a3-8107-dce7fd00a9ab</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Since the firmware works correctly on the nRF52840 DK the problem would be with the custom hardware. As I mentioned, if the antenna is not tuned correctly the very little power will be transmitted. If C3, L1 and C7 are the only components between the ANT pin and the antenna, I expect the antenna impedance will not be tune to 50 ohm as is required for good antenna performance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE doesn't work in the custom board of NRF52840</title><link>https://devzone.nordicsemi.com/thread/388170?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 14:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d3ec99-cef6-41d9-8f29-c540d13c3129</guid><dc:creator>salvatore_</dc:creator><description>&lt;p&gt;If it helps here are the configuration files of the board:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;.dts&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Copyright (c) 2022 Nordic Semiconductor ASA
// SPDX-License-Identifier: Apache-2.0

/dts-v1/;
#include &amp;lt;nordic/nrf52840_qiaa.dtsi&amp;gt;

/ {
	model = &amp;quot;custom_nRF52840&amp;quot;;
	compatible = &amp;quot;custom,custom-nrf52840&amp;quot;;

	chosen {
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
		zephyr,console = &amp;amp;uart0;
		zephyr,shell-uart = &amp;amp;uart0;

		zephyr,uart-mcumgr = &amp;amp;uart0;
		zephyr,bt-mon-uart = &amp;amp;uart0;
		zephyr,bt-c2h-uart = &amp;amp;uart0;
	};

	leds {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		led0: led_0 {
			gpios = &amp;lt;&amp;amp;gpio0 13 GPIO_ACTIVE_HIGH&amp;gt;;
			label = &amp;quot;Green LED 0&amp;quot;;
		};
		led1: led_1 {
			gpios = &amp;lt;&amp;amp;gpio0 12 GPIO_ACTIVE_HIGH&amp;gt;;
			label = &amp;quot;Green LED 1&amp;quot;;
		};
		led2: led_2 {
			gpios = &amp;lt;&amp;amp;gpio0 15 GPIO_ACTIVE_HIGH&amp;gt;;
			label = &amp;quot;Green LED 2&amp;quot;;
		};
		led3: led_3 {
			gpios = &amp;lt;&amp;amp;gpio0 16 GPIO_ACTIVE_HIGH&amp;gt;;
			label = &amp;quot;Green LED 3&amp;quot;;
		};
	};

	aliases {
		led0 = &amp;amp;led0;
		led1 = &amp;amp;led1;
		led2 = &amp;amp;led2;
		led3 = &amp;amp;led3;
	};
};

&amp;amp;adc {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpiote {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio1 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uart0 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;14&amp;gt;; //14//6
	rx-pin = &amp;lt;9&amp;gt;; //8
	rts-pin = &amp;lt;0xFFFFFFFF&amp;gt;;
	cts-pin = &amp;lt;0xFFFFFFFF&amp;gt;;
};

&amp;amp;flash0 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x0 0xc000&amp;gt;;
		};
		slot0_partition: partition@c000 {
			label = &amp;quot;image-0&amp;quot;;
			reg = &amp;lt;0xc000 0x72000&amp;gt;;
		};
		slot1_partition: partition@7e000 {
			label = &amp;quot;image-1&amp;quot;;
			reg = &amp;lt;0x7e000 0x72000&amp;gt;;
		};
		scratch_partition: partition@f0000 {
			label = &amp;quot;image-scratch&amp;quot;;
			reg = &amp;lt;0xf0000 0xa000&amp;gt;;
		};
		storage_partition: partition@fa000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0xfa000 0x6000&amp;gt;;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;_defconfig&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Copyright (c) 2022 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_CUSTOM_NRF52840=y

# Enable MPU
CONFIG_ARM_MPU=y

# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y

# Enable RTT
CONFIG_USE_SEGGER_RTT=y

# Enable gpio
CONFIG_GPIO=y

# Enable uart drive
CONFIG_SERIAL=y

# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# additional board options
CONFIG_GPIO_AS_PINRESET=y

# CONFIG_PINCTRL=y&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE doesn't work in the custom board of NRF52840</title><link>https://devzone.nordicsemi.com/thread/388164?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 13:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f92c3cc2-cee4-48fe-be7f-7441fdfbf059</guid><dc:creator>salvatore_</dc:creator><description>&lt;p&gt;I changed C4 and C5, but the problem is still there. I&amp;#39;m powering and programming the board with nrf52840DK, so I don&amp;#39;t think that is the problem. I think the problem is caused by some configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE doesn't work in the custom board of NRF52840</title><link>https://devzone.nordicsemi.com/thread/388149?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 12:56:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e31d4305-59a0-4784-9730-0015c7da43cf</guid><dc:creator>Bendik Heiskel</dc:creator><description>[quote user="salvatore_"]1. The pi network is in the updated wiring diagram and I don&amp;#39;t think that is the problem.[/quote]
&lt;p&gt;Are you referring to C3, L1 and C7?&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664282711903v1.png" alt=" " /&gt;&lt;br /&gt;These are the radio matching/filtering circuit, they can&amp;#39;t be used to match the antenna impedance as well.&lt;/p&gt;
[quote user="salvatore_"]2.&amp;nbsp;&lt;span&gt;32MHz crystal&amp;nbsp;part number: C648963&amp;nbsp;&lt;a href="https://lcsc.com/product-detail/Crystals_HD-7D032000M01_C648963.html"&gt;https://lcsc.com/product-detail/Crystals_HD-7D032000M01_C648963.html&lt;/a&gt;&lt;/span&gt;[/quote]
&lt;p&gt;This crystal have a rated CL of 12pF. The correct value for C4 and C5 can be calculated using(assuming insignificant trace capacitance):&lt;br /&gt;C= 2*CL - 2*Cpin&lt;/p&gt;
&lt;p&gt;The typical pin capacitance(Cpin) for XC1 and XC2 is 3pF. Using this equation a better suited capacitance for C4 and C5 is 18pF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE doesn't work in the custom board of NRF52840</title><link>https://devzone.nordicsemi.com/thread/388131?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 12:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa09db5f-fd3f-4851-a9e9-1681976accf1</guid><dc:creator>salvatore_</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your quick reply.&lt;/p&gt;
&lt;p&gt;1. The pi network is in the updated wiring diagram and I don&amp;#39;t think that is the problem.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&lt;span&gt;32MHz crystal&amp;nbsp;part number: C648963&amp;nbsp;&lt;a id="" href="https://lcsc.com/product-detail/Crystals_HD-7D032000M01_C648963.html"&gt;https://lcsc.com/product-detail/Crystals_HD-7D032000M01_C648963.html&lt;/a&gt;&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,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Salvatore&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE doesn't work in the custom board of NRF52840</title><link>https://devzone.nordicsemi.com/thread/388118?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 11:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0953bd5c-6652-4c32-b2fc-57169c4eb6ee</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no antenna matching circuit in your schematic. Ignion recommends using a pi matching network for this antenna, as the antenna performance is dependent on the board size/shape and nearby components. Without this matching network the antenna may not be tuned correctly for the 2.4GHz frequency band, and the radiated power can be very low. Ignion can help you with selecting the correct components/values for the matching network.&lt;/p&gt;
&lt;p&gt;The 32MHz crystal frequency accuracy must also be within 40ppm for the radio to be compatible with BLE. If the crystal is loaded incorrectly the frequency offset of the carrier may be outside this 40 ppm limit. What is the part number for the 32MHz crystal you are using?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Bendik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>