<?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 Re: Accessing external SPIFI flash data working when starting debug through JTAG, but not when booting directly in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-external-SPIFI-flash-data-working-when-starting-debug/m-p/634344#M25015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you set up the EMC correctly (or at all?) for your external flash device? I imagine it is working during debug because the debugger has done this for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Apr 2017 15:29:43 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2017-04-23T15:29:43Z</dc:date>
    <item>
      <title>Accessing external SPIFI flash data working when starting debug through JTAG, but not when booting directly</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-external-SPIFI-flash-data-working-when-starting-debug/m-p/634343#M25014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a problem with accessing the external SPIFI flash on a custom board when booting directly, but everything works nicely when starting by running a JTAG debug session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system has its code in the internal flash (LPC4367s not yet encrypted) and uses an external SPIFI flash for reading a lot of configuration data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setup is pretty standard LPCOpen, with external flash setup in the memory editor, with the generic driver selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The place I experience the error is when trying to read data in the&amp;nbsp;external flash through the memery mappong, doing something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define NEURAL_FLASH 0x14000000&lt;BR /&gt;int *numbers = (int *)NEURAL_FLASH;&lt;BR /&gt;int ap = numbers[0];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code will when running from a direct boot (no JTAG attached, restarting board) fail at the last line, while when JTAG debugging, it will read the data correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is almost like the memory mapping of the external flash to 0x14000000 does not happen when booting directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help with this one will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2017 09:29:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-external-SPIFI-flash-data-working-when-starting-debug/m-p/634343#M25014</guid>
      <dc:creator>thomasnielsen</dc:creator>
      <dc:date>2017-04-23T09:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing external SPIFI flash data working when starting debug through JTAG, but not when booting directly</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-external-SPIFI-flash-data-working-when-starting-debug/m-p/634344#M25015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you set up the EMC correctly (or at all?) for your external flash device? I imagine it is working during debug because the debugger has done this for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2017 15:29:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-external-SPIFI-flash-data-working-when-starting-debug/m-p/634344#M25015</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-04-23T15:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing external SPIFI flash data working when starting debug through JTAG, but not when booting directly</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-external-SPIFI-flash-data-working-when-starting-debug/m-p/634345#M25016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Con Verse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were totally right. Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was under the asumption that setting up the driver in the memory editor would work outside dubugging too, which is not the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 11:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Accessing-external-SPIFI-flash-data-working-when-starting-debug/m-p/634345#M25016</guid>
      <dc:creator>thomasnielsen</dc:creator>
      <dc:date>2017-04-24T11:21:01Z</dc:date>
    </item>
  </channel>
</rss>

