Multi Source Translation Content

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

Multi Source Translation Content

讨论

排序依据:
IW61x:WCI2 と PTA の外部共存インターフェイス 親愛なるNXPチーム、 IW611 / IW612のデータシートによると、これらのデバイスはWCI-2とPTAの両方の外部共存インターフェイスをサポートしています。 最新のファームウェアは、これらの機能の両方をサポートしていますか? IW612 の場合、PTA ピンは OpenThread を使用した 802.15.4 の SPI インターフェイスと同じ使用されます。PTA インターフェイスと SPI インターフェイスを同時に使用できるのはなぜですか? ありがとうございます よろしくお願いいたします。 埠頭 製品: WiFi IW6XX
查看全文
MPC5748G SWT Hi: Question: Is there a limit to the number of SWT overflows? I would like to ask some questions about SWT. The situation I have encountered now is that I do not feed the dog to SWT, but after the program is reset by SWT for 15 times each time, the development board will be in a state of constant reset, and only after the development board is restarted can it be run again. For this limit of times, is there a corresponding register that can be checked? I am a novice, read for a long time without the relevant description, finally my English is very poor, hope someone can help me. thank you Re: MPC5748G SWT Hi, Thank you so much, Peter, for solving my problem. Best regards, Mir Xu-2024 Re: MPC5748G SWT Hello, Question: Is there a limit to the number of SWT overflows? There is no such limit, if you do not set it in SWT Control Register (SWTx_CR): program is reset by SWT for 15 times each time, the development board will be in a state of constant reset, Ok, that is clearly enabled destructive reset escalation on default 0xF.  Best regards, Peter 回复: MPC5748G SWT This is my configuration
查看全文
MPC5748G SWT 你好: 问题:SWT 溢出次数有限制吗? 我想问一些关于SWT的问题。我现在遇到的情况是,我没有给SWT喂狗,但是程序每次通过SWT复位15次之后,开发板就会处于不断复位的状态,只有重启开发板之后才能再次运行。对于这个次数限制,有没有相应的寄存器可以检查?我是新手,看了好久都没有相关的描述,最后我的英文很差,希望有人能帮助我。 谢谢 回复:MPC5748G SWT 你好, 非常感谢你,彼得,解决了我的问题。 此致, 和平号X-2024
查看全文
MCUXpresso for VS Code I am trying to install MCUX for VS code onto my i-mac/Monterey. I connected my FRDM-RW612 board and tried to download "Getting Started" from "nxp.com/FRDM-RW612/start" but got a message "Page not found" I have installed VS Code, selected "Extensions" and from the drop down menu, "MCUXpresso for VS Code". The only options are "Disable" or "uninstall". I then ran the MCUX installer but got the message: - Successfully checked for updates. The application is up to date. [error] No Homebrew installation found! The installer cannot install it automatically, so please manually install Homebrew from https://brew.sh and restart the installer. Should I re-install my 1 year old installation of MCUX  and just use it without VS, but unfortunately a VS example is just what I need.  Please help before I go mad. Re: MCUXpresso for VS Code Hello, Hope you are doing well. Could you please clarify where did you get that link? You can find the Get Started on the following link: https://www.nxp.com/document/guide/getting-started-with-frdm-rw612:GS-FRDM-RW612 Could you clarify what application are you using? I would recommend checking this community post: FRDM-RW612 Getting Started. Wi-Fi CLI on VS Code - NXP Community Also, if you don’t want to use VSCode, you can use MCUXpresso IDE: MCUXpresso IDE for NXP MCUs Best Regards, Ricardo
查看全文
MPC5748G SWTの こんにちは: 質問:SWTオーバーフローの数に制限はありますか? SWTについていくつか質問したいと思います。私が今遭遇している状況は、SWTに犬を餌にせず、SWTによってプログラムが15回リセットされるたびに、開発ボードは常時リセットされた状態になり、開発ボードが再起動されて初めて再度実行できるようになるという状況です。この時間制限に対して、チェックできる対応するレジスタはありますか?私は初心者で、関連する説明なしで長い間読んでいましたが、ついに私の英語は非常に貧弱です、誰かが私を助けてくれることを願っています。 ありがとうございます 日時:MPC5748G SWT こんにちは ピーター、私の問題を解決してくれて本当にありがとう。 よろしくお願いいたします ミール・シュー-2024
查看全文
LPC55S36-EVK 和 SDK flexspi 示例 我无法使 FlexSPI Octal NOR 闪存示例工作。当这些示例尝试擦除闪存时,它们会报告错误。此外,他们无法获得正确的供应商ID。 我已经检查了跳线几次;也根据 EVK 的原理图。 有什么需要注意的吗? 我正在使用 IAR EWARM 和 SDK 2.16 示例。 回复:LPC55S36-EVK 和 SDK flexspi 示例 谢谢!您尝试了一下并把照片发给我,真是太好了。我的错误是 JP44 和 JP62 的方向与其他跳线相反,所以我将它们连接在 2 和 3 之间。
查看全文
Where does MCUXpresso Keep the GCC Compiler? I'm using MCUXpresso v11.7.1 to develop for the MIMXRT685SFAWB on Windows 11.  Where does it keep the GCC compiler?  I think I'm looking for something like "arm-none-eabi-gcc" but have been unable to find it.  Thanks. Re: Where does MCUXpresso Keep the GCC Compiler? Hi @pcpro1789, You should be able to find the "arm-none-eabi-gcc" under the following path: C:\nxp\MCUXpressoIDE_11.10.0_3148\ide\plugins\com.nxp.mcuxpresso.tools.win32_11.10.0.202311280810\tools\bin BR, Edwin.
查看全文
[Android Automotive 12] 版本 12.1.0_1.1.0i.MX 8QuadMax 音频出现故障 大家好, 适用于 i.MX 8 的 Android Automotive 12 的三个版本均无法播放任何声音。 运行 Android Automotive 13 映像时,确认同一块主板可以正常工作。 音频插孔连接到一对扬声器,并使用厨房水槽应用程序播放声音。我也尝试了 YouTube 视频。 以下是来自 logcat 的相关错误 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service I start_output_stream: primary: 1, out: 0xe6042d70, device: 16777216, address: bus0_media_out, mode: 0, flags 0x2 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service I select_output_device(), headphone 0 ,headset 0 ,speaker 2 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service E Failed to find card from bus 'bus0_media_out' 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service D start_output_stream: pcm_open: card: -1, pcm_device_id: 0, rate: 48000, channel: 2, format: 0, period_size: 0xc0, flag: 9 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service E start_output_stream: Invalid PCM card id: -1 附上了从 Android Studio 的 logcat 导出的完整日志。.logcat文件可以导入到Android Studio中以便更好的查看。 回复:[Android Automotive 12] 版本 12.1.0_1.1.0i.MX 8QuadMax 音频出现故障 我可以通过厨房水槽应用程序->音量测试确认来自音频插孔的音频。在应用程序中,我只在测试 1 号公交车时听到音频。 如果我想将所有音频路由到音频插孔,看起来我应该修改设备代码中的标签。 回复:[Android Automotive 12] 版本 12.1.0_1.1.0i.MX 8QuadMax 音频出现故障 我已在此主题上阅读了有关音频的更多信息。 如果我想将所有音频路由到音频插孔,这看起来是可行的方法。 这很奇怪,幸运的是这种行为在较新的 Android 版本中不存在。
查看全文
Difference between Fast and Standard Plus PADs Hello everyone, Could anyone clarify what is meant by "fast-pads" and "standard-plus pads" in the System Clock Configurations in the S32K3XX RM? Best Regards, JRodrigues Re: Difference between Fast and Standard Plus PADs Hello @VaneB, Thank you for your help! Best Regards, JRodrigues Re: Difference between Fast and Standard Plus PADs Hi @JRodrigues  This refers to the Pad type, which indicates the theoretical maximum output frequency and drive strength (not set, it is given for MCU pad). See the "S32K3xx_IO Signal Table" tab of the "S32K3xx_IOMUX.xlsx" file attached to the Reference Manual. BR, VaneB
查看全文
MCUXpresso 将 GCC 编译器保存在哪里? 我正在使用 MCUXpresso v11.7.1 为 Windows 11 上的 MIMXRT685SFAWB 进行开发。它将 GCC 编译器保存在哪里?我想我正在寻找类似“arm-none-eabi-gcc”的东西,但一直找不到它。谢谢。
查看全文
【Androidオートモーティブ12】リリース 12.1.0_1.1.0i.MX 8QuadMaxオーディオが失敗する コミュニティの皆さん、こんにちは。 Android Automotive 12 for i.MX 8 の 3 つのリリースはすべて、サウンドを再生できません。 Android Automotive 13 イメージを実行すると、同じボードが動作することが確認されています。 オーディオジャックはスピーカーのペアに接続されており、キッチンシンクアプリを使用してサウンドを再生します。私もYouTubeの動画で試してみました。 logcatからの関連エラーは次のとおりです 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service I start_output_stream: primary: 1, out: 0xe6042d70, device: 16777216, address: bus0_media_out, mode: 0, flags 0x2 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service I select_output_device(), headphone 0 ,headset 0 ,speaker 2 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service E Failed to find card from bus 'bus0_media_out' 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service D start_output_stream: pcm_open: card: -1, pcm_device_id: 0, rate: 48000, channel: 2, format: 0, period_size: 0xc0, flag: 9 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service E start_output_stream: Invalid PCM card id: -1 Android Studioのlogcatからの完全なログエクスポートが添付されています。.logcat ファイルを使用して Android Studio にインポートし、見やすくすることができます。 日時:[Android Automotive 12]リリース12.1.0_1.1.0i.MX 8QuadMaxオーディオが失敗する キッチンシンクアプリ->ボリュームテストを介してオーディオジャックからのオーディオを確認できます。アプリでは、バス#1をテストするときにのみ音声が聞こえます。 すべてのオーディオをオーディオジャックにルーティングする場合は、デバイスコードのタグを変更することになっているようです。 日時:[Android Automotive 12]リリース12.1.0_1.1.0i.MX 8QuadMaxオーディオが失敗する 私はこのスレッドでオーディオについてもっと読みました 。 すべてのオーディオをオーディオジャックにルーティングしたい場合に行く方法のようです。 これは奇妙で、幸いなことに、この動作は新しいAndroidリリースには存在しません。
查看全文
LPC55S36-EVKとSDK flexspiの例 FlexSPI Octal NORフラッシュの例を機能させることができません。これらの例がフラッシュを消去しようとすると、エラーが報告されます。また、適切なベンダーIDを取得できません。 ジャンパーを何度かチェックしました。EVKの回路図にも準拠しています。 注意すべきことはありますか? IAR EWARMとSDK 2.16の例を使用しています。 Re: LPC55S36-EVKとSDK flexspiの例 感謝!とても素敵だったので、試してみて写真をくれました。私の間違いは、JP44とJP62が他のジャンパーと反対の向きをしているので、代わりに2と3の間で接続したことです。
查看全文
[Android Automotive 12] Release 12.1.0_1.1.0 on i.MX 8QuadMax Audio fails Hello community, All of three releases of Android Automotive 12 for i.MX 8 cannot play any sound. The same board is confirmed working when running an Android Automotive 13 image. The audio jack is connected to a pair of speakers, and the kitchen sink app is used to play sound. I also tried with an YouTube video. Here are related errors from logcat 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service I start_output_stream: primary: 1, out: 0xe6042d70, device: 16777216, address: bus0_media_out, mode: 0, flags 0x2 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service I select_output_device(), headphone 0 ,headset 0 ,speaker 2 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service E Failed to find card from bus 'bus0_media_out' 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service D start_output_stream: pcm_open: card: -1, pcm_device_id: 0, rate: 48000, channel: 2, format: 0, period_size: 0xc0, flag: 9 11:30:08.894 385-4621 audio_hw_primary android.hardware.audio.service E start_output_stream: Invalid PCM card id: -1  Full log export from Android Studio's logcat is attached. The .logcat file can be used to import to Android Studio for better viewing. Re: [Android Automotive 12] Release 12.1.0_1.1.0 on i.MX 8QuadMax Audio fails I am able to confirm audio from the audio jack via kitchen sink app -> volume test. In the app, I only hear audio when testing bus #1. It looks like I am supposed to modify tags in device code if I want to route all audio to the audio jack. Re: [Android Automotive 12] Release 12.1.0_1.1.0 on i.MX 8QuadMax Audio fails I have read more about audio on this thread. It looks like it is the way to go if I want to route all audio to the audio jack. This is weird and luckily this behavior does not exist in newer Android releases.
查看全文
MCUXpressoはGCCコンパイラをどこに保持しますか? MCUXpresso v11.7.1を使用して、Windows11のMIMXRT685SFAWB用に開発しています。GCCコンパイラはどこに保管されますか?「arm-none-eabi-gcc」のようなものを探していると思いますが、見つけることができませんでした。感謝。
查看全文
Yocto build fail (vulkan-validation-layers) Running bitbake imx-image-multimedia, all passes but vulkan-validation-layers keeps failing. Unsure how to proceed. Tried to bitbake vulkan-validation-layers -c clean, but still getting same error ERROR: Task (/opt/yocto/imx-6.6.52-2.2.0-build/sources/poky/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.3.275.0.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 1669 tasks of which 1668 didn't need to be rerun and 1 failed. Attached the log file. Re: Yocto build fail (vulkan-validation-layers) Thanks.  Running on a 6core 12thread intel with 16GB ram. Managed to get it to work by adding this to the local.conf BB_NUMBER_THREADS = "2" PARALLEL_MAKE = "-j2" Re: Yocto build fail (vulkan-validation-layers) A few suggestions for you. 1> The error log indicates that insufficient system resources caused the compilation to terminate. So, suggest to check the number of CPU cores and memory of your HOST, as well as the number of parallel compilations, etc. 2> Follow up the section ❤️ Host Setup> Yocto User Guide, like the version of Ubuntu, Host packages. 3> Try bitbake vulkan-validation-layers -c cleanall when you clean the one, then rebuild it. Regards Harvey
查看全文
S32K3 Module_CLK 我在手册中看到CAN这个模块的时钟来源是只有AIPS_PLAT_CLK,但是在S32DS配置工具中却可以选择AIPS_PLAT_CLK以及SOSC和FIRC,,我想知道是我在使用参考手册时看的章节错了吗?同样的问题还有例如LSPI在手册中时钟来源是有AIPS_PLAT_CLK和AIPS_SLOW_CLK,但是在配置工具中只能选择AIPS_SLOW_CLK。 Re: S32K3 Module_CLK 我想知道CAN_PE_CLOCK的时钟源是从哪里看到有“AIPS_PLAT_CLK”,“FXOSC_CLK”和“FIRC”三个选择的,因为我没有在参考手册中看到相关的描述(有漏看的可能)。如果你知道出处的话能告诉我吗?感谢! Re: S32K3 Module_CLK Hi@Embedded_novice 1.你可以看到FlexCAN模块的时钟有两个,在你提供的截图中已经可以看到了,分别是"CAN_CHI_CLK"和"CAN_PE_CLOCK", 其中“CAN_CHI_CLK”的时钟默认是“AIPS_PLAT_CLK”,不需要配置,你需要配置的是“CAN_PE_CLOCK”,其可以有“AIPS_PLAT_CLK”,“FXOSC_CLK”和“FIRC”三个选择。 2.LPSPI在S32K3中,不同的LPSPI的实例是不一样的,LPSPI0是属于高性能的,其外设时钟是“AIPS_PLAT_CLK”,对于其它的LPSPIx,如SPI1或者SPI2是普通的,其时钟源是“AIPS_SLOW_CLK”。
查看全文
UJA1164 SBC Chip /Can transceiver configuration I have a question regaring UJA1164 SBC Chip. I am communicating with SBC through SPI. I am trying to set some registers with specific values, but the values were not written in the registers. Is there specific procedure should be followed to configure can transceiver ? Is there a demo code for that? Re: UJA1164 SBC Chip /Can transceiver configuration Answered internally in Case #00655722.  
查看全文
UJA1164 SBC チップ/缶トランシーバーの構成 SBCチップについて質問がありますUJA1164。SPIを通じてSBCと通信しています。特定の値でいくつかのレジスタを設定しようとしていますが、値がレジスタに書き込まれていませんでした。缶トランシーバーを構成するために従うべき特定の手順はありますか?そのためのデモコードはありますか? Re:UJA1164 SBCチップ/ CANトランシーバーの構成 ケース#00655722で内部で回答しました。  
查看全文
USB Audio 2.0 - how to provide host with a range or list of supported sample frequencies ? Hello, In UAC 2, how should the MCU audio device provide the host with a list of supported sample rates ? Using SDK 2.16 dev_audio_speaker_freertos example on i.MXRT1010 evaluation board. In this example, is it correct that for UAC2 the supported sample rates are provided to the host via audio_speaker.c:USB_DeviceAudioRequest() returning freqControlRange for the GET_RANGE_SAMPLING_FREQ_CONTROL case ? Modifying audio_speaker.c:g_UsbDeviceAudioSpeaker.freqControlRange does not produce the expected results :- /* wNumSubRanges, wMIN, wMAX, wRES */ .freqControlRange = {1U, 48000U, 48000U, 0U} - host lists 48kHz - original values .freqControlRange = {1U, 44100U, 48000U, 0U} - host lists 44.1kHz + 48kHz .freqControlRange = {1U, 44100U, 96000U, 0U} - host lists 44,1kHz - expected a range 44.1kHz, 48kHz, 88.2kHz and 96kHz What am I missing ? Thanks. i.MXRT 101x i.MXRT 102x i.MXRT 106x Re: USB Audio 2.0 - how to provide host with a range or list of supported sample frequencies ? Hi @EdwinHz Apologies for this delayed reply, I've been away from NXP SDK for a while. I tested this example app as is, with SDK 2.8. Once I figure out which of the changes it introduces I require, I'll port them to the current SDK. It enumerates as follows :- $ lsusb -vd 1fc9:0032 Bus 001 Device 009: ID 1fc9:0032 NXP Semiconductors USB AUDIO+HID DEMO Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 [unknown] bDeviceSubClass 0 [unknown] bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x1fc9 NXP Semiconductors idProduct 0x0032 USB AUDIO+HID DEMO bcdDevice 1.01 iManufacturer 1 NXP SEMICONDUCTORS iProduct 2 USB AUDIO+HID DEMO iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0146 bNumInterfaces 4 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 500mA Interface Association: bLength 8 bDescriptorType 11 bFirstInterface 0 bInterfaceCount 3 bFunctionClass 1 Audio bFunctionSubClass 0 [unknown] bFunctionProtocol 32 iFunction 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 1 Control Device bInterfaceProtocol 32 iInterface 0 AudioControl Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 1 (HEADER) bcdADC 2.00 bCategory 4 wTotalLength 0x006f bmControls 0x00 AudioControl Interface Descriptor: bLength 8 bDescriptorType 36 bDescriptorSubtype 10 (CLOCK_SOURCE) bClockID 16 bmAttributes 3 Internal programmable clock bmControls 0x07 Clock Frequency Control (read/write) Clock Validity Control (read-only) bAssocTerminal 0 iClockSource 0 AudioControl Interface Descriptor: bLength 17 bDescriptorType 36 bDescriptorSubtype 2 (INPUT_TERMINAL) bTerminalID 1 wTerminalType 0x0201 Microphone bAssocTerminal 0 bCSourceID 16 bNrChannels 2 bmChannelConfig 0x00000003 Front Left (FL) Front Right (FR) iChannelNames 0 bmControls 0x0000 iTerminal 0 AudioControl Interface Descriptor: bLength 18 bDescriptorType 36 bDescriptorSubtype 6 (FEATURE_UNIT) bUnitID 2 bSourceID 1 bmaControls(0) 0x0000000f Mute Control (read/write) Volume Control (read/write) bmaControls(1) 0x00000000 bmaControls(2) 0x00000000 iFeature 0 AudioControl Interface Descriptor: bLength 12 bDescriptorType 36 bDescriptorSubtype 3 (OUTPUT_TERMINAL) bTerminalID 3 wTerminalType 0x0101 USB Streaming bAssocTerminal 1 bSourceID 2 bCSourceID 16 bmControls 0x0000 iTerminal 0 AudioControl Interface Descriptor: bLength 8 bDescriptorType 36 bDescriptorSubtype 10 (CLOCK_SOURCE) bClockID 18 bmAttributes 3 Internal programmable clock bmControls 0x07 Clock Frequency Control (read/write) Clock Validity Control (read-only) bAssocTerminal 0 iClockSource 0 AudioControl Interface Descriptor: bLength 17 bDescriptorType 36 bDescriptorSubtype 2 (INPUT_TERMINAL) bTerminalID 4 wTerminalType 0x0101 USB Streaming bAssocTerminal 0 bCSourceID 18 bNrChannels 2 bmChannelConfig 0x00000003 Front Left (FL) Front Right (FR) iChannelNames 0 bmControls 0x0000 iTerminal 0 AudioControl Interface Descriptor: bLength 18 bDescriptorType 36 bDescriptorSubtype 6 (FEATURE_UNIT) bUnitID 5 bSourceID 4 bmaControls(0) 0x0000000f Mute Control (read/write) Volume Control (read/write) bmaControls(1) 0x00000000 bmaControls(2) 0x00000000 iFeature 0 AudioControl Interface Descriptor: bLength 12 bDescriptorType 36 bDescriptorSubtype 3 (OUTPUT_TERMINAL) bTerminalID 6 wTerminalType 0x0301 Speaker bAssocTerminal 4 bSourceID 5 bCSourceID 18 bmControls 0x0000 iTerminal 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 32 iInterface 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 1 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 32 iInterface 0 AudioStreaming Interface Descriptor: bLength 16 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 3 bmControls 0x00 bFormatType 1 bmFormats 0x00000001 PCM bNrChannels 2 bmChannelConfig 0x00000003 Front Left (FL) Front Right (FR) iChannelNames 0 AudioStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bSubslotSize 3 bBitResolution 24 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x00c0 1x 192 bytes bInterval 1 AudioStreaming Endpoint Descriptor: bLength 8 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x00 bmControls 0x00 bLockDelayUnits 0 Undefined wLockDelay 0x0000 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 2 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 32 iInterface 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 2 bAlternateSetting 1 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 32 iInterface 0 AudioStreaming Interface Descriptor: bLength 16 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 4 bmControls 0x00 bFormatType 1 bmFormats 0x00000001 PCM bNrChannels 2 bmChannelConfig 0x00000003 Front Left (FL) Front Right (FR) iChannelNames 0 AudioStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bSubslotSize 2 bBitResolution 16 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 9 Transfer Type Isochronous Synch Type Adaptive Usage Type Data wMaxPacketSize 0x00c0 1x 192 bytes bInterval 1 AudioStreaming Endpoint Descriptor: bLength 8 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x00 bmControls 0x00 bLockDelayUnits 0 Undefined wLockDelay 0x0000 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 2 bAlternateSetting 2 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 32 iInterface 0 AudioStreaming Interface Descriptor: bLength 16 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 4 bmControls 0x00 bFormatType 1 bmFormats 0x00000001 PCM bNrChannels 2 bmChannelConfig 0x00000003 Front Left (FL) Front Right (FR) iChannelNames 0 AudioStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bSubslotSize 3 bBitResolution 24 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 9 Transfer Type Isochronous Synch Type Adaptive Usage Type Data wMaxPacketSize 0x00c0 1x 192 bytes bInterval 1 AudioStreaming Endpoint Descriptor: bLength 8 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x00 bmControls 0x00 bLockDelayUnits 0 Undefined wLockDelay 0x0000 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 3 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 [unknown] bInterfaceProtocol 0 iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.00 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 35 Report Descriptors: ** UNAVAILABLE ** Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x84 EP 4 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 16 Thanks very much for finding and sharing this example. Best regards, Paul. Re: USB Audio 2.0 - how to provide host with a range or list of supported sample frequencies ? Hi @EdwinHz., Thank you so much for continuing to research this issue and for providing this example project which seems to tie in with some further research I have done. I will give it a try with SDK 2.8.0 and if successful, will then port to 2.16 as you suggest. I used Wireshark to capture the USB traffic for a known good UAC 2 device which enumerates as supporting the following sample rates. host requests sample rate rangehost requests sample rate range audio device responds with sample rate rangeaudio device responds with sample rate range That CONTROL response date decodes as follows :- numSubRanges 0x0a 00 min max res 0x44 ac 00 00, 44 ac 00 00, 00 00 00 00 - 44100 kHz 0x80 bb 00 00, 80 bb 00 00, 00 00 00 00 - 48000 kHz 0x88 58 01 00, 88 58 01 00, 00 00 00 00 - 88200 kHz 0x00 77 01 00, 00 77 01 00, 00 00 00 00 - 96000 kHz 0x10 b1 02 00, 10 b1 02 00, 00 00 00 00 - 176400 kHz 0x00 ee 02 00, 00 ee 02 00, 00 00 00 00 - 192000 kHz 0x20 62 05 00, 20 62 05 00, 00 00 00 00 - 352800 kHz 0x00 dc 05 00, 00 dc 05 00, 00 00 00 00 - 384000 kHz 0x40 c4 0a 00, 40 c4 0a 00, 00 00 00 00 - 705600 kHz 0x00 b8 0b 00, 00 b8 0b 00, 00 00 00 00 - 768000 kHz This seems to align with the structure of the sample rate data of the example you have provided. Thanks and regards, Paul. Re: USB Audio 2.0 - how to provide host with a range or list of supported sample frequencies ? Hi @paulw2, While investigating about this issue, I encountered an old project based on SDK 2.8.0 that provides a host with a list of supported sample frequencies. Although older, I believe it can prove to be very useful for your application. I will attach here. Notice how the freqControlRange structure is expanded to include a wide range of frequencies: g_deviceAudioComposite->audioUnified.freqControlRange1.wNumSubRanges = 6U; g_deviceAudioComposite->audioUnified.freqControlRange1.wMIN = 44100U; g_deviceAudioComposite->audioUnified.freqControlRange1.wMAX = 44100U; g_deviceAudioComposite->audioUnified.freqControlRange1.wRES = 0U; g_deviceAudioComposite->audioUnified.freqControlRange2.wMIN = 48000U; g_deviceAudioComposite->audioUnified.freqControlRange2.wMAX = 48000U; g_deviceAudioComposite->audioUnified.freqControlRange2.wRES = 0U; g_deviceAudioComposite->audioUnified.freqControlRange3.wMIN = 88200U; g_deviceAudioComposite->audioUnified.freqControlRange3.wMAX = 88200U; g_deviceAudioComposite->audioUnified.freqControlRange3.wRES = 0U; g_deviceAudioComposite->audioUnified.freqControlRange4.wMIN = 96000U; g_deviceAudioComposite->audioUnified.freqControlRange4.wMAX = 96000U; g_deviceAudioComposite->audioUnified.freqControlRange4.wRES = 0U; g_deviceAudioComposite->audioUnified.freqControlRange5.wMIN = 176400U; g_deviceAudioComposite->audioUnified.freqControlRange5.wMAX = 176400U; g_deviceAudioComposite->audioUnified.freqControlRange5.wRES = 0U; g_deviceAudioComposite->audioUnified.freqControlRange6.wMIN = 192000U; g_deviceAudioComposite->audioUnified.freqControlRange6.wMAX = 192000U; g_deviceAudioComposite->audioUnified.freqControlRange6.wRES = 0U; If you wish to quickly test, you could download SDK2.8.0 and build with said SDK for your RT1010. Otherwise, I would recommend you port this implementation to your needs on the latest SDK2.16.0 for the best performance. BR, Edwin. Re: USB Audio 2.0 - how to provide host with a range or list of supported sample frequencies ? Apologies, not sure where those bogus 'STRUCT_UNPACKED' came from. Re: USB Audio 2.0 - how to provide host with a range or list of supported sample frequencies ? Hi @EdwinHz, Further reading of, "USB Device Class Definition for Audio Devices", Release 2.0 May 31, 2006 89 :- Chapter 5 5.2 Class-Specific Requests 5.2.1 Control Attributes - concludes with the hypothetical Volume Control example :- • -∞ dB • -70 dB to -40 dB in steps of 3 dB • -40 dB to -20 dB in steps of 2 dB • -20 dB to 0 dB in steps of 1 dB One possible layout of the RANGE attribute is then: RANGE(0) = 3 RANGE(1) = [-70, -40, 3] RANGE(2) = [-38, -20, 2] RANGE(3) = [-19, 0, 1] Another way of representing the same Control is as follows: RANGE(0) = 3 RANGE(1) = [-70, -43, 3] RANGE(2) = [-40, -22, 2] RANGE(3) = [-20, 0, 1] Which suggests that supported sample rates could be represented as :- #if (USB_DEVICE_CONFIG_AUDIO_CLASS_2_0) struct _usb_device_control_range_layout3_struct { uint32_t wMIN; uint32_t wMAX; uint32_t wRES; } STRUCT_UNPACKED; struct _usb_device_control_ranges_layout3_struct { uint16_t wNumSubRanges; struct _usb_device_control_range_layout3_struct range[MAX_SAMPLE_RATES]; } STRUCT_UNPACKED; typedef struct _usb_device_control_ranges_layout3_struct usb_device_control_ranges_layout3_struct_t; #endif /* USB_DEVICE_CONFIG_AUDIO_CLASS_2_0 */ Or am I misunderstanding the documentation and/or the interface provided by the MCUXpresso SDK ? Thanks and regards, Paul. Re: USB Audio 2.0 - how to provide host with a range or list of supported sample frequencies ? Hi @EdwinHz, Thanks very much for your reply. As it happens, it was while working through AN13447 that I encountered this issue. Following the approach taken in AN13447 I was able to add 32 bit support but when adding additional sample rate frequencies encountered the following results (note failure in UAC 2.0 case)  :- excerpt from usb_audio_descriptor.c: uint8_t g_UsbDeviceConfbDescriptorSubtypeigurationDescriptor[] Class 1.0 audio descriptor (USB_DEVICE_CONFIG_AUDIO_CLASS_2_0 == 0U) - single sample rate supported :- /* Audio Class Specific type I format INTERFACE Descriptor */ USB_AUDIO_STREAMING_TYPE_I_DESC_SIZE, /* bLength (11) */ USB_DESCRIPTOR_TYPE_AUDIO_CS_INTERFACE, /* bDescriptorType (CS_INTERFACE) */ USB_DESCRIPTOR_SUBTYPE_AUDIO_STREAMING_FORMAT_TYPE, /* bDescriptorSubtype: AUDIO STREAMING FORMAT TYPE */ USB_AUDIO_FORMAT_TYPE_I, /* bFormatType - Format Type: Type I */ AUDIO_FORMAT_CHANNELS, /* bNrChannels - Number of Channels: one channel */ AUDIO_FORMAT_SIZE, /* bSubFrameSize - SubFrame Size: one byte per audio subframe */ AUDIO_FORMAT_BITS, /* bBitResolution - Bit Resolution: 8 bits per sample */ 0x01U, /* bSamFreqType - One sample frequency supported */ TSAMFREQ2BYTES(AUDIO_SAMPLING_RATE_KHZ * 1000), /* 3 bytes - 48 kHz */ lsusb -v reports :- AudioStreaming Interface Descriptor: bLength 11 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 4 bBitResolution 32 bSamFreqType 1 Discrete tSamFreq[ 0] 48000 Class 1.0 audio descriptor (USB_DEVICE_CONFIG_AUDIO_CLASS_2_0 == 0U) - two sample rates supported :- /* Audio Class Specific type I format INTERFACE Descriptor */ USB_AUDIO_STREAMING_TYPE_I_DESC_SIZE + 3, /* bLength (14) */ USB_DESCRIPTOR_TYPE_AUDIO_CS_INTERFACE, /* bDescriptorType (CS_INTERFACE) */ USB_DESCRIPTOR_SUBTYPE_AUDIO_STREAMING_FORMAT_TYPE, /* bDescriptorSubtype: AUDIO STREAMING FORMAT TYPE */ USB_AUDIO_FORMAT_TYPE_I, /* bFormatType - Format Type: Type I */ AUDIO_FORMAT_CHANNELS, /* bNrChannels - Number of Channels: one channel */ AUDIO_FORMAT_SIZE, /* bSubFrameSize - SubFrame Size: one byte per audio subframe */ AUDIO_FORMAT_BITS, /* bBitResolution - Bit Resolution: 8 bits per sample */ 0x02U, /* bSamFreqType - Two sample frequencies supported */ TSAMFREQ2BYTES(AUDIO_SAMPLING_RATE_KHZ * 1000), /* 3 bytes - 48 kHz */ TSAMFREQ2BYTES(72 * 1000), /* 3 bytes - 72 kHz */ lsbusb -v reports :- AudioStreaming Interface Descriptor: bLength 14 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 4 bBitResolution 32 bSamFreqType 2 Discrete tSamFreq[ 0] 48000 tSamFreq[ 1] 72000 Class 2.0 audio descriptor (USB_DEVICE_CONFIG_AUDIO_CLASS_2_0 == 1U) - two sample rates supported :- /* Audio Class Specific type I format INTERFACE Descriptor */ USB_AUDIO_STREAMING_TYPE_I_DESC_SIZE + 3, /* bLength (14) */ USB_DESCRIPTOR_TYPE_AUDIO_CS_INTERFACE, /* bDescriptorType (CS_INTERFACE) */ USB_DESCRIPTOR_SUBTYPE_AUDIO_STREAMING_FORMAT_TYPE, /* bDescriptorSubtype: AUDIO STREAMING FORMAT TYPE */ USB_AUDIO_FORMAT_TYPE_I, /* bFormatType - Format Type: Type I */ AUDIO_FORMAT_CHANNELS, /* bNrChannels - Number of Channels: one channel */ AUDIO_FORMAT_SIZE, /* bSubFrameSize - SubFrame Size: one byte per audio subframe */ AUDIO_FORMAT_BITS, /* bBitResolution - Bit Resolution: 8 bits per sample */ 0x02U, /* bSamFreqType - Two sample frequencies supported */ TSAMFREQ2BYTES(AUDIO_SAMPLING_RATE_KHZ * 1000), /* 3 bytes - 48 kHz */ TSAMFREQ2BYTES(72 * 1000), /* 3 bytes - 72 kHz */ lsbusb -v reports :- AudioStreaming Interface Descriptor: bLength 13 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bSubslotSize 4 bBitResolution 32 junk at descriptor end: 02 80 bb 00 40 19 01 Various documentation including, USB Device Class Definition for Audio Devices - Release 2.0, state that in UAC2 the supported sample rates are requested by the host and provided by the device in the  Minimum (MIN), Maximum (MAX), and Resolution (RES) format listed in my original question. As stated initially, the following changes to audio_speaker.c did enable the host to determine the device supported 2 sample rates. g_UsbDeviceAudioSpeaker.freqControlRange = {1U, 44100U, 48000U, 0U}, // gives 44.1 + 48   This looks to be on the right track for UAC 2 but more info is needed on how to properly utilise this interface. Thanks and regards, Paul. Re: USB Audio 2.0 - how to provide host with a range or list of supported sample frequencies ? Hi @paulw2, Thanks for the clarification. In this case, you would have to add alternate interface setting for each desired supported audio format (i.e. 3 for 44.100 Hz, 48,000 Hz and 88,200 Hz). This can be done by following this application note: AN13447.pdf (nxp.com). Even though it is technically describing the process for an LPC, it is still the same for the RT1010. BR, Edwin. Re: USB Audio 2.0 - how to provide host with a range or list of supported sample frequencies ? Hi @EdwinHz Thanks very much for replying to my question. Using a resolution of 1 enumerates as 44,100 Hz, 44,101 Hz, 44,102 Hz, ...... 44,160 Hz Using a resolution of 10 enumerates as 44,100 Hz, 44,110 Hz, 44,120 Hz, ...... 45,440 Hz The resolution member does not seem to lend itself to providing the host with a list of supported sample rates such as :- 44.100 Hz 48,000 Hz 88,200 Hz 96,000 Hz 176,400 Hz 192,000 Hz 352,000 Hz 384,000 Hz 705,000 Hz 768,000 Hz Perhaps I should have been clearer on these sample rates. What would be the correct method of specifying these as the supported sample rates for UAC 2 ? Thanks and regards, Paul. Re: USB Audio 2.0 - how to provide host with a range or list of supported sample frequencies ? Hi @paulw2, Please try changing the resolution (wRES) value to 1 or more to achieve higher number of frequencies. As such: .freqControlRange = {1U, 44100U, 48000U, 1U} BR, Edwin. 
查看全文
imx8mボード用エミュレータの構築と使用方法 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 私はimx8m mini EVKとAndriod 9.0 AOSPバージョンを使用しています。 imx8 EVK ボード用の AOSP を正常にダウンロードしてビルドすることができ、正常に動作しています。 imx8mm evk の AOSP をビルドするには、以下のコマンドを使用しました。 $ ソースビルド/envsetup.sh $ ランチ evk_8mm-userdebug $ make 2>&1 | ビルドログ.txtを保存する しかし、開発やテストの作業にはエミュレーターを使用したいと考えています。 エミュレータコマンドを実行すると - $ エミュレータ エミュレータは開きますが、起動も動作もまったくしません。 いくつかのブログやAOSPのドキュメントでは、ランチaosp_x86_64-engで動作すると記載されています。 しかし、私はimx8 mini EVKボードでエミュレーターを使用したいと考えています。つまり - ランチ evk_8mm-userdebug imx8MMビルドでエミュレータを使用する方法を教えてください。例:-> lunch evk_8mm-userdebug それを実行するために必要なすべての変更と設定は何ですか。 ありがとう、よろしく。 マニーシュ Android i.MX 8ファミリ | i.MX 8QuadMax (8QM) | 8QuadPlus i.MX 8M | i.MX 8M ミニ | i.MX 8M ナノ i.MX6_すべて i.MX6DL i.MX6Dual i.MX6S i.MX6SL i.MX6SoloX i.MX6UL i.MX7Dual i.MX7Solo i.MX7ULP i.MX RT Linux Re: How to build and use emulator for imx8m board このガイドは、i.MX8M ボード専用のエミュレータをビルディングする人にとって非常に役立ちます。ステップバイステップの指示により、環境を簡単にセットアップし、エミュレータをスムーズに実行できるようになります。自分のデバイスで試してみて、パフォーマンスがどの程度優れているか確認するのが楽しみです。共有していただきありがとうございます! Re: How to build and use emulator for imx8m board こんにちは、 最新の Android を imx8 にどのように移植したのですか? 私は Android システム開発を始めたばかりですが、何かアドバイスをいただけませんか? 私はAOSPをダウンロードしてビルドし、エミュレータで実行しましたが、次のステップはまだ決めていません。アドバイスをいただければ幸いです。 お時間をいただきありがとうございます よろしくお願いいたします。 Re: How to build and use emulator for imx8m board <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 申し訳ございませんが、エミュレーションとaosp_x86_64-engデバイスは弊社のBSPではサポートされておりません。ご不便をおかけして申し訳ございません。 ただし、変更を加えた ASOP コードは、次の git からダウンロードCAN。 repo init -u https://android.googlesource.com/platform/manifest -b android-9.0.0_r35 # このブランチは、最新の Android バージョンで使用されるリビジョンです。 リポジトリ同期 よろしくお願いいたします。 ディエゴ。 Re: How to build and use emulator for imx8m board <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 上記の質問に関して何か提案はありますか? ありがとうございます マニーシュ Re: How to build and use emulator for imx8m board <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 上記の投稿で述べたように、imx8ミニボードのすべてのAOSPソースコードをコンパイルすることができました。 imx8m Mini EVK ボードでテストできました。 しかし、Ubuntu Linux でエミュレータを起動しようとすると、エミュレータ ウィンドウは表示されますが、永久にブラックアウトしたままになります。 コマンドは次のとおりです - $ エミュレータ   Android エミュレータで imx8 mini AOSP とその Android フレームワークを起動することは可能ですか? 可能であれば、その手順は何ですか?または、エミュレーションを行う別の方法はありますか? 注記 - いくつかのブログやAOSPのドキュメントでは、ランチaosp_x86_64-engで動作すると記載されています。 しかし、AOSPをダウンロードして、ランチのaosp_x86_64-engコマンドからビルドしようとすると、次のようなエラーが発生します。 /bin/bash: -c: 行 0: `echo -e "\033[1mvendor/nxp-opensource/fsl_imx_demo/イーサネット/Android.mk:\033[31merror:\033[0m\033[1m" イーサネット: LOCAL_SDK_VERSION (system_current) と LOCAL_PRIVATE_PLATFORM_APIS (current) の両方を指定していますが、どちらか一方だけを指定する必要があります "\033[0m" >&2' build/make/core/sdk_check.mk:34: エラー: 完了。 14:57:53 ckati が失敗しました: 終了ステータス 1 imx8用のNXP WebサイトからAOSPをダウンロードしてビルドするために私が実行した手順 - $リポジトリ初期化 -u https://source.codeaurora.org/external/imx/imx-manifest.git -b imx-android-pie -m imx-p9.0.0_2.0.0-ga.xml $リポジトリ同期 $ ソースビルド/envsetup.sh $ ランチ evk_8mm-userdebug $ make 2>&1 | ビルドログ.txtを保存する さて、私の質問は -> 1. 上記のコマンドで生成されたこの AOSP ビルドでエミュレータを使用するにはどうすればよいですか? 2. ダウンロードした AOSP ソース コードを lunch aosp_x86_64-eng 用にビルドするにはどうすればよいですか? 3. NXP から変更を加えずに Android Pie の生の AOSP ソース コードをどこからダウンロードできますか? ありがとうございます マニーシュ
查看全文