<?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中的主题 Re: Array initialisation failed in lpc4370m0app</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Array-initialisation-failed-in-lpc4370m0app/m-p/572311#M18557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Tue Sep 09 20:41:12 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds like your M0 does not have any 'startup code'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg. make sure that it copies the .data section (and similar sections) to SRAM somewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also make sure that it clears the .bss section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you can look at startup.c, crt.c or the like.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:57:36 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:57:36Z</dc:date>
    <item>
      <title>Array initialisation failed in lpc4370m0app</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Array-initialisation-failed-in-lpc4370m0app/m-p/572310#M18556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JoeE on Tue Sep 09 11:49:45 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to implement a simple initialized array in an 4370m0app Prozessor application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code was someting like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;volatile int32_t myarray[64]={64312, 64221, ... and so on};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I placed a declaration in the repective .h file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;volatile int32_t myarray[64];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To my surprice the array worked, I could read and write values to it, but it was not initialized. It was filled with zeroes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When placed in the 4370 m4 application the array was initialized normally. So what is wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My workaround was to put the array back to the m4 application and to hand over an pointer to the m0 application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JoeE&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:57:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Array-initialisation-failed-in-lpc4370m0app/m-p/572310#M18556</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Array initialisation failed in lpc4370m0app</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Array-initialisation-failed-in-lpc4370m0app/m-p/572311#M18557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Tue Sep 09 20:41:12 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds like your M0 does not have any 'startup code'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg. make sure that it copies the .data section (and similar sections) to SRAM somewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also make sure that it clears the .bss section.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you can look at startup.c, crt.c or the like.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:57:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Array-initialisation-failed-in-lpc4370m0app/m-p/572311#M18557</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:57:36Z</dc:date>
    </item>
  </channel>
</rss>

