<?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>Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84893/programming-a-custom-board-with-an-nrf52840-dev-kit</link><description>Hi, 
 I&amp;#39;ve made my own PCB with an nrf52840. Right now I&amp;#39;m hoping to test out the bluetooth and measure my board&amp;#39;s power consumption - the only problem is that I can&amp;#39;t reliably program the microcontroller! A long time ago I was able to program this device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Mar 2022 08:13:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84893/programming-a-custom-board-with-an-nrf52840-dev-kit" /><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/357824?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 08:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc3ff3a0-a3b3-453b-8f6f-f0effc6bd34a</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;And could you reset\power cycle the board then attach the debugger to it while it is running, see if has halted somewhere.&amp;nbsp;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/357705?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 14:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da7ce045-18f1-4375-92da-c1b3235699e8</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi Ryan,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;We dont have a Eagle version, only Altium.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration:line-through;"&gt;Can you probe VDD? what is the supply voltage.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;Might be some supply issue or decupling issue but its strange.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If the USB supply is not used then DECUSB can be left floating and VBUS pin pulled down to ground.&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0508.pastedimage1647008611381v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/357514?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 23:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b047603a-b049-40fa-95df-7a2cddde172b</guid><dc:creator>ryerye120</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried multiple boards and they all have this issue. We even re-spun the boards (for other reasons) and the re-spun boards have the same issue.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried it with SDK 16 and it had the same issue.&lt;br /&gt;&lt;br /&gt;Is there a reference design Eagle Project that I could maybe get access to? If so, maybe I can just plop that directly into our design?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kindest regards,&lt;/p&gt;
&lt;p&gt;Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/357212?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 14:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b08e7384-9d97-424e-865c-62f92e2f983d</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi Ryan, here is the ref design, and compared to yours it does not differ that much, so i dont think it is the issue.&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1646831985057v1.png" alt=" " /&gt;&lt;br /&gt;So does not look like you have a missed power connection.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Maybe try a different SDK version or different SDK? see if the behaviour is still the same. And have you tested on more then one custom board?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/356972?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 17:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96120b64-efad-47c7-8f52-f53c4a2c83db</guid><dc:creator>ryerye120</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/84893/programming-a-custom-board-with-an-nrf52840-dev-kit/355635#355635"]Did you mean &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/ref_circuitry.html?cp=4_0_0_6_2_2#unique_329143743"&gt;QIAA&amp;nbsp; no. 3&lt;/a&gt;?&amp;nbsp; aQFN package, in your design that is what is used at least.&amp;nbsp;[/quote]
&lt;p&gt;Sorry, you&amp;#39;re right. We&amp;#39;re using the aQFN packaged chips. The most important point was that we are powering the chip with an external regulator &amp;amp; originally wanted to have the USB interface (but I&amp;#39;m pretty sure we ended up scraping that and just left the USB interface pulled up/down - whatever it needed to be)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/84893/programming-a-custom-board-with-an-nrf52840-dev-kit/355635#355635"]But i think the layout is ok, adding top layer ground would solve many of the &amp;quot;issues&amp;quot;, choice of antenna is good also, many use it and it preforms well.[/quote]
&lt;p&gt;We&amp;#39;ll definitely incorporate this in our next board!! Thank you for the suggestion.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/84893/programming-a-custom-board-with-an-nrf52840-dev-kit/355635#355635"]As for the application&amp;nbsp;halting after reset issue, i have not figured this out, so will update in a day or two to wit more info\debugging options you can test. Sorry for the slow response.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;No worries, I figure it is a weird bug. Could it be related to how we&amp;#39;ve wired VDD and VDDH? I&amp;#39;m wondering if I missed a power connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/355635?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 15:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7126b060-5730-4812-b583-1af1c3ba86d7</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi Ryan,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Looking at the files there are some tings i want to comment on.&lt;br /&gt;&lt;br /&gt;1. it would be good to have a top layer ground pour. More ground surface area does help reduce return paths and can be used to create coplanar wave guides in sted of strip lines. We do recommend the grounded coplanar wave guide as we have seen that they often preform better.&lt;br /&gt;&lt;br /&gt;2. The decupling cap on the first radio matching component is not directly following the ref. design.&amp;nbsp; We do have some notes that point to the fact that it is not just matching but also filering of the harmonics so it is best to keep the layout identical. You do have more then enough space to do a copy past of the design.&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0755.pastedimage1646148408918v1.png" alt=" " /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6153.pastedimage1646148465975v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Since there is no top&amp;nbsp;layer ground you are also missing out on the some of the pinns that benefit from being connected to top layer ground might give reduced radio performance. The decupling caps here help filter the supply so that no as lite noise as possible can get to the radio.&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7624.pastedimage1646148842138v3.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="ryerye120"]close as possible to the CKAA WLCSP schematic #3[/quote]
&lt;p&gt;Did you mean &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/ref_circuitry.html?cp=4_0_0_6_2_2#unique_329143743"&gt;QIAA&amp;nbsp; no. 3&lt;/a&gt;?&amp;nbsp; aQFN package, in your design that is what is used at least.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But i think the layout is ok, adding top layer ground would solve many of the &amp;quot;issues&amp;quot;, choice of antenna is good also, many use it and it preforms well.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As for the application&amp;nbsp;halting after reset issue, i have not figured this out, so will update in a day or two to wit more info\debugging options you can test. Sorry for the slow response.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/354878?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 17:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5269d718-c707-4947-9be5-4fa73ddfa965</guid><dc:creator>ryerye120</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;br /&gt;&lt;br /&gt;Thank you for looking at the schematic and design! It&amp;#39;s been a while since I did the schematic/layout but I think we were trying to stay as close as possible to the CKAA WLCSP schematic #3 with a few changes to the antenna (we wanted to use a dedicated antenna chip). Here are the appropriate gerbers (I think). I would really appreciate any feedback!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gerbers.zip"&gt;devzone.nordicsemi.com/.../gerbers.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As for other examples I have tested ble_app_alert_notification and ble_app_beacon and both exhibited the same behavior as blinky. Worked the first time with build &amp;amp; debug. If I&amp;nbsp;power cycled&amp;nbsp;the board or did a &amp;quot;build &amp;amp; run&amp;quot; they board would halt. If I commented out &amp;quot;nrf_power_mgmt_run()&amp;quot; things work as expected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As always, thank you for your help,&lt;/p&gt;
&lt;p&gt;Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/354787?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 11:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4348280a-4e57-449d-a4af-268c50b8c9e7</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;So after looking at the schematic and layout pdf files, i have some comments, the layout you have does not exactly follow the recommendations we have for the nrf52840 and the deviations can\will effect at the very least RF performance.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;There is enough space on the PCB that is should not be an issue to copy\paste the ref design on to the PCB. If you want i can provide more details on the layout of the nRF. But to keep things short it will mostly contain references to the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/ref_circuitry.html?cp=4_0_0_6_2_2#unique_329143743"&gt;ref design&lt;/a&gt;, best to have GERBER files to properly review and address the potential&amp;nbsp;changes.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;As for the cause of the issue you have now i dont think that it is HW related at the moment.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/354678?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 17:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:713eb9a3-4462-4108-b3d7-2e3d69024ccd</guid><dc:creator>ryerye120</dc:creator><description>[quote userid="91187" url="~/f/nordic-q-a/84893/programming-a-custom-board-with-an-nrf52840-dev-kit/354533#354533"]This is the expected behaviour, It is the debugger/programmer chip that is shown.[/quote]
&lt;p&gt;I&amp;#39;ve only tested this with ble_app_blinky so far. I made 2 changes, 1&amp;nbsp;was commenting out idle_state_handle() and the other was to the pinout of LED4 (because that is different between the dev kit and my pcb).&amp;nbsp;I&amp;nbsp;will try another example!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am working on getting the gerbers - in the meantime here are pdfs of the schematic and layout. This board is meant to test a custom IC that our research group designed, the nrf52840 is in the top left of the board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again for your help!!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/board_5F00_schematic.pdf"&gt;devzone.nordicsemi.com/.../board_5F00_schematic.pdf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/board_5F00_layout.pdf"&gt;devzone.nordicsemi.com/.../board_5F00_layout.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/354533?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 11:08:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66c25f95-d84f-4fd2-a249-f9a60086342d</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user="ryerye120"]Firstly, when I plug my boards into the nrf connect programmer, I can only see the dev kit (that I&amp;#39;m using to program my custom board). Is there something specific I need to do to see the downstream microcontroller (the one on my custom PCB)?[/quote]
&lt;p&gt;This is the expected behaviour, It is the debugger/programmer chip that is shown.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I dont quite see what could be the issue with &lt;em&gt;idle_state_handle()&lt;/em&gt;, is it only for the&amp;nbsp;&lt;strong&gt;ble_app_blinky&lt;/strong&gt; you have tested this? any other changes you do to the applicaton?&lt;br /&gt;&lt;br /&gt;I think i will take a look at the HW and schematics first and then we can go from there. Can you provide them as PDF and if you have the HW files as GERBER that would be fantastic.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/354442?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 21:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bdcb9f9-8c8c-4209-969c-2751bb8a527c</guid><dc:creator>ryerye120</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;blockquote class="quote"&gt;
&lt;div class="quote-user"&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84893/programming-a-custom-board-with-an-nrf52840-dev-kit/354284#354284"&gt;JONATHAN LL said:&lt;/a&gt;&lt;/div&gt;
&lt;div class="quote-content"&gt;Now for the roadblock you have, we can continue discussing this here i think. I can do a review of the schematic and board layout files, see if i see any things that could be a issue. If you dont want to share design public i can make this ticket private, or you can just make a new ticket that is private and refer to this ticket in the new review ticket.&amp;nbsp;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;I don&amp;#39;t mind posting the schematics here!&lt;br /&gt;&lt;br /&gt;Firstly, when I plug my boards into the nrf connect programmer, I can only see the dev kit (that I&amp;#39;m using to program my custom board). Is there something specific I need to do to see the downstream microcontroller (the one on my custom PCB)?&lt;br /&gt;&lt;br /&gt;Secondly, while looking at other threads I came across&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53047/nrf_pwr_mgmt_run-crashes-ldo-on-custom-board"&gt;this one describing a similar error but on a different chip&lt;/a&gt;.&amp;nbsp;It turns out that when I&amp;nbsp;comment out &amp;quot;idle_state_handle()&amp;quot; I can build &amp;amp; run!! Problem is ... well I don&amp;#39;t know what the problem is normally. Why does idle_state_handle() break the code?&amp;nbsp;I don&amp;#39;t think it has anything to do with my custom PCB&amp;#39;s power planes since I&amp;#39;m still just powering&amp;nbsp;the custom board with the dev kit (which is connected to my computer with a usb cable).&lt;br /&gt;&lt;br /&gt;We&amp;#39;re getting close! I can almost taste it.&lt;/p&gt;
&lt;p&gt;Kindest regards,&lt;/p&gt;
&lt;p&gt;Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/354284?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 08:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b324685-e082-4944-ae1c-63f112702f3c</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Thanks for the update Ryan,&lt;br /&gt;&lt;br /&gt;Nice to see some progression!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="ryerye120"]1) The interface wires are about 10cm actually. Should they be shorter?[/quote]
&lt;p&gt;This is ok, 10cm should be fine, but long cables can introduce extra parasitic resistive and capacitive&amp;nbsp;properties that might interfere, so to keep things predictable its good to have short cables.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ryerye120"]2) I&amp;#39;m still running at the default clock speed, I can reduce it if you think it will help the current problem.[/quote]
&lt;p&gt;Lets keep this on hold for now.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="ryerye120"]3) I&amp;#39;ve reduced the current limit to 100mA![/quote]
&lt;p&gt;Great!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="ryerye120"]4) Yes, reducing the external supply to 3V results in a bricked chip.&amp;nbsp;[/quote]
&lt;p&gt;This is interesting, but deserves its own ticket.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="ryerye120"]5)&amp;nbsp;I will try nrf connect to erase/recover. Can I run nrf connect with the same setup?[/quote]
&lt;p&gt;Yes, it is just a desktop app that you can easily use to test certain things and use features we develop for ease of use.&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4721.pastedimage1645518438495v1.png" alt=" " /&gt;&lt;br /&gt;Connect the device to your computer, then launch the app and click on the select device button top right and select you device, you can then READ the device and it will show what i looks like, you can save this file for later to program the same device or other without building the code again, just use the hex file.&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2677.pastedimage1645518665438v2.png" alt=" " /&gt;&lt;br /&gt;There are many options here, Read, Write, Erase, Erase and write and Reset. All&amp;nbsp; handy for testing and debugging.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="ryerye120"]6) No other HW problems that I know of right now.[/quote]
&lt;p&gt;Good to know.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="ryerye120"]7)&amp;nbsp;I do have a dedicated crystal for my custom board&amp;#39;s nrf52840.&amp;nbsp;[/quote]
&lt;p&gt;This eliminates some potential issues, but i need to know it is the HFXO or LFXO, so do you have only one crystal or two ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="ryerye120"]8) After I bricked the chips I looked at VDD_nrf on the DK and it was at 3.3V I believe. I will double-check this to confirm (I should have double-checked this before I started messing with the external supply ... I guess I&amp;#39;ve learned the hard way.)[/quote]
&lt;p&gt;You are not the first, guilty of this myself :D&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now for the roadblock you have, we can continue discussing this here i think. I can do a review of the schematic and board layout files, see if i see any things that could be a issue. If you dont want to share design public i can make this ticket private, or you can just make a new ticket that is private and refer to this ticket in the new review ticket.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;One thing i am interested in knowing is what do you gett if you Read the custom pcb device with nRF connect programmer app... this will show if it has been programmed correctly.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/354219?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2022 20:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bb8e0a1-ac95-4013-a38b-c495fa63404c</guid><dc:creator>ryerye120</dc:creator><description>&lt;p&gt;So while I was going through these I think I found a mistake. When I unplugged the external supply (so that the dev kit was powering my custom board with vdd_nrf), things started to work! Not fully though...&lt;br /&gt;&lt;br /&gt;To summarize my&amp;nbsp;current setup for anyone else who may see this, I followed the diagram in my original post: connected my custom board to the dev kit&amp;#39;s VDD_nrf, GND, SWDIO, SWDCLK &amp;amp; plugged GND_Connect and VTG to VSS and VDD_nrf, respectively. I did NOT power my&amp;nbsp;custom board (it&amp;#39;s only being powered&amp;nbsp;from the dev kit) and the dev kit is plugged into my computer. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;My current roadblock:&lt;/strong&gt; When I do this, I can &amp;quot;Debug &amp;amp; Run&amp;quot; the ble examples and they work. BUT if I just &amp;quot;run&amp;quot; them they don&amp;#39;t work. Also if I programmed my board with &amp;quot;Debug &amp;amp; Run&amp;quot; and then power cycle the board, my custom board no longer seems to&amp;nbsp;run the&amp;nbsp;program. Is there something extra I have to do to &amp;quot;run&amp;quot; programs on the nrf?&lt;br /&gt;&lt;br /&gt;To answer your other questions (even if they may not be relevant anymore):&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;br /&gt;1) The interface wires are about 10cm actually. Should they be shorter?&lt;br /&gt;2) I&amp;#39;m still running at the default clock speed, I can reduce it if you think it will help the current problem.&lt;br /&gt;3) I&amp;#39;ve reduced the current limit to 100mA!&lt;br /&gt;4) Yes, reducing the external supply to 3V results in a bricked chip.&amp;nbsp;&lt;br /&gt;5)&amp;nbsp;I will try nrf connect to erase/recover. Can I run nrf connect with the same setup?&lt;br /&gt;6) No other HW problems that I know of right now.&lt;br /&gt;7)&amp;nbsp;I do have a dedicated crystal for my custom board&amp;#39;s nrf52840.&amp;nbsp;&lt;br /&gt;8) After I bricked the chips I looked at VDD_nrf on the DK and it was at 3.3V I believe. I will double-check this to confirm (I should have double-checked this before I started messing with the external supply ... I guess I&amp;#39;ve learned the hard way.)&lt;/p&gt;
&lt;p&gt;Thanks so much for your help, Jonathan! If you feel that this ticket has spiraled a little bit, I can close this and start a new ticket. In fact, we can ignore the bricking issue going forward and I can start another ticket for that.&lt;/p&gt;
&lt;p&gt;Kindest regards,&lt;/p&gt;
&lt;p&gt;Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/354102?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2022 10:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5adcde13-cfcf-42c1-8106-67fe839ef78b</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi Ryan,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Still uncertain what is the cause of the issue you have here, but i have some things that i want you to test and some more questions.&lt;br /&gt;&lt;br /&gt;Are the interface wires you use longer then 10 cm?&lt;br /&gt;&lt;br /&gt;Reduce the clock speed: Here si a post on SEGGER Forum on how to do that&amp;nbsp;&lt;a href="https://forum.segger.com/index.php/Thread/7445-SOLVED-Configure-SWD-speed-in-Embedded-Studio/"&gt;https://forum.segger.com/index.php/Thread/7445-SOLVED-Configure-SWD-speed-in-Embedded-Studio/&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Sett current limit to 100mA, 3A is a lott and we dont want to burn the SoC.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Did you change the external supply from 3.3V to 3V and that bricked the chip?&lt;br /&gt;&lt;br /&gt;Can you try to use &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools"&gt;nrfjprog&lt;/a&gt;&amp;nbsp;or &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-desktop"&gt;nrf connect for desktop programmer&lt;/a&gt; app to erase\recover.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Do you have any other HW related issues with the custom board?&lt;br /&gt;&lt;br /&gt;Do you have the a LFXO on the custom board?&lt;br /&gt;&lt;br /&gt;If you measure VDD_NRF on the DK, what is the voltage you see ?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/353932?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 16:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd49eca-1af0-417e-b635-a720653827ae</guid><dc:creator>ryerye120</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;/p&gt;
&lt;p&gt;Thanks for getting back to me!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/84893/programming-a-custom-board-with-an-nrf52840-dev-kit/353911#353911"]looks like the board might be resetting during the session.&amp;nbsp;[/quote]
&lt;p&gt;I saw this vaguely mentioned in a few other posts but those situations seemed to be related to faulty USB ports, low voltages, or faulty connections. I can try another usb port today but I think I tried this out yesterday and it didn&amp;#39;t change anything. Is there a flag I should toggle in SES?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/84893/programming-a-custom-board-with-an-nrf52840-dev-kit/353911#353911"]If you do not use the debug function does it work ?[/quote]
&lt;p&gt;No, unfortunately. I usually get the same error - sometimes it looks different (the second code block), but it usually looks like the first error (first code block).&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/84893/programming-a-custom-board-with-an-nrf52840-dev-kit/353911#353911"]It is a vary strange cease, only &lt;span&gt;ble_app_blinky?&lt;/span&gt;,&amp;nbsp;could you test a --recover command to whip the chip? No other BLE samples have this issue?[/quote]
&lt;p&gt;I&amp;#39;m glad it&amp;#39;s not just me! I can try other ble examples. Is it possible to use the &amp;quot;recover&amp;quot; command in SES? If so, how? hahaha.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit:&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried out a few more examples, their results are listed below:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;1) simple_timer: &lt;strong&gt;works&lt;/strong&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;2) ble_beacon:&amp;nbsp;&lt;strong&gt;Does NOT work - similar error&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;3) ble_app_alert_notification: &lt;strong&gt;Does NOT work - similar error&lt;/strong&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;4) blinky_rtc_freeRTOS: &lt;strong&gt;Does NOT work - similar error&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So it seems that larger programs (that may/may not include soft device) cause it to break while programming. Right now the external board is drawing around 110 mA at 3.3V and the dev kit is connected to my macbook pro (with a USB-C to USB hub as an adaptor). If I try to power the external boards with 3V (which I thought I saw somewhere) it ends up bricking the chip (I keep getting &amp;quot;&lt;span&gt;No idcode detected&amp;quot; which I guess is another problem).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also I&amp;#39;ve found the board that I know has a functioning NRF52840 &amp;amp; antenna so I can rule out any potential board manufacturing issues.&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;/p&gt;
&lt;p&gt;Also thanks for your prompt response, Jonathan.&amp;nbsp;I&amp;#39;m really lost and this is incredibly frustrating. I can&amp;#39;t tell you how much I appreciate you helping me with this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kindest regards,&lt;/p&gt;
&lt;p&gt;Ryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom board with an NRF52840 dev kit</title><link>https://devzone.nordicsemi.com/thread/353911?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 15:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbabaa80-b9a6-47d2-9087-5113a82ee7a0</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user=""]hen I try to&amp;nbsp;build&amp;amp;debug on my board with ble_app_blinky I get the following error:[/quote]
&lt;p&gt;looks like the board might be resetting during the session.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you do not use the debug function does it work ?&lt;br /&gt;&lt;br /&gt;It is a vary strange cease, only &lt;span&gt;ble_app_blinky?&lt;/span&gt;,&amp;nbsp;could you test a --recover command to whip the chip? No other BLE samples have this issue?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>