<?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>RayTac mdbt42q-p512kv2 programming issue with custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125406/raytac-mdbt42q-p512kv2-programming-issue-with-custom-board</link><description>I&amp;#39;m trying to program a custom board with a Raytac nRF52832 module using the nRF52 DK&amp;#39;s onboard J-Link via the P20 debug out port. The J-Link only detects the onboard nRF52832, not my external module. 
 I&amp;#39;ve checked the following: 
 
 
 My custom board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Nov 2025 20:43:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125406/raytac-mdbt42q-p512kv2-programming-issue-with-custom-board" /><item><title>RE: RayTac mdbt42q-p512kv2 programming issue with custom board</title><link>https://devzone.nordicsemi.com/thread/553607?ContentTypeID=1</link><pubDate>Thu, 06 Nov 2025 20:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d99a0ecd-4597-4739-ab7f-57a9d88ffe92</guid><dc:creator>AhmetSafi</dc:creator><description>&lt;p data-start="194" data-end="199"&gt;Hi,&lt;/p&gt;
&lt;p data-start="206" data-end="479"&gt;No, I cannot flash the image via &lt;em data-start="239" data-end="245"&gt;west&lt;/em&gt; &amp;mdash; only ST-Link is working. Thank you for your time and support. I&amp;rsquo;ve decided to stick with ST-Link, as I also found out that I can use RTT via Telnet to view the &amp;ldquo;LOG_INF&amp;rdquo; outputs. I believe I can complete my project using OpenOCD.&lt;/p&gt;
&lt;p data-start="486" data-end="501"&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RayTac mdbt42q-p512kv2 programming issue with custom board</title><link>https://devzone.nordicsemi.com/thread/553606?ContentTypeID=1</link><pubDate>Thu, 06 Nov 2025 20:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:121f9f36-69b3-4b65-b9fd-1056ecb5cadf</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="AhmetSafi"]Starting flash is erasing flash successfully I can not see my device on scan result after flash.[/quote]
&lt;p&gt;Are you able to flash the image without issue now? If so, maybe you should check the device log or test the project on the nRF52DK.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RayTac mdbt42q-p512kv2 programming issue with custom board</title><link>https://devzone.nordicsemi.com/thread/553600?ContentTypeID=1</link><pubDate>Thu, 06 Nov 2025 18:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ff0d95f-59f4-4cb6-9963-fbc9ca9b4ec9</guid><dc:creator>AhmetSafi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Here is flash command output&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/pastedimage1762453465431v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And here is log file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6281.nrfutil_2D00_device.log"&gt;devzone.nordicsemi.com/.../6281.nrfutil_2D00_device.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Starting flash is erasing flash successfully I can not see my device on scan result after flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RayTac mdbt42q-p512kv2 programming issue with custom board</title><link>https://devzone.nordicsemi.com/thread/553490?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 20:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8989117a-1449-4a04-bf40-546e1bf33c53</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Could you run&lt;/p&gt;
&lt;p&gt;set NRFUTIL_LOG=trace&lt;br /&gt;west flash (or whatever invocation you used)&lt;/p&gt;
&lt;p&gt;in a terminal in vscode, and then send the log from &amp;lt;USERHOME&amp;gt;/.nrfutil/logs/nrfutil-device.log?&lt;/p&gt;
&lt;p&gt;via&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8233.Capture.JPG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RayTac mdbt42q-p512kv2 programming issue with custom board</title><link>https://devzone.nordicsemi.com/thread/553482?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 18:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e54a525-0681-4aa8-9717-b6e296925b42</guid><dc:creator>AhmetSafi</dc:creator><description>&lt;p&gt;Here is JlinkExe and &amp;quot;nrfutils device recover&amp;quot; outputs:&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/iScreen-Shoter-_2D00_-Ghostty-_2D00_-251105211056.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;And here is my connections:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="243" src="https://devzone.nordicsemi.com/resized-image/__size/648x486/__key/communityserver-discussions-components-files/4/IMG20251105211352.jpg" width="324" /&gt;&lt;/p&gt;
&lt;p&gt;Here is my PCB layout:&lt;/p&gt;
&lt;p&gt;The component between VBATT and VDD is 0R resistor. I guess this should be a problem.&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/pastedimage1762366642042v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here is flashing log:&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/pastedimage1762366667832v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;I checked VTG pin with a multimeter and my custom board correctly provide 3 volts.&lt;/p&gt;
&lt;p&gt;Thanks you for you support I hope this will be enough to diagnose my problem.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RayTac mdbt42q-p512kv2 programming issue with custom board</title><link>https://devzone.nordicsemi.com/thread/553350?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2025 17:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24ff736a-e6b2-4b87-8bc6-42faa99cd021</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You can refer to&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/121857/nrf52840dk-not-detected-after-flashing-an-external-board/538010"&gt;this post&lt;/a&gt;&amp;nbsp;for the connection and check&amp;nbsp;by&amp;nbsp;&lt;span&gt;the J-Link Commander, also answer the questions in my previous reply. Please also provide a picture to show how you connect the custom board to the&amp;nbsp;nRF52 DK.&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RayTac mdbt42q-p512kv2 programming issue with custom board</title><link>https://devzone.nordicsemi.com/thread/553332?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2025 15:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce2eb29a-a22f-44e9-a873-a3fe012bbad5</guid><dc:creator>AhmetSafi</dc:creator><description>&lt;p&gt;I have an update on my issue. I successfully managed to program my custom Raytac board using an ST-Link v2 and OpenOCD.&lt;/p&gt;
&lt;p&gt;I was able to erase the chip with this command: &lt;br /&gt;openocd -f interface/stlink.cfg -f target/nrf52.cfg -c &amp;quot;init&amp;quot; -c &amp;quot;halt&amp;quot; -c &amp;quot;nrf5 mass_erase&amp;quot; -c &amp;quot;reset exit&amp;quot;&lt;/p&gt;
&lt;p&gt;And I successfully flashed my merged.hex file with this command: &lt;br /&gt;openocd -f interface/stlink.cfg -f target/nrf52.cfg -c &amp;quot;program merged.hex verify reset exit&amp;quot;&lt;/p&gt;
&lt;p&gt;For my prj.conf, I&amp;#39;m using these clock settings: &lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y &lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y &lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y &lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_LF_ALWAYS_ON=y&lt;/p&gt;
&lt;p&gt;I used these lines because my board does not have an external crystal oscillator and I must use the internal RC oscillator.&lt;/p&gt;
&lt;p&gt;I still don&amp;#39;t know why the onboard J-Link on my nRF52 DK wouldn&amp;#39;t work, even with the P19 port empty. If you see any mistake I might have made in my DK setup, please let me know. It&amp;#39;s a bit difficult to debug this way (with OpenOCD) since there is no Virtual COM port.&lt;/p&gt;
&lt;p&gt;Thanks for help in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RayTac mdbt42q-p512kv2 programming issue with custom board</title><link>https://devzone.nordicsemi.com/thread/553330?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2025 14:54:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e0e88f5-a90c-4e98-85eb-7cb8812cbcfd</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]My custom board is powered with a solid 3V.[/quote]
&lt;p&gt;Do you power both your cusbom board and the nRF52DK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is the detected VTref value when you&amp;nbsp;&lt;/span&gt;open the J-Link Commander?&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/pastedimage1762265218615v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]All P20 connections (GND, SWDCLK, SWDIO, RESET) are wired correctly per the DK user guide.[/quote]
&lt;p&gt;Check&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/121857/nrf52840dk-not-detected-after-flashing-an-external-board/538010"&gt;this post.&lt;/a&gt;&lt;/p&gt;
[quote user=""] is there a special &lt;code&gt;nrfjprog&lt;/code&gt; or &lt;code&gt;nrfutil&lt;/code&gt; command other then &amp;quot;recover&amp;quot;&amp;nbsp;needed to force the DK&amp;#39;s J-Link to use the P20 port? I tried vs code board recover and nrf tool recovering but it did not help.[/quote]
&lt;p&gt;Please run &amp;quot;nrfutil self-upgrade&amp;quot; and &amp;quot;nrfutil upgrade&amp;quot; to upgrade nrfutil and nrfutil device versions, then execute &amp;quot;nrfutil version&amp;quot; and &amp;quot;nrfutil list&amp;quot; to check they are the latest version nrfutil 8.1.1 and&amp;nbsp;device 2.15.1. Now, you can run &amp;quot;nrfutil device recover&amp;quot;. If it still cannot help, please provide the log.&amp;nbsp;&lt;/p&gt;
[quote user=""]If I give up on the DK, will a J-Link EDU Mini work correctly with a 3V (not 3.3V) target board? I will buy j-link edu if it will work.[/quote]
&lt;p&gt;Yes, here is a use case&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/105353/error--160-on-nrfjprog-when-verify-nrf52840-using-j-link-edu-mini"&gt;Error -160 on nrfjprog when verify nrf52840 using J-Link EDU Mini&lt;/a&gt;&amp;nbsp;for nRF52840, but I think it also applies to nRF52832.&amp;nbsp;&lt;/p&gt;
[quote user=""]Can I recover chip with using ST-link?[/quote]
&lt;p&gt;We don&amp;#39;t test with ST-Link, and we are not familiar with ST-Link.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>