<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>How handle Cortex-M0 Interrupts on IAR using C++?</title><link>https://community.arm.com/developer/tools-software/tools/f/armds-forum/916/how-handle-cortex-m0-interrupts-on-iar-using-c</link><description> Note: This was originally posted on 30th August 2011 at http://forums.arm.com [font=Times][size=2][font=arial, verdana, tahoma, sans-serif][size=2]Hello everybody, I&amp;#39;m using IAR 6.21 compiler and a LPC11C14 IAR&amp;#39;s dev board, doing my firsts test with</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: How handle Cortex-M0 Interrupts on IAR using C++?</title><link>https://community.arm.com/thread/2690?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:04:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0b5b1fdd-753a-4043-bb8f-c0b86e422bc9</guid><dc:creator>MUSA IŞIK</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 8th June 2013 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;hi dear;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span&gt;I need interruptdrv.h file.Please , can you send e-mail. (&lt;/span&gt;&lt;a href="mailto:endelkon@hotmail.com"&gt;endelkon@hotmail.com&lt;/a&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How handle Cortex-M0 Interrupts on IAR using C++?</title><link>https://community.arm.com/thread/2689?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:04:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:555ae32f-af5c-4940-bed0-4290a2729401</guid><dc:creator>Peter Harris</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 31st August 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The linker is trying to match a C-style function name in the symbol table against a mangled name from the C++ function. There are not identical, so link fails.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;So either modify the symbol in the assembler to use the mangled name (non-portable, prone to breakage), or use &amp;quot;extern C&amp;quot; to disable name mangling, which is probably the cleanest fix.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Name_mangling" rel="nofollow"&gt;http://en.wikipedia.org/wiki/Name_mangling&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How handle Cortex-M0 Interrupts on IAR using C++?</title><link>https://community.arm.com/thread/2688?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:04:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f07ddc34-ab07-47cd-81f0-0e57947c9a1b</guid><dc:creator>Andre Pereira</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 5th September 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thanks for answer isogen74.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I see that a clean way is using &amp;quot;extern C&amp;quot;, no magic to link the vectors with C++ functions...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;But on Cortex-M we can define the vectors in C, contacting the IAR support, they said that we can also set the vectors in C++ and they sent a example.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;I modified that and it&amp;#39;s attached.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I&amp;#39;ve defined all interrupt vectors on interruptDRV.h class, and link this with the startup code.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Works fine and looks like more with C++.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Best Regards&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>