<?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>Try to add CLI Command feature into the example Open_bootloader_usb_mbr, but get error during link stage when compile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56393/try-to-add-cli-command-feature-into-the-example-open_bootloader_usb_mbr-but-get-error-during-link-stage-when-compile</link><description>Hi, 
 
 I am trying to add CLI Command feature into the example Open_bootloader_usb_mbr, but get error during link stage when compile as below, 
 
 Building ‘open_bootloader_usb_mbr_pca10059_debug’ from solution ‘open_bootloader_usb_mbr_pca10059_debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jan 2020 00:12:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56393/try-to-add-cli-command-feature-into-the-example-open_bootloader_usb_mbr-but-get-error-during-link-stage-when-compile" /><item><title>RE: Try to add CLI Command feature into the example Open_bootloader_usb_mbr, but get error during link stage when compile</title><link>https://devzone.nordicsemi.com/thread/228698?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 00:12:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e57cf9c-b6a5-4767-912d-5b9792dc9382</guid><dc:creator>OceanS</dc:creator><description>&lt;p&gt;Thanks Edvin,&lt;/p&gt;
&lt;p&gt;Just like what you said, I got it done. Thanks again.&lt;/p&gt;
&lt;p&gt;S.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Try to add CLI Command feature into the example Open_bootloader_usb_mbr, but get error during link stage when compile</title><link>https://devzone.nordicsemi.com/thread/228621?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 14:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bb3c516-3b96-4242-879d-d07a3e12eef3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You need to modify your section placement file to add these cli commands.&lt;/p&gt;
&lt;p&gt;If you open the example:&lt;/p&gt;
&lt;p&gt;SDK15.3.0\examples\peripheral\cli&lt;/p&gt;
&lt;p&gt;in Segger Embedded Studio, right click the project name, as when you want to edit the settings of the project, and click &amp;quot;Edit Section Placement&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This will open the flash_placement.xml file. Copy the line saying:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.cli_command&amp;quot; inputsections=&amp;quot;*(.cli_command*)&amp;quot; address_symbol=&amp;quot;__start_cli_command&amp;quot; end_symbol=&amp;quot;__stop_cli_command&amp;quot; /&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then, in your bootloader, right click and select &amp;quot;Edit Section Placement&amp;quot; there as wellk, and paste in that line somewhere in the same area as you found it in the other project, and then try to compile again.&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>