AHB SRAM and USB cannot be used same time

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

AHB SRAM and USB cannot be used same time

667件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jpplus on Wed Dec 10 17:24:59 MST 2014
Dear all,
I observed an issue that in LPC4337, the AHB SRAM(0x20000000) and USB cannot access same time.
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.  This line does nothing bad, just write to 0x20000000.

   while(1) {
                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  not do anything harm to system.

 vcom_write("Hello world!!\n\r");


}


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?
thanks a lot
ラベル(1)
0 件の賞賛
返信
1 返信

640件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Mon Jan 26 13:07:01 MST 2015
Hi jpplus,
Which USB stack are you using? Could you please post your full example?
Looks like it is a S/W issue.
0 件の賞賛
返信