<?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>nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115437/nrf-connect-for-vs-code-refuses-to-start-debug-on-my-custom-board</link><description>Hi, 
 Working on a new project, custom board, using an nRF52840. Wrote my own DTS and all that. Program works as intended, but the nRF Connect for VS Code plugin refuses to start debugging. 
 Error-message is: 
 Unknown device type &amp;quot;nrf52840&amp;quot;. Only Nordic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Jun 2025 14:18:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115437/nrf-connect-for-vs-code-refuses-to-start-debug-on-my-custom-board" /><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/540740?ContentTypeID=1</link><pubDate>Fri, 27 Jun 2025 14:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00d9a155-588b-496b-b6da-4fbb6f9e94f8</guid><dc:creator>basvkesteren</dc:creator><description>&lt;p&gt;Picking up an old thread, my original problem turned out to be similar. Our custom board had a comparable typo in board.cmake.. Anyway, i can now debug from vscode on our custom board. Happy, case closed :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/525861?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 06:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b993868-fa6f-4dcc-b4ae-98bf6c1b2cee</guid><dc:creator>Jens-Ajisai</dc:creator><description>&lt;p&gt;Thanks Edvin. The solution works well.&lt;br /&gt;Since it always complaint about UICR (Debug always tries to flash and never succeeds. Even doing &amp;quot;Erase and flash to board&amp;quot; right before debug.), I also added &amp;quot;--erase&amp;quot; to&amp;nbsp;board_runner_args(nrfutil ...).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/525031?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 11:27:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71a64c54-5339-4dc0-8d66-dd50049fa023</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, I think we found the issue. For the Thingy91x, there is a bug in the board files. Please look at the file:&lt;/p&gt;
&lt;p&gt;v2.9.0\nrf\boards\nordic\thingy91x\board.cmake.&lt;/p&gt;
&lt;p&gt;Line 8 and 11 are saying:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;elseif(BOARD_THINGY91X_NRF5340_CPUAPP OR BOARD_THINGY91X_NRF5340_CPUAPP_NS)
elseif(BOARD_THINGY91X_NRF5340_CPUNET)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;they are missing &amp;quot;CONFIG_&amp;quot; before &amp;quot;BOARD&amp;quot;. Please correct them to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;elseif(CONFIG_BOARD_THINGY91X_NRF5340_CPUAPP OR CONFIG_BOARD_THINGY91X_NRF5340_CPUAPP_NS)
elseif(CONFIG_BOARD_THINGY91X_NRF5340_CPUNET)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that there are two corrections on the first line.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This was causing the build folder to miss these last two lines in the file build\&amp;lt;app_name&amp;gt;\zephyr\runners.yaml:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  jlink:
    - --dt-flash=y
    - --device=nrf5340_xxaa_app
    - --speed=4000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Try rebuilding after fixing the board.cmake file (you may need to delete the build folder, and create the build configuration again).&lt;/p&gt;
&lt;p&gt;After the fix, make sure that the runners.yaml file contains those last lines, and try debugging again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the custom board, make sure that you have the corresponding lines in the custom board&amp;#39;s board.cmake file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have reported the bug in the thingy91x file internally, so it will hopefully be patched within the next release.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/524479?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2025 04:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66241f53-9c91-42a4-99ba-5446de2d2649</guid><dc:creator>Jens-Ajisai</dc:creator><description>&lt;p&gt;Thanks for checking.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/524277?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 09:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a568e321-e01c-4f0e-b3fc-5cef6ce09044</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Short update:&lt;/p&gt;
&lt;p&gt;This is reported internally, and they will look into it, hopefully fixing it in the next release of the VS Code Extension.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/523263?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 13:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c507a5db-173a-48a3-adbe-78a5abceb96d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I got hold of a Thingy91x, and I see the same as you. Let me look into this with our developers, and I will get back to you!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/523114?ContentTypeID=1</link><pubDate>Sat, 15 Feb 2025 02:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60a1854c-ce9f-4ae5-85c4-06939937e334</guid><dc:creator>Jens-Ajisai</dc:creator><description>&lt;p&gt;Thanks for pointing out this errata.&lt;br /&gt;The debug board is not inserted and I connected to P8. The SWD switch is turned to nRF53. Flashing works fine, only debugging not.&lt;/p&gt;
&lt;p&gt;I click on debug. A list pops up to select which image to debug. I select the first for the app (not any boot loader nor ipc_radio).&lt;br /&gt;&lt;br /&gt;I use a sys build targeting thingy91x/nrf5340/cpuapp.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/522830?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 11:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b11ed0c2-7113-4ad8-8e20-f1f2bd09055b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;How did you connect the debugger?&lt;/p&gt;
&lt;p&gt;Please note this anomaly:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/errata_Thingy91X/page/ERR/Thingy91X/latest/anomaly_151_4.html"&gt;https://docs.nordicsemi.com/bundle/errata_Thingy91X/page/ERR/Thingy91X/latest/anomaly_151_4.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/522760?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 05:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84b60868-a4c4-4327-89cb-78f6d47d35ff</guid><dc:creator>Jens-Ajisai</dc:creator><description>&lt;p&gt;Any news? I get the same issue &amp;quot;&lt;span&gt;Unknown device type &amp;quot;nrf5340&amp;quot;. Only Nordic devices are supported.&amp;nbsp;&lt;/span&gt;&amp;quot;when I try to debug the nRF5340 on Thingy91X. I use Toolchain v2.9.0 with nRF Connect for VS Code. I use a nRF9151dk as debugger.&lt;br /&gt;Flashing works fine for nRF5340. Debugging only for the nRF9151 core.&lt;/p&gt;
&lt;p&gt;I try to debug an unmodified connectivity_bridge application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/511740?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 17:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0ca7a3c-0ff9-4316-896a-0868050bec39</guid><dc:creator>SoukTi</dc:creator><description>&lt;p&gt;I copied the nrf5340dk board definition and directly modified that and it now works. Not sure what fixed it though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/511610?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 09:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0d44e4-4f8b-48be-ac77-62dbc8472e5d</guid><dc:creator>SoukTi</dc:creator><description>&lt;p&gt;Hi, I have the same issue only with nrf5340,&lt;/p&gt;
&lt;p&gt;Unknown device type &amp;quot;nrf5340&amp;quot;. Only Nordic devices are supported.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using 2.8 myself. I tried to debug on both windows and linux hosts but same error.&lt;/p&gt;
&lt;p&gt;I can submit the board file but I would prefer to do it through a private ticket&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/508797?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2024 12:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bf8d27c-7b81-4a02-903e-fc8e4c0d0712</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for not coming back to you sooner. If you are still stuck on this, is it possible to upload your custom board files? Can you also specify what NCS version you are using?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for VS Code refuses to start debug on my custom board</title><link>https://devzone.nordicsemi.com/thread/505889?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 12:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84c119e9-d01e-432a-b7f9-c243de08e165</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I would think that it is a reasonable limitation that you can&amp;#39;t debug other chip brands using a Nordic Debugging tool (as we would have to do additional work to support this), but that is not what you are trying to do. You are actually trying to debug on a Nordic chip, so I guess that it is the way that the extensions tries to determine what device it is that doesn&amp;#39;t work as intended.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me run this by our VS Code Extension team, and check if they know how this is checked, and whether it is possible to change this. I will get back to you when I know more, but it might not be before next week.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>