Multi Source Translation Content

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

Multi Source Translation Content

ディスカッション

ソート順:
S32G3プラットフォームソフトウェア統合を用いてS32G3上でマルチコアアプリケーションを有効化する こんにちは; 私たちは、S32G399a に適用されたドキュメント AN13750 の手順を再現しようとしていますが、IPCF モジュールのビルドに関して懸念があります。 ドキュメントには「 0001-ipc-multi-instances.patch 」を使用するように記載されています。しかし、これはS32G3には適用されません。 S32G3の場合、ドキュメントのすべての手順を進めてデュアルブートに成功するために、IPCFモジュールのビルドをどのように進めればよいか説明する方法はありますか? Re: Enabling Multicore Application on S32G3 using S32G3 Platform Software Integration こんにちは、 @TrikiIkram 投稿ありがとうございます。 1. S32G3に関するAN13750と同様の参考資料となるような公開文書がまだ存在しないことをお詫び申し上げます。 2. 現時点では、S32G3での使用方法のステップバイステップガイドではなく、AN13750を参考として使うことをおすすめします。S32G3プラットフォーム上でIPCFを設定する際は、マルチインスタンスサンプルではなく単一インスタンスサンプルを直接試すことをおすすめします。そうすれば、前述のパッチを適用する必要がなくなります。 BR チェイン
記事全体を表示
SoC: i.MX8QXP (S1MX8QX5AVLF1BBと表記) Re: SoC: i.MX8QXP (marked S1MX8QX5AVLF1BB)brick こんにちは、 @Potesz さん ご質問は何ですか?問題について、より詳しい情報を提供してください。 BR
記事全体を表示
调用 SDK 闪存 API,但 S32K144 的 D_Flash 中缺少一些数据 大家好: 我在我的项目(S32K144)中调用 SDK flash init API,然后调用 Flash erase 和 Flash write。然后我发现 Flash 中的一些数据变成了 0xFF。然后我尝试在 Flash 初始化和 Flash 擦除/写入之间添加延迟,然后数据就正常了。然后我尝试检查 while (!(FTFC->FSTAT & FTFC_FSTAT_CCIF_MASK)); 而不是使用延迟函数。但它还是失败了。所以,我想知道是否需要延迟一段时间,等待闪存模块在硬件层完成初始化。 BR 洛基 Re: Call SDK flash API and some data in D_Flash missing of S32K144 嗨@Loky , 你使用的是哪个驱动程序版本? 不建议使用旧版 SDK 驱动程序;应改用 RTD 驱动程序。 Flash_Init 函数不会修改闪存内容。 擦除和写入功能已经在内部轮询 CCIF 标志,因此无需在应用程序代码中轮询它。 您观察到的现象可能与缓存或闪存预取缓冲区有关。请尝试禁用它们(PCCCR、OCMDR0),并检查问题是否仍然存在。 此致, 丹尼尔 Re: Call SDK flash API and some data in D_Flash missing of S32K144 嗨,丹尼尔: 这是我们目前使用的SDK Flash驱动程序版本。我的同事告诉我,S32K144 只有 SDK Flash 驱动程序,没有 RTD 驱动程序。能否简要解释一下SDK驱动程序出了什么问题?如果您有S32K144 RTD驱动程序,能否分享给我? 我尝试了您提到的方法(禁用缓存),但没有成功。 当上电复位或低压检测RESET时,我会将一些信息记录到闪存中,并且同一扇区中还有一些其他数据。我将读取所有行业数据,更新信息并重写该行业相关内容。但我有一些新的发现。我发现读取闪存之前数据就已经是 0xFF 了。如果在执行擦除或写入指令时闪存意外断电,再次上电后,该扇区中的数据是否会变为 0xFF?我会继续调查这个问题,也许是我的软件出现了漏洞。 BR 洛基 Re: Call SDK flash API and some data in D_Flash missing of S32K144 嗨@Loky , 该SDK是过时的软件。NXP 现在提供 RTD 驱动程序,其中也包括 Flash 驱动程序,包括 MCAL 层和与传统 SDK 等效的底层 IP 层。 您可以点击此处下载RTD软件包: https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K1-RTD44-D 请确保您使用的是 RTD 发行说明中指定的兼容版本的 S32 Design Studio。 你是否也禁用了预取缓冲区? OCMDR0 – 程序闪存预取缓冲区 OCMDR1 – 数据闪存预取缓冲区 如果在擦除或编程操作进行期间闪存意外断电,NXP 无法保证数据完整性。受影响的闪存内容将变为未定义状态,并且可能包含 ECC 错误。 考虑使用模拟 EEPROM 功能。 它是为此目的而优化的。 请参阅 AN11983 – 使用 S32K1xx EEPROM 功能 https://www.nxp.com/docs/en/application-note/AN11983.pdf 第五章 S32K1xx 电压骤降检测 第六章 S32K1xx 新快速写入模式 此致, 丹尼尔 Re: Call SDK flash API and some data in D_Flash missing of S32K144 嗨,丹尼尔: 谢谢你寄来的RTD包裹,我明天会查看。 我还没试过禁用预取缓冲区。你是说在擦除并写入闪存之前,我应该同时禁用缓存和预取吗?我也会试试。 是的,我今天确实遇到了一个无法纠正的 ECC 错误,它触发了硬故障。除了在设备通电后再次擦除该扇区之外,还有其他方法可以解决这个 ECC 问题吗?我认为这种方法不适用于我目前的软件设计。 谢谢你的建议。我将与同事们讨论模拟EEPROM。 BR 洛基
記事全体を表示
LPC845 の GPIO への DMA 書き込みが失敗します LPC845 DMAはGPIOを0xA0000000で書き込めないようです GPIO書き込みを実行しようとすると、DMA0 ->ERRINT=1 というエラーが発生します。 トラブルシューティングの手順として、宛先アドレスをRAMに変更したところ、ERRINTフラグは発生しなくなりました。 これが本当に不可能なのかどうかを断定できる情報源は見つかりませんでした。 決定的ではないものの、その可能性を示唆する参考文献を見つけました: https://community.nxp.com/t5/LPC-Microcontrollers/Lpc-824-DMA-to-GPIO/m-p/650903 どなたか確認してもらえますか?
記事全体を表示
LS1028ARDb Yocto-SDKビルドの問題 こんにちは、 私はここに書かれている指示に従おうとしています。 https://github.com/nxp-qoriq/yocto-sdk LS1028ARDBのOSおよびSDKイメージを構築するために walnascarがデフォルトブランチのようですが、上記のリンク先の指示に従うとビルドが失敗します。 MKDIR Yocto-SDK CD YOCTO-SDK Repo init -u https://github.com/nxp-qoriq/yocto-sdk-b ワルナスカー リポジトリ同期 --強制同期 。./setup-env -m ls1028ardb bitbake fsl-image-networking これは3つのエラーで失敗します: - sysvinitインストールエラー - DTCネイティブコンパイルエラー - util-linux-native コンパイルエラー このドキュメントの手順も試してみましたが、誤った手順を回避したとしても、別の方法で失敗します(指定された「ls-image-desktop」が存在しません)。 https://docs.nxp.com/bundle/UG10081_LLDP_L6.1.55_2.2.0/page/topics/how_to_download_flexbuild.html flexbuildオプションも見つけ、ここに記載されている手順に従いました。 https://github.com/nxp/flexbuild git clone https://github.com/NXP/flexbuild.git CDフレックスビルド make docker ls1028ardb_defconfig を作成します すべてを作る これも以下のエラーで失敗します。 W: binfmt_misc が /proc/mounts に見つかりません -- マウントされていません OSイメージやSDKを構築する際の正しい手順は何ですか? よろしくお願いします。 マット Re: ls1028ardb yocto-sdk build problems 以下の最新のYocto Linux SDKリリースを使用してください。 今回のリリースには、以下に示すソースコードとビルド済みイメージの両方が含まれています。 ソースリリースファイルは、 https://github.com/nxp-qoriq/yocto-sdk/tree/walnascar-lsdkにあります。 ブランチ: walnascar-lsdk Linux BSP対応の基板、機能、既知の問題については、リリースノートをご参照ください Yocto用レイヤースケープソフトウェア開発キットユーザーガイド: UG10374.pdf Layerscape Linux SDK ユーザーガイド: UG10381.pdf 以下のプリコンパイル済みイメージは、 https://www.nxp.com/lgfiles/llsdk/walnascar/ にホストされています。 件 名称 説明 1 boot_ls1028ardb_lts_6.12.tgz LS1028ARDBのブートパーティションイメージ 2 boot_ls1043ardb_lts_6.12.tgz LS1043ARDBのブートパーティションイメージ 3 boot_ls1046ardb_lts_6.12.tgz LS1046ARDBのブートパーティションイメージ 4 boot_lx2160ardb-rev2_lts_6.12.tgz LX2160ARDBのブートパーティションイメージ 5 firmware_ls1028ardb_uboot_emmcboot.img LS1028ARDB eMMCブート用のBSPファームウェアイメージ 6 firmware_ls1028ardb_uboot_sdboot.img LS1028ARDB SDブート用BSPファームウェアイメージ 7 firmware_ls1028ardb_uboot_xspiboot.img LS1028ARDB XSPIブート用のBSPファームウェアイメージ 8 firmware_ls1043ardb_uboot_nandboot.img LS1043ARDB NANDブート用のBSPファームウェアイメージ 9 firmware_ls1043ardb_uboot_norboot.img LS1043ARDB NORブート用BSPファームウェアイメージ 10 firmware_ls1043ardb_uboot_sdboot.img LS1043ARDB SDブート用BSPファームウェアイメージ 11 firmware_ls1046ardb_uboot_emmcboot.img LS1046ARDB eMMCブート用のBSPファームウェアイメージ 12 firmware_ls1046ardb_uboot_qspiboot.img LS1046ARDB QSPIブート用のBSPファームウェアイメージ 13 firmware_ls1046ardb_uboot_sdboot.img LS1046ARDB SDブート用BSPファームウェアイメージ 14 firmware_lx2160ardb-rev2_uboot_emmcboot.img LX2160ARDB eMMCブート用BSPファームウェアイメージ 15 firmware_lx2160ardb-rev2_uboot_sdboot.img LX2160ARDB SDブート用BSPファームウェアイメージ 16 firmware_lx2160ardb-rev2_uboot_xspiboot.img LX160ARDB xSPIブート用BSPファームウェアイメージ 17 fsl-image-networking-ls1028ardb.rootfs.tar.gz Layerscape rootfsは基本的なネットワーク機能をサポートしていますLS1028ARDB 18 fsl-image-networking-full-ls1028ardb.rootfs.tar.gz Layerscape rootfsはLS1028ARDB上で完全なネットワーク機能をサポートしています 19 fsl-image-networking-ls1043ardb.rootfs.tar.gz Layerscape rootfsは基本的なネットワーク機能をサポートしていますLS1043ARDB 20 fsl-image-networking-full-ls1043ardb.rootfs.tar.gz Layerscape rootfsはLS1043ARDB上で完全なネットワーク機能をサポートしています 21 fsl-image-networking-ls1046ardb.rootfs.tar.gz Layerscape rootfsは基本的なネットワーク機能をサポートしていますLS1046ARDB 22 fsl-image-networking-full-ls1046ardb.rootfs.tar.gz Layerscape rootfsはLS1046ARDB上で完全なネットワーク機能をサポートしています 23 fsl-image-networking-lx2160ardb-rev2.rootfs.tar.gz Layerscape rootfsは基本的なネットワーク機能をサポートしていますLX2160ARDB 24 fsl-image-networking-full-lx2160ardbrev2.rootfs.tar.gz Layerscape rootfsはLX2160ARDB上で完全なネットワーク機能をサポートしています 25 フレックスインストーラー ツールの展開 画像展開の詳細はユーザーガイドの文書をご参照ください。 Debian Flexbuilder Linux SDKを使ってDebian Linux OSを使うこともできます。 Re: ls1028ardb yocto-sdk build problems この投稿の後、Flexbuild readme.md に載っていない前提条件がいくつかあるDebian Linux SDKユーザーガイドを発見しました。これにより、LS1028ARDB用のDebianベースのイメージを生成できるようです。 Yocto環境に似た方法でSDKを生成する手順は何ですか?それとも、標準的なクロスコンパイラをお勧めしますか? Debianソリューションは今やこのプラットフォームの推奨OSなのでしょうか?Yoctoは組み込みシステムにより適しているように感じます。 よろしくお願いします。 マット
記事全体を表示
RT1064 400kHzでのI2C通信異常 RT1064デバイスのI2C2インターフェースはモジュールAに接続されます。通信異常は400kHzで発生しますが、100kHzでは正常に動作します 1. 同じシリーズ内の異なるモデルのモジュールBを400kHzで接続することは問題ありません 2. 波形の観点からは、ホストクロックが伸縮され、モジュールAに接続された後に復元される異常に相当します 追伸:デバイスのI2Cドライバーポートを別の1064デバイスに実装し、モジュールAをテストしましたが、400kで問題ありません その理由は何でしょうか? 1. 図1 モジュールA ロジックアナライザの400kHzにおける異常波形 2. 図2:モジュールAの100kHzにおけるロジックアナライザの波形 3. 図3:モジュールBの400kHzにおける波形 i.MXRT 106x Re: RT1064 I2C communication abnormality at 400kHz こんにちは、 @foreverwlh2025 さん。 追加のご説明ありがとうございます。これは非常に重要な指摘です。   あなたの観察からすると、問題はモジュールA自体の異常というよりも、2段ADUM1251アイソレーションリンクによる400 kHz I2Cのタイミングマージン不足に関連している可能性が高いようです。 ライズ時間が規格内であっても、RT1064ではLPI2Cマスター側の400kHz構成、特にMCFGR2[FILTSCL/FILTSDA]およびMCCR0/MCCR1の確認を推奨します。なぜなら、RT1064のマスター同期レイテンシはライズ時間だけでなく、デジタルフィルターやタイミングパラメータ設定にも影響を受けるからです。 プロジェクトで実際に使用されている構成を読み、RT1064リファレンスマニュアル第47章の表47-5「LPI2C例タイミング構成」と比較することをお勧めします。 特に、選択したクロック条件における以下の設定が、サンプル値と一致しているかどうかを確認してください。 I2Cモジュールクロックソース 目標ボーレート:400Kbps PRESCALE FILTSCL / FILTSDA セソルド クロックロ CLKHI データビデオ お役に立てれば幸いです。 よろしくお願いいたします。 5月 Re: RT1064 I2C communication abnormality at 400kHz 追加情報として、昨日ポジショニングにいくつかの進展がありました: ハードウェア拡張は以下の通りです: マザーボード:RT1064--- ADUM1251 3.3V~5V サブボード:ADUM1251 - モジュールA 5V~3.3V 検証の結果、ハードウェアリンクの2層にADUM1251を追加した後、モジュールAで通信異常が発生したことが判明した。しかし、ADUM1251を取り外すと、400kで通信が正常に戻った。その理由は何でしょうか? 追伸:ハードウェアエンジニアは、ADUM1251は通信レイテンシを増加させるだけで、それ以外には影響がないと考えています Re: RT1064 I2C communication abnormality at 400kHz こんにちは、@mayliu1 当社の製品はまもなくリリースされ、数日間この問題を調査してきました。できるだけ早くご返信いただければ、大変ありがたいです! Re: RT1064 I2C communication abnormality at 400kHz ハイ 補足情報 1.2人のハードウェアエンジニアはオシロスコープで問題の波形を確認し、上昇時間は100+ns以内の要件を満たしました 2. I2Cの初期化および読み書き機能ドライバを別のタイプのRT1064デバイスに移植し、モジュールAを問題なくテストしました 以下の図は、別のデバイスモジュールAの波形を示しています。テスト用ロジックアナライザー 疑い: 1.ストレッチ後に時計が異常に回復するなら、他にどんな理由が考えられますか 2. 前回の返信で言及されたMCFGR2のような設定設定専用機能はありますか?I2C初期化プロセスで設定するインターフェースは見当たりませんでした ----上昇時間が満たされた場合、これらのレジスタ設定を考慮する必要はないのでしょうか? Re: RT1064 I2C communication abnormality at 400kHz こんにちは、 @foreverwlh2025 さん、 私たちの製品にご関心を寄せ、コミュニティをご利用いただき、本当にありがとうございます。 これはモジュールAの問題ではなく、その特定のRT1064 LPI2C2バスの400 kHzのタイミングマージンの問題だと思います。 RT1064では、LPI2Cのタイミングはバスの上昇時間、バス負荷、プルアップ抵抗、グリッチフィルタ レイテンシの影響を受けます。 リファレンス・マニュアルRT1064RMでは、上昇時間が長いと同期レイテンシが増加すると説明されています。(第47.3.1.4章を参照)タイミングパラメータ) マスターグリッチフィルターMCFGR2[FILTSCL/FILTSDA]は、**レイテンシ**がSCLの最低ロー/ハイ期間を下回るように設定されなければならず、RT1064はMCCR0/MCCR1の400 kbpsタイミング設定の例を提供しています。表47-5をご確認ください。LPI2Cのタイミング構成例 したがって、モジュールAがバスエッジをわずかに遅くしたり、実効負荷を変えたりすると、バスは400kHzで故障しても100kHzでは動作し続けることがあります。 お役に立てれば幸いです。 よろしくお願いいたします。 5月 Re: RT1064 I2C communication abnormality at 400kHz 10 MHzのLPI2C機能クロックは、RT1064リファレンスマニュアルの400 kbpsのタイミング設定例には記載されていません。 このクロックを使用すれば400kbpsのボーレートを生成することは可能ですが、自動生成されるタイミングパラメータは、特にtLOW、tHIGH、セットアップ/ホールドタイミング、およびデータ有効タイミングに関して、I2C仕様と照らし合わせて慎重に検証する必要があります。 デザインリスクを減らすために、リファレンス・マニュアルに示されている48 MHzなどの検証済みクロックソースを使用することが推奨されています。 Re: RT1064 I2C communication abnormality at 400kHz 以下は印刷設定です。どのパラメータを調整する必要があるでしょうか? 追伸:どうやら自動インターフェース割り当てによるようです Re: RT1064 I2C communication abnormality at 400kHz 60MHzと8MHzの両方を変更してみましたが、それでもうまくいきませんでした。下図の赤い枠で囲まれた部分は、修正後に印刷された値を示しており、マニュアルに記載されている値とは異なっています。 Re: RT1064 I2C communication abnormality at 400kHz こんにちは、 @foreverwlh2025 さん。 I2Cクロックを設定する方法はいくつかあります。 提案として、8 MHzと60 MHzを試してみるのも良いでしょう。この2つのクロック設定は比較的簡単に達成できます。 SDKのデモを使っています: 「evkmimxrt1064_lpi2c_edma_b2b_transfer_master」 方法1:LPI2Cクロックソースを60MHzに設定する 時計の分周器を0に設定するだけです。 方法2:LPI2Cクロックソースを8MHzに設定する MCUXpresso IDEsクロックツールを使い、以下の通りに設定してください。クロックソースとしてOSC_CLKを選択し、分周器を3に設定すると、LPI2C(I2C)モジュール用の8MHzクロックが生成されます。 お役に立てれば幸いです。 よろしくお願いいたします。 5月 Re: RT1064 I2C communication abnormality at 400kHz 現在のI2Cクロックは、SDK2_13_0-EVK-MIMXRT1064 \ ボード \ evkmimxrt1064 \ river_deamples \ lpi2cディレクトリ内のサンプル構成に基づいて構成されています。 #define LPI2C_CLOCK_SELECT(0U) #define LPI2C_CLOCK_DIVIDER(5U) CLOCK_SetMux(kCLOCK_Lpi2cMux、LPI2C_CLOCK_SELECT); CLOCK_SetDiv(kCLOCK_Lpi2cDiv、LPI2C_CLOCK_DIVIDER); ---正確な8MHzか48MHzをどうやって修正すればいいですか?(時計の木が見えないようですね) Re: RT1064 I2C communication abnormality at 400kHz こんにちは、 @foreverwlh2025 さん。 レジスタを直接設定してみるのも良いでしょう。 例えば、60 MHzのI2Cクロックを使用する場合、以下の構成を適用できます。 お役に立てれば幸いです。 よろしくお願いいたします。 5月 Re: RT1064 I2C communication abnormality at 400kHz 図に示すように、パラメータに対応するようにレジスタ設定を変更しようとしましたが、60MHzでは改善がありませんでした。良いモジュールでも8MHzでは正常に動作しません
記事全体を表示
iMX8M Plus - Flexspiチップセレクトピン i.MX8M Plus EVKでは、ECSPIチップ選択信号をGPIOピンで設定できます。 FlexSPIがGPIOベースのチップセレクト信号もサポートしているのか、それとも専用のFlexSPIチップセレクトピンのみが使えるのか確認していただけますか? 当社の要件に基づき、FlexSPIには2つのチップセレクト信号が必要です。FlexSPIデバイスを2台サポートするための推奨構成をご提案ください。 Re: iMX8M Plus - Flexspi chip select pin こんにちは@pengyong QSPIの2チップセレクトで何ができるでしょうか?これも私たちの要件です。もしCSのピン手段が不足している場合、チップセレクトがあるGPIOを使ってもいいのでしょうか?うまくいくなら Re: iMX8M Plus - Flexspi chip select pin こんにちは、 @Govind1807さん GPIOベースのチップセレクト信号を使うこともできます。しかし、FlexSPIフラッシュデバイスは2つしかありません。なぜGPIOをチップセレクト信号として使用するのですか? imx8mpには4つのFLEX SS信号があり、直接使用できます: https://github.com/nxp-imx/linux-imx/blob/5768b67a64961d932b7c50adf15ba3f5bfcc8f70/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h BR Re: iMX8M Plus - Flexspi chip select pin こんにちは@pengyong_zhang QSPIの2チップセレクトで何ができるでしょうか?これも私たちの要件からです。もしCSのピン手段が不足している場合、チップセレクトがあるGPIOを使ってもいいのでしょうか?それがうまくいくかどうかは?
記事全体を表示
iMX8M Plus - Flexspi 芯片选择引脚 在 i.MX8M Plus EVK 上,可以使用 GPIO 引脚配置 ECSPI 片选信号。 请问FlexSPI是否也支持基于GPIO的片选信号,还是只能使用FlexSPI专用的片选引脚? 根据我们的要求,FlexSPI 需要两个片选信号。请推荐支持两个FlexSPI设备的配置方案。 Re: iMX8M Plus - Flexspi chip select pin 嗨@pengyong 对于 QSPI 的两个片选信号,我们可以做什么?这也是我们的要求。如果缺少 CS 引脚,我们可以使用任何具有片选功能的 GPIO 吗?如果它有效的话 Re: iMX8M Plus - Flexspi chip select pin 你好@Govind1807 您可以使用基于 GPIO 的片选信号。但是,您只有两个 FlexSPI Flash 设备。为什么要使用GPIO作为片选信号? imx8mp 具有四个可直接使用的 FLEX SS 信号: https://github.com/nxp-imx/linux-imx/blob/5768b67a64961d932b7c50adf15ba3f5bfcc8f70/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h BR Re: iMX8M Plus - Flexspi chip select pin 嗨@pengyong_zhang , 对于 QSPI 的两个片选引脚,我们该如何实现?这也是我们的需求。如果没有 CS 引脚,我们是否可以使用任何具有片选功能的 GPIO?这样做是否可行?
記事全体を表示
Call SDK flash API and some data in D_Flash missing of S32K144 Hi team:  I call SDK flash init API in my project (S32K144), and then call Flash erase and Flash write. Then I find some data in Flash became to 0xFF. Then I try to add a Delay between Flash init and flash Erase/Write, and then the data is normal. And then I try to check while (!(FTFC->FSTAT & FTFC_FSTAT_CCIF_MASK)); instead of using delay function. But it still failed. So, I wonder if it has to delay some time to wait for the flash module to complete initialization on hardware layer. BR Loky Re: Call SDK flash API and some data in D_Flash missing of S32K144 Hi @Loky, Which driver version are you using? It is not recommended to use the legacy SDK drivers; RTD drivers should be used instead. The Flash_Init function does not modify flash contents. The erase and write functions already poll the CCIF flag internally, so there is no need to poll it in your application code. The behavior you observe may be related to cache or the flash prefetch buffer. Please try disabling them (PCCCR, OCMDR0) and check if the issue persists. Regards, Daniel Re: Call SDK flash API and some data in D_Flash missing of S32K144 Hi Daniel: This is the SDK Flash Driver Version now we are using. My colleague told me that S32K144 only has SDK Flash Driver and no RTD Driver. Could you briefly explain what's wrong with the SDK driver? And could you please share it to me if you have S32K144 RTD driver. I tried to use the methed you mentioned(Disable cache), but it didn't work. I will record some information in flash when power on reset or LVD reset,  and some other data is in the same sector.  I will read all sector data out and update information and rewrite to the sector. But I've had some new discoveries. I found that the data was already 0xFF before reading the flash. If the flash is accidentally powered off while executing erase or write instructions, it will cause the data in the sector to be 0xFF after power on again? I will continue to investigate this issue, maybe it is a bug in my software. BR Loky Re: Call SDK flash API and some data in D_Flash missing of S32K144 Hi @Loky, The SDK is legacy software. NXP now provides RTD drivers, which also include Flash drivers, both the MCAL layer and the low-level IP layer equivalent to the legacy SDK. You can download the RTD package here: https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K1-RTD44-D Please ensure that you use a compatible version of S32 Design Studio, as specified in the RTD Release Notes. Did you also disable the prefetch buffers? OCMDR0 – Program Flash prefetch buffer OCMDR1 – Data Flash prefetch buffer If the Flash is unexpectedly powered down while an erase or program operation is in progress, NXP cannot guarantee data integrity. The affected Flash contents become undefined and may contain ECC errors. Consider using the Emulated EEPROM functionality. It is optimized for this purpose. Please refer to AN11983 – Using the S32K1xx EEPROM Functionality https://www.nxp.com/docs/en/application-note/AN11983.pdf Chapter 5 S32K1xx brownout detection Chapter 6 S32K1xx new quick write mode Regards, Daniel Re: Call SDK flash API and some data in D_Flash missing of S32K144 Hi Daniel: Thanks for your RTD package, I'll check it tomorrow. I haven't tried to disable prefetch buffers yet. Do you mean I should disable both cache and prefetch before erase and write flash? I'll try it also. Yes, I did come across an uncorrectable ECC and it triggered Hardfault today. Except erasing this sector again after powering on the device, is there any way to fix this ECC issue? I think this way is not applicable to my current software design. Thank you for your suggestion. I will discuss the Emulated EEPROM with my colleagues. BR Loky
記事全体を表示
SL3S1013FTB0 RFID transponder schematic check This is the RFID transponder circuit we are using, and I would like you to check the schematic connections to see if they are correct. The circuit is catered for both self-powered and external (3.6V) powered configurations Self-power configuration -  R37 = DNP and connect 0 ohms to R35. External (3.6V) power configuration – R35 = DNP and connect 0 ohms to R37. Please let me know if my configurations are correct. Re: SL3S1013FTB0 RFID transponder schematic check Hello @pragashsangaran, Hope you are doing well. For UCODE G2iM, OUT pin is a digital output that can be used for tamper loop, a small external circuit or as indicator; these configurations require VDD pin to be externally suppled. If you populate R35, it will introduce a galvanic connection that will activate the "tamper indicator" bit, as per Tag Tamper Alarm feature (please see AN10940 FAQs on UCODE G2i, Chapter 16). Is this the intended purpose for your application? For external supply, the following configuration is required: Regards, Eduardo. Re: SL3S1013FTB0 RFID transponder schematic check Hi Eduardo. How can I configure this RFID chip for self-powered operation? Self-power means instead of supplying DC power to the chip, the RFID signal which converted to DC powers the chip.  Re: SL3S1013FTB0 RFID transponder schematic check Hi Eduardo, Are you saying that this chip cannot be configured to operate as a self-powered RFID transponder using RFID energy? need external power to power it up?
記事全体を表示
S32K3用のAES_ACCELサブシステムRMはどこで入手できますか? こんにちは、NXP 現在、 AES_ACCELモジュールの使い方を学んでいます。S32K3リファレンスマニュアルやHSEリファレンスマニュアルにはあまり情報が見つかりませんでした。AES_ACCELサブシステムリファレンス・マニュアルドキュメントには専用が記載されていますが、NXPのウェブサイトでは見つけられませんでした。リンクを教えていただけるか、ダウンロードできる場所を教えていただけませんか? 前もって感謝します。 シアンロン Re: Where to find AES_ACCEL Subsystem RM for S32K3? こんにちは@wuxianlong プライベートメッセージを送りました。
記事全体を表示
ls1028ardb yocto-sdk build problems Hi, I'm trying to follow the instructions here: https://github.com/nxp-qoriq/yocto-sdk to build the OS and SDK images for the LS1028ARDB It appears that walnascar is the default branch, but the build fails if i use the instructions at the link above. mkdir yocto-sdk cd yocto-sdk repo init -u https://github.com/nxp-qoriq/yocto-sdk -b walnascar repo sync --force-sync . ./setup-env -m ls1028ardb bitbake fsl-image-networking this fails with 3 errors: - sysvinit installation errors - dtc-native compile errors - util-linux-native compile errors I've also tried the instructions from this document which fail in a different way even if you work around the incorrect instructions (the specified "ls-image-desktop" does not exist): https://docs.nxp.com/bundle/UG10081_LLDP_L6.1.55_2.2.0/page/topics/how_to_download_flexbuild.html I also found the flexbuild option, and followed the instructions here: https://github.com/nxp/flexbuild git clone https://github.com/NXP/flexbuild.git cd flexbuild make docker make ls1028ardb_defconfig make all this also fails with the error: W: binfmt_misc not found in /proc/mounts -- not mounted What are the correct instructions for building the OS image and SDK? Regards Matt Re: ls1028ardb yocto-sdk build problems Please use the following latest Yocto Linux SDK release. The release includes both source code and prebuilt images as listed below: Source Release files are on https://github.com/nxp-qoriq/yocto-sdk/tree/walnascar-lsdk Branch: walnascar-lsdk Linux BSP Supported boards, Features, Known Issues, please refer to Release Notes Layerscape Software Development Kit User Guide for Yocto: UG10374.pdf Layerscape Linux SDK User Guide: UG10381.pdf The following precompiled images are hosted on https://www.nxp.com/lgfiles/llsdk/walnascar/ > # Name Description 1 boot_ls1028ardb_lts_6.12.tgz Bootpartition image for LS1028ARDB 2 boot_ls1043ardb_lts_6.12.tgz Bootpartition image for LS1043ARDB 3 boot_ls1046ardb_lts_6.12.tgz Bootpartition image for LS1046ARDB 4 boot_lx2160ardb-rev2_lts_6.12.tgz Bootpartition image for LX2160ARDB 5 firmware_ls1028ardb_uboot_emmcboot.img BSP firmware image for LS1028ARDB eMMC boot 6 firmware_ls1028ardb_uboot_sdboot.img BSP firmware image for LS1028ARDB SD boot 7 firmware_ls1028ardb_uboot_xspiboot.img BSP firmware image for LS1028ARDB XSPI boot 8 firmware_ls1043ardb_uboot_nandboot.img BSP firmware image for LS1043ARDB NAND boot 9 firmware_ls1043ardb_uboot_norboot.img BSP firmware image for LS1043ARDB NOR boot 10 firmware_ls1043ardb_uboot_sdboot.img BSP firmware image for LS1043ARDB SD boot 11 firmware_ls1046ardb_uboot_emmcboot.img BSP firmware image for LS1046ARDB eMMC boot 12 firmware_ls1046ardb_uboot_qspiboot.img BSP firmware image for LS1046ARDB QSPI boot 13 firmware_ls1046ardb_uboot_sdboot.img BSP firmware image for LS1046ARDB SD boot 14 firmware_lx2160ardb-rev2_uboot_emmcboot.img BSP firmware image for LX2160ARDB eMMC boot 15 firmware_lx2160ardb-rev2_uboot_sdboot.img BSP firmware image for LX2160ARDB SD boot 16 firmware_lx2160ardb-rev2_uboot_xspiboot.img BSP firmware image for LX2160ARDB xSPI boot 17 fsl-image-networking-ls1028ardb.rootfs.tar.gz Layerscape rootfs supports basic networking functionality on LS1028ARDB 18 fsl-image-networking-full-ls1028ardb.rootfs.tar.gz Layerscape rootfs supports full networking functionality on LS1028ARDB 19 fsl-image-networking-ls1043ardb.rootfs.tar.gz Layerscape rootfs supports basic networking functionality on LS1043ARDB 20 fsl-image-networking-full-ls1043ardb.rootfs.tar.gz Layerscape rootfs supports full networking functionality on LS1043ARDB 21 fsl-image-networking-ls1046ardb.rootfs.tar.gz Layerscape rootfs supports basic networking functionality on LS1046ARDB 22 fsl-image-networking-full-ls1046ardb.rootfs.tar.gz Layerscape rootfs supports full networking functionality on LS1046ARDB 23 fsl-image-networking-lx2160ardb-rev2.rootfs.tar.gz Layerscape rootfs supports basic networking functionality on LX2160ARDB 24 fsl-image-networking-full-lx2160ardbrev2.rootfs.tar.gz Layerscape rootfs supports full networking functionality on LX2160ARDB 25 flex-installer Deploy tools Please refer to the User Guide document for the detailed steps of image deployment. You also could use Debian flexbuilder Linux SDK to use Debian Linux OS.  Re: ls1028ardb yocto-sdk build problems after posting this, I discovered Debian Linux SDK User Guide which has some pre-requisites not listed in the flexbuild readme.md. This appears to allow me to generate a Debian based image for the LS1028ARDB.  What are the instructions for generating an SDK in a similar way to the Yocto environment? or do you recommend a standard cross-compiler? Is the Debian solution now the recommended OS for this platform? Yocto feels more appropriate for an embedded system. Regards Matt
記事全体を表示
Enabling Multicore Application on S32G3 using S32G3 Platform Software Integration Hello;  We are trying to reproduce the steps on doc AN13750 applied to the S32G399a, our concern is regarding the build of the IPCF modules.  In the doc it is said to use the "0001-ipc-multi-instances.patch" but this is not applicable on the S32G3  Is there a way to explain to us how to proceed the build of the IPCF modules in the case of the S32G3 in order to be able to go through all the steps in the document and succeed the dual boot. Re: Enabling Multicore Application on S32G3 using S32G3 Platform Software Integration Hello, @TrikiIkram  Thanks for your post. 1. Sorry that there is still not a public document for your reference, which would act as a similar reference as AN13750 for S32G3. 2. Currently, I suggest using AN13750 as a reference, not a step-by-step guide for using it on S32G3, for setup the IPCF on S32G3 platform, I suggest directly trying the single instance samples instead of the multi-instance sample, so that you will not need apply the patch mentioned. BR Chenyin
記事全体を表示
SR250 FRDM‑RW612 上的 uwbiot Zephyr 版本出现问题 — 缺少 rw612‑pinCtrl.h 您好, 我正在使用FRDM-RW612制作 SR250 UWBiot Zephyr 演示: 仓库:nxp-uwb/sr250-uwbiot-zephyr 设置: west init -l uwbiot-top west update Zephyr 版本:4.2.0 已试用 SDK:24.12.00和26.03.00(MCUX SDK 生成器) 问题 版本失败并出现以下情况: fatal error: nxp/rw/RW612-pinctrl.h: No such file or directory 我检查了什么 西部更新成功完成 modules/hal/nxp 存在 已检查 SDK 内容(设备/RW612) 已确认 rw612-pinCtrl.h 不存在于 SDK 或 仓库 中 问题 RW612-pinctrl.h 在哪里?预计从何而来? 它是单独的恩智浦Zephyr BSP/HAL软件包的一部分吗? 是否需要特定的 SDK + Zephyr 版本组合? Re: SR250 UWBiot Zephyr build issue on FRDM‑RW612 – missing RW612‑pinctrl.h 你好, 希望你一切都好。请您确认您是否已按照GitHub 上的 README 文件进行操作 - nxp-uwb/sr250-uwbiot-zephyr: SR250 UWBIOT SDK lite 版本 for ZephyrOS · GitHub ? 由于它是基于 Zephyr SDK 的,所以您无需从 MCUXpresso SDK 下载任何东西。 如果问题仍然存在,请分享您的操作日志。 顺祝商祺! 里卡多
記事全体を表示
SL3S1013FTB0 RFID应答器原理图检查 这是我们正在使用的RFID应答器电路,请您检查一下原理图连接是否正确。 该电路既适用于自供电配置,也适用于外部(3.6V)供电配置。 自供电配置 - R37 = DNP 并将 0 欧姆连接到 R35。 外部(3.6V)电源配置 – R35 = DNP 并将 0 欧姆连接到 R37。 请告诉我我的配置是否正确。 Re: SL3S1013FTB0 RFID transponder schematic check 你好@pragashsangaran , 希望你一切都好。 对于 UCODE G2iM,OUT 引脚是一个数字输出,可用于防拆回路、小型外部电路或作为指示器;这些配置需要外部提供 VDD 引脚。 如果 R35 被填充,它将引入一个电连接,从而激活“防篡改指示器”位,如标签防篡改报警功能所述(请参阅UCODE G2i 的 AN10940 常见问题解答,第 16 章)。这是您申请该申请的预期用途吗? 外部供电时,需要进行以下配置: 问候, 爱德华多。 Re: SL3S1013FTB0 RFID transponder schematic check 你好,爱德华多。 如何配置此RFID芯片以实现自供电运行?自供电是指芯片无需向其提供直流电源,而是由转换成直流电的RFID信号为芯片供电。 Re: SL3S1013FTB0 RFID transponder schematic check 你好,爱德华多, 你是说这款芯片不能配置成利用RFID能量作为自供电RFID应答器运行吗?需要外接电源才能启动吗?
記事全体を表示
imx95 M7 ブート こんにちは、 Cortex M7をU-Bootから起動する方法を教えていただけますか? cortex a55/ubootはM7のTCMにアクセスできないようで、そのためイメージをロードすることができません。一方、M7が0x9000 0000でリリースされると、M33はクラッシュした。 uboot バージョン 04.2025 では、uboot コマンド (bootaux、prepaux、stopaux) は全く効果がないようです。 M33上のSMを使用してM7を起動しようとしましたが、停止やブートベクターの変更はできますが、DDRメモリ上で解放するとエラーが発生します。 M7をubootまたはSMで正しく起動する方法、あるいはM7のDDRアクセスを許可する方法について、何かヒントをいただけますか? お手数ですが、よろしくお願いいたします。 Re: imx95 M7 boot こんにちは、 次のアプリケーションノートをご覧になることをお勧めします。 https://docs.nxp.com/bundle/AN14748/page/topics/introduction.html よろしくお願いいたします。 Re: imx95 M7 boot こんにちは、 ご返信よろしくお願いします。 残念ながら、あなたが言及したアプリケーションノートには、UbootからもM33のSMからもM7コアの起動方法が説明されていません。 また、M7にDDRアクセスを提供するプラットフォームの設定方法についても触れられていません。 これらのトピックについて手伝ってもらえますか?何かご提案はありますか?booaux、prepaux、stopauxコマンドはいつU-Bootに完全に実装され、使用可能になりますか? よろしくお願いいたします! Re: imx95 M7 boot こんにちは、 セクション4.7.4.1.5をご覧ください。i.MX Linuxユーザーガイド i.MX 95ページ。 よろしくお願いいたします。 Re: imx95 M7 boot 以下の手順に従うことで、なんとか動作させることができました。 fatload mmc 0:1 ${loadaddr} mcore-demos/imx95-15x15-evk_m7_TCM_hello_world.bin cp.b ${loadaddr} 0x203c0000 ${filesize} rproc stop 0 rproc 開始 0 ただし、そのためにはimx-system-マネージャの設定(imx95evk-configs/mx95evk.cfg)を編集する必要があります。アクセスを許可する必要があります A55非セキュアLMM用のTCMメモリ。 私の変更点(LMM_1をNOTIFYからALLに設定し、TCMとM7MIX領域をA55非セキュアに追加): -LMM_1 通知 +LMM_1 すべて -OCRAM EXEC、開始=0x0204C0000、サイズ=96K +M7MIX EXEC、開始=0x020380000、終了=0x02047FFFF +OCRAM EXEC、開始=0x020480000、サイズ=352K +M7MIX EXEC、開始=0x04A060000、終了=0x04A09FFF Rebuild: imx-system-managerフォルダ内の - make config=mx95evk cfg - perlの再構築ファイル用にchagesを処理します。その後、Yoctoでパケットを再構築します: bitbake -f -ccompile imx-system-マネージャ bitbake imx-system-マネージャ bitbake -f -ccompile imx-boot bitbake imx-boot その後、U-bootからTCMメモリにアクセスできます。 しかし、私には別の問題があります。U-Boot内のファイルシステムからM7コードをリアルタイムで更新する必要があるのです。しかし、そのコードはTCM地域には適合しません。だから私はDDRを使っているんです。コードは正常に起動でき、DDRで完全に実行・ロードされますが、u-bootを使ってリアルタイムで更新する方法がわかりません。なぜならu-bootは0x90000000からDDRにアクセスできるからです......。 M7コード使用地域は0x80000000...このメモリ領域は、imx-system-マネージャ(.cfg)だけでなく、u-bootソースを通じてもu-bootから利用できません。これは、2つの異なるLMM間でメモリを異なるメモリ領域に分離するために意図的に行われたものだと思います。 M33コード(imx-system-マネージャ)を使ってM7のコードを更新したいと思い、このLMM(m33)に両方のリージョンを追加しましたが、M7リージョンだけが完全に見えてしまいます(0x80000000...)。U-boot領域(0x90000000)は見えるが、m33側からはゼロが読み取れる... Re: imx95 M7 boot こんにちは、 私のシステムにはrprocはありませんが、bootauxがあります。このコマンドはU-Bootでは何も実行しません。 私はこうしてM7を始動させることができました。 イメージを0x88000000に読み込むと、Cortex AとM7で共有されている32MBのスペースがありますが、U-Bootから読み書きするにはdcacheを無効にする必要があります System Managerのrst.wコマンドでコアを停止し、cpu.wコマンドでブートベクターを0x8800 0000に設定し、再びrst.wでM7コアを起動します。 これは私には効果がありました。 幸運を
記事全体を表示
利用 S32G3 平台软件集成在 S32G3 上启用多核应用程序 你好; 我们正在尝试将文档 AN13750 中的步骤应用于 S32G399a,我们关注的是 IPCF 模块的构建。 文档中提到要使用“ 0001-ipc-multi-instances.patch ”。但这不适用于S32G3。 能否向我们解释一下,在 S32G3 的情况下,如何构建 IPCF 模块,以便能够按照文档中的所有步骤进行操作并成功实现双启动? Re: Enabling Multicore Application on S32G3 using S32G3 Platform Software Integration 你好, @TrikiIkram 感谢你的帖子。 1. 很抱歉,目前还没有公开文档供您参考,该文档可以作为 S32G3 的 AN13750 的类似参考。 2. 目前,我建议使用 AN13750 作为参考,而不是在 S32G3 上使用它的分步指南。对于在 S32G3 平台上设置 IPCF,我建议直接尝试单实例示例,而不是多实例示例,这样您就不需要应用提到的补丁了。 BR 陈银
記事全体を表示
FRDM-RW612 上での SR250 UWBiot Zephyr のビルド問題 – RW612-pinctrl.h が欠落している こんにちは、 私はFRDM-RW612上でSR250 UWBiot Zephyrデモを構築しています。 リポジトリ: nxp-uwb/sr250-uwbiot-zephyr 設定: west init -l uwbiot-top west update Zephyr バージョン: 4.2.0 試用したSDKバージョン: 24.12.00および26.03.00(MCUX SDK Builder) 問題 ビルドが以下のエラーで失敗します。 fatal error: nxp/rw/RW612-pinctrl.h: No such file or directory 私が確認したこと 西側アップデートが正常に完了しました modules/hal/nxp が存在する SDKの内容を確認しました(devices/RW612) SDKまたはリポジトリにRW612-pinctrl.hが存在しないことを確認しました。 質問 RW612-pinctrl.hはどこにありますか?どこから来ると予想されるか? これは、別のNXP Zephyr BSP/HALパッケージの一部ですか? 特定のSDKとZephyrのバージョンの組み合わせが必要ですか? Re: SR250 UWBiot Zephyr build issue on FRDM‑RW612 – missing RW612‑pinctrl.h こんにちは、 あなたの調子が良いといいのですが。GitHubのREADMEを守ったかどうか、ご確認いただけますか - nxp-uwb/sr250-uwbiot-zephyr: SR250 UWBIOT SDK lite release for ZephyrOS ·GitHub? これはzephyr SDKをベースにしているので、MCUXpresso SDKから何かをダウンロードする必要はありません。 問題が解決しない場合は、手順実行時のログを共有してください。 よろしくお願いいたします。 リカルド
記事全体を表示
iMX8M Plus - Flexspi chip select pin On the i.MX8M Plus EVK, the ECSPI chip select signal can be configured using a GPIO pin. Could you please confirm whether FlexSPI also supports GPIO-based chip-select signals, or whether only the dedicated FlexSPI chip select pins can be used? As per our requirement, we need two chip select signals for FlexSPI. Kindly suggest the recommended configuration for supporting two FlexSPI devices. Re: iMX8M Plus - Flexspi chip select pin Hi @pengyong What we can do for two chip select of QSPI? This is also from our requirement. If there is lack of CS pin means, can we use the any gpio has a chip select? If it will work Re: iMX8M Plus - Flexspi chip select pin Hi @Govind1807  You could use a GPIO-based chip select signal. However, you only have two FlexSPI Flash devices. Why would you use a GPIO as the chip select signal? The imx8mp has four FLEX SS signals that can be used directly: https://github.com/nxp-imx/linux-imx/blob/5768b67a64961d932b7c50adf15ba3f5bfcc8f70/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h B.R Re: iMX8M Plus - Flexspi chip select pin Hi @pengyong_zhang , What we can do for two chip select of QSPI? This is also from our requirement. If there is lack of CS pin means, can we use the any gpio has a chip select? If it will work or not?
記事全体を表示
RT1064 I2C communication abnormality at 400kHz The I2C2 interface of the RT1064 device connects to Module A. Communication anomalies occur at 400kHz, but it functions properly at 100kHz 1. Connecting module B of a different model within the same series at 400kHz is no problem 2. In terms of waveform, it is equivalent to an anomaly occurring when the host clock is stretched and then restored after connecting to Module A PS: Implement the I2C driver port of the device to another 1064 device, test module A, no issues at 400k What might be the reason? 1. Figure 1 Module A Abnormal Waveform of Logic Analyzer at 400kHz 2. Figure 2: Waveform of Logic Analyzer for Module A at 100kHz 3. Figure 3: Waveform of Module B at 400kHz i.MXRT 106x Re: RT1064 I2C communication abnormality at 400kHz Hi @foreverwlh2025 , Thanks for the additional clarification — this is a very important observation.   From your observations, the issue appears more likely to be related to insufficient 400 kHz I2C timing margin caused by the two-stage ADUM1251 isolation link, rather than an abnormality of Module A itself. Even if the rise time is within spec, on RT1064, we still recommend checking the LPI2C master-side 400 kHz configuration, especially MCFGR2[FILTSCL/FILTSDA] and MCCR0/MCCR1 , because the master synchronization latency on RT1064 is affected not only by rise time, but also by the digital filter and timing parameter settings. We suggest reading out the actual configuration used in your project and comparing it with Table 47-5, “LPI2C Example Timing Configurations,” in Chapter 47 of the RT1064 Reference Manual . In particular, please check whether the following settings match to the example values for your selected clock condition: I2C module clock source Target baud rate: 400Kbps PRESCALE FILTSCL / FILTSDA SETHOLD CLKLO CLKHI DATAVD Wish it helps you Best Regards May Re: RT1064 I2C communication abnormality at 400kHz Additional information, there was some progress in positioning yesterday: Our hardware expansion is: Motherboard: RT1064--- ADUM1251    3.3 V to 5 V Subboard: ADUM1251- Module A          5v to 3.3v After verification, it was found that after adding ADUM1251 to the two layers of the hardware link, module A had abnormal communication. However, after removing it, communication returned to normal at 400k. What could be the reason for this? PS: Our hardware engineers believe that ADUM1251 only increases communication latency and has no other impact Re: RT1064 I2C communication abnormality at 400kHz Hi,@mayliu1 Our product is about to be released, and we have been investigating this issue for several days. If we could receive your response as soon as possible, we would greatly appreciate it! Re: RT1064 I2C communication abnormality at 400kHz Hi  Supplementary information 1. Our two hardware engineers checked the waveform of the problem through an oscilloscope, and the rise time met the requirements, within 100+ns 2. I ported I2C initialization and read-write function drivers to another type of RT1064 device,  and tested module A without any issues The following figure shows the waveform of another device module A testing logic analyzer doubt: 1. If the clock recovers abnormally after stretching, what other reasons could be causing it 2. Is there a dedicated function to set settings such as MCFGR2 mentioned in the last reply? I didn't see any interface to be set in the I2C initialization process ----If the rise time is met, do we not need to consider these register settings? Re: RT1064 I2C communication abnormality at 400kHz Hi @foreverwlh2025 , Thank you so much for your interest in our products and for using our community. I think that this is most likely not a Module A issue, but a 400 kHz timing-margin issue on that specific RT1064 LPI2C2 bus. On RT1064, LPI2C timing is affected by bus rise time, bus loading, pull-up resistors, and glitch-filter latency.  RT1064RM  reference manual describe  that larger rise time increases synchronization latency.  (refer to chapter 47.3.1.4 Timing Parameters) The master glitch filters MCFGR2[FILTSCL/FILTSDA] must be set so their latency stays below the minimum SCL low/high period, and RT1064 provides example 400 kbps timing settings in MCCR0/MCCR1 .  Please check the Table 47-5. LPI2C Example Timing Configurations So if Module A makes the bus edges slightly slower or changes the effective loading, the bus may fail at 400 kHz but still work at 100 kHz .  Wish it helps you Best Regards May Re: RT1064 I2C communication abnormality at 400kHz Below is the configuration for printing. Which parameter may need to be adjusted? PS:apparently due to automatic interface allocation Re: RT1064 I2C communication abnormality at 400kHz A 10 MHz LPI2C functional clock is not listed in the RT1064 Reference Manual example timing configurations for 400 kbps. Although it is possible to generate a 400 kbps baud rate with this clock, the automatically generated timing parameters should be carefully verified against the I2C specification, particularly with respect to tLOW, tHIGH, setup/hold timing, and data valid timing. To reduce design risk, it is recommended to use a validated clock source, such as 48 MHz, as shown in the Reference Manual. Re: RT1064 I2C communication abnormality at 400kHz I tried modifying 60MHz and 8MHz, but it still didn't work. The red box in the figure below shows the values printed after modification, which are different from the manual Re: RT1064 I2C communication abnormality at 400kHz Hi @foreverwlh2025 , There are several ways to configure the I2C clock. As a suggestion, you can try 8 MHz and 60 MHz, as these two clock settings are relatively easy to achieve. I am using the SDK demo: "evkmimxrt1064_lpi2c_edma_b2b_transfer_master" Way 1: Configure LPI2C clock source to 60 MHz Simply set the clock divider to 0. Way 2: Configure LPI2C clock source to 8 MHz Use the MCUXpresso IDE Clock Tool and configure it as shown below. Select OSC_CLK as the clock source and set the divider to 3, which will generate an 8 MHz clock for the LPI2C (I2C) module. Wish it helps you Best Regards May Re: RT1064 I2C communication abnormality at 400kHz Hi @foreverwlh2025 , You may try setting the registers directly. For example, when using a 60 MHz I2C clock, the following configuration can be applied. Wish it helps you Best Regards May Re: RT1064 I2C communication abnormality at 400kHz The current I2C clock is configured based on the sample configuration in the SDK2_13_0-EVK-MIMXRT1064 \ boards \ evkmimxrt1064 \ river_deamples \ lpi2c directory, #define LPI2C_CLOCK_SELECT (0U) #define LPI2C_CLOCK_DIVIDER (5U) CLOCK_SetMux(kCLOCK_Lpi2cMux, LPI2C_CLOCK_SELECT); CLOCK_SetDiv(kCLOCK_Lpi2cDiv, LPI2C_CLOCK_DIVIDER); ---How can I modify it to obtain the precise 8MHz or 48MHz? (The clock tree doesn't seem to be visible) Re: RT1064 I2C communication abnormality at 400kHz As shown in the diagram, I tried to modify the register settings to correspond to the parameters, but there was no improvement at 60MHz; Even good modules cannot function properly at 8MHz
記事全体を表示