About LPC1347 USB configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

About LPC1347 USB configuration

733 次查看
niupi_plus
Contributor I

When we ported the LPC1343 USB project to the LPC1347, we found that as long as the transaction is received with EndPointCmdStsList OUTbuffer in the readEndpoint transaction, we will open the EndPointCmdStsList[ EpNum ][ 0 ]. Active = 1; set, and then the break will again immediately follow the trigger causing an OUT transaction, which does not occur on the LPC1343, please what action should I configure. After this Active is enabled, will the interrupt be triggered again after I receive the data? Instead of responding to interrupted transactions that come to the host. I need to configure what operations can be performed so that the corresponding OUT transaction interrupts and responds to the host's operation correctly, instead of triggering the OUT a second time after receiving the host data.

0 项奖励
回复
3 回复数

718 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @niupi_plus 

Please provide more details about the function of your project,  and the code relates to the issue. Thank you.

 

BR

Alice

0 项奖励
回复

710 次查看
niupi_plus
Contributor I

Hi,@Alice_Yang 

I have a detailed problem, as follows: we have ported the source code of the LPC1343 to the LPC1347, at present, only the underlying USB part has been changed, the interrupt logic of the application layer has not been changed, according to the demo given by the official, we have modified the [USBDevWriteEndpoint], [USBDevReadEndpoint] and other related read and write operation functions in usbDevCl.c, and found that the USB enumeration failed, If the EndList.active register state in both functions is removed, the system cannot complete the enumeration. How to fix this problem, because many CMD registers LPC1343 not found on the LPC1347, and the sending and receiving methods are also quite different, I hope that only need to modify the manual sending and receiving related functions without modifying the application layer to complete the port.Thanks.

0 项奖励
回复

643 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @niupi_plus 

Please refer to the LPC1347 USB demo provided in LPCopen and carefully review the send and receive functions. Additionally, I recommend finding an LPC1347 USB demo that closely matches your application, and then port your application code from the LPC1343 to this LPC1347 demo.  Afterward, check and fix any configuration mismatches.

888.jpg

BR

Alice

0 项奖励
回复