<?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>Migration a project form KEIL to IAR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16764/migration-a-project-form-keil-to-iar</link><description>I migrate a project from keil to IAR, at the moment of bulding im facing this error: 
 arm_startup_nrf51.s
Error in command line: Invalid argument to option &amp;#39;-D&amp;#39;
Error while running Assembler 
 Please help me!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Sep 2016 21:56:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16764/migration-a-project-form-keil-to-iar" /><item><title>RE: Migration a project form KEIL to IAR</title><link>https://devzone.nordicsemi.com/thread/64108?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2016 21:56:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0557ae81-89a2-45ab-9ed1-61c998437ef3</guid><dc:creator>Adrian Eggenberger</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I tried your assembler preprocessor defines in one of my own projects and could build without a problem.&lt;/p&gt;
&lt;p&gt;Regards Adrian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration a project form KEIL to IAR</title><link>https://devzone.nordicsemi.com/thread/64107?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2016 16:19:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02704778-e699-4996-bf6f-940a97976693</guid><dc:creator>Willy Garcia</dc:creator><description>&lt;p&gt;Dear Adrian,&lt;/p&gt;
&lt;p&gt;We find a solution:&lt;/p&gt;
&lt;p&gt;At IAR:  option/Assembler/preprocessor we have the following code:&lt;/p&gt;
&lt;p&gt;__HEAP_SIZE=1024
BLE_STACK_SUPPORT_REQD
S110
BOARD_PCA10028
SOFTDEVICE_PRESENT
NRF51
SWI_DISABLE0
SPI_MASTER_0_ENABLE
REQD
S130
BOARD_PCA10028
SOFTDEVICE_PRESENT
NRF51
SWI_DISABLE0
SPI_MASTER_0_ENABLE
BLE_DFU_APP_SUPPORT&lt;/p&gt;
&lt;p&gt;I delete all the lines and the we can build.
We think it was a configuration migrated from KEIL.&lt;/p&gt;
&lt;p&gt;Please give us feedback.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;WGP&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration a project form KEIL to IAR</title><link>https://devzone.nordicsemi.com/thread/64106?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2016 15:30:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b89e5db-e2f5-4ece-838d-42c7029f84e9</guid><dc:creator>Willy Garcia</dc:creator><description>&lt;p&gt;Dear Adrian,&lt;/p&gt;
&lt;p&gt;I change iar_startup_nrf51.s instead of arm_startup_nrf51.s, reemplazing the file in it directory, but we still have the same error:&lt;/p&gt;
&lt;p&gt;Error in command line: Invalid argument to option &amp;#39;-D&amp;#39;
Error while running Assembler&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;WGP&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration a project form KEIL to IAR</title><link>https://devzone.nordicsemi.com/thread/64105?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2016 06:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8390b752-74d5-492f-85ed-006c2ef1f140</guid><dc:creator>Adrian Eggenberger</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The required startup files depend on the build environment. For IAR you should use iar_startup_nrf51.s instead of arm_startup_nrf51.s. The file comes with the SDK12 for example and can be found under &amp;quot;\components\toolchain\iar&amp;quot;.&lt;/p&gt;
&lt;p&gt;Regards Adrian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>