<?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 setup Keil Uvision for Redbearlab BLE Nano?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18207/how-to-setup-keil-uvision-for-redbearlab-ble-nano</link><description>I am having problem to download SDK NRF51 12.0 example firmware onto Redbearlab BLE Nano nrf51822. The compilation and build is fine. It is shown as 
 Erased Failed!
Error: Flash download failed - &amp;quot;Cortex M0&amp;quot; 
 
 This BLE Nano is not using JLink but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Dec 2016 11:12:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18207/how-to-setup-keil-uvision-for-redbearlab-ble-nano" /><item><title>RE: How to setup Keil Uvision for Redbearlab BLE Nano?</title><link>https://devzone.nordicsemi.com/thread/70294?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2016 11:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09b4e924-a9f2-4643-b461-35a1659931ab</guid><dc:creator>daniel77</dc:creator><description>&lt;p&gt;In order to solve the bootloader issue, I just downloaded a PCA10028 nRF51422 example project .hex which includes softdevice S130 V2, app and bootloader by drag and drop the .hex into mbed USB drive. This will wipe off the Redbearlab S130 V1, bootloader and my app. I then pretty much maintain the same IROM and IRAM settings (for S130 V2) in the SDK PCA10028 nRF51422 examples for my nRF51822. At least for now, 2 SDK examples work on BLE Nano board. I would deep dive bootloader and settings for next time.&lt;/p&gt;
&lt;p&gt;For other users, the advice is to save the IRAM &amp;amp; IROM settings of the SDK projects prior to changing the Device from nRF51422 to nRF51822 because Keil will set to default settings which cause the error in flashing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to setup Keil Uvision for Redbearlab BLE Nano?</title><link>https://devzone.nordicsemi.com/thread/70293?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2016 09:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:308d0ea8-922b-456c-aa6a-9c972050fbaf</guid><dc:creator>daniel77</dc:creator><description>&lt;p&gt;I was just porting the SDK projects to nRF51822 instead of nRF51422 PCA10028 board. It seems like I couldn&amp;#39;t get the project running after flashing them. Is my bootloader having problem with these SDK projects? If so, should I compile a new bootloader? Is there any ready nRF51822 a bootloader that works with S130 V2.0/V1.0 for me to test?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to setup Keil Uvision for Redbearlab BLE Nano?</title><link>https://devzone.nordicsemi.com/thread/70290?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2016 08:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:231c0710-3e8e-43f2-8ec5-fe50393168d7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Daniel,
Keil does not merge the application hex with the SoftDevice and bootloader everytime you press download in your application project. You have to flash the SoftDevice and the Bootloader separately or merge all the hex files ( App, SD and BL) into one hex file and flash that. If you do not DFU in the application, then you have to set the BANK_APP_VALID flag in order to tell the bootloader that there is a valid application, see &lt;a href="https://devzone.nordicsemi.com/question/75238/how-to-create-combined-image-after-dfu/"&gt;this&lt;/a&gt; answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to setup Keil Uvision for Redbearlab BLE Nano?</title><link>https://devzone.nordicsemi.com/thread/70292?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2016 02:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c929ed9c-8f7b-43e8-b7b4-c255d6188bd7</guid><dc:creator>daniel77</dc:creator><description>&lt;p&gt;Thanks for highlighting the memory map issues. I reviewed the ROM and RAM management tutorial. I realized that Redbearlab uses S130 V1.0. Hence, I used
IRAM base: 0x20002800
IRAM size : 0x5800 (32KB)
IROM base: 0x1C000
IROM size : 0x24000 (256KB)
Nevertheless, your answer is important for S130 V2.0. When I switch to V2.0, I will change to that IROM configuration. I think you should update the tutorial with your answer for V2.0.
I am able to download the flash consistently now. But, the SDK example project doesn&amp;#39;t run correctly.
Does Keil uVision merge with softdevice and bootloader every time it downloads the program like mbed web IDE? My bootloader is not pointing correctly to the application now. It got stuck at OTA DFU bootloader mode loop cycle. It times out and reboots again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to setup Keil Uvision for Redbearlab BLE Nano?</title><link>https://devzone.nordicsemi.com/thread/70291?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2016 00:21:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d958abe3-1142-475f-b7d7-08232be8e080</guid><dc:creator>daniel77</dc:creator><description>&lt;p&gt;I am having same error after changing to this memory map. I tried IRAM1 Start:0x2000y000 (where y=4,6,8) but the error is still the same. Is there a way to report error in more precise way. I don&amp;#39;t understand what is really causing &amp;quot;Erase Failed&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to setup Keil Uvision for Redbearlab BLE Nano?</title><link>https://devzone.nordicsemi.com/thread/70289?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 14:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19c83e43-bf4e-42f7-81ae-a6e43f0d3a0f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;if the screenshots of the  &amp;quot;Options for Target&amp;quot; window belongs to your firmware project, then you have to modify the IRAM/IROM settings under &amp;quot;Options for Target&amp;quot; --&amp;gt; &amp;quot;Target&amp;quot; to the following&lt;/p&gt;
&lt;p&gt;IROM1 Start: 0x0001B000 Size: 0x25000
IRAM1 Start: 0x20002000 Size: 0x6000&lt;/p&gt;
&lt;p&gt;the minimum RAM size required by the S130 v2.x SoftDevice is 0x13C8 bytes, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.sds/dita/softdevices/s130/mem_usage/mem_resource_reqs.html?cp=3_7_2_0_13_0_0"&gt;this&lt;/a&gt; page in the SDS, but its commen to provide 0x2000 bytes to give the SoftDevice some headroom. If 0x2000 bytes is not enough, then &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___c_o_m_m_o_n___f_u_n_c_t_i_o_n_s.html#ga812ea2c6258c1cf705c7c114b6297aab"&gt;sd_ble_enable&lt;/a&gt; will return the correct RAM start address in the app_ram_base argument.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>