<?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>Cant program custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82547/cant-program-custom-board</link><description>I have a custom board like a breakout of NRF52820 with the QFN48 package. The design is according with the reference circuitry without changing a thing. The IO pins and SWD were breaked out to be acessible with jumpers. Needless to say the wiring of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Dec 2021 13:18:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82547/cant-program-custom-board" /><item><title>RE: Cant program custom board</title><link>https://devzone.nordicsemi.com/thread/343924?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 13:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cb954f3-932e-4a8f-894e-6b0d085c8877</guid><dc:creator>Mindtech</dc:creator><description>&lt;p&gt;I changed the pin of the uart with overlay file. The LED still didnt light, but that could be another problem. I&amp;#39;m using a JLink to program the custom board and after lots of tries and errors it worked. Apparently the bootloader really is not necessary.&lt;/p&gt;
&lt;p&gt;I guess the issue can be closed now since the initial problem was that I wasnt able to program the custom board.&lt;/p&gt;
&lt;p&gt;In conclusion the things that helped me were to use better jumpers to connect programming pins to JLink, connect the nReset pin of nrf to RESET pin of JLink and use the west tool to build and flash and sometimes use the JLinkExe tool to erase and flash the board. Also another thing that helped was to use the debugger in vscode to see that the application was running in the mcu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant program custom board</title><link>https://devzone.nordicsemi.com/thread/343578?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 09:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:926601bf-02a5-48e6-88f5-5a86eb82ff08</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;On your custom board you say you&amp;#39;re using the nRF52833dk_nrf52820 board file. Please note that p0.08 is defined as the UART RX pin in&amp;nbsp;the nrf52833_nrf52820.dts file, so there might be some conflicts with your application from there.&lt;/p&gt;
&lt;p&gt;If you have a J-Link device and the SWDIO pins available on your custom board you can use the J-Link to program your custom device with west.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant program custom board</title><link>https://devzone.nordicsemi.com/thread/343418?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 13:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da1803c2-f954-4b4e-bf7c-292e8fcf557c</guid><dc:creator>Mindtech</dc:creator><description>&lt;p&gt;I mean that the P0.08 does not change level as it should according to the program, it only stays low like the program didnt start. Yes the application works in the ninab4 as expected.&lt;/p&gt;
&lt;p&gt;So it is not necessary to pre flash the bootloader in orther for the custom board to work with west flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant program custom board</title><link>https://devzone.nordicsemi.com/thread/343093?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 09:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3ba9d2a-9694-40b9-9163-df17a25a35ac</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Glad you were able to get the project to build and flash.&lt;/p&gt;
&lt;p&gt;Can you specify what you mean by &amp;quot;nothing seems to happen after programming&amp;quot;. Does the P0.08 not behave as expected, if so, what does it do? Does the application work as intended on the NINAb4 board?&lt;/p&gt;
&lt;p&gt;There shouldn&amp;#39;t be any further changes necessary as long as you have a custom board file for your custom board.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant program custom board</title><link>https://devzone.nordicsemi.com/thread/342993?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 19:04:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:693a43eb-99ad-4335-830f-a14267306188</guid><dc:creator>Mindtech</dc:creator><description>&lt;p&gt;I had sucess flashing the ninab4 board with the JLink programmer. After it I tryied soldering another of my custom board to verify it that was the problem and also had sucess programming it with the JLink. The problem now is that nothing seems to happen after programming.&lt;br /&gt;I&amp;#39;m using the west to build and flash the board with the --runner JLink and it worked as expected with the ninab4. When programming the nrf52820 custom board I changed the --board to nrf52833dk_nrf52820 and used the correct configurations.&lt;/p&gt;
&lt;p&gt;Do I need to make any other configuration for bootloader or something like this?&lt;/p&gt;
&lt;p&gt;Here is the test code. I only check the P0.8 voltage to see if the code is running:&lt;/p&gt;
&lt;div style="background-color:#1c1e26;color:#bbbbbb;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace, &amp;#39;Droid Sans Fallback&amp;#39;;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;#include&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#fab795;"&gt;&amp;lt;zephyr.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;#include&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#fab795;"&gt;&amp;lt;sys/printk.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;#include&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#fab795;"&gt;&amp;lt;device.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;#include&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#fab795;"&gt;&amp;lt;nrf52820.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;#include&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#fab795;"&gt;&amp;lt;nrf52820_peripherals.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color:#b877db;font-weight:bold;"&gt;#include&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#fab795;"&gt;&amp;lt;hal/nrf_gpio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;const&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;int&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#e95678;"&gt;pin_led&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#bbbbbb;font-weight:bold;"&gt;=&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#f09483;"&gt;8&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;void&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#25b0bc;"&gt;main&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;(&lt;/span&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;void&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;){&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#25b0bc;"&gt;nrf_gpio_cfg_output&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;(&lt;/span&gt;&lt;span style="color:#e95678;"&gt;pin_led&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#b877db;font-weight:bold;"&gt;while&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;(&lt;/span&gt;&lt;span style="color:#f09483;"&gt;1&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;) {&lt;/span&gt;
&lt;div&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#25b0bc;"&gt;nrf_gpio_pin_toggle&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;(&lt;/span&gt;&lt;span style="color:#e95678;"&gt;pin_led&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#bbbbbb;"&gt; &lt;/span&gt;&lt;span style="color:#25b0bc;"&gt;k_msleep&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;(&lt;/span&gt;&lt;span style="color:#f09483;"&gt;500&lt;/span&gt;&lt;span style="color:#bbbbbb;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#bbbbbb;"&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#bbbbbb;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant program custom board</title><link>https://devzone.nordicsemi.com/thread/342828?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 08:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67c81fd6-d706-4d0f-a3d5-b1a9f5fc73c1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I don&amp;#39;t think that should be the a problem, but it&amp;#39;s likely what the device reports when the connected board is not connected properly. To make sure the J-Link device works you can try programming a DK if you have one with this J-Link device.&lt;/p&gt;
&lt;p&gt;Also, how do you connect the J-Link device to your&amp;nbsp;custom board?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant program custom board</title><link>https://devzone.nordicsemi.com/thread/342726?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 13:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f45a76b-cc1b-4bbf-929b-32c2b31e9309</guid><dc:creator>Mindtech</dc:creator><description>&lt;p&gt;Accidentally I tryied to program with only JLink wire to PC and nothing in it and the same pin 15 RESET error appeared. Does it means that the program is in my JLink programmer/debugger ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant program custom board</title><link>https://devzone.nordicsemi.com/thread/342665?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 09:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:120c6bc7-8a95-4a73-a342-5c1ef21db338</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Are you sure the reset pin is not shorted to anything on your board, as the &amp;quot;RESET pin high&amp;quot; message points to. &lt;span&gt;Have you tried using an oscilloscope, logic analyzer, or similar to check the state of the actual reset pin, P0.21 to see if it is high or not when your app is running? If that&amp;#39;s the case, you can try adding a pulldown resistor to the reset pin to avoid it from staying high.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>