<?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>nRF52840 based MDBT50Q flashing error.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43346/nrf52840-based-mdbt50q-flashing-error</link><description>Sir, 
 I have a MDBT50Q-UFL evaluation board. I am using Keil uVision 5 and flashing is done through ST-Link. I downloaded the example files from http://developer.nordicsemi.com/nRF51_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.0.0_a53641a.zip . I taken the UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Feb 2019 11:39:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43346/nrf52840-based-mdbt50q-flashing-error" /><item><title>RE: nRF52840 based MDBT50Q flashing error.</title><link>https://devzone.nordicsemi.com/thread/169698?ContentTypeID=1</link><pubDate>Wed, 06 Feb 2019 11:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02518e36-4065-4a49-9b9d-5389a5db5500</guid><dc:creator>Abhimanyu K K</dc:creator><description>&lt;p&gt;Sir,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. I solved the issue by the following steps.&lt;/p&gt;
&lt;p&gt;1. Do as I documented above(the question).&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;In this window&amp;nbsp;&lt;strong&gt;Option for Target &amp;gt; Debug &amp;gt; Settings&lt;em&gt;(Near&amp;nbsp;ST-Link Debugger)&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt; Flash Download &amp;gt; Programming Algorithm&amp;nbsp;&lt;/strong&gt;click&amp;nbsp;&lt;strong&gt;Add&amp;nbsp;&lt;/strong&gt;and select &lt;strong&gt;nRF52xxx SoftDevice Error&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;nRF52xxx_UICR&amp;nbsp;&lt;/strong&gt;if the target is Soft Device. If the target is Project file then select&amp;nbsp;&lt;strong&gt;nRF52xxx&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;&lt;span&gt;nRF52xxx_UICR.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;3. Then change the size of RAM to 0x2000.&lt;/p&gt;
&lt;p&gt;4. Build the project file.&lt;/p&gt;
&lt;p&gt;5. Flash the soft device.&lt;/p&gt;
&lt;p&gt;6. Flash the Project file.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 based MDBT50Q flashing error.</title><link>https://devzone.nordicsemi.com/thread/169563?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 14:39:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f81491c-c914-44c0-98ba-e126e2a0052f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You should be using the pca10056 project files, as these are intended for the nRF52840. I know it is a bit confusing, but PCA10056 is the name of the development kit with the nRF52840, while PCA10040 is the name of the development kit with the nRF52832.&lt;/p&gt;
&lt;p&gt;It seems like you have forgotten to flash the softdevice first before programming your application. The &amp;quot;Coretex M4&amp;quot; error is a typical error message to get when the softdevice is missing.&lt;/p&gt;
&lt;p&gt;The softdevice is the .hex file found in:&lt;/p&gt;
&lt;p&gt;SDK\components\softdevice\s140\hex\&lt;/p&gt;
&lt;p&gt;Note that it is the s140 softdevice that is used on the nRF52840.&lt;/p&gt;
&lt;p&gt;Now to flash it, I have never tried this using an ST link, but maybe you can try to open the same project in segger embedded studio.&lt;/p&gt;
&lt;p&gt;Open:&lt;/p&gt;
&lt;p&gt;SDK\examples\ble_peripheral\ble_app_uart\pca10056\ses\&lt;/p&gt;
&lt;p&gt;And open the project file. Segger embedded studio (full version) is free to use for nRF5 development. Please see &lt;a href="https://www.youtube.com/watch?v=YZouRE_Ol8g&amp;amp;list=PLx_tBuQ_KSqGHmzdEL2GWEOeix-S5rgTV" rel="noopener noreferrer" target="_blank"&gt;this guide&lt;/a&gt; on how to install, and activate the license.&lt;/p&gt;
&lt;p&gt;Segger embedded studio will automatically upload the softdevice for you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, you can try &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF5-Command-Line-Tools"&gt;Nordic Command Line Tools&lt;/a&gt; or &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRFgo-Studio/Download#infotabs"&gt;nRFgo Studio&lt;/a&gt;, but I don&amp;#39;t know whether any of them work with the ST link.&lt;/p&gt;
&lt;p&gt;Your last option is to figure out how to upload .hex files with ST Firmware, and upload the .hex files that way.&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>