<?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 AHB SRAM and USB cannot be used same time in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/AHB-SRAM-and-USB-cannot-be-used-same-time/m-p/593497#M22518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jpplus on Wed Dec 10 17:24:59 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I observed an issue that in LPC4337, the AHB SRAM(0x20000000) and USB cannot access same time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have small piece of code to verify that. When comment out memcpy to wrting to AHB SRAM, then USB can run. After adding back that line, USB stop.&amp;nbsp; This line does nothing bad, just write to 0x20000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;&amp;nbsp;&amp;nbsp; while(1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void * dest=(void *)0x20000000; //an example of accessing AHB SRAM
memcpy(dest, (void *)buffer, sizeof(buffer)); //comment out this line, then USB works, if adding this line, USB does not print anything. This line will&amp;nbsp; not do anything harm to system.

 vcom_write("Hello world!!\n\r");


}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess it should conflict of the AHB, but in data sheet, there are few words about that. how to solve this kind of issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:22:24 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:22:24Z</dc:date>
    <item>
      <title>AHB SRAM and USB cannot be used same time</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AHB-SRAM-and-USB-cannot-be-used-same-time/m-p/593497#M22518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jpplus on Wed Dec 10 17:24:59 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I observed an issue that in LPC4337, the AHB SRAM(0x20000000) and USB cannot access same time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have small piece of code to verify that. When comment out memcpy to wrting to AHB SRAM, then USB can run. After adding back that line, USB stop.&amp;nbsp; This line does nothing bad, just write to 0x20000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;&amp;nbsp;&amp;nbsp; while(1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void * dest=(void *)0x20000000; //an example of accessing AHB SRAM
memcpy(dest, (void *)buffer, sizeof(buffer)); //comment out this line, then USB works, if adding this line, USB does not print anything. This line will&amp;nbsp; not do anything harm to system.

 vcom_write("Hello world!!\n\r");


}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess it should conflict of the AHB, but in data sheet, there are few words about that. how to solve this kind of issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:22:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AHB-SRAM-and-USB-cannot-be-used-same-time/m-p/593497#M22518</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: AHB SRAM and USB cannot be used same time</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/AHB-SRAM-and-USB-cannot-be-used-same-time/m-p/593498#M22519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Mon Jan 26 13:07:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi jpplus,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which USB stack are you using? Could you please post your full example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like it is a S/W issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:22:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/AHB-SRAM-and-USB-cannot-be-used-same-time/m-p/593498#M22519</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:22:25Z</dc:date>
    </item>
  </channel>
</rss>

