<?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>Migrate code from nrf52 DK to custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24133/migrate-code-from-nrf52-dk-to-custom-board</link><description>When I am going to program a custom board for the first time, can I use example codes from the SDK or should I change anything important on the configuration?
On my custom pcb I have the 32MHz and 32KHz clock.
I am not using RF, I am just using spi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 31 May 2020 12:04:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24133/migrate-code-from-nrf52-dk-to-custom-board" /><item><title>RE: Migrate code from nrf52 DK to custom board</title><link>https://devzone.nordicsemi.com/thread/252535?ContentTypeID=1</link><pubDate>Sun, 31 May 2020 12:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c910ed73-092d-4101-a710-e15419685cd8</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Hi Sigurd, how to d this with SES please ? i tried to add in pre processor BOARD_PCA10100 to have blink example working with nrd52833DK because it&amp;nbsp; doesn&amp;#39;t exist by default but it doesn&amp;#39;t work at all. I guess there is somewhere else to change ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate code from nrf52 DK to custom board</title><link>https://devzone.nordicsemi.com/thread/95026?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 10:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d107008-7d05-4246-a154-803cda117567</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, that is not a problem. Use the on-board J-link programmer on the nRF52-DK to flash your custom board by using &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe.html?cp=5_1_3"&gt;nrfjprog&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate code from nrf52 DK to custom board</title><link>https://devzone.nordicsemi.com/thread/95025?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 10:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e92a85c5-0d3c-434a-9860-0ae0c0a4b24b</guid><dc:creator>User1321</dc:creator><description>&lt;p&gt;Excellent, thank you! One last question, currently I am using gcc to develop my nrf52832 DK, can I also use gcc together with the proper SWD connections to flash the nrf52832 on my custom pcb?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate code from nrf52 DK to custom board</title><link>https://devzone.nordicsemi.com/thread/95024?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 08:44:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ccd318-30c2-496d-a7e4-41279dd819d5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Many of the examples in the SDK uses the Board Support Package (BSP) module. You can either create your own board file, or modify an existing one in order to add support for your custom board in the BSP module. Simply copy one of the existing board files (e.g. pca10040.h), rename it, and modify it after your requirements (change pin configuration, define buttons and leds etc). Then you have to modify &lt;code&gt;boards.h&lt;/code&gt; to support your new file:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;..
#elif defined(BOARD_CUSTOM)
  #include &amp;quot;custom_board.h&amp;quot;
..
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The new define can then be used in e.g. Keil (Options for Target -&amp;gt; C/C++ tab-&amp;gt; Define-&amp;gt; remove &lt;code&gt;BOARD_PCA10040&lt;/code&gt; and add your &lt;code&gt;BOARD_CUSTOM&lt;/code&gt;). The BSP module is very dynamic, and will configure according to your custom board file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate code from nrf52 DK to custom board</title><link>https://devzone.nordicsemi.com/thread/95023?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 08:24:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:707e42d7-a263-4a92-90d7-8532c300d2ef</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I guess he will add radio at some point;) Otherwise STM32L0 should be cheaper and also less power hungry (if you know how to write the FW).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate code from nrf52 DK to custom board</title><link>https://devzone.nordicsemi.com/thread/95022?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 21:30:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d38d995-ec8b-4ad0-9528-520f363f3da1</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;It&amp;#39;s interesting you chose the nRF52 for your MCU if you don&amp;#39;t need BLE or RF of any kind.&lt;/p&gt;
&lt;p&gt;I think I would be more likely to use something like a STM32L4, or possibly a STM32L0 if you are just communicating with peripherals&lt;/p&gt;
&lt;p&gt;I presume you needed a low power device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate code from nrf52 DK to custom board</title><link>https://devzone.nordicsemi.com/thread/95021?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 18:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f332ec5e-7b87-498e-ac50-98ecc54aea0a</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Yes you can use nRF5 SDK examples, just make sure that PIN configuration in board&amp;#39;s header file suits your PCB. If not then there are other Q&amp;amp;S showing how to define easily custom board and recompile the project(s)...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>