<?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のトピックEmbedding Assembly Instructions</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Embedding-Assembly-Instructions/m-p/552095#M12158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rjallen on Fri Feb 24 07:54:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to the LPCXpresso and code_red IDE. I have an LPC XPresso 1769 board and the "definitive guide to the arm cortex-m3" book by Joseph Yiu. I've written a few basic programs in C with the board and I wanted to try one in assembly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im trying to write a very basic program to write into the SRAM and read the value back out, i.e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm("mov r4, #0x20000000");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;asm("str r3, [R4]");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;asm("ldr r2, [R4]");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run this program it stores the value correctly but I get a hardfault handler error when I try to read it back out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone has any ideas what I'm doing wrong that would be great.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:01:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:01:40Z</dc:date>
    <item>
      <title>Embedding Assembly Instructions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Embedding-Assembly-Instructions/m-p/552095#M12158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rjallen on Fri Feb 24 07:54:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to the LPCXpresso and code_red IDE. I have an LPC XPresso 1769 board and the "definitive guide to the arm cortex-m3" book by Joseph Yiu. I've written a few basic programs in C with the board and I wanted to try one in assembly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im trying to write a very basic program to write into the SRAM and read the value back out, i.e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm("mov r4, #0x20000000");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;asm("str r3, [R4]");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;asm("ldr r2, [R4]");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run this program it stores the value correctly but I get a hardfault handler error when I try to read it back out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone has any ideas what I'm doing wrong that would be great.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Embedding-Assembly-Instructions/m-p/552095#M12158</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:01:40Z</dc:date>
    </item>
  </channel>
</rss>

