<?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>How to Program Custom nRF52840 Board via USB &amp;amp; Make It Arduino Compatible</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120233/how-to-program-custom-nrf52840-board-via-usb-make-it-arduino-compatible</link><description>Hi, 
 I have designed a custom board using the nRF52840 and have successfully programmed it using SWD (SWDIO &amp;amp; SWDCLK) with a J-Link programmer . However, I now want to program the board through USB . 
 
 
 What steps are needed to enable USB programming</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Mar 2025 06:55:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120233/how-to-program-custom-nrf52840-board-via-usb-make-it-arduino-compatible" /><item><title>RE: How to Program Custom nRF52840 Board via USB &amp; Make It Arduino Compatible</title><link>https://devzone.nordicsemi.com/thread/529682?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2025 06:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60873f44-79a0-44e4-8a23-ffc7af5281ee</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]What steps are needed to enable USB programming for my custom nRF52840 board?[/quote]
&lt;p&gt;You would need any bootloader for this.&lt;/p&gt;
[quote user=""]Do I need to flash a specific bootloader for USB support? If so, which one and how?[/quote]
&lt;p&gt;As long as the bootloader supports USB, you are good.&lt;/p&gt;
&lt;p&gt;The default used in the nRF Connect SDK is MCUboot. See &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;This course&lt;/a&gt; to learn how that works, and one of the lessons teaches you how to set up MCUboot USB.&lt;/p&gt;
[quote user=""]I also want to make my board &lt;strong&gt;Arduino-compatible&lt;/strong&gt;, so I can program it using the &lt;strong&gt;Arduino IDE&lt;/strong&gt;. How can I achieve this?[/quote]
&lt;p&gt;Perhaps Ardiono IDE supports MCUboot? I dont know.&lt;/p&gt;
&lt;p&gt;Nordic Semiconductor does not have official Arduino support, so you will have to go look at Arduinos docs to see what they can provide.&lt;/p&gt;
&lt;p&gt;For example: you can run Arduino code on nRF52 boards I know. For example, the Arduino BLE Nano is built on a nRF52 chips.&lt;br /&gt;I also see that Adafruit has some stuff over at&amp;nbsp;&lt;a href="https://github.com/adafruit/Adafruit_nRF52_Arduino"&gt;https://github.com/adafruit/Adafruit_nRF52_Arduino&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>