<?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>Flash the nrf52811 VScode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87331/flash-the-nrf52811-vscode</link><description>Hello! 
 Sorry for asking, im fairly new to SoC on custom boards. 
 I have now created a custom PCB using the nRF52811 and i want to flash it with an example. ble peripheral example. Im using the nRF Connect together with Visual Studio Code. Im trying</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Apr 2022 07:10:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87331/flash-the-nrf52811-vscode" /><item><title>RE: Flash the nrf52811 VScode</title><link>https://devzone.nordicsemi.com/thread/365514?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2022 07:10:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9b1b22e-df1e-478c-b6b9-bdcb458af389</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Fredrik&lt;/p&gt;
&lt;p&gt;I see, you&amp;#39;re looking at the Infocenter documentation, and understand your confusion. This &amp;quot;develop for nRF52811&amp;quot; guide is only for developing with the nRF5 SDK. These steps are not necessary in the nRF Connect SDK.&lt;/p&gt;
&lt;p&gt;To build BLE samples for our &amp;quot;smallest&amp;quot; boards (nRF52805, nRF52810 and nRF52811), you&amp;nbsp;need to activate the prj_minimal.conf in the OVERLAY_CONFIG, as this error you&amp;#39;re seeing means that you&amp;#39;re running out of memory on the nRF52811 board. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html#activating-sample-extensions"&gt;Activating sample extensions here &lt;/a&gt;for details on how to enable the minimal build variant.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash the nrf52811 VScode</title><link>https://devzone.nordicsemi.com/thread/365332?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 08:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b76dc48-7e44-4209-889a-98424a413726</guid><dc:creator>Fredrik Sannerhaugen</dc:creator><description>&lt;p&gt;So i will get an error saying im overflowing the SRAM by 873 bytes.. It would not build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash the nrf52811 VScode</title><link>https://devzone.nordicsemi.com/thread/365331?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 08:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f33cc318-2b7a-4fba-be17-18b58190e012</guid><dc:creator>Fredrik Sannerhaugen</dc:creator><description>&lt;p&gt;Hi Simon!&lt;/p&gt;
&lt;p&gt;Thats okay, i hace created the custom board and i think thats okay, but the problem is that the example is for the nrf52840 i think. In your documentation you can emulate the 52811 on the 52840 DK then upload it following these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the example project for your IDE.&lt;/li&gt;
&lt;li&gt;In the project settings, change to device &amp;quot;NordicSemiconductor-&amp;gt;nRF52811_xxaa&amp;quot;.&lt;/li&gt;
&lt;li&gt;In the C/C++ preprocessor settings, remove the defines &amp;quot;NRF52&amp;quot; and &amp;quot;NRF52840_XXAA&amp;quot;.&lt;/li&gt;
&lt;li&gt;Add the preprocessor define &amp;quot;NRF52811_XXAA&amp;quot;.&lt;/li&gt;
&lt;li&gt;In the linker script settings, adjust the linker script to match the maximum RAM and flash size of nRF52811.
&lt;ul&gt;
&lt;li&gt;ROM END: 0x2FFFF&lt;/li&gt;
&lt;li&gt;RAM END: 0x20005FFF&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Remove the following files from the project:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;compiler&amp;gt;_startup_nrf52.s&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;system_nrf52.c&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add the following files to the project:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;compiler&amp;gt;_startup_nrf52811.s&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;system_nrf52811.c&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;DEVELOP_IN_NRF52840&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;define to the compile flags. Adding this define will add extra code in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;SystemInit&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;needed for nRF52840.&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;define to ensure correct timing when using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;nrf_delay_us&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;But i cant figure out where i find these settings in VS code? thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Fredrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash the nrf52811 VScode</title><link>https://devzone.nordicsemi.com/thread/365301?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 07:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab00aa49-d197-4038-b56f-ed24e8f9f16d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;You can either&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Add the custom board files to your application root. See chapter &amp;quot;Add a custom board&amp;quot; of this&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://youtu.be/KSivO9Cf1TE?t=905"&gt;webinar&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Use&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-VS-Code"&gt;nRF Connect for VS Code&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://youtu.be/ufjv2NaLfN8?t=1724"&gt;custom boards&lt;/a&gt;. In general, this is the recommended tool&amp;nbsp;for development and debugging, so using its custom board functionality might come along as a natural choice.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash the nrf52811 VScode</title><link>https://devzone.nordicsemi.com/thread/365183?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 12:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbbfeaa0-b385-4867-be90-531f2db8425e</guid><dc:creator>Fredrik Sannerhaugen</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes i have watched the videoseries. Im trying to flash the&amp;nbsp;&lt;span&gt;peripheral_LBS example to the board. But where do i find the nRF52811 board file? And how do i implement that? I read something about precossesor settings and setting the&amp;nbsp; right RAM and ROM settings, but i cant find out where i set these parameters?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Fredrik&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash the nrf52811 VScode</title><link>https://devzone.nordicsemi.com/thread/365177?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 12:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab57396f-f2fe-42b6-81ce-1a46895f5c2d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Fredrik&lt;/p&gt;
&lt;p&gt;What sample project are you trying to flash onto your nRF52811 board? Have you checked out our nRF Connect for VS Code video tutorial series on YouTube? They should give you a good idea on how to get started and how to build and flash projects onto your boards.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you create a project and build configuration in nRF Connect for VS code, you should get to choose the board you want to build the project for, here you will need an nRF52811 board file to make sure the pin configurations etc. are correct.&lt;/p&gt;
&lt;p&gt;In order to flash a custom board, you will need a debugger (like the nRF52840 DK) and connect it either with the 10 pin debugger header or with the SWDIO pins as explained in the picture below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5086.ext_5F00_52DK.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>