<?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>Cannot flash onto a nRF52832 QFAB custom board via a nRF52-DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112716/cannot-flash-onto-a-nrf52832-qfab-custom-board-via-a-nrf52-dk</link><description>I have a custom board with a nRF52832 QFAB at its center, and I want to program it via a nRF52-DK. I have created a custom board directory and have initialized a few led pins on it using the description in the tutorial . I am also using the nRF Connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jul 2024 16:14:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112716/cannot-flash-onto-a-nrf52832-qfab-custom-board-via-a-nrf52-dk" /><item><title>RE: Cannot flash onto a nRF52832 QFAB custom board via a nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/493214?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 16:14:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f10960d-8698-42ac-99ef-b6aff6d69556</guid><dc:creator>trivikram</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I identified issues in the custom board definition I was using. I edited the required files in the board definition and it seems to work as expected. Thanks!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash onto a nRF52832 QFAB custom board via a nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/492611?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 07:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e0428bd-da27-497e-9097-6cfd7aa5f5a0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would recommend that you try to debug the application to confirm that it is running an that there are no runtime errors reported. First step may be to enable debug logging. You can use RTT for logging if you don&amp;#39;t have a UART interface exposed on your custom board (RTT uses the SWD debug interface to retreive log messages from the target device).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kconfig settings to enable logger module with RTT as the logger backend:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_LOG_BACKEND_UART=n
CONFIG_LOG_BACKEND_RTT=y
CONFIG_USE_SEGGER_RTT=y
# Redirect printk/printf to RTT
CONFIG_RTT_CONSOLE=y &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;RTT logs can be viewed with the &lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/"&gt;Segger RTTViewer application&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can also start a debug session in the VS code extension to confirm that the program reaches main() and also read the GPIO configuration registers to verify that the pins have been correctly been configured as outputs.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash onto a nRF52832 QFAB custom board via a nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/492538?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 20:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab48037c-32a0-44d7-952c-9f9ffbf03e0a</guid><dc:creator>trivikram</dc:creator><description>&lt;p&gt;Hey Vidar,&lt;br /&gt;I am trying a blinky example which works as expected on a nRF52DK.&lt;/p&gt;
&lt;p&gt;I added the flags you suggested.&amp;nbsp;The memory config looks exactly as you suggested.&lt;/p&gt;
&lt;p&gt;When I remove &amp;quot;CONFIG_SECURE_BOOT=y&amp;quot; the build goes through and it flashes successfully, but I still don&amp;#39;t see any GPIO toggles on my board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The following is the overlay file for my custom board, which I use to define the pins which I wanna toggle. I expect to see a change in pins 14, 15 and 16. When I build the same code for the DK, as the led pin definitions are different, I see a toggle in led0, led1 and led2. With this overlay, I do not see any toggles in my custom board. How should I go ahead?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
    aliases {
        led0 = &amp;amp;led0;
        led1 = &amp;amp;led1;
        led2 = &amp;amp;led2;
        // pin0 = &amp;amp;pin0;
    };


    soc{
        gpio0: gpio@50000000 {
            compatible = &amp;quot;nordic,nrf-gpio&amp;quot;;
            reg = &amp;lt;0x50000000 0x300&amp;gt;;
            gpio-controller;
            #gpio-cells = &amp;lt;2&amp;gt;;
            status = &amp;quot;okay&amp;quot;;
        };
    };

    // Optional: Define the LED node using GPIO pin 17
    leds {
        compatible = &amp;quot;gpio-leds&amp;quot;;
        led0: led_0 {
            gpios = &amp;lt;&amp;amp;gpio0 14 GPIO_ACTIVE_HIGH&amp;gt;;
        };
        led1: led_1 {
            gpios = &amp;lt;&amp;amp;gpio0 15 GPIO_ACTIVE_HIGH&amp;gt;;
        };
        led2: led_2 {
            gpios = &amp;lt;&amp;amp;gpio0 16 GPIO_ACTIVE_HIGH&amp;gt;;
        };
        // led3: led_3 {
        //     gpios = &amp;lt;&amp;amp;gpio0 17 GPIO_ACTIVE_HIGH&amp;gt;;
        // };
    };

    zephyr,user{
        pin0-gpios = &amp;lt;&amp;amp;gpio0 17 0&amp;gt;;
    };
};

&amp;amp;gpiote {
    status = &amp;quot;okay&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash onto a nRF52832 QFAB custom board via a nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/492525?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 18:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:522babfc-d109-402b-9646-de271df77608</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Thanks. The fact that you are able to run the recover operation is a good indication that the chip is correctly powered and the SWD lines are correctly connected. My initial suspicion was that there might be an issue with the linker configuration since the xxAB package only has 256K of flash and 32K of RAM. However, address 0x0 is within the valid address range, so it seems like it might be something else.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Here are some things you may want to check:&lt;/p&gt;
&lt;p&gt;- Check if your design includes the optional DCDC inductors. If not, it&amp;#39;s important that you don&amp;#39;t enable the internal DCDC regulator (i.e., CONFIG_BOARD_ENABLE_DCDC must not be selected). Without the inductors, the DCDC regulator will not be able to provide a stable supply internally on the chip, which usually leads to difficulties with programming the chip through the debug interface. However, I would have expected a different error message if this were the case.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;-&amp;nbsp; Check if the RAM and FLASH memory sections in the generated zephyr.map file under &amp;#39;Output files&amp;#39; in the VS code extension has the correct address ranges. It should look like this if you are building an application without a bootloader:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;Name | Origin | Length | Attributes&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;FLASH&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x0000000000000000&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x00000000000&lt;strong&gt;40000&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span&gt;xr&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;RAM&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x0000000020000000&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x00000000000&lt;strong&gt;8000&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;xw&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;IDT_LIST&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x00000000fffff7ff&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x0000000000000800&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;xw&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;*default*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x0000000000000000&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0xffffffffffffffff&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;- If the optional 32KHz is not mounted on your board, set&amp;nbsp;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC to &amp;#39;=y&amp;#39; in your boards *_defconfig file to&amp;nbsp;always use the internal RC oscillator. Having the wrong clock source selected will not cause issues with flashing, but it will prevent your programs from reaching main() since the startup code will get stuck waiting for the crystal to ramp up.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I would also recommend trying a more basic sample first without CONFIG_SECURE_BOOT enabled. For instance, &amp;quot;hello_world&amp;quot; or &amp;quot;blinky.&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash onto a nRF52832 QFAB custom board via a nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/492518?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 16:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f3fb193-345e-4dcc-89c3-3c407a784904</guid><dc:creator>trivikram</dc:creator><description>&lt;p&gt;Both the Vdd on the DK and the voltage on my custom board are 3.0V. The below is the result from the `nrfjprog --recover` command. It takes about 5-7 seconds to run.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --recover
Recovering device. This operation might take 30s.
Erasing user code and UICR flash areas.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You mentioned that it failing to write at 0x0 is strange, could there be an issue in the way I am writing my code, or in the custom board definition somehow?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash onto a nRF52832 QFAB custom board via a nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/492233?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 11:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9591508e-88d6-481b-9fe5-b32dd69fed07</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s strange that it is failing to write to address 0x0 as this is an valid address. Please try running &amp;#39;nrfjprog --recover&amp;#39; from the command line to see if this results in any errors. This should help us narrow down the problem. Additionally, please check that the VDD voltage on the DK matches the voltage on your custom board. The OB J-Link on the DK does not have a built-in level shifter, so it&amp;#39;s important that the IO voltages match.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>