<?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のトピックLPC54608 Board Flash Access</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-Flash-Access/m-p/779484#M31350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a emwin project, to display some images on the lcd, at the beginning, I put the image data in the internal flash, it works good. As I need to use many pictures in the project, later I move the image data to external &amp;nbsp;board flash, with this statement:&lt;/P&gt;&lt;P&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__RODATA(BOARD_FLASH) const U8 _acImage_0[5862] = {.....};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the screen is all black, I debuged the programm, found the address of &amp;amp;&lt;SPAN&gt;_acImage_0[0] is at 0x10000000, which is the start of the BOARD_FLASH (Flash2), but the content of it is all zero, and another finding is, the two satement get different result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;const U8* pData =&amp;amp;_acImage_0[0];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("%x\n", *pData);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("%x\n", _acImage_0[0]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the first statment gets 0, but the second gets the correct value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what's the difference between these two methods? in my emwin function, I have to pass the _acImage_0 address as a pointer, so this may be the point.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2018 03:29:28 GMT</pubDate>
    <dc:creator>ruiwangm</dc:creator>
    <dc:date>2018-02-02T03:29:28Z</dc:date>
    <item>
      <title>LPC54608 Board Flash Access</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-Flash-Access/m-p/779484#M31350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a emwin project, to display some images on the lcd, at the beginning, I put the image data in the internal flash, it works good. As I need to use many pictures in the project, later I move the image data to external &amp;nbsp;board flash, with this statement:&lt;/P&gt;&lt;P&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__RODATA(BOARD_FLASH) const U8 _acImage_0[5862] = {.....};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the screen is all black, I debuged the programm, found the address of &amp;amp;&lt;SPAN&gt;_acImage_0[0] is at 0x10000000, which is the start of the BOARD_FLASH (Flash2), but the content of it is all zero, and another finding is, the two satement get different result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;const U8* pData =&amp;amp;_acImage_0[0];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("%x\n", *pData);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;printf("%x\n", _acImage_0[0]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the first statment gets 0, but the second gets the correct value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what's the difference between these two methods? in my emwin function, I have to pass the _acImage_0 address as a pointer, so this may be the point.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 03:29:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-Flash-Access/m-p/779484#M31350</guid>
      <dc:creator>ruiwangm</dc:creator>
      <dc:date>2018-02-02T03:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Board Flash Access</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-Flash-Access/m-p/779485#M31351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can guess the reason why the second sentence gets correct data, maybe because of the compiler refines the procedure, just assign _acImage_0[0] to the printf input, because it can be determined at compile time. right? now I tried many methods, all get zero while reading the content of the board flash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 13:32:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-Flash-Access/m-p/779485#M31351</guid>
      <dc:creator>ruiwangm</dc:creator>
      <dc:date>2018-02-02T13:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Board Flash Access</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-Flash-Access/m-p/779486#M31352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now the issue is resolved, it's caused by the un-initialize of the spifi driver, so any data access to the spi flash will return 0.&lt;/P&gt;&lt;P&gt;for the details of initializing the SPIFI driver, please refer to the sample project of&amp;nbsp; spifi_polling_transfer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2018 11:11:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-Flash-Access/m-p/779486#M31352</guid>
      <dc:creator>ruiwangm</dc:creator>
      <dc:date>2018-02-04T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Board Flash Access</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-Flash-Access/m-p/779487#M31353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="312644" data-username="ruiwangm" href="https://community.nxp.com/people/ruiwangm" rel="nofollow noopener noreferrer" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;" target="_blank"&gt;rui wang&lt;/A&gt;，&lt;/P&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;SPAN&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;SPAN&gt;the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;SPAN&gt;Please giving a try the following code:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;U8&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; pData &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;_acImage_0&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;printf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"%x\n"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;pData&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 02:33:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-Flash-Access/m-p/779487#M31353</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-02-05T02:33:43Z</dc:date>
    </item>
  </channel>
</rss>

