<?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>topic Typo in LPC15xx Sample: periph_dma_rom_uart in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Typo-in-LPC15xx-Sample-periph-dma-rom-uart/m-p/577006#M19534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon Dec 15 01:55:37 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC15xx LPCOPEN Sample periph_dma_rom_uart isn't working because a typo is preventing a necessary alignment&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dma_rom_uart.c:82 is causing a hard fault:&lt;/SPAN&gt;&lt;BR /&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;#if defined( __GNUC__ )
/* GNU alignment to 512 bytes */
static uint8_t dma_ram_block[RAMBLOCK][color=#f00];[/color] __attribute__ ((aligned(512)));
#endif /* defined (__GNUC__) */
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct alignment solves this problem:&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;#if defined( __GNUC__ )
/* GNU alignment to 512 bytes */
static uint8_t dma_ram_block[RAMBLOCK] __attribute__ ((aligned(512)));
#endif /* defined (__GNUC__) */&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fperiphdmaromuart-example-fail" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/forum/periphdmaromuart-example-fail&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:17:42 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:17:42Z</dc:date>
    <item>
      <title>Typo in LPC15xx Sample: periph_dma_rom_uart</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Typo-in-LPC15xx-Sample-periph-dma-rom-uart/m-p/577006#M19534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon Dec 15 01:55:37 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC15xx LPCOPEN Sample periph_dma_rom_uart isn't working because a typo is preventing a necessary alignment&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dma_rom_uart.c:82 is causing a hard fault:&lt;/SPAN&gt;&lt;BR /&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;#if defined( __GNUC__ )
/* GNU alignment to 512 bytes */
static uint8_t dma_ram_block[RAMBLOCK][color=#f00];[/color] __attribute__ ((aligned(512)));
#endif /* defined (__GNUC__) */
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct alignment solves this problem:&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;#if defined( __GNUC__ )
/* GNU alignment to 512 bytes */
static uint8_t dma_ram_block[RAMBLOCK] __attribute__ ((aligned(512)));
#endif /* defined (__GNUC__) */&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fperiphdmaromuart-example-fail" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/forum/periphdmaromuart-example-fail&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Typo-in-LPC15xx-Sample-periph-dma-rom-uart/m-p/577006#M19534</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:42Z</dc:date>
    </item>
  </channel>
</rss>

