<?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>Issues with programming/operation of custom PCB with nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92164/issues-with-programming-operation-of-custom-pcb-with-nrf52832</link><description>I&amp;#39;ve just built up a batch of custom PCB&amp;#39;s we designed using the nRF52832-QFAA IC&amp;#39;s. I&amp;#39;m attempting to program these with the nRF52-DK, and am following the connection diagram indicated below, with the exception that I have not got the GND_DETECT connected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Sep 2022 01:57:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92164/issues-with-programming-operation-of-custom-pcb-with-nrf52832" /><item><title>RE: Issues with programming/operation of custom PCB with nRF52832</title><link>https://devzone.nordicsemi.com/thread/388236?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 01:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1afcd31-54af-44cf-b8cf-9fcf62ae4028</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;OK, got this all working now.&amp;nbsp; There were two issues:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; Needed to add&amp;nbsp;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC=n to my prj.config file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.&amp;nbsp; Needed to power cycle my custom board after flashing to force a hard reset.&amp;nbsp; Without this second step, the code just doesn&amp;#39;t seem to run as expected&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mike&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with programming/operation of custom PCB with nRF52832</title><link>https://devzone.nordicsemi.com/thread/387813?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 07:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6d391fb-5755-4752-acff-c07872c48fb4</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;I did in fact try that earlier, and it made no difference to the functioning of my custom board.&lt;/p&gt;
&lt;p&gt;I did some more digging with the Ozone debugger.&amp;nbsp; This is what I have discovered:&lt;/p&gt;
&lt;p&gt;According to this: &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fgpio.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fgpio.html&lt;/a&gt;&amp;nbsp; the address of the GPIO IN Register that shows the status of all the GPIO pins at any point is 0x50000510.&amp;nbsp; I am trying to toggle P0.18 on my hardware.&amp;nbsp; This is what I see at that memory location within the Memory Window of Ozone with the relevant GPIO (P0.18) pulled low (so the LED turns on)&lt;/p&gt;
&lt;p&gt;50000500&amp;nbsp; 00 00 00 00 60 00 00 00 60 00 00 00 60 00 00 00&lt;/p&gt;
&lt;p&gt;50000510 C0 01 20 00 60 00 04 00 60 00 04 00 60 00 04 00&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And again with relevant GPIO (P0.18) pulled high (so the LED turns off):&lt;/p&gt;
&lt;p&gt;50000500&amp;nbsp; 00 00 00 00 60 00 04 00 60 00 04 00 60 00 04 00&lt;/p&gt;
&lt;p&gt;50000510&amp;nbsp; C0 01 20 00 60 00 04 00 60 00 04 00 60 00 04 00&lt;/p&gt;
&lt;p&gt;So I can&amp;rsquo;t quite make sense of the actual bytes that are changing and correlate that to the relevant GPIO.&amp;nbsp; But at least it looks like the relevant registers are being updated.&lt;/p&gt;
&lt;p&gt;And the bizarre thing is, I am now seeing the correct activity on the relevant GPIO pin!&lt;/p&gt;
&lt;p&gt;However, if I stop debugging, and flash the custom board with the same firmware I was using during debugging, but don&amp;rsquo;t run the debugger, then I am not seeing any activity on the GPIO.&lt;/p&gt;
&lt;p&gt;Any ideas why this might be occurring?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with programming/operation of custom PCB with nRF52832</title><link>https://devzone.nordicsemi.com/thread/387801?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 07:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebef3b82-48f6-4d05-a78e-d5a1fa987716</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Mike,&lt;/p&gt;
&lt;p&gt;The design looks ok. The decoupling capacitor are a bit from the SoC, this might have some deviation from the design in layout. However it&amp;#39;s not critical problem, we guess.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You do not have DCDC in the design. But DK has. So you need to disable the DCDC in the application before programming the device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC=n&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with programming/operation of custom PCB with nRF52832</title><link>https://devzone.nordicsemi.com/thread/387787?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 00:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf0c74ba-9617-4f20-8228-ec11f2805193</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;This is my code BTW:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2016 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;drivers/gpio.h&amp;gt;

/* 1000 msec = 1 sec */
#define SLEEP_TIME_MS   1000

/* The devicetree node identifier for the &amp;quot;led1&amp;quot; alias. */
#define LED_GRN_NODE DT_ALIAS(led1)

/*
 * A build error on this line means your board is unsupported.
 * See the sample documentation for information on how to fix this.
 */
static const struct gpio_dt_spec led_grn = GPIO_DT_SPEC_GET(LED_GRN_NODE, gpios);

void main(void)
{
	int ret;

	if (!device_is_ready(led_grn.port)) {
		return;
	}

	ret = gpio_pin_configure_dt(&amp;amp;led_grn, GPIO_OUTPUT_ACTIVE);
	if (ret &amp;lt; 0) {
		return;
	}

	while (1) {
		ret = gpio_pin_toggle_dt(&amp;amp;led_grn);
		if (ret &amp;lt; 0) {
			return;
		}
		
		k_msleep(SLEEP_TIME_MS);
	}
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with programming/operation of custom PCB with nRF52832</title><link>https://devzone.nordicsemi.com/thread/387786?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 00:45:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a97944b9-a490-4864-b937-6c0636a7908a</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;OK, some more info.&lt;/p&gt;
&lt;p&gt;Ran the debugger on my custom board.&amp;nbsp; It seems to be running the code as expected, as I can see if running through the while loop.&amp;nbsp; If I dive into the gpio_pin_toggle_dt(&amp;amp;led_grn) function, I can see it running a bunch of GPIO API&amp;#39;s. Not sure how I can watch the GPIO register to confirm its toggling the status of the appropriate GPIO though.&lt;/p&gt;
&lt;p&gt;But monitoring the physical pin with my scope, I&amp;#39;m not seeing any change in the state of the pin.&amp;nbsp; I see the same outcome if I let the code run &amp;quot;free&amp;quot; without the debugger.&lt;/p&gt;
&lt;p&gt;So, its like the GPIO isn&amp;#39;t being configured for my custom board chip correctly.&amp;nbsp; Not sure why though&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with programming/operation of custom PCB with nRF52832</title><link>https://devzone.nordicsemi.com/thread/387605?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 06:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ece159a9-13e8-4c84-bc7a-179fa380d1c4</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Did some more work on this today:&lt;/p&gt;
&lt;p&gt;1) Swapped out the 32MHz Xtal on my custom board with the 32MHz xtal off my DK and re-tested.&amp;nbsp; The DK worked with the 32MHz xtal off my custom board but my custom board isn&amp;#39;t working with the 32MHz xtal off the DK&lt;/p&gt;
&lt;p&gt;2) Had a detailed look at the recommended layout as per the DK documentation.&amp;nbsp; The only thing I&amp;#39;ve done differently that might be an issue is that I&amp;#39;ve not made the VSS connection to Pin 31 in the recommended way.&amp;nbsp; But I can&amp;#39;t see that preventing the chip from functioning at all.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got a 4 layer PCB with GND pours on the bottom layer, top layer and layer 2.&amp;nbsp; I&amp;#39;ve also got a pour on layer 3 that is connected to VDD.&lt;/p&gt;
&lt;p&gt;Screen shots of the layout around the chip are shown below:&lt;/p&gt;
&lt;p&gt;Top Layer:&lt;/p&gt;
&lt;p&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/pastedimage1663914896832v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Layer 2 (GND Pour):&lt;/p&gt;
&lt;p&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/pastedimage1663914925926v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Layer 3 (VDD pour):&lt;/p&gt;
&lt;p&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/pastedimage1663914955165v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Bottom Layer (GND pour):&lt;/p&gt;
&lt;p&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/pastedimage1663915010500v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with programming/operation of custom PCB with nRF52832</title><link>https://devzone.nordicsemi.com/thread/387582?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 00:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e4d6f16-385f-47f2-ac45-904b889edc72</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;Thanks for getting in touch.&amp;nbsp; Answers to your questions:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; Yes, I have the 32.768KHz crystal mounted.&amp;nbsp; Its the&amp;nbsp;&lt;span&gt;ECS-.327-12.5-34B-C-TR from ECS with 18pF load capacitors&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. I&amp;#39;m using Visual Studio Code (V1.71.2) as my IDE, and am running V2.0.0 of NCS and&amp;nbsp;v2022.9.179 of the nRF Connect extension for VSC.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. I am using the nrf52dk_nrf52832.dts board file when I build my code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. I have not yet tested the radio on my board, as I can&amp;#39;t even get a simple LED blinky code running on it as yet.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. Yes, I can read the devices memory.&amp;nbsp; I did a comparative test here, following this process:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(a) Programmed DK with a different version of code&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(b) Programmed my device using the LED blinky code.&amp;nbsp;&amp;nbsp;Then read this back and saved as a file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(c) Disconnected my device and then read back the code in the DK.&amp;nbsp; Checked this against the file in (b).&amp;nbsp; I didn&amp;#39;t do an exhaustive comparison, but I could see the files were different&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(d) Programmed my DK with the same code I had programmed the device with in (b)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(e) Read back the file from my DK and compared this to the file I read back in (b).&amp;nbsp; Again, I didn&amp;#39;t do an exhaustive comparison, but it looked to me like they were the same file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, this seems to indicate that my device is actually being programmed, but for whatever reason its not actually running the code as expected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve disconnected all physical connections to my device apart from the crystals, the VDD/GND and SWDIO/SWDCLK signals and all the various PSU decoupling capacitors.&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;Mike&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with programming/operation of custom PCB with nRF52832</title><link>https://devzone.nordicsemi.com/thread/387372?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 21:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3244bec7-deba-4ed2-aa8c-3e2418a072f5</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We would like to know the answers of following questions:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have the 32.768kHz crystal mounted also?&lt;/p&gt;
&lt;p&gt;What SDK are you using? NCS and the nRF5 SDK?&lt;/p&gt;
&lt;p&gt;When you build the HEX file that you program to the custom board do you build for the DK or you build for a custom board file?&lt;/p&gt;
&lt;p&gt;Have you tested the radio on a pre-production sample? It seems here is quite few RF components that can effect the performance significantly.&lt;/p&gt;
&lt;p&gt;Are you able read the devices memory with nrfjprog or the programmer app from the nRF desktop app?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with programming/operation of custom PCB with nRF52832</title><link>https://devzone.nordicsemi.com/thread/387205?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 07:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64ea6466-007e-4073-9a19-d4f3fa012731</guid><dc:creator>Mike Austin (LPI)</dc:creator><description>&lt;p&gt;A bit of an update...&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve disconnected all my GPIO, so the chip basically isn&amp;#39;t loaded up on any inputs apart from the I2C SCL/SDA.&amp;nbsp; Everything else is free to do whatever it wants.&lt;/p&gt;
&lt;p&gt;Flashing my LED Blinky code now appears to do nothing to any of the GPIO.&amp;nbsp; And the unexpected behaviour on P0.05 only appears when I&amp;#39;ve got the custom board powered off an external 3V supply.&amp;nbsp; Current is still sitting around the 7.5mA level.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>