<?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>Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11657/running-ble-example-using-segger-embedded-studio</link><description>@Michael Dietz 
 Hi Michael!
I am not sure what happened to my last question regarding the BLE example using Segger Embedded Studio. It is no longer visible in the post comments. 
 I have now added the preprocessor definitions you mentioned. I am installing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 27 Feb 2016 20:27:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11657/running-ble-example-using-segger-embedded-studio" /><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44061?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2016 20:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b851e9f-9176-4ea9-914a-00f8963e8ad1</guid><dc:creator>Raphael</dc:creator><description>&lt;p&gt;I had the same problem and the solution (at least for me) was setting the Section Placement Macros to:
FLASH_START=0x1b000
RAM_START=0x20001f00
based on the linker file included in the armgcc directory.
Note that I was using S130 with PCA10028 and SDK v11-alpha2.
I did not change the flash_placement.xml.
The start values for flash and RAM there should probably remain what they are and &lt;em&gt;not&lt;/em&gt; be the same as the section placement macros, i.e. &lt;em&gt;not&lt;/em&gt; factor in the SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44058?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 14:57:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab41133a-4bc2-48ff-b5c8-acec4dd579d8</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;Hey Jan,&lt;/p&gt;
&lt;p&gt;I edited the blog post. Ditch the device pack for now and try to follow it step by step. If you are still having problems then I&amp;#39;m going to recomend starting from a clean slate (an unmodified BLE example). Please PM me if you try blog and clean state and still doesnt work and lets set up a skype to get this fixed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44060?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 14:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a34ac3c-f0e2-447b-a6f4-fc31efcff0ba</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;Mats:&lt;/p&gt;
&lt;p&gt;Your SRAM_START should be 0x20001F00 and size should be 0x6500. But please see the blog post I updated it to use the softdevice. You will want to set the memroy map macros back to the full memory map size and start addresses and set aside room for softdevice in the flash placement file as i describe in the blog post. Do not use the nRF package for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44059?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 11:51:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:567fcd3e-0aca-4273-a42b-1b97d70f943f</guid><dc:creator>Mats</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been working since yesterday with the nRF52 (PCA10040) on my Mac. I&amp;#39;ve followed this tutorial; &lt;a href="https://devzone.nordicsemi.com/blogs/825/segger-embedded-studio-cross-platform-ide-w-no-cod/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The blinky-program is working but when I tried the ble_peripheral/ble_app_beacon/pca10040/s132/arm5_no_packs project file. But i&amp;#39;m also getting the same error as the TS:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Unknown function at 0x000009D4
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;First i had flashed the softDevice (s132_nrf52_2.0.0-7.alpha_softdevice.hex) with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;jLinkExe -device nrf52
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I&amp;#39;ve changed the Memory Map Macro&amp;#39;s:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FLASH_START=0x1b000
FLASH_SIZE=0x65000
SRAM_START=0x20000000
SRAM_SIZE=0x8000
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I&amp;#39;ve also tried this step:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;In &amp;quot;Linker Options&amp;quot; you will need to set the &amp;quot;Section Placement File&amp;quot; as $(StudioDir)/targets/Cortex_M/flash_placement.xml.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;But this causes an error;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;cyclic memory section dependency with section .fast_run
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also tried using the emPackage but that doesn&amp;#39;t really changed something...&lt;/p&gt;
&lt;p&gt;I hope somebody can help me with my problem.
(And maybe it&amp;#39;s not related to the TS post?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44057?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 06:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9701f72-49f7-4729-a421-b186563cf21e</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Hi Michael!
I have downloaded and installed the nRF.emPackage, but I get two errors (Reset_Handler and &lt;strong&gt;RAM_segment_end&lt;/strong&gt; ), so I guess that is what you are referring to. Let me know once you have had time to look at the softdevice falsh and ram settings. Thanks.
Also when you talk to Segger and mention that two identical folders are imported, note that the first project folder has all the Includes, Preprocessor definitions etc, but the second one doesn&amp;#39;t. So until it is fixed it is important to remember to delete the second folder and not the first one though they seem identical.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44056?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 15:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ec60b49-9588-4670-98a7-4da0cac7fcd5</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;this is as far as i got.. maybe it will help but im guessing you will still have problems with the softdevice. check the blog post i added an edit at the bottom. the issue is setting the flash and ram for the softdevice to be present now. i didnt get to that today but if you really want to you can check out the nRF52832_xxAA_MemoryMap.xml and also the sections placement file in linker options. Otherwise I should have time to get this done tomorrow and ill edit the blog&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44055?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 14:24:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:def5b5da-f390-4c2a-b65c-743f27e6c1d2</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Ok. I have tried three different s132 Softdevice versions, but I get the same error. It says &amp;#39;Unknown function at 0x000009D4&amp;#39;. I don&amp;#39;t know if this information is useful. Let me know when you have something that I can try. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44054?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 14:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b562d049-9c94-48db-ad91-eca794091110</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;No, i dont think it is the softdevice. I&amp;#39;m really not sure right now, I&amp;#39;m experimenting with some stuff in SEGGER Embedded Studio and will look into this as well i have some ideas of what might be causing but will let you know&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44053?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 13:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d7314f4-b068-4a7f-9a12-f35fc485df2b</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Is it not possible to say what may be the cause when debugging is stopped by vector catch?
Can the Softdevice version cause the issue. In the GCC makefile it is s132_nrf52_2.0.0-7.alpha_softdevice.hex where I am using s132_nrf52_2.0.0-8.alpha_softdevice.hex.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44052?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 12:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c02bea5-33b6-400b-9266-27f045cb3590</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Just an observation. If I choose to rebuild the project then it fails to build even though it has just build successfully before. I found that it is because the &amp;quot;../../../../../../components/device&amp;quot; that I added to User Include Directories is now lost/gone and the Memory Map macros are also back to default.
Could that be related to the issue?
Also after successfully downloading the Softdevice the Firmware says &amp;#39;Unknown (Id: 0x007b), but I guess that has nothing to do with it..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44051?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 11:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e5167e-852d-45ae-a47f-1cb28d34890a</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;I never get to main, but get the error right away.
I have nRFGo Studio on my Windows laptop (I couldn&amp;#39;t install it using playonmac for some reason), but I am running SES from my Mac, so I can&amp;#39;t chose a softdevice hex file from the same directory as my SES project file. Is that what you mean?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44050?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 11:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bca1140-28d7-47f3-a4ca-302f0dfd5c0c</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;hm. So are you getting to main when debugging or are you getting this error right away? In project properties, linker options, additional output format specify &amp;#39;hex&amp;#39;. Now from nrfgo studio erase, program softdevice, program this hex (this hex should be in the Output-&amp;gt;Debug-&amp;gt;Exe directory in the same folder as your SES project file. Now see if it works. If it works then you know your problem is related to flashing &amp;amp; runing/debuging the program if it doesnt work you know that the problem is in the compiling&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44049?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 10:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38ccc3f1-eade-473c-a6cd-a8d9e6ef6b31</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;I actually forgot to change target connection to J-Link this time. I have imported the project several times today. I have changed it and it seems to connect fine under Target-&amp;gt;Connect J-Link (I see Cortex-M4 r0p1 on J-Link in buttom status bar)
Anyway now I am back to the initial error &amp;#39;Stopped by vector catch&amp;#39; on 0x9d4  4B01    ldr  r3,  0x000009DC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44048?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 10:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0012942b-166a-4a03-ae19-e2b35843986c</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Hi Michael!
Thanks. I have now erased all using nRFGo Studio and programmed Softdevice s132_nRF52_2.0.0-8.alpha successfully. When I run and debug I recieve &amp;#39;Memory simulation error storing word to 0x200151f8&amp;#39;, so I don&amp;#39;t reach the first instruction of main.c.
It stops on line 62 in system_nRf52.c just inside void SystemInit(void).&lt;/p&gt;
&lt;p&gt;Just before the error I can see that download was successful, so that part should be ok.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running BLE example using Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/44047?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2016 10:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1b4b945-c16c-45ac-b60e-a91a8dfee37d</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;EDIT: Did you connect to your device? In SES go to your project properties and change &amp;#39;Target Connection&amp;#39; from &amp;#39;Simulator&amp;#39; to &amp;#39;J-Link&amp;#39;. Make sure you can properly conenct to your device in the file menu select &amp;#39;Target&amp;#39; and &amp;#39;Connect J-Link&amp;#39; after editing this project to makes ure you can. Although enterring debug mode will connect automatically.&lt;/p&gt;
&lt;p&gt;Not sure why its not visible but see my most recent answer to one of your questions that is: &lt;a href="https://devzone.nordicsemi.com/blogs/825/segger-embedded-studio-cross-platform-ide-w-no-cod/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You shouldn&amp;#39;t need to install keil. An easier way is to look at the GCC makefile to get these definitions (they will be the same as in keil, you just don&amp;#39;t need to download it). In YOUR_PROJECT/PCA_100XX/s132/armgcc open the Makefile and look for:
CFLAGS  = -DNRF52
CFLAGS += -DSOFTDEVICE_PRESENT&lt;/p&gt;
&lt;p&gt;You will see some defines denoted by -D&amp;#39;what_is_defined&amp;#39;. Just define these in your SES project (dont include -D). But note that SES gets these definitions from Keil by default so you shouldn&amp;#39;t even have to do this. After you checked were the definitions different?&lt;/p&gt;
&lt;p&gt;As for the two folders, I have seen this too..  I just deleted one of them. I&amp;#39;ll contact SEGGER about this.&lt;/p&gt;
&lt;p&gt;Sounds like you are close. 1.) Erase the entire chip. 2.) program softdevice. 3.) run and debug from SES.&lt;/p&gt;
&lt;p&gt;Once in debug mode make sure your application atleast gets to the first instruction of main.c. Then single step over functions. After stepping a few times you will get to ble_stack_init(); When you try to step over this function if your debugger doesnt return hit pause and you will most likley be in a hardfault. This means that there is a problem with the softdevice and we can go from there. tell me what you find&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>