<?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>LPC MicrocontrollersのトピックLPC1769 Second element of array, in Struct, overwritten</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Second-element-of-array-in-Struct-overwritten/m-p/520169#M3520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by joeltong on Sun Mar 16 08:15:59 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to create a state manager, which contains an array of states.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried running my code in standard Linux GCC, and it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the LPC1769, when I have added a new state (at the second element of the array) using a helper function, it works fine.&amp;nbsp; Upon exit of helper function however, the first element is valid, while the second element gives some other unknown memory location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the array within the struct: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;volatile State_t * states[MAX_STATES];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:41:20 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:41:20Z</dc:date>
    <item>
      <title>LPC1769 Second element of array, in Struct, overwritten</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Second-element-of-array-in-Struct-overwritten/m-p/520169#M3520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by joeltong on Sun Mar 16 08:15:59 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to create a state manager, which contains an array of states.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried running my code in standard Linux GCC, and it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the LPC1769, when I have added a new state (at the second element of the array) using a helper function, it works fine.&amp;nbsp; Upon exit of helper function however, the first element is valid, while the second element gives some other unknown memory location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the array within the struct: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;volatile State_t * states[MAX_STATES];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:41:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Second-element-of-array-in-Struct-overwritten/m-p/520169#M3520</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 Second element of array, in Struct, overwritten</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Second-element-of-array-in-Struct-overwritten/m-p/520170#M3521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Sun Mar 16 12:00:54 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Show use some of your code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:41:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Second-element-of-array-in-Struct-overwritten/m-p/520170#M3521</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:41:21Z</dc:date>
    </item>
  </channel>
</rss>

