usb host with CODEC(i2S)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

usb host with CODEC(i2S)

Jump to solution
2,465 Views
harry3
Contributor III

hi NXP team,

我使用LPC5528开发一个项目, lpc5528 I2S RX 接收来自外接的I2S tx信号,通过USB输出数字信号给usb扬声器。这需要用到USB HOST+i2s 的组件方案。但是我在例程中没有找到这样的方案。请问可以提供一个这样的方案吗?

I'm developing a project using LPC5528. The LPC5528 I2S RX receives I2S TX signals from an external device, and outputs digital signals to a USB speaker via USB. This requires a solution using USB HOST + I2S components. However, I couldn't find such a solution in the example code. Could you provide a solution like this?

 

thanks

Labels (1)
0 Kudos
Reply
1 Solution
2,215 Views
harry3
Contributor III

hi Carlos,

I'm very sorry that I made a mistake with the attachment just now. Please refer to this initial attachment.

 

thanks

harry

View solution in original post

0 Kudos
Reply
7 Replies
2,356 Views
harry3
Contributor III

hi carlos,

     出这个问题的时候我已经是这样做的了。

I had already done it this way when this problem arose.

thanks

harry

 

 

0 Kudos
Reply
2,298 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @harry3 

Thanks for clarifying.

Please also add the folder to Path and Symbols -> Source location to be recognized as a folder with source files:

carlos_o_0-1770659481917.png

 

You could confirm that the change make effect when the folder symbol has a blue C. 

 

0 Kudos
Reply
2,216 Views
harry3
Contributor III

hi Carlos,

I'm very sorry that I made a mistake with the attachment just now. Please refer to this initial attachment.

 

thanks

harry

0 Kudos
Reply
2,442 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @harry3 

Thanks for your post,

There is not a solution that accomplishes with the requirements you mentioned, but you could use as reference the examples of host_audio_speaker it has the options of bm or freertos (Included in SDK_25.12.00_LPCXpresso55S28).

carlos_o_0-1770140902886.png

Also, there are two examples of I2S one using DMA and the other using interrupts, please refer to these examples. 

carlos_o_1-1770141287616.png



The final implementation is up to you, feel free to reach out with any questions in the developing process of the solution.  

0 Kudos
Reply
2,394 Views
harry3
Contributor III

hi carlos
我现在开发这个项目遇到问题,我把CODEC的文件夹以及包含的文件拷贝到项目的目录下。在编译的时候总是提示在DEBUG文件夹没有找到我添加的文件夹。请问要添加文件夹需要怎么配置IDE呢?
I'm currently encountering a problem while developing this project. I copied the CODEC folder and its contained files into the project directory. During compilation, it always prompts that the folder I added cannot be found in the DEBUG folder. How do I need to configure the IDE to add the folder?

thanks
Harry

0 Kudos
Reply
2,375 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @harry3 

Please also at the codec path to the MCU Assembler settings 

carlos_o_0-1770396866380.png

let me know if this solves the issue. 

0 Kudos
Reply
2,201 Views
harry3
Contributor III

hi carlos,

Thank you very much for your support.
 
I just found the problem of MCLk having no output. I will further develop this project and will continue to consult you if I encounter any problems in the future.
 
thanks
harry 
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2305179%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3Eusb%20host%20with%20CODEC(i2S)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305179%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%20NXP%20team.%3C%2FP%3E%3CP%3EI%20am%20developing%20a%20project%20using%20LPC5528.%20lpc5528%20I2S%20RX%20receives%20I2S%20tx%20signals%20from%20an%20external%20source%20and%20outputs%20digital%20signals%20to%20usb%20speakers%20via%20USB.%20This%20requires%20a%20USB%20HOST%2Bi2s%20component%20solution.%20But%20I%20didn't%20find%20such%20a%20program%20in%20the%20routines.%20Can%20you%20provide%20me%20with%20such%20a%20program%3F%3C%2FP%3E%3CP%3E%3CSPAN%3EI'm%20developing%20a%20project%20using%20LPC5528.%20The%20LPC5528%20I2S%20RX%20receives%20I2S%20TX%20signals%20from%20an%20external%20device%2C%20and%20outputs%20digital%20signals%20to%20a%20USB%20speaker%20via%20USB.%20This%20requires%20a%20solution%20using%20USB%20HOST%20%2B%20I2S%20components.%20However%2C%20I%20couldn't%20find%20such%20a%20solution%20in%20the%20example%20code.%20Could%20you%20provide%20a%20solution%20like%20this%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Ethanks%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2305179%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC55xx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2305473%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20usb%20host%20with%20CODEC(i2S)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305473%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259484%22%20target%3D%22_blank%22%3E%40harry3%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post%2C%3C%2FP%3E%0A%3CP%3EThere%20is%20not%20a%20solution%20that%20accomplishes%20with%20the%20requirements%20you%20mentioned%2C%20but%20you%20could%20use%20as%20reference%20the%20examples%20of%20host_audio_speaker%20it%20has%20the%20options%20of%20bm%20or%20freertos%20(Included%20in%20SDK_25.12.00_LPCXpresso55S28).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22carlos_o_0-1770140902886.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770140902886.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770140902886.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770140902886.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770140902886.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770140902886.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770140902886.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F375343i3683F07DD25D27F2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22carlos_o_0-1770140902886.png%22%20alt%3D%22carlos_o_0-1770140902886.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAlso%2C%20there%20are%20two%20examples%20of%20I2S%20one%20using%20DMA%20and%20the%20other%20using%20interrupts%2C%20please%20refer%20to%20these%20examples.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22carlos_o_1-1770141287616.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_1-1770141287616.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_1-1770141287616.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_1-1770141287616.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_1-1770141287616.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_1-1770141287616.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_1-1770141287616.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F375344iAD9A0604E1FA7C7F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22carlos_o_1-1770141287616.png%22%20alt%3D%22carlos_o_1-1770141287616.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20final%20implementation%20is%20up%20to%20you%2C%20feel%20free%20to%20reach%20out%20with%20any%20questions%20in%20the%26nbsp%3Bdeveloping%20process%20of%20the%20solution.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2313908%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20usb%20host%20with%20CODEC(i2S)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2313908%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259484%22%20target%3D%22_blank%22%3E%40harry3%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20also%20at%20the%20codec%20path%20to%20the%20MCU%20Assembler%20settings%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22carlos_o_0-1770396866380.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770396866380.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770396866380.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770396866380.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770396866380.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770396866380.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F375924i4EC19ECAA36D92C5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22carlos_o_0-1770396866380.png%22%20alt%3D%22carlos_o_0-1770396866380.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Elet%20me%20know%20if%20this%20solves%20the%20issue.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314056%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20usb%20host%20with%20CODEC(i2S)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314056%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Carlos.%3C%2FP%3E%3CP%3E%20%20%20%20%20I%20was%20already%20doing%20that%20when%20I%20came%20out%20with%20this%20question.%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20had%20already%20done%20it%20this%20way%20when%20this%20problem%20arose.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Ethanks%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Eharry%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20usb%20host%20with%20CODEC(i2S)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259484%22%20target%3D%22_blank%22%3E%40harry3%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20clarifying.%3C%2FP%3E%0A%3CP%3EPlease%20also%20add%20the%20folder%20to%20Path%20and%20Symbols%20-%26gt%3B%20Source%20location%20to%20be%20recognized%20as%20a%20folder%20with%20source%20files%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22carlos_o_0-1770659481917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770659481917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770659481917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carlos_o_0-1770659481917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376190i8D377DF089AA26AA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22carlos_o_0-1770659481917.png%22%20alt%3D%22carlos_o_0-1770659481917.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EYou%20could%20confirm%20that%20the%20change%20make%20effect%20when%20the%20folder%20symbol%20has%20a%20blue%20C.%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2316006%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20usb%20host%20with%20CODEC(i2S)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2316006%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%20Carlos%EF%BC%8C%3C%2FP%3E%3CP%3E%3CSPAN%3EI'm%20very%20sorry%20that%20I%20made%20a%20mistake%20with%20the%20attachment%20just%20now.%20Please%20refer%20to%20this%20initial%20attachment.%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Ethanks%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eharry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2316064%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20usb%20host%20with%20CODEC(i2S)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2316064%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%20carlos%2C%3C%2FP%3E%3CDIV%20class%3D%22%22%3EThank%20you%20very%20much%20for%20your%20support.%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3EI%20just%20found%20the%20problem%20of%20MCLk%20having%20no%20output.%20I%20will%20further%20develop%20this%20project%20and%20will%20continue%20to%20consult%20you%20if%20I%20encounter%20any%20problems%20in%20the%20future.%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3Ethanks%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3Eharry%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E