<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPCXpresso IDEのトピックassembler in C (LPC1114)</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/assembler-in-C-LPC1114/m-p/586079#M27033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Roman on Mon Jun 13 00:34:01 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have application with bootloader and main application itself (HW is LPC1114). From what I have read from some &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;application notes the interrupt handling should be redirected to the main application handling e.g. :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;void SysTick_Handler(void) { /* Re-direct interrupt, get handler address from application vector table */ 
&amp;nbsp;&amp;nbsp;&amp;nbsp; asm volatile("ldr r0, =0x103C"); 
&amp;nbsp;&amp;nbsp;&amp;nbsp; asm volatile("ldr r0, [r0]"); 
&amp;nbsp;&amp;nbsp;&amp;nbsp; asm volatile("mov pc, r0"); 
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;However when I try something like this (I am using IAR workbench) I get an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error[Og006]: Syntax error in inline assembly: "Error[0]: Invalid syntax" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this is not IAR forum and this probably has something do to with it, but maybe someone had similar problem &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or is there any approach that I may try for the interrupt call redirecting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Roman&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:40:53 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:40:53Z</dc:date>
    <item>
      <title>assembler in C (LPC1114)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/assembler-in-C-LPC1114/m-p/586079#M27033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Roman on Mon Jun 13 00:34:01 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have application with bootloader and main application itself (HW is LPC1114). From what I have read from some &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;application notes the interrupt handling should be redirected to the main application handling e.g. :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;void SysTick_Handler(void) { /* Re-direct interrupt, get handler address from application vector table */ 
&amp;nbsp;&amp;nbsp;&amp;nbsp; asm volatile("ldr r0, =0x103C"); 
&amp;nbsp;&amp;nbsp;&amp;nbsp; asm volatile("ldr r0, [r0]"); 
&amp;nbsp;&amp;nbsp;&amp;nbsp; asm volatile("mov pc, r0"); 
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;However when I try something like this (I am using IAR workbench) I get an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error[Og006]: Syntax error in inline assembly: "Error[0]: Invalid syntax" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this is not IAR forum and this probably has something do to with it, but maybe someone had similar problem &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or is there any approach that I may try for the interrupt call redirecting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Roman&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:40:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/assembler-in-C-LPC1114/m-p/586079#M27033</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: assembler in C (LPC1114)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/assembler-in-C-LPC1114/m-p/586080#M27034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Mon Jun 13 09:04:56 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to convert the syntax of the inline assembly to the way IAR does it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:40:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/assembler-in-C-LPC1114/m-p/586080#M27034</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:40:54Z</dc:date>
    </item>
  </channel>
</rss>

