Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
PXIコントローラのMPU選び方 オープンソースのPXIシャーシコントローラを作りたいと思っています(ご存じない方のために説明すると、基本的にArm SBCで、PCIe経由でバックプレーンにコネクテッドし、ペリフェラルPXIモジュールも同じですが、RCではなくPCIe EPが付いています) 例えば、Linux配信を動かせるMPUが必要です。Ubuntuはグラフィックモードで、まずまずのパフォーマンスを保ち、例えば特殊なソフトウェアが動作しているはずです。LabVIEWおよびカスタムペリフェラルモジュールはユーティリティを制御し、1秒あたり数GBの生データを処理します。また、PXI仕様で要求されているように、少なくとも2つの独立したPCIe RCを備えている必要があり、それらが高速であればあるほど良いです。それらが十分に高速であれば、たとえば次のようなことが可能になります。RF AWGでDACに生データを連続的に供給し、AWGのRAMサイズに制限されません。また、LPDDR4を大量に接続できる可能性も面白いです。典型的な32ビットバスだけでなく、64+も対応可能です。 新しいTI Am69aはかっこいいようですが、かなり高くなそうですし、しかも非常に新しいので、完全なエラッタやソフトウェアの例、ドライバなどはありません。ハードウェア開発者で趣味でコーディングしている私には難しすぎると思います もう一つの方法はRockchip RK3588です。こちらは手頃で古いですが、PCIeが遅すぎて、Gen 3の2x2だけです。私はそれで十分に受け入れられますが...もしかしたら、もっと良いアイデアや、最近似たようなことをした方がいいかもしれませんね?ぜひ聞かせていただきたいです 🙂 USB Re: Choosing an MPU for PXI controller こんにちは、 NXP Semiconductors製品にご関心いただきありがとうございます。 PCIe要件に関しては、最新のインダストリアルPCIe世代はGen 3です。LS2048/88Aは4つのPCIeコントローラ(Gen3)を持ち、1x8、4x4、4x2、4x1レーン構成をサポートし、LX2160A最大24レーンのPCIe Gen3レーンを持ち、最大x8のポートをサポートします。Layerscapeはまた、数Gbps以上のデータをプロセッシングできる優れたコネクティビティを備えています。DDRは64ビットと72ビットの2倍コントローラでも満足していますが、DDR4上で動作します。 https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/layerscape-processors:QORIQ-ARM もう一つの欠点は、ネイティブでグラフィカルインターフェースを動かせないことです。インダストリアルグラフィックプロセッサは i.MX プロセッサで、32ビットDDRで動作し、最大10Gbpsのイーサネット、最大2倍のPCIe Gen 3に対応しますが、グラフィックス処理は可能です。 よろしくお願いします。
View full article
What Makes a Denver Mobile App Development Company a Good Choice for Businesses? A Mobile App Development Company in Denver can help businesses turn digital ideas into scalable iOS and Android applications with custom features, intuitive interfaces, secure integrations, and reliable backend systems. These services can support customer engagement, business automation, payments, real-time functionality, and other digital requirements. JPLOFT develops customized mobile applications aligned with business goals and user needs.
View full article
s32ds 许可证已过期 你好, 代码:4F70-F0A3-101C-3C96 我谨此申请续订 S32DS 2018R1 许可证。 感谢您的支持。 顺祝商祺! Re: s32ds license Expired 您好, 您的S32DS许可证已延期。
View full article
KITPF09FRDMPGM – 是否包含错误的板? 我订购了一台 KITPF09FRDMPGM。交付内容包括 KITPF09FRDMPGM 和一块单独的 FRDM-KL25Z 板。 但是,我认为这两个板不兼容,或者至少我看不出它们应该如何连接。例如,FRDM-KL25Z 上的 J21 接头在机械上会妨碍操作。 此外,将 KITPF09FRDMPGM 插入 FRDM-KL25Z 所需的针脚接头也缺失。 请问有人能确认一下套件里是否包含了正确的板吗?它看起来不应该和 KITPF7100FRDMPGM 附带的板相似吗? i.MX 的 PMIC Re: KITPF09FRDMPGM – Wrong Board Included? 你好, KITPF09FRDMPGM 套件中包含的板是正确的板。KITPF09FRDMPGM 和 FRDM-KL25Z 是作为单独的板提供的,并且按预期组装时是兼容的。 所需的针脚排针未预先安装,必须单独购买并焊接在板上。安装好合适的接头后,就可以正确连接板了。 我已经测试过 KITPF09FRDMPGM 板,没有任何问题,所以板子本身是正确的,功能也正常。 希望这能帮到你! Re: KITPF09FRDMPGM – Wrong Board Included? 我已经把排针焊接好了。但是,当我尝试使用 NXP_GUI 连接该套件时,没有任何反应。我还找到了一个适用于 PF8100 的旧套件,其中包含一个较旧的 FRDM-KL25Z;该套件已被检测到。到底出了什么问题? Re: KITPF09FRDMPGM – Wrong Board Included? 好吧,我又仔细考虑了一下。J21 可能只是一个跳线,如果安装了针座,就不会干扰顶板。我试试看。 Re: KITPF09FRDMPGM – Wrong Board Included? 我仍然很惊讶它居然能合身。外形尺寸不同,而且连接器J21会干扰电路板。我应该把它拆焊下来吗? 控制器板不应该更像这样吗?    Re: KITPF09FRDMPGM – Wrong Board Included? 可能是我把固件搞坏了。请问这个固件是否正确: OpenSDA/PEMicro/2016-02-08/MSD-DEBUG-FRDM-KL25Z_Pemicro_v118.SDA at master · savoca/OpenSDA · GitHub 或者您能给我提供正确的固件链接吗? Re: KITPF09FRDMPGM – Wrong Board Included? 你好@ErikaC , 因为我是d_j的同事: 请您查看一下他的问题,并提供相关信息,告诉我们这个板需要哪个固件版本?由于“开始”按钮处于非活动状态,我们双方都无法建立连接。我们都使用Win11,而不是文档建议的Win10。 先感谢您。 此致, 弗洛里安 Re: KITPF09FRDMPGM – Wrong Board Included? 请将母排针焊接到 KL25 侧。 Re: KITPF09FRDMPGM – Wrong Board Included? 你好@ErikaC , 您能否给我们一些提示或者询问其他同事? 先感谢您。 此致, 弗洛里安 Re: KITPF09FRDMPGM – Wrong Board Included? @ErikaC你能继续提供支持吗? Re: KITPF09FRDMPGM – Wrong Board Included? 你好@d_j @florian_arndt 让我看看能不能给你发个视频! Re: KITPF09FRDMPGM – Wrong Board Included? 你好@d_j @florian_arndt 我认为目前没有必要发布视频。首先请注意,连接器 J21 不会干扰 PF09 板。 其次,请查看附件中的 PF09 板固件。我这边测试过了,运行正常。 希望这能帮到你! 此致, 艾丽卡 Re: KITPF09FRDMPGM – Wrong Board Included? 嗨,艾丽卡, 谢谢你的回答! 以下是我的步骤: 1. 我已检查过J21,确认其与上层电路板没有接触。 2. 我已经下载了你的固件文件 2. 我已按下 RESET 按钮并将 USB 连接到 OpenSDA 连接器。 3. 我已将固件文件复制到资源管理器驱动器 BOOTLOADER 中。 4. 我已将 USB 连接到 KL25Z 的 USB 接口。 遗憾的是,NXP GUI 中的状态仍然在“未连接”和“已断开连接”之间不断切换,“开始”按钮仍然呈灰色。
View full article
s32ds license Expired Hello, Code: 4F70-F0A3-101C-3C96 I would like to kindly request the renewal of the S32DS 2018R1 license. Thank you for your support. Best regards. Re: s32ds license Expired Hi, your S32DS license has been extended. 
View full article
KITPF09FRDMPGM – 間違った基板が同梱されていますか? KITPF09FRDMPGMを注文しました。納品物には、KITPF09FRDMPGM本体と、別売りのFRDM-KL25Z基板が含まれていました。 しかし、両基板は互換性がないと思いますし、少なくともどう接続すべきかはわかりません。例えば、FRDM-KL25ZのJ21ヘッダーは機械的に邪魔になる。 さらに、KITPF09FRDMPGMをFRDM-KL25Zに接続するために必要なピンヘッダーが欠品しています。 どなたか、キットに正しい基板が付属しているか確認していただけませんか?KITPF7100FRDMPGMに付属の基板と似たような外観であるべきではないでしょうか? i.MX用PMIC Re: KITPF09FRDMPGM – Wrong Board Included? こんにちは、 KITPF09FRDMPGMに付属している基板は正しい基板です。KITPF09FRDMPGMとFRDM-KL25Zは別々の基板として供給され、意図されたとおりに組み立てれば互換性があります。 必要なピンヘッダーはプリインストールされていませんので、別途購入して基板にはんだ付けする必要があります。適切なヘッダーが取り付けられれば、基板を正しく接続できます。 KITPF09FRDMPGM基板は問題なくテストしたので、基板自体は正しく機能しています。 お役に立てば幸いです! Re: KITPF09FRDMPGM – Wrong Board Included? ヘッダーピンをはんだ付けしました。しかし、NXP_GUIを使用してキットを接続しようとしても、何も起こりません。また、古いFRDM-KL25Zを搭載したPF8100用の古いキットも見つけました。そちらは検出されました。何が問題なのでしょうか? Re: KITPF09FRDMPGM – Wrong Board Included? よし、もう一度考えてみた。J21はおそらく単なるジャンパーであり、ピンヘッダーが取り付けられていれば、トップボードに干渉することはありません。試してみます。 Re: KITPF09FRDMPGM – Wrong Board Included? それがぴったり合うはずだったなんて、今でも驚いています。形状が異なり、コネクタJ21が基板と干渉する。はんだ付けを外すべきでしょうか? コントローラーボードはもっとこんな感じに見えるべきではないでしょうか?    Re: KITPF09FRDMPGM – Wrong Board Included? ファームウェアを壊してしまったのかもしれない。これが正しいファームウェアか教えてもらえますか:OpenSDA/PEMicro/2016-02-08/MSD-DEBUG-FRDM-KL25Z_Pemicro_v118。マスターのSDAです ·savoca/OpenSDA ·GitHub ...あるいは正しいファームウェアのリンクを教えてもらえますか? Re: KITPF09FRDMPGM – Wrong Board Included? こんにちは、@ErikaCさん。 私はd_j年の同僚です: 彼の質問を確認し、このボードに必要なファームウェアの情報を教えていただけますか?「スタート」ボタンが無効なので、どちらも接続を確立できません。私たちはどちらもWindows 11を使っており、ドキュメントで推奨されているWin10ではありません。 よろしくお願いします。 よろしくお願いします、 フロリアン Re: KITPF09FRDMPGM – Wrong Board Included? こんにちは@d_j @florian_arndt 動画を送れるか確認させてください! Re: KITPF09FRDMPGM – Wrong Board Included? KL25側にメスヘッダーをはんだ付けしてください。 Re: KITPF09FRDMPGM – Wrong Board Included? @ErikaCサポートを続けられますか? Re: KITPF09FRDMPGM – Wrong Board Included? こんにちは、@ErikaCさん。 何かヒントをくれたり、他の同僚に聞いたりしてもらえますか? よろしくお願いします。 よろしくお願いします、 フロリアン Re: KITPF09FRDMPGM – Wrong Board Included? こんにちは@d_j @florian_arndt 現時点では動画は必要ないと思います。まず、コネクタJ21はPF09基板と干渉しないことにご注意ください。 次に、PF09ボード用のファームウェアを添付いたします。こちら側でテストしたところ、正常に動作しています。 お役に立てば幸いです! よろしくお願いします、 エリカ Re: KITPF09FRDMPGM – Wrong Board Included? こんにちは、エリカさん。 ご回答ありがとうございます! 私の手順は以下のとおりです。 1. J21を確認したところ、上層基板に接触がないことを確認できます 2. ファームウェアファイルをダウンロードしました 2. リセットボタンを押してUSBをOpenSDAコネクタに接続しました 3. ファームウェアファイルをエクスプローラードライブのBOOTLOADERにコピーしました。 4. USBをKL25ZのUSBコネクタにコネクテッドしました 残念ながら、NXPのGUIの状態は「接続されていません」と「切断」を繰り返し切り替え、スタートボタンはグレーアウトのままです。
View full article
s32dsライセンスの有効期限が切れました こんにちは、 コード: 4F70-F0A3-101C-3C96 S32DS 2018R1のライセンス更新をお願いしたく存じます。 再開まで今しばらくお待ちください。 よろしくお願いいたします。 Re: s32ds license Expired こんにちは、 お客様のS32DSライセンスが延長されました。
View full article
为什么丹佛移动应用开发公司是企业的理想选择? 丹佛的一家移动应用开发公司可以帮助企业将数字创意转化为可扩展的 iOS 和 Android 应用,这些应用具有自定义功能、直观的界面、安全的集成和可靠的后端系统。这些服务可以支持客户互动、业务自动化、支付、实时功能和其他数字化需求。JPLOFT开发符合业务目标和用户需求的定制化移动应用程序。
View full article
消費電力マネジメント 現在、エネルギー価格は非常に高騰しており、今後数か月で太陽への到達を目指しているため、その影響を最小限に抑えるために何ができるかという疑問が生じています。 多くの方が私と同じ立場にあることでしょう。会社内での「方針」、いやむしろ慣習は、システムの保守やリモートアクセス、その他の理由で常にすべてをオンにしておくものでした。 今朝、「多くの企業がエネルギー価格のため生き残れないかもしれない」という記事を読んで、会社全体で厳格なパワーマネージメントポリシーを導入することで、積極的に対策を講じることができると思いました。 そこで皆さんはこの問題にどう対処していますか?もし以前にうまくやっていたなら、どのようにして最善の方法を見つけましたか? 電源設定のグループポリシーについて?サードパーティのアプリケーションやシステム?ユーザーに、帰宅時にすべてをオフにしてほしいと丁寧に頼み、定期的に叩くことで強制する? 既に長年この分野に携わっている方々からのご意見やアドバイスがあればお聞かせください。 電源ソリューション Re: Power consumption management あなたが提起した「エネルギーコスト削減のための全社的なパワーマネージメント方針の実施方法」は一般的なITおよび施設マネジメントのテーマであり、NXPの製品技術サポートの範囲外です。
View full article
KITPF09FRDMPGM – Wrong Board Included? I ordered a KITPF09FRDMPGM. The delivery included the KITPF09FRDMPGM and a separate FRDM-KL25Z board. However, I don't think the two boards are compatible, or at least I don't see how they are supposed to be connected. For example, the J21 header on the FRDM-KL25Z is mechanically in the way. In addition, the pin headers required to plug the KITPF09FRDMPGM into the FRDM-KL25Z are missing. Could somone please confirm whether the correct board was included with the kit? Shouldn't it look similar to the board supplied with the KITPF7100FRDMPGM? PMIC for i.MX Re: KITPF09FRDMPGM – Wrong Board Included? Hello, The board included with the KITPF09FRDMPGM is the correct board. The KITPF09FRDMPGM and the FRDM-KL25Z are supplied as separate boards and are compatible when assembled as intended. The required pin headers are not included pre-installed and must be purchased separately and soldered onto the boards. Once the appropriate headers are installed, the boards can be connected correctly. I have tested the KITPF09FRDMPGM board without any problems, so the board itself is correct and functional. Hope this helps! Re: KITPF09FRDMPGM – Wrong Board Included? I’m still surprised that it’s supposed to fit. The outline is different, and connector J21 interferes with the board. Should I desolder it? Shouldn't the controller board look more like this?    Re: KITPF09FRDMPGM – Wrong Board Included? Okay, I’ve thought about it again. J21 is probably just a jumper and won't interfere with the top board if the pin headers are installed. I'll give it a try. Re: KITPF09FRDMPGM – Wrong Board Included? I have now soldered on the headers. However, nothing happens when I try to connect the kit using the NXP_GUI. I also found an old kit for the PF8100 with an older FRDM-KL25Z; that one is detected. What could be wrong? Re: KITPF09FRDMPGM – Wrong Board Included? Perhaps I bricked the firmware. Can you tell me if this the correct firmware: OpenSDA/PEMicro/2016-02-08/MSD-DEBUG-FRDM-KL25Z_Pemicro_v118.SDA at master · savoca/OpenSDA · GitHub ...or can you give me the link to the correct firmware? Re: KITPF09FRDMPGM – Wrong Board Included? Hello @ErikaC, as I am a colleague from d_j: Can you please check his question and provide us with information, which firmware is needed for this board? We both can not establish the connection as the "start" button is inactive. We both use Win11, not Win10 as suggested by the documentation. Thank you in advance. Best regards, Florian Re: KITPF09FRDMPGM – Wrong Board Included? @ErikaC can you continue with the support? Re: KITPF09FRDMPGM – Wrong Board Included? Hello @ErikaC, can you please give us any hint or ask other colleagues? Thank you in advance. Best regards, Florian Re: KITPF09FRDMPGM – Wrong Board Included? Hello @d_j @florian_arndt  Let me check and see if I can send you a video! Re: KITPF09FRDMPGM – Wrong Board Included? Please solder female headers onto the KL25 side. Re: KITPF09FRDMPGM – Wrong Board Included? Hello @d_j @florian_arndt  I don’t think a video is necessary at this point. First, please note that connector J21 does not interfere with the PF09 board. Second, please find attached the firmware for the PF09 board. I tested it on my side, and it is working correctly. Hope this helps! Best regards, Erika Re: KITPF09FRDMPGM – Wrong Board Included? Hi Erika, thank you for your answer! Here are my steps: 1. I've checked J21 and can confirm, there ist no contact to the upper board 2. I've downloaded your firmware file 2. I've pressed reset button and connected USB to the OpenSDA connector 3. I've copied the firmware file in the explorer drive BOOTLOADER 4. I've connected USB to KL25Z USB connector Unfortunately, the status in the NXP GUI still keeps switching between "NOT CONNECTED" and "DISCONNECTED," and the Start button remains grayed out.
View full article
デンバーのモバイルアプリ開発会社が企業にとって良い選択肢である理由は何ですか? デンバーのモバイルアプリ開発NXPについては、デジタルアイデアをカスタム機能、直感的なインターフェース、安全な統合、信頼性の高いバックエンドシステムを備えたスケーラブルなiOSやAndroidアプリケーションへと変換するお手伝いをします。これらのサービスはお客様エンゲージメント、ビジネスオートメーション、ペイメント、リアルタイム機能、その他のデジタル要件をサポートできます。JPLOFT は、ビジネス目標やユーザーニーズに沿ったカスタマイズされたモバイルアプリケーションを開発しています。
View full article
Power consumption management Given that the energy prices are now through the roof and in the next few months they are aiming to reach the Sun, there is a question what can be done to minimise the impact. I am sure many of you are also in the same position as I am where at the company the "policy" or rather custom was so far to keep everything switched on all the time, for system maintenance, remote access or for any other reasons. Today morning, after reading an article about "High percentage of companies may not make it due to the energy prices" it occurred to me we can proactively do something about it by setting strict power management policies across the company. So now I wonder, what are you all doing about this, and if you did manage this before, what did you find the best way of going with this? Power settings group policies? A third party application/system? Ask the users nicely to turn everything off when they leave for the day and then enforce it with regular beatings? Any insights from those who are already doing this for a long time? Power solution Re: Power consumption management The question you have raised - how to implement company-wide power management policies to reduce energy costs - is a general IT and facilities management topic and falls outside the scope of NXP product technical support.
View full article
功耗管理 鉴于能源价格目前已飙升至天价,并且在接下来的几个月里,它们的目标是达到太阳的高度,那么问题在于,我们可以采取哪些措施来最大限度地减少其影响。 我相信你们中的许多人也和我一样,公司一直以来的“政策”(或者说惯例)是让所有设备始终保持开启状态,无论是为了系统维护、远程访问还是其他任何原因。 今天早上,我读了一篇关于“由于能源价格上涨,很大一部分公司可能无法生存”的文章后,想到我们可以通过在公司范围内制定严格的电源管理单元政策来积极应对这种情况。 所以现在我想知道,你们都是怎么做的?如果你们以前成功解决过这个问题,你们觉得最好的方法是什么? 电源设置组策略?第三方应用程序/系统?先好好跟用户说,让他们下班时把所有设备都关掉,然后用定期殴打来强制执行? 那些长期从事这项工作的人有什么经验分享吗? 电源解决方案 Re: Power consumption management 您提出的问题——如何实施公司范围内的电源管理单元策略以降低能源成本——属于一般的 IT 和设施管理主题,超出了 NXP 产品技术支持的范围。
View full article
No bclk, LRCK using i2s peripheral on RW612 zephyr As a student intern i'm currently working on the i2s example in zephyr. i modified to code so i could output a sound using an audio amplifier and a speaker. after configuring the pins in MCUXpresso config tools, i have managed to get a signal on MCLK on J1.7 after adding  IO_MUX_SetPinMux(IO_MUX_MCLK); in to the main. But adding  IO_MUX_SetPinMux(IO_MUX_FC1_I2S); doesn't show anything on J1.15, 13 and 9. Bellow is my code: /*  * Copyright (c) 2020 Antmicro <www.antmicro.com>  *  * SPDX-License-Identifier: Apache-2.0  */   #include #include #include #include #include #include "fsl_io_mux.h" #define AUDIO_SAMPLE_FREQ (44100) #define AUDIO_SAMPLES_PER_CH_PER_FRAME (128) #define AUDIO_NUM_CHANNELS (2) #define AUDIO_SAMPLES_PER_FRAME                                                \     (AUDIO_SAMPLES_PER_CH_PER_FRAME * AUDIO_NUM_CHANNELS) #define AUDIO_SAMPLE_BYTES (3) #define AUDIO_SAMPLE_BIT_WIDTH (24) #define AUDIO_FRAME_BUF_BYTES (AUDIO_SAMPLES_PER_FRAME * AUDIO_SAMPLE_BYTES) #define I2S_PLAY_BUF_COUNT (500) #define I2S_DEV_NODE_TX DT_ALIAS(i2s_node0) static const struct device *host_i2s_tx_dev; static struct k_mem_slab i2s_tx_mem_slab; static char tx_buffer[AUDIO_FRAME_BUF_BYTES * I2S_PLAY_BUF_COUNT]; static struct i2s_config i2s_tx_cfg; static int ret; static void init(void) {     printk("INIT ENTERED\n");         //configure tx device     host_i2s_tx_dev = DEVICE_DT_GET_OR_NULL(I2S_DEV_NODE_TX);     if (host_i2s_tx_dev == NULL) {      printk("I2S TX device not found\n");      exit(-1);     }     if (!device_is_ready(host_i2s_tx_dev)) {         printk("I2S TX device not ready\n");         exit(-1);     }     printk("I2S TX device ready\n");     k_mem_slab_init(&i2s_tx_mem_slab, tx_buffer, AUDIO_FRAME_BUF_BYTES,             I2S_PLAY_BUF_COUNT);     // configure i2s for audio playback     i2s_tx_cfg.word_size = AUDIO_SAMPLE_BIT_WIDTH;     i2s_tx_cfg.channels = AUDIO_NUM_CHANNELS;     i2s_tx_cfg.format = I2S_FMT_DATA_FORMAT_I2S;     i2s_tx_cfg.options = I2S_OPT_BIT_CLK_CONTROLLER |                          I2S_OPT_FRAME_CLK_CONTROLLER;     i2s_tx_cfg.frame_clk_freq = AUDIO_SAMPLE_FREQ;     i2s_tx_cfg.block_size = AUDIO_FRAME_BUF_BYTES;     i2s_tx_cfg.mem_slab = &i2s_tx_mem_slab;     i2s_tx_cfg.timeout = -1;     ret = i2s_configure(host_i2s_tx_dev, I2S_DIR_TX, &i2s_tx_cfg);     if (ret != 0) {         printk("i2s_configure failed with %d error\n", ret);         exit(-1);     }         } int main(void) {     printk("MAIN START\n");     IO_MUX_SetPinMux(IO_MUX_FC1_I2S);     IO_MUX_SetPinMux(IO_MUX_MCLK);     init();             printk("INIT FINISHED\n");     void *tx_mem_block;     uint32_t phase = 0;     const uint32_t tone_freq = 1000;     const int32_t amplitude = 0x200000;   /* moderate 24-bit volume */     bool started = false;     while (true) {                 ret = k_mem_slab_alloc(&i2s_tx_mem_slab,                        &tx_mem_block,                        K_FOREVER);                         printk("BUFFER ALLOCATED\n");         if (ret != 0) {             printk("TX buffer allocation failed\n");             continue;         }         uint8_t *buf = tx_mem_block;         for (int i = 0; i < AUDIO_SAMPLES_PER_CH_PER_FRAME; i++) {             int32_t sample;             /* Generate 1 kHz square-wave tone */             if (phase < (AUDIO_SAMPLE_FREQ / 2)) {                 sample = amplitude;             } else {                 sample = -amplitude;             }             phase += tone_freq;             if (phase >= AUDIO_SAMPLE_FREQ) {                 phase -= AUDIO_SAMPLE_FREQ;             }             /* Left channel - 24 bit */             *buf++ = sample & 0xFF;             *buf++ = (sample >> 8) & 0xFF;             *buf++ = (sample >> 16) & 0xFF;             /* Right channel - same signal */             *buf++ = sample & 0xFF;             *buf++ = (sample >> 8) & 0xFF;             *buf++ = (sample >> 16) & 0xFF;         }         printk("BEFORE I2S_WRITE\n");         ret = i2s_write(host_i2s_tx_dev,                 tx_mem_block,                 AUDIO_FRAME_BUF_BYTES);         printk("AFTER I2S_WRITE %d\n", ret);         if (ret != 0) {             printk("i2s_write failed: %d\n", ret);             k_mem_slab_free(&i2s_tx_mem_slab, tx_mem_block);             continue;         }         /* Start TX after the first buffer has been queued */         if (!started) {             printk("BEFORE WRITE\n");             ret = i2s_trigger(host_i2s_tx_dev,                       I2S_DIR_TX,                       I2S_TRIGGER_START);             printk("AFTER WRITE %d\n", ret);             if (ret != 0) {                 printk("I2S start failed: %d\n", ret);                 return ret;             }             printk("I2S TX started\n");             started = true;         }     }     return 0; } I've added comments to find out what part of the code is being executed. my serial monitor is showing that the printing stops after a few cycles. I suspect that the buffer gets filled after a few cycles makes the program stop.  IS there anyone that can assist me in making this project work? Thank you in advance Re: No bclk, LRCK using i2s peripheral on RW612 zephyr To have a common ground for your project development, please help me providing the following: Zephyr version (please clarify if downstream or upstream repository). Base I2S Zephyr example. Please confirm if you are using FRDM-RW612. Set Kconfigs (in prj.conf file) Share the overlay being used (if any). Regarding your applied pin mux settings "IO_MUX_SetPinMux(IO_MUX_FC1_I2S);" this should be defined at device tree/overlay level in an I2S node assigned to a flexcomm instance. Could you please clarify if you have defined the I2S node in your device tree? Also, could you please clarify if the shared oscilloscope capture is from the MCLK output pin? Re: No bclk, LRCK using i2s peripheral on RW612 zephyr First off all thank you reponse, - version 4.4.1 upstream repository - example zephyr/sample s/drivers/i2s/output Main modifications compared to the original i2s/output example: 1. Removed RX path The original project was designed for RX/TX operation. RX-related code was removed because the goal is audio playback only (TX). 2. Changed audio format to 24-bit word_size = 24 to match the intended 24-bit audio output format. 3. Changed waveform generation Replaced the sine wave with a 1 kHz square wave. 4. Changed buffer handling Instead of sending a finite number of buffers, audio data is generated continuously inside the while loop. Goal: provide continuous audio output. 5. Added RW612-specific pin mux configuration Added: IO_MUX_SetPinMux(IO_MUX_FC1_I2S); IO_MUX_SetPinMux(IO_MUX_MCLK); - I'm making use of the FRDM-RW612 - prj.conf: CONFIG_LOG=y CONFIG_I2S=y CONFIG_I2S_LITEX_RX_BLOCK_COUNT=500 CONFIG_I2S_LITEX_DATA_BIG_ENDIAN=n CONFIG_ETH_LITEX_LITEETH=n CONFIG_PRINTK=y CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y - app.overlay / { aliases { i2s-node0 = &flexcomm1; }; }; &flexcomm1 { compatible = "nxp,lpc-i2s"; pinctrl-0 = <&pinmux_flexcomm1_i2s>; pinctrl-names = "default"; status = "okay"; }; The oscilloscope picture is from the MCLK output pin. Re: No bclk, LRCK using i2s peripheral on RW612 zephyr I have tested the i2s_output example vanilla and it generates properly the I2S signals.  Could you please confirm that the measurements of I2S_BCLK, I2S_DATA & I2S_WS are being taken from the following header connections of the FRDM board? I2S_DATA - J1.2 I2S_WS - J1.4 I2S_BCLK - J2.12 Also, I noticed that you are setting the following LITEX configurations: CONFIG_I2S_LITEX_RX_BLOCK_COUNT=500 CONFIG_I2S_LITEX_DATA_BIG_ENDIAN=n CONFIG_ETH_LITEX_LITEETH=n These configurations are meant to use along Litex-enabled hardware from another vendor, while these might not be applying to your project build, please replace them with Flexcomm specific configurations as below adjusted to your app requirements: CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS Additionally, please remove the "IO_MUX_SetPinMux(IO_MUX_FC1_I2S);" call, since this is being configured from the device tree description. Please let me know if this information helps. Re: No bclk, LRCK using i2s peripheral on RW612 zephyr Thank you, I was really able to benefit from your replies. Following your suggestions, I made the following changes: Added: CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT=4 removed the  LITEX configurations. Removed the "IO_MUX_SetPinMux(IO_MUX_FC1_I2S) I did not add:  CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS because I could not find this Kconfig option anywhere in my Zephyr tree. I searched through the driver sources and only found references to CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT = 4 Regarding the signal measurements, I initially measured on: J1.15,13 & 7 due to seeing them configured on the pinmux to flexcomm1   I repeated the measurements on the pins you specified and obtained the following results: I2S_DATA (J1.2): No observable signal I2S_WS   (J1.4): ~51 kHz square wave I2S_BCLK (J2.12):  ~2.46 MHz square wave So at the moment I can observe MCLK, BCLK and WS signals, but I do not observe activity on the DATA pin. Could you please advise whether the absence of a DATA signal suggests an issue with the transmitted audio samples, I2S configuration, or if there is another aspect I should investigate next? Re: No bclk, LRCK using i2s peripheral on RW612 zephyr Hi @Zakintern, glad to know you made progress. From your last log, it seems that the writings are performed per the defined configuration you have set "CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT = 4", which defines the I2S TX queue to 4 blocks, please try by adjusting the number of blocks as per your application requirements. As a side note, the configuration "CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS" has been added to Zephyr main branch, it might be available to be used on Zephyr v4.5.0 release. Please let me know if this helps. Re: No bclk, LRCK using i2s peripheral on RW612 zephyr After troubling shooting I've found out that the The first several i2s_write() calls return successfully but the application eventually blocks inside: printk("BEFORE I2S_WRITE\n");         ret = i2s_write(host_i2s_tx_dev,                 tx_mem_block,                 AUDIO_FRAME_BUF_BYTES);         printk("AFTER I2S_WRITE %d\n", ret); It looks like the buffers are being queued but it eventually fills up. The hardware may not be consuming the queued audio data? Re: No bclk, LRCK using i2s peripheral on RW612 zephyr Hi Roman,  Thanks for point this out. I've made sure to download the 4.5 version of zephyr which includes  CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT=8 CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS=8 These are also my correct configuration.  My serial monitor  shows that I2S right happens successfully, but the the log eventually stops without outputting any data on the data pin GPIO8 J1.   It looks like the buffer eventually fills up and noting gets freed up by the hardware.  Re: No bclk, LRCK using i2s peripheral on RW612 zephyr Hi @Zakintern, thanks for providing more details. Could you please clarify if you have tried the i2s_output example no modifications done (vanilla)? To follow up on this regard, I'd suggest to first test the base example and then implement your modifications accordingly, since the base example works properly and can serve as reference to know the required API flow to output the data through the hardware. I tested the example and I'm able to see data in the mentioned pin (header J1 terminal 2 from the FRDM board), please make sure to do the measurement in this pin, as GPIO8 is the I2S_WS terminal; GPIO9 is the I2S_DATA terminal. Re: No bclk, LRCK using i2s peripheral on RW612 zephyr The base example does work now, I've managed to get it to work after changing CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT from 8 to 16 in the prj.conf. Thank you for your help, I will use this as a base and implement my modifications.
View full article
S32K322 定制板:调试器无法连接,RESET_b 保持低电平 你好 , 我使用的是 S32K 322 MCU,该板是预开发空白芯片,不是量产板。我没有更改任何与 HSM 相关的设置,我使用的是 S32DS 版本 3.6.10。在使用 Flash Debug 进行调试时,出现上述消息,调试无法进行,因此我想咨询一下。 谢谢你的帮助 这是李 Re: S32K322 custom board: debugger cannot connect, RESET_b stays low 您好, 安全调试消息可能是结果,而不是根本原因。由于这是定制板,并且 RESET_b 保持低电平,我首先会调查硬件相关的问题,例如电源、复位电路或外部设备保持 RESET_b 钳位。处于复位状态的设备无法被调试器访问,即使未启用安全调试,也可能导致出现此消息。   BR,彼得 Re: S32K322 custom board: debugger cannot connect, RESET_b stays low 此外,我还使用了 Multilink Universal FX Port G Mini 10 针 jtag。
View full article
BCLKは使わず、LRCKはRW612 Zephyrのi2sペリフェラルを使っています 学生インターンとして、現在Zephyrでi2sの例を作っています。コードに合わせて、オーディオアンプとスピーカーを使って音を出力できるように改造しました。MCUXpresso設定ツールでピンを設定した後、J1.7にMCLK信号を追加することに成功しました。 IO_MUX_SetPinMux ( IO_MUX_MCLK ); を main に挿入します。 しかし、 IO_MUX_SetPinMux ( IO_MUX_FC1_I2S ); を実行しても、J1.15、13、9 には何も表示されません。以下が私のコードです。 /* * 著作権 (c) 2020 Antmicro < www.antmicro.com > * * SPDX-License-Identifier: Apache-2.0 */   #include #include #include #include #include #include "fsl_io_mux.h" #define AUDIO_SAMPLE_FREQ ( 44100 ) #define AUDIO_SAMPLES_PER_CH_PER_FRAME ( 128 ) #define AUDIO_NUM_CHANNELS ( 2 ) #define AUDIO_SAMPLES_PER_FRAME                                                \ ( AUDIO_SAMPLES_PER_CH_PER_FRAME * AUDIO_NUM_CHANNELS ) #define AUDIO_SAMPLE_BYTES ( 3 ) #define AUDIO_SAMPLE_BIT_WIDTH ( 24 ) #define AUDIO_FRAME_BUF_BYTES ( AUDIO_SAMPLES_PER_FRAME * AUDIO_SAMPLE_BYTES ) #define I2S_PLAY_BUF_COUNT ( 500 ) #define I2S_DEV_NODE_TX DT_ALIAS (i2s_node0) static const struct device * host_i2s_tx_dev ; static struct k_mem_slab i2s_tx_mem_slab ; static char tx_buffer [ AUDIO_FRAME_BUF_BYTES * I2S_PLAY_BUF_COUNT ]; static struct i2s_config i2s_tx_cfg ; static int ret ; static void init ( void ) {     printk ( "INIT ENTERED \n " );         //送信デバイスの設定     host_i2s_tx_dev = DEVICE_DT_GET_OR_NULL ( I2S_DEV_NODE_TX );     if ( host_i2s_tx_dev == NULL ) {      printk ( "I2S TXデバイスが見つかりません\n " );      終了( -1 )​    }     if ( ! device_is_ready ( host_i2s_tx_dev )) {         printk ( "I2S TXデバイスが準備できていません\n " );         終了( -1 )​    }     printk ( "I2S TXデバイス準備完了\n " );     k_mem_slab_init ( & i2s_tx_mem_slab , tx_buffer , AUDIO_FRAME_BUF_BYTES ,             I2S_PLAY_BUF_COUNT );     オーディオ再生のためのi2Sの設定     i2s_tx_cfg .ワードサイズ= AUDIO_SAMPLE_BIT_WIDTH ;     i2s_tx_cfg。チャネル = AUDIO_NUM_CHANNELS;     i2s_tx_cfg.format = I2S_FMT_DATA_FORMAT_I2S ;​​     i2s_tx_cfg . options = I2S_OPT_BIT_CLK_CONTROLLER |                          I2S_OPT_FRAME_CLK_CONTROLLER ;     i2s_tx_cfg . frame_clk_freq= AUDIO_SAMPLE_FREQ ;     i2s_tx_cfg . block_size= AUDIO_FRAME_BUF_BYTES ;     i2s_tx_cfg . mem_slab= & i2s_tx_mem_slab ;     i2s_tx_cfg.timeout = -1 ;​​​     ret = i2s_configure ( host_i2s_tx_dev , I2S_DIR_TX , & i2s_tx_cfg );     if ( ret != 0 ) {         printk ( "i2s_configure が%dエラーで失敗しました\n " , ret );         終了( -1 )​    }         } int main ( void ) {     printk ( "メイン開始\n " );     IO_MUX_SetPinMux ( IO_MUX_FC1_I2S );     IO_MUX_SetPinMux ( IO_MUX_MCLK );     init ();             printk ( "初期化が完了しました\n " );     void * tx_mem_block ;     uint32_t phase = 0 ;     const uint32_t tone_freq = 1000 ;     const int32_t amplitude = 0x200000 ; /* 中程度の 24 ビット音量 */     bool started = false ;     while ( true ) {                 ret = k_mem_slab_alloc ( & i2s_tx_mem_slab ,                        & tx_mem_block 、                        K_FOREVER );                         printk ( "バッファが割り当てられました\n " );         if ( ret != 0 ) {             printk ( "TXバッファの割り当てに失敗しました\n " );             続く;      }         uint8_t * buf = tx_mem_block ;         for ( int i = 0 ; i < AUDIO_SAMPLES_PER_CH_PER_FRAME ; i ++ ) {             int32_tサンプル;             /* 1 kHz の矩形波トーンを生成する */             if ( phase < ( AUDIO_SAMPLE_FREQ / 2 )) {                 サンプル=振幅; }それ以外{                 サンプル= -振幅;        }             phase += tone_freq ;             if ( phase >= AUDIO_SAMPLE_FREQ ) {                 phase -= AUDIO_SAMPLE_FREQ ;        }             /* 左チャネル - 24ビット */             * buf ++ = sample & 0xFF ;             * buf ++ = ( sample >> 8 ) & 0xFF ;             * buf ++ = ( sample >> 16 ) & 0xFF ; /* 右チャネル - 同じ信号 */             * buf ++ = sample & 0xFF ;             * buf ++ = ( sample >> 8 ) & 0xFF ;             * buf ++ = ( sample >> 16 ) & 0xFF ;      }         printk ( "BEFORE I2S_WRITE \n " );         ret = i2s_write ( host_i2s_tx_dev ,                 tx_mem_block 、                 オーディオフレームバッファバイト);         printk ( "AFTER I2S_WRITE %d \n " , ret );         if ( ret != 0 ) {             printk ( "i2s_write に失敗しました: %d \n " , ret );             k_mem_slab_free ( & i2s_tx_mem_slab , tx_mem_block );             続く;      }         /* 最初のバッファがキューに入れられた後に送信を開始する */         if ( !開始) {             printk ( "書き込み前\n " );             ret = i2s_trigger ( host_i2s_tx_dev ,                       I2S_DIR_TX 、                       I2S_TRIGGER_START );             printk ( "AFTER WRITE %d \n " , ret );             if ( ret != 0 ) {                 printk ( "I2S 開始に失敗しました: %d \n " , ret );                 return ret ;        }             printk ( "I2S TX が開始されました\n " );             開始= true ;      }    }     0を返す; } コードのどの部分が実行されているかを把握するために、コメントを追加しました。シリアルモニターを見ると、印刷は数回のサイクル後に停止していることがわかります。バッファが数サイクル後にいっぱいになり、プログラムが停止するのではないかと推測しています。 このプロジェクトを成功させるために助けてくれる人はいますか? よろしくお願いします Re: No bclk, LRCK using i2s peripheral on RW612 zephyr プロジェクト開発の共通基盤を築くため、以下の情報をご提供いただけますようお願いいたします。 Zephyr版(下流リポジトリかアップストリームかを明確にしてください)。 ベースのI2S Zephyrの例。 FRDM-RW612をご使用かどうかご確認ください。 Kconfigsを設定します(prj.confファイル内)。 使用しているオーバーレイ(もしあれば)を共有してください。 適用されたピン多重化設定「IO_MUX_SetPinMux(IO_MUX_FC1_I2S);」については、flexcommインスタンスに割り当てられたI2Sノードのデバイスツリー/オーバーレイレベルで定義する必要があります。デバイスツリーでI2Sノードを定義しているか教えていただけますか? また、共有されるオシロスコープのキャプチャがMCLK出力ピンからのものかどうかも教えていただけますか? Re: No bclk, LRCK using i2s peripheral on RW612 zephyr まずは、ありがとうございました。 - バージョン4.4.1 アップストリームリポジトリ - 例:Zephyr/サンプルS/ドライバ/i2/出力 元のi2s/出力例と比較した主な変更点: 1. RXパスの削除 元のプロジェクトはRX/TX運用を想定して設計されました。 RX関連のコードは、目的は音声再生のみ(TX)であるため削除されました。 2. オーディオフォーマットを24ビットに変更 word_size = 24 意図された24ビットオーディオ出力フォーマットに合わせるために。 3. 波形生成の変更 正弦波を1kHzの方形波に置き換えました。 4. バッファ処理の変更 有限のバッファを送る代わりに、whileループ内でオーディオデータが連続的に生成されます。 目標:連続オーディオ出力を提供すること。 5. RW612専用ピンマルチマックス構成の追加 追加:IO_MUX_SetPinMux(IO_MUX_FC1_I2S); IO_MUX_SetPinMux(IO_MUX_MCLK); - FRDM-RW612を使っています - prj.conf: CONFIG_LOG=y CONFIG_I2S=y CONFIG_I2S_LITEX_RX_BLOCK_COUNT=500 CONFIG_I2S_LITEX_DATA_BIG_ENDIAN=n CONFIG_ETH_LITEX_LITEETH=n CONFIG_PRINTK=y CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y - App.オーバーレイ / { 別名 { i2S-node0 = &flexcomm1; }; }; &flexcomm1 { 互換 = "NXP,LPC-i2s"; pinCtrl-0 = <&pinmux_flexcomm1_i2s>; pinCtrl-names = "default"; status = "OK"; }; オシロスコープの映像はMCLK出力ピンからのものです。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr i2s_outputのサンプルをそのままテストしたところ、I2S信号が正しく生成されました。 I2S_BCLK、I2S_DATA、I2S_WSの寸法が、FRDMボードの以下のヘッダー接続から取られていることを確認していただけますか? I2S_DATA - J1.2 I2S_WS - J1.4 I2S_BCLK - J2.12 また、以下のLITEX設定を行っていることに気づきました。 CONFIG_I2S_LITEX_RX_BLOCK_COUNT=500 CONFIG_I2S_LITEX_DATA_BIG_ENDIAN=n CONFIG_ETH_LITEX_LITEETH=n これらの設定は、他社製のLitex対応ハードウェアで使用することを想定していますが、お客様のプロジェクト構成には適用されない可能性があります。その場合は、以下のFlexcomm固有の設定に置き換えて、アプリケーションの要件に合わせて調整してください。 CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS さらに、デバイスツリーの説明から設定されているため、「IO_MUX_SetPinMux(IO_MUX_FC1_I2S);」という呼び出しを削除してください。 この情報がお役に立てば幸いです。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr ありがとうございました。いただいたご回答は大変参考になりました。 ご提案いただいた内容に基づき、以下の変更を行いました。 追加: CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT=4 LITEXの設定を削除しました。 "IO_MUX_SetPinMux(IO_MUX_FC1_I2S)" を削除しました。 私は以下を追加しなかった。 CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS なぜなら、ZephyrツリーのどこにもこのKconfigオプションが見つからなかったからです。ドライバの情報源を検索しましたが、以下の参照しか見つかりませんでした。 CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT = 4 信号測定に関して、私は最初に以下の項目で測定を行いました。 J1.15,13 & 7 は、それらが flexcomm1 へのピンmux 上に構成されているのを見たためである。   ご指定いただいたピンで測定を繰り返したところ、以下の結果が得られました。 I2S_DATA (J1.2):観測可能な信号なし I2S_WS (J1.4):約51kHzの矩形波 I2S_BCLK (J2.12): 約2.46MHz方形波 現時点ではMCLK、BCLK、WSの信号は観測できますが、DATAピンの活動は観察できません。 DATA信号がないことは、送信されたオーディオサンプルやI2S構成に問題があるのか、それとも次に調べるべき他の点があるのか教えていただけますか? Re: No bclk, LRCK using i2s peripheral on RW612 zephyr こんにちは、 @Zakintern さん。進歩があったと聞いて嬉しいです。 前回のログから、書き込みはあなたが設定した「CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT = 4」の定義設定に従って行われているようで、これによりI2S TXキューは4ブロックに定義されています。アプリケーションの要件に応じてブロック数を調整して試してみてください。 ちなみに、構成「CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS」はZephyrメインブランチに追加されており、Zephyr v4.5.0リリースで使えるかもしれません。 これが役に立つかどうか教えてください。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr 問題のある射撃の後、最初の数回の i2s_write() 通話は正常に戻ってくるものの、最終的にアプリケーションが内部でブロックしてしまうことがわかりました: printk ( "BEFORE I2S_WRITE \n " );         ret = i2s_write ( host_i2s_tx_dev ,                 tx_mem_block 、                 オーディオフレームバッファバイト);         printk ( "AFTER I2S_WRITE %d \n " , ret ); バッファはキューに格納されているようですが、最終的には満杯になってしまいます。ハードウェアがキューにされたオーディオデータを消費していないのかもしれません。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr こんにちは、ローマンさん。 ご指摘ありがとうございます。 Zephyrの4.5バージョンも確実にダウンロードしました。これには以下が含まれます CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT = 8 CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS = 8 これらは私の正しい設定でもあります。 シリアルモニターではI2Sの読み取りが正常に行われていることが示されていますが、最終的にログはデータピンGPIO8 J1にデータが出力されないまま停止します。 どうやらバッファが最終的に満杯になり、ハードウェアによって解放されるものは何もないようだ。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr こんにちは、 @Zakintern さん。詳細情報を提供していただきありがとうございます。 バニラ版で「変更なし」というi2s_output例を試したことがあるか、教えていただけますか? この点についてさらに踏み切ると、まずベースサンプルをテストし、それに応じて修正を実装することをお勧めします。ベースサンプルは正常に動作し、ハードウェアを通じてデータを出力するために必要なAPIフローの参照にもなります。 サンプルをテストしたところ、記載されているピン(FRDMボードのヘッダーJ1の端子2)でデータを確認できました。GPIO8はI2S_WS端子、GPIO9はI2S_DATA端子ですので、必ずこのピンで測定を行ってください。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr 基本となるサンプルは現在正常に動作しています。 変更後、なんとか動作させることができました prj.conf の CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT を 8 から 16 に変更します。 ご協力ありがとうございます。これをベースに、私なりの修正を加えて実装させていただきます。
View full article
RW612 Zephyr 芯片上不使用 BCLK,LRCK 使用 I2S 外设。 作为一名学生实习生,我目前正在研究 Zephyr 中的 i2s 示例。我修改了代码,以便可以使用音频放大器和扬声器输出声音。在MCUXpresso配置工具中配置引脚后,我成功地在J1.7上获得了MCLK信号。 在主函数中调用 IO_MUX_SetPinMux ( IO_MUX_MCLK ); 但添加 IO_MUX_SetPinMux ( IO_MUX_FC1_I2S ); 在 J1.15、13 和 9 引脚上没有任何输出。以下是我的代码: /* 版权所有 (c) 2020 Antmicro < www.antmicro.com > * * SPDX 许可证标识符:Apache-2.0 */   #include #include #include #include #include #include "fsl_io_mux.h" #define AUDIO_SAMPLE_FREQ ( 44100 ) #define AUDIO_SAMPLES_PER_CH_PER_FRAME ( 128 ) #define AUDIO_NUM_CHANNELS ( 2 ) #define AUDIO_SAMPLES_PER_FRAME                                                \ (每帧每通道音频采样数*音频通道数) #define AUDIO_SAMPLE_BYTES ( 3 ) #define AUDIO_SAMPLE_BIT_WIDTH ( 24 ) #define AUDIO_FRAME_BUF_BYTES ( AUDIO_SAMPLES_PER_FRAME * AUDIO_SAMPLE_BYTES ) #define I2S_PLAY_BUF_COUNT ( 500 ) #define I2S_DEV_NODE_TX DT_ALIAS (i2s_node0) static const struct 设备 * host_i2s_tx_dev ; static struct k_mem_slab i2s_tx_mem_slab ; static char tx_buffer [ AUDIO_FRAME_BUF_BYTES * I2S_PLAY_BUF_COUNT ]; static struct i2s_config i2s_tx_cfg ; static int ret ; static void init ( void ) {     printk ( "初始化已输入\n " );         //配置发送设备     host_i2s_tx_dev = DEVICE_DT_GET_OR_NULL ( I2S_DEV_NODE_TX );     如果( host_i2s_tx_dev == NULL ) {      printk ( "未找到 I2S TX 设备\n " );      退出( -1 ) ;    }     如果( ! device_is_ready ( host_i2s_tx_dev )) {         printk ( "I2S TX 设备未就绪\n " );         退出( -1 ) ;    }     printk ( "I2S TX 设备已准备就绪\n " );     k_mem_slab_init ( & i2s_tx_mem_slab , tx_buffer , AUDIO_FRAME_BUF_BYTES ,             I2S_PLAY_BUF_COUNT );     // 配置 i2s 进行音频播放     i2s_tx_cfg.word_size​​= AUDIO_SAMPLE_BIT_WIDTH ;     i2s_tx_cfg.channels = AUDIO_NUM_CHANNELS ;​​     i2s_tx_cfg.format = I2S_FMT_DATA_FORMAT_I2S ;​​     i2s_tx_cfg.options = I2S_OPT_BIT_CLK_CONTROLLER |​​                          I2S_OPT_FRAME_CLK_CONTROLLER ;     i2s_tx_cfg.frame_clk_freq​​= AUDIO_SAMPLE_FREQ ;     i2s_tx_cfg.block_size​​= AUDIO_FRAME_BUF_BYTES ;     i2s_tx_cfg.mem_slab​​= & i2s_tx_mem_slab ;     i2s_tx_cfg.timeout = -1 ;​​​     ret = i2s_configure ( host_i2s_tx_dev , I2S_DIR_TX , & i2s_tx_cfg );     如果( ret != 0 ) {         printk ( "i2s_configure 失败,错误代码为%d \n " , ret );         退出( -1 ) ;    }         } int main ( void ) {     printk ( "主程序开始\n " );     IO_MUX_SetPinMux ( IO_MUX_FC1_I2S );     IO_MUX_SetPinMux ( IO_MUX_MCLK );     初始化();             printk ( "初始化完成\n " );     void * tx_mem_block ;     uint32_t phase = 0 ;     const uint32_t tone_freq = 1000 ;     const int32_t amplitude = 0x200000 ; /* 适中的 24 位音量 */     bool started = false ;     while ( true ) {                 ret = k_mem_slab_alloc ( & i2s_tx_mem_slab ,                        & tx_mem_block ,                        K_FOREVER );                         printk ( "缓冲区已分配\n " );         如果( ret != 0 ) {             printk ( "TX 缓冲区分配失败\n " );             继续;      }         uint8_t * buf = tx_mem_block ;         for ( int i = 0 ; i < AUDIO_SAMPLES_PER_CH_PER_FRAME ; i ++ ) {             int32_t样本; /* 生成 1 kHz 方波信号 */             如果(相位< (音频采样频率/ 2 )){                 样本=振幅; }别的{                 样本= -振幅;        }             phase += tone_freq ;             如果(相位>= AUDIO_SAMPLE_FREQ ){                 phase -= AUDIO_SAMPLE_FREQ ;        } /* 左声道 - 24 位 */             * buf ++ = sample & 0xFF ;             * buf ++ = ( sample >> 8 ) & 0xFF ;             * buf ++ = ( sample >> 16 ) & 0xFF ; /* 右声道 - 相同信号 */             * buf ++ = sample & 0xFF ;             * buf ++ = ( sample >> 8 ) & 0xFF ;             * buf ++ = ( sample >> 16 ) & 0xFF ;      }         printk ( "在 I2S_WRITE 之前\n " );         ret = i2s_write ( host_i2s_tx_dev ,                 tx_mem_block ,                 AUDIO_FRAME_BUF_BYTES );         printk ( "I2S_WRITE %d后\n " , ret );         如果( ret != 0 ) {             printk ( "i2s_write 失败: %d \n " , ret );             k_mem_slab_free ( & i2s_tx_mem_slab , tx_mem_block );             继续;      } /* 第一个缓冲区数据入队后开始发送 */         如果( !开始){             printk ( "写入之前\n " );             ret = i2s_trigger ( host_i2s_tx_dev ,                       I2S_DIR_TX ,                       I2S_TRIGGER_START );             printk ( "写入%d后\n " , ret );             如果( ret != 0 ) {                 printk ( "I2S 启动失败: %d \n " , ret );                 返回ret ;        }             printk ( "I2S TX 已启动\n " );             started = true ;      }    }     返回0 ; } 我添加了注释,以便找出正在执行的代码部分。我的串口监测显示,打印在几个循环后就停止了。我怀疑是缓冲区在几次循环后被填满导致程序停止运行。 有没有人可以协助我完成这个项目? 先感谢您 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr 为了便于项目开发,请您提供以下信息: Zephyr 版本(请说明是下游仓库还是上游仓库)。 基本的 I2S Zephyr 示例。 请确认您是否正在使用 FRDM-RW612。 设置 Kconfigs(在 prj.conf 文件中) 请分享所使用的叠加层(如有)。 关于您应用的引脚复用设置“IO_MUX_SetPinMux(IO_MUX_FC1_I2S);”,这应该在分配给 flexcomm 实例的 I2S 节点的设备树/覆盖层级别定义。请问您是否已在设备树中定义了 I2S 节点? 另外,能否请您确认一下,共享示波器捕获的信号是否来自 MCLK 输出引脚? Re: No bclk, LRCK using i2s peripheral on RW612 zephyr 首先感谢您的回复。 - 版本 4.4.1 上游仓库 - 例如 zephyr/sample s/drivers/i2s/output 与原 i2s/output 示例相比的主要修改: 1. 移除 RX 路径 原项目设计用于接收/发送操作。 RX 相关代码已被移除,因为目标仅为音频播放 (TX)。 2. 将音频格式更改为 24 位 单词长度 = 24 为了匹配预期的 24 位音频输出格式。 3. 波形生成方式的改变 将正弦波替换为 1 kHz 的方波。 4. 更改了缓冲区处理 音频数据不是发送有限数量的缓冲区,而是在 while 循环内持续生成。 目标:提供持续的音频输出。 5. 添加了RW612专用引脚复用配置 新增:IO_MUX_SetPinMux(IO_MUX_FC1_I2S); IO_MUX_SetPinMux(IO_MUX_MCLK); 我正在使用FRDM-RW612 - prj.conf: 配置日志=y CONFIG_I2S=y CONFIG_I2S_LITEX_RX_BLOCK_COUNT=500 CONFIG_I2S_LITEX_DATA_BIG_ENDIAN=n CONFIG_ETH_LITEX_LITEETH=n CONFIG_PRINTK=y 配置控制台=y CONFIG_UART_CONSOLE=y - app.overlay / { 别名 { i2s-node0 = &flexcomm1; }; }; &flexcomm1 { 兼容 = "nxp,lpc-i2s"; pinctrl-0 = <&pinmux_flexcomm1_i2s>; pinctrl-names = "default"; 状态 = "正常"; }; 示波器图像来自 MCLK 输出引脚。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr 我测试了 i2s_output 示例的原始版本,它能正确生成 I2S 信号。 请确认 I2S_BCLK、I2S_DATA 和 I2S_WS 的测量值是否取自 FRDM 板的以下接头连接? I2S_DATA - J1.2 I2S_WS - J1.4 I2S_BCLK - J2.12 另外,我注意到您正在设置以下 LITEX 配置: CONFIG_I2S_LITEX_RX_BLOCK_COUNT=500 CONFIG_I2S_LITEX_DATA_BIG_ENDIAN=n CONFIG_ETH_LITEX_LITEETH=n 这些配置旨在与来自其他供应商的 Litex 硬件配合使用,但可能不适用于您的项目版本,请根据您的应用程序要求,将其替换为如下所示的 Flexcomm 特定配置: CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS 另外,请删除“IO_MUX_SetPinMux(IO_MUX_FC1_I2S);”调用,因为这是设备树描述中配置的。 请告诉我这些信息是否有帮助。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr 非常感谢,您的回复让我受益匪浅。 根据您的建议,我做了以下修改: 已添加:CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT=4 移除了LITEX配置。 移除了“IO_MUX_SetPinMux(IO_MUX_FC1_I2S) 我没有添加: 配置 I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS 因为我在 Zephyr 配置树中找不到这个 Kconfig 选项。我查阅了驱动程序源代码,只找到了对以下内容的参考,引用: CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT = 4 关于信号测量,我最初是在以下条件下进行的测量: J1.15、13 和 7,因为在引脚复用器上看到它们配置为 flexcomm1   我重复测量了您指定的引脚,并得到了以下结果: I2S_DATA (J1.2):未观察到信号 I2S_WS(J1.4):约 51 kHz 方波 I2S_BCLK (J2.12): 约 2.46MHz 方波 目前我可以观察到 MCLK、BCLK 和 WS 信号,但是没有观察到 DATA 引脚上的活动。 请问,缺少 DATA 信号是否意味着传输的音频样本存在问题、I2S 配置存在问题,或者我接下来应该调查其他方面? Re: No bclk, LRCK using i2s peripheral on RW612 zephyr 嗨@Zakintern ,很高兴得知你取得了进展。 从您上次的日志来看,写入操作似乎是按照您定义的配置“CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT = 4”执行的,该配置将 I2S TX 队列定义为 4 个块,请尝试根据您的应用程序需求调整块数。 另外,配置“CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS”已添加到 Zephyr 主分支,它可能可以在 Zephyr v4.5.0 版本中使用。 请告诉我这是否有帮助。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr 经过故障排除,我发现前几次 i2s_write() 调用都能成功返回,但应用程序最终会在内部阻塞: printk ( "在 I2S_WRITE 之前\n " );         ret = i2s_write ( host_i2s_tx_dev ,                 tx_mem_block ,                 AUDIO_FRAME_BUF_BYTES );         printk ( "I2S_WRITE %d后\n " , ret ); 缓冲区似乎正在排队,但最终还是会被填满。硬件可能没有消耗已排队的音频数据? Re: No bclk, LRCK using i2s peripheral on RW612 zephyr 嗨,罗曼, 谢谢指出这一点。 我已经下载了 Zephyr 的 4.5 版本,其中包含…… CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT = 8 CONFIG_I2S_MCUX_FLEXCOMM_DMA_TX_BLOCKS = 8 这些也是我的正确配置。 我的串口监测显示 I2S 连接成功,但日志最终停止,没有在数据引脚 GPIO8 J1 上输出任何数据。 看起来缓冲区最终会被填满,硬件也无法释放任何空间。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr @Zakintern你好,感谢你提供更多细节。 请问您是否尝试过未做任何修改的 i2s_output 示例(原版)? 关于这一点,我建议先测试基础示例,然后根据示例进行相应的修改,因为基础示例运行正常,可以作为参考,帮助您了解通过硬件输出数据所需的 API 流程。 我测试了示例,并且能够在所提到的引脚(FRDM 板上的 J1 端子 2)中看到数据,请务必在此引脚上进行测量,因为 GPIO8 是 I2S_WS 端子;GPIO9 是 I2S_DATA 端子。 Re: No bclk, LRCK using i2s peripheral on RW612 zephyr 基础示例现在可以正常运行了。 修改之后,我终于让它运行起来了。 在 prj.conf 中将 CONFIG_I2S_MCUX_FLEXCOMM_TX_BLOCK_COUNT 从 8 改为 16。 谢谢你的帮助,我会以此为基础进行修改。
View full article
i.MX95 DPU95: Single eDPI Frame Synchronized to External TE Dear NXP support, we are developing support for a MIPI-DSI command-mode display with iMX95, using Android 15.0.0_2.0.0. Continuous eDPI command-mode output is already working, including panel RAM retention while the display pipeline is idle. The remaining issue is how to transmit exactly one complete image per external panel TE event. We are using the DPU95 Linux driver (`dpu95-framegen.c` and `dpu95-extdst.c`). ExtDst is configured with `SYNC_MODE=SINGLE` and external kick mode, but this appears to control synchronization/shadow updates rather than single-frame output. We also tested enabling FrameGen and clearing `FGENABLE` about 13.6 µs later. We still observe: - two `DISENGCFG_FRAMECOMPLETE0` interrupts; - FrameGen frame index advancing from 0 to 2; - `SEQUENCECOMPLETE` / `ENSTS` clearing after about 33.4 ms. Stop, DSI drain, and restart all succeed. Could NXP please clarify: 1. Is one complete eDPI image transfer per external TE event supported on i.MX95? 2. If yes, what is the recommended DPU95/DSI register sequence? 3. How should FrameGen be started/stopped to guarantee exactly one frame? 4. Does ExtDst `SYNC_MODE=SINGLE` relate only to configuration synchronization? 5. How is external TE routed into the DPU95/DSI logic? The i.MX95 Reference Manual does not contain the detailed DPU95 register descriptions. If a complete DPU95 register/programming guide is available under NDA or restricted access, please advise how to obtain it. We can provide instrumented source code and register/interrupt traces if useful. Thanks Best Regards Pier Re: i.MX95 DPU95: Single eDPI Frame Synchronized to External TE Hello, Thanks for the detailed description and measurements. Since this involves the DPU95 internal programming sequence and external TE routing, the required register-level information is covered by restricted documentation and cannot be shared on the public Community. Please create a support case and provide the BSP/kernel version, silicon revision, panel TE timing and routing, and time-correlated traces of the TE signal, DSI traffic, and frame-complete events. The restricted documentation must be shared through your local NXP office. Please contact them regarding access to the applicable documentation. Best regards/Saludos, Aldo. Re: i.MX95 DPU95: Single eDPI Frame Synchronized to External TE Hi @AldoG, thanks for the clarifications. Best Regards Pier
View full article
S32K322 custom board: debugger cannot connect, RESET_b stays low Hello , I'm using the S32K 322 MCU, and the board is a pre-development blank chip, not a production board. I haven't changed any HSM-related settings, and I'm using S32DS version 3.6.10. While debugging with Flash Debug, the above message appears and debugging is not working, so I would like to inquire. Thanks, for your helps This is Lee Re: S32K322 custom board: debugger cannot connect, RESET_b stays low Hi, The Secure Debug message may be a consequence rather than the root cause. Since this is a custom board and RESET_b remains low, I would first investigate hardware-related issues such as power supplies, reset circuitry, or an external device holding RESET_b asserted. A device held in reset cannot be accessed by the debugger, which can lead to this message even when Secure Debug is not enabled.   BR, Petr Re: S32K322 custom board: debugger cannot connect, RESET_b stays low additionally i use Multilink Universal FX Port G Mini 10 pin jtag 
View full article
S32K322カスタムボード:デバッガが接続できず、RESET_bが低いままです こんにちは 、 私はS32K 322 MCUを使っていて、そのボードは開発前のブランクチップで、量産ボードではありません。HSM関連の設定は一切変更しておらず、S32DSバージョン3.6.10を使用しています。Flash Debugでデバッグしていると上記のメッセージが表示され、デバッグがうまくいかないので、質問したいです。 ご協力ありがとうございました。 こちらはリーです Re: S32K322 custom board: debugger cannot connect, RESET_b stays low こんにちは、 セキュアデバッグメッセージは、根本原因ではなく、結果である可能性があります。これはカスタムボードであり、RESET_bがローのままであるため、まずは電源、リセット回路、またはRESET_bをアサート状態に保持している外部デバイスなど、ハードウェア関連の問題を調査します。リセット中のデバイスはデバッガでアクセスできず、Secure Debugが有効でなくてもこのメッセージが発生することがあります。   BR、ペトル Re: S32K322 custom board: debugger cannot connect, RESET_b stays low さらに、Multilink Universal FX Port G Mini 10ピンJTAGを使用しています。
View full article