<?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>Crossworks HRM Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5584/crossworks-hrm-example</link><description>Hi, I&amp;#39;m having a bit of trouble getting the broadcast or HRM example to work. I&amp;#39;m using crossworks and after my last question, removed the retarget.c file and the code compiled without errors. However upon trying to download the code to my PCA 10028 board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 28 Feb 2015 23:07:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5584/crossworks-hrm-example" /><item><title>RE: Crossworks HRM Example</title><link>https://devzone.nordicsemi.com/thread/19570?ContentTypeID=1</link><pubDate>Sat, 28 Feb 2015 23:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be4336b0-47d4-4a19-b2ee-a655d948d293</guid><dc:creator>Nkrause</dc:creator><description>&lt;p&gt;Thanks for the answer, I got that corrected when I wrote the Macro definitions on separate lines, seemed to stop the interpolation for some reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crossworks HRM Example</title><link>https://devzone.nordicsemi.com/thread/19569?ContentTypeID=1</link><pubDate>Sun, 22 Feb 2015 01:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b5e5fa5-a134-436c-8a61-9bb6cd1cc1a8</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;It&amp;#39;s interpolated the whole line as one macro definition and not two&lt;/p&gt;
&lt;p&gt;Double-click the &amp;#39;section placement macros&amp;#39; and you should get a dialog box with two lines in it, one for FLASH_START and one for RAM_START, one below the other. Yes they turn up in the file later separated by a semicolon, but I think you&amp;#39;ve managed to get it so the semicolon is part of one of the definitions so effectively FLASH START is defined as &amp;#39;0x0d0000;RAM_START-0x20000900&amp;#39; instead of FLASH_START and RAM_START being defined separately.&lt;/p&gt;
&lt;p&gt;Having tested what I think you&amp;#39;ve probably done, if you look at the hzp file it should look like this&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;linker_section_placement_macros=&amp;quot;FLASH_START=0x0d000;RAM_START=0x20000900&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I suspect yours looks like this (note the escaped semicolon which makes the whole thing a definition of FLASH_START)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;linker_section_placement_macros=&amp;quot;FLASH_START=0x1d000\;RAM_START=0x20002800&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crossworks HRM Example</title><link>https://devzone.nordicsemi.com/thread/19568?ContentTypeID=1</link><pubDate>Sat, 21 Feb 2015 22:10:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70ee2c77-9999-4957-9bfc-1991ea976be5</guid><dc:creator>Nkrause</dc:creator><description>&lt;p&gt;When I define the Section Placement Macros and attempt to build the project I receive a syntax error at the point that Crossworks generates the linker files and attempts to link to the .elf file. It specifies,  nrf51422_xxac.ld:55: syntax error. When I open the specified file at line 55 I find the following code,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;vectors_load_start&lt;/strong&gt; = 0x0D000;RAM_START=0x20000900;
.vectors 0x0D000;RAM_START=0x20000900 : AT(0x0D000;RAM_START=0x20000900)&lt;/p&gt;
&lt;p&gt;My macro definitions have the following syntax&lt;/p&gt;
&lt;p&gt;FLASH_START=0x0D000;RAM_START=0x20000900.&lt;/p&gt;
&lt;p&gt;Which follows the example provided and seems to conform to other examples I can find online. I&amp;#39;m not super sure what to do next.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crossworks HRM Example</title><link>https://devzone.nordicsemi.com/thread/19567?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2015 00:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09014c97-46c8-4d05-abbe-e64de43a86e0</guid><dc:creator>Nkrause</dc:creator><description>&lt;p&gt;Many thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crossworks HRM Example</title><link>https://devzone.nordicsemi.com/thread/19566?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2015 00:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a8b7306-7da9-4f7f-8dc4-751ad5160055</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;No don&amp;#39;t touch those, those are chip definition macros. You need to tell Crossworks a number of things, where to build &lt;em&gt;this&lt;/em&gt; piece of code, to download it without wiping the chip and where to start debugging. There was a post about this a few years ago which I cribbed from. However the forum search appears not to go back very far any more and I can&amp;#39;t find the post now.&lt;/p&gt;
&lt;p&gt;So put the project back the way it was and then you need the following things defined (use the properties window at the &amp;#39;project&amp;#39; level and the search box to find the properties you need), each of these lines is the name in the crossworks file, see below for the friendly GUI names&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;linker_section_placement_macros: FLASH_START=0x0d000;RAM_START=0x20000900&lt;/li&gt;
&lt;li&gt;target_loader_erase_all: NO&lt;/li&gt;
&lt;li&gt;debug_entry_point_symbol: nonexistant&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I have a few more but those are the important ones. The first (friendly name is &amp;#39;Section Placement Macros&amp;#39;) tells Crossworks where to build your code. The second one (friendly name is &amp;#39;Erase All&amp;#39; and it&amp;#39;s under the Flash properties) tells Crossworks not to just do a full chip erase on install. The last one is for debugging and I don&amp;#39;t quite remember what happens if you don&amp;#39;t define it, i think it tries to debug in the softdevice or something.&lt;/p&gt;
&lt;p&gt;I actually have a home-built hzq package which I recently updated for SDK 7.x (which was a royal PITA) which generates templates for Crossworks for Nordic with softdevice and different targets etc. It exposes those as properties you can change (eg change s110 to s120) and that sets up all the correct variables to build the code and have it install in the right place. If you want to try that out please contact me off-list and I&amp;#39;ll send it to you and see if I can help you get started, I wrote it for me so there&amp;#39;s a bit of set up required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>