<?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: Can I use SRAMX on the LPC55S69 for general data/array storage?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-I-use-SRAMX-on-the-LPC55S69-for-general-data-array-storage/m-p/1348851#M46612</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I copy the memory allocation of LPC55S69, pls use Non-secure address instead of secure address.&lt;/P&gt;
&lt;P&gt;In detail, pls modify the first line to uint8_t* array = (uint8_t*) (0x04000000);&lt;/P&gt;
&lt;P&gt;I am sure that the SRAMX can be used to save data and save/run code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;uint8_t* array = (uint8_t*) (0x04000000);
array[0] = 128;
array[1] = 129;
array[2] = array[0]+array[1];
printf("value: %u", array[2]);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1632969983735.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/157954iD8CFB57F7AD67E09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1632969983735.png" alt="xiangjun_rong_0-1632969983735.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 02:50:35 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2021-09-30T02:50:35Z</dc:date>
    <item>
      <title>Can I use SRAMX on the LPC55S69 for general data/array storage?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-I-use-SRAMX-on-the-LPC55S69-for-general-data-array-storage/m-p/1348701#M46607</link>
      <description>&lt;P&gt;I've been using the LPC55S69 processor and despite a serious effort to bit-pack my memory usage, am running out of the 256KB of general purpose RAM. I have tried to use SRAMX for array storage, but am getting some intermittent faults.&lt;/P&gt;&lt;P&gt;I have read on other posts that I should be able to use SRAMX, and the user manuals for other LPC variants depict/describe the SRAMX on both the data/system-bus and code-bus, but that's not the way it's depicted in the block diagram on page 8 of the &lt;A href="https://www.mouser.com/pdfDocs/NXP_LPC55S6x_UM.pdf" target="_self"&gt;LPC55S6x user manual&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Question: Is there a special register/command I need to write to use SRAMX for data?&amp;nbsp;Or, areas of SRAMX I should avoid using (even if I don't use the peripherals that would access those areas of SRAMX)?&lt;/P&gt;&lt;P&gt;As a contrived example, I would like to be able to execute code like the following:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uint8_t* array = (uint8_t*) (0x14000000);
array[0] = 128;
array[1] = 129;
array[2] = array[0]+array[1];
printf("value: %u", array[2]);&lt;/LI-CODE&gt;&lt;P&gt;However, I have found that when I use SRAMX (in a similar way to how it is used in the example), I CAN read/write the array values, but I seem to be getting other intermittent bus and invalid state faults.&amp;nbsp;I am NOT using SRAMX for any other peripheral (neither CASPER nor saving power down RAM state). I am running FreeRTOS with several interrupts and DMA.&lt;/P&gt;&lt;P&gt;Any insights would be helpful, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 19:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-I-use-SRAMX-on-the-LPC55S69-for-general-data-array-storage/m-p/1348701#M46607</guid>
      <dc:creator>davidcw</dc:creator>
      <dc:date>2021-09-29T19:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use SRAMX on the LPC55S69 for general data/array storage?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Can-I-use-SRAMX-on-the-LPC55S69-for-general-data-array-storage/m-p/1348851#M46612</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I copy the memory allocation of LPC55S69, pls use Non-secure address instead of secure address.&lt;/P&gt;
&lt;P&gt;In detail, pls modify the first line to uint8_t* array = (uint8_t*) (0x04000000);&lt;/P&gt;
&lt;P&gt;I am sure that the SRAMX can be used to save data and save/run code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;uint8_t* array = (uint8_t*) (0x04000000);
array[0] = 128;
array[1] = 129;
array[2] = array[0]+array[1];
printf("value: %u", array[2]);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1632969983735.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/157954iD8CFB57F7AD67E09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1632969983735.png" alt="xiangjun_rong_0-1632969983735.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 02:50:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Can-I-use-SRAMX-on-the-LPC55S69-for-general-data-array-storage/m-p/1348851#M46612</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2021-09-30T02:50:35Z</dc:date>
    </item>
  </channel>
</rss>

