Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
RT600 上的安全 DFU 电路板:RT685 EVK Zephyr 工具链:zephyr-sdk-1.0.1,zsdk nxp-v4.4.1.1 大家好! 我正在开发一个基于 Zephyr 的 RT600 应用程序,该应用程序总共应该包含三个镜像(MCUBoot、ARM 内核镜像和 DSP 内核镜像)。 由于 RT600 是一个无闪存的 MCU,这些图像必须存储在外部闪存中,我正在寻找一种合适的方法来保护它们免受回读和其他可能泄露图像的潜在风险。除此之外,我还希望 DFU 功能能够以加密的方式通过 SMP 协议(RT600 作为 SMP 服务器运行,或通过 MCUBoot 串行恢复,或两者兼而有之)更新 ARM 内核和 DSP 内核映像。 我没有找到 nxp-zsdk 自带的示例,您能帮我找到一个可行的学习路径吗? 顺祝商祺! 岳 Re: Secure DFU on RT600 你好@YueZ , 对于 RT685 EVK,我建议将其视为两个相关的设计任务:保护存储在外部闪存中的内容,以及安全地更新 Arm 和 DSP 固件。单凭加密更新并不能证明活动映像受到保护,免受外部闪存读取。 一个切实可行的起点是将DSP 固件与 Arm 应用程序打包在一起,并将它们作为一个签名映像进行更新。这样,您就可以在进行独立的 DSP 映像管理之前,启动单个 MCUboot 主/辅助插槽更新路径。Zephyr 的 SMP 镜像管理流程会将更新上传到辅助插槽,供 MCUboot 在启动时处理。( zephyr/doc/services/device_mgmt/smp_groups/smp_group_1.rst at main · zephyrproject-rtos/zephyr · GitHub )在 RT600 上,启动映像位于内部闪存之外,可以加载到 SRAM 中,也可以从外部存储器执行,因此闪存布局和启动链需要一起设计。- https://www.nxp.com/docs/en/application-note/AN12985.pdf 我会按以下顺序进行: 建立可信的启动链:在启动时验证引导加载程序,然后让它验证已签名的应用程序更新。在设计中纳入生产密钥配置和调试访问策略。 通过应用端 SMP 服务器演示已签名的 Arm+DSP 更新,并定义主闪存槽和辅助闪存槽。确认新构建的 DSP 固件确实包含在上传的镜像中。 单独处理已安装镜像的保密性问题。NXP 的 RT600 安全配置工作流程描述了如何编写加密的应用程序和 OTFAD 密钥块( mcuxpresso.nxp.com/secure/latest/_sources/06_processor_specific_workflow.md ),其 RT600 FOTA 说明描述了一种签名和加密的 OTA 方法。这些是有用的 RT600 参考资料,但它们的程序并不是现成的 Zephyr SMP 集成。- https://www.nxp.com/docs/en/application-note/AN13478.pdf 如果需要独立的 Arm 和 DSP 更新,则设计单独的映像存储和验证,以及防止不兼容的 Arm/DSP 版本同时激活的方法。我会将其视为第二个集成里程碑,而不是组合图像示例已经证明的功能。 应用层SMP和引导加载程序层串行恢复都可以考虑,但它们是不同的更新路径;您无需同时实现两者即可验证第一个DFU里程碑。 请问DSP是否必须单独更新,还是Arm和DSP可以同时更新?该决定将决定更简单的组合映像路径是否满足您的要求,或者是否需要多映像启动和回滚设计。   祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 ------------------------------------------------------------------------------- Re: Secure DFU on RT600 嗨,Kan, 非常感谢您提供的信息,它非常清晰且很有帮助!回答你的问题,我觉得把两张图片合并成一张没问题;它们不需要分开。 此外,我还想听听您对以下几个问题的建议,如果我说错了,请您指正,因为我对NXP安全配置工作流程还不熟悉: 如果我理解正确的话,这两个里程碑是:1)验证 FOTA 镜像签名和启动链;2)验证片外闪存上的 OTFAD。看起来西部的版本过程只是对图像进行签名而没有加密;输出的 hex(bin)图像文件仍然是明文,应该在第二步中对 OTFAD 进行加密。在 OTA 更新过程中,会收到一个签名镜像,然后将其以 OTFAD 加密的形式写入闪存。这是否意味着传输中的图像容易受到攻击? 如果将签名和加密功能结合使用,您会推荐使用 XIP 还是 RAM 加载来降低 Zephyr 的工作负载? Zephyr 中是否有示例演示 RT600 上的 OTFAD 功能(以及 MCUBoot 串行恢复是否支持 OTFAD)?我找到了 modules/hal/nxp/mcux/mcux-sdk-ng/drivers/otfad/fsl_otfad.h,但目前还没有任何东西引用它。非常感谢您能提供一个起点! 顺祝商祺! 岳 Re: Secure DFU on RT600 你好@YueZ , 感谢您确认 Arm 和 DSP 固件可以打包在一起。我会从以下方案入手:使用一个包含两个固件的签名应用程序更新,而不是两个独立管理的应用程序映像。 你提出的里程碑计划很合理,但我会稍微调整一下它们的划分方式: 验证启动和更新链:通过 MCUboot 启动组合镜像,通过应用端 SMP 上传签名替换,并验证升级和恢复行为。 在 RT685 EVK 上验证加密启动:使用安全配置工具 (SPT) 从外部闪存构建和启动 OTFAD 加密映像,最初使用已记录的影子寄存器开发工作流程。-处理器特定工作流程 — 安全配置工具 26.09 将两者结合起来:确定如何在加密闪存布局中分阶段和安装现场更新,而不会破坏映像验证或恢复。启用 OTFAD 并不会自动执行最后一步。-通用工作流程 — 安全配置工具 26.09 关于纯文本版本输出和传输:你的理解基本正确。文档中记录的 Zephyr/MCUboot 工作流程会生成一个已签名的应用程序文件 zephyr.signed.bin ;签名并不会隐藏其内容。如果该文件按原样分发和上传,那么任何能够获取该文件或观察到未受保护传输的人都可以读取固件。您可以使用经过适当身份验证的加密传输来保护传输,或者分发加密的更新工件。这些与保护安装在外部闪存中的映像是分开的。-通用工作流程 — 安全配置工具 26.09加密 XIP 和 MCUboot — MCUXpresso SDK 文档 我对提议的 OTA 图有一点更正:不要假设接收到签名的明文图像并使用 Zephyr 的闪存驱动程序写入它会自动生成 OTFAD 加密的闪存内容。SPT 的 RT5xx/6xx 工作流程明确地写入加密的应用程序和OTFAD 密钥块。现场更新程序必须重现兼容的结果,或者使用其他经过验证的安装方案,同时还要考虑受保护的地址范围和密钥。RT600 OTFAD 参考文档描述了读取期间加密闪存的解密;SPT 配置过程不应被视为 Zephyr 运行时更新写入器的实现。- https://www.nxp.com/docs/en/training-reference-material/RT600_Security_Architecture_sb.pdf XIP 与加载到 RAM:由于您的目标具体是使用 OTFAD 保护存储在外部闪存中的应用程序,我将使用加密的 XIP 作为第一个网络安全概念验证。SPT 文档用于启动 RT5xx/6xx 的工作流程。这是对启动实验的建议,而不是声称加密的 XIP 使 Zephyr DFU 集成变得容易。Load-to-RAM 也是 RT5xx/6xx 镜像的一种有据可查的配置方式,但这并不能消除保护存储镜像和设计安全更新路径的必要性。我无法证实这两种方案都是适用于您的 SDK 版本的交钥匙、工作负载较低的 Zephyr 解决方案。 关于示例和串行恢复:我还没有找到经过验证的RT685 Zephyr 示例,该示例结合了 OTFAD、MCUboot 和 SMP/串行恢复加密更新,适用于 nxp-v4.4.1.1 。 fsl_otfad.h 标头表明存在驱动程序接口;但它并未表明 RT685 MCUboot 恢复或闪存安装路径集成了该接口。NXP 的加密 XIP 和 MCUboot文档描述了加密 XIP 扩展,但其列出的OTFAD 示例板是 RT1152/RT1160/RT1170,而不是 RT685 。我不认为它的串行恢复或安装行为会延续到这个板上。这方面我还需要和团队确认一下。 如需具体的参考资料,请使用SPT 26.09,“RT5xx/6xx 设备工作流程 → 使用影子寄存器启动 OTFAD 加密映像”来建立加密启动基线。同时,利用AN13478,在 i.MX RT600 上实现 FOTA ,研究 NXP 的 RT600 签名加密更新方法。该应用笔记并非Zephyr SMP 示例,因此剩余的工作是将其加密映像安装方法与您的 Zephyr/M​​CUboot 插槽布局和选择的更新路径相协调。   对于此板,我会分别验证签名组合映像 DFU 和 SPT 生成的 OTFAD XIP,然后将加密现场安装(包括任何串行恢复支持)视为一项集成任务,需要进行单独的测试。   祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 ------------------------------------------------------------------------------- Re: Secure DFU on RT600 嗨,Kan, 目前这些信息足够我消化了,我会把它标记为解决方案。如果团队对 R T685 MCUboot 恢复与 OTFAD的功能有任何更新,请通知我。 非常感谢您提供的详细信息!祝你今天也过得愉快! 岳
View full article
RT600でのセキュアDFU 基板: RT685 EVK Zephyr toolchain: zephyr-sdk-1.0.1, zsdk nxp-v4.4.1.1 チームの皆さん、こんにちは! 私はZephyrベースのRT600アプリケーションを開発しており、合計3つの画像(MCUBoot、ARMコアイメージ、DSPコアイメージ)を含める予定です。 RT600はフラッシュレスMCUなので、それらの映像は外部フラッシュに収まらなければならず、読み書きや画像のリークリスクから適切に保護する方法を探しています。さらに、DFU機能を使って、ARMコアとDSPコアのイメージをSMPプロトコル(RT600をSMPサーバーとして動作させるか、MCUBoot シリアルリカバリー、またはその両方で動作する)で暗号化して更新したいと考えています。 nxp-zsdkに付属している例を見つけられませんでした。実践的な方法を教えていただけませんか? よろしくお願いいたします。 ユエ Re: Secure DFU on RT600 こんにちは、 @YueZ さん。 RT685 EVKについては、これを 2つの関連する設計タスク として扱うことをおすすめします。外部フラッシュに保存されるものの安全と、ArmおよびDSPファームウェアの安全な更新です。暗号化されたアップデートだけでは、アクティブイメージが外部フラッシュからの読み出し攻撃から保護されていることを保証するものではありません。 実用的な出発点としては 、DSPファームウェアをArmアプリケーションにパッケージ化し、それらを1つの署名済みイメージとして更新 することです。これにより、独立したDSPイメージマネジメントを行う前に、単一のMCUbootプライマリ/セカンダリスロット更新パスを起動できます。ZephyrのSMPイメージマネジメントフローは、MCUbootが起動時に処理するための二次スロットに更新をアップロードします。(zephyr/doc/services/device_mgmt/smp_groups/smp_group_1.rst at main · zephyrproject-rtos/zephyr ·GitHub)RT600では、起動イメージは内部フラッシュの外部に存在し、SRAMへの読み込みや外部メモリからの実行に使うため、フラッシュのレイアウトとブートチェーンは一緒に設計する必要があります。- https://www.nxp.com/docs/en/application-note/AN12985.pdf 私は以下の順序で進めます。 信頼できるブートチェーンを確立します:起動時にブートローダーを認証し、その後、署名済みのアプリケーション更新を検証させます。設計に本番キーのプロビジョニングとデバッグアクセスポリシーを含めてください。 プライマリおよびセカンダリフラッシュスロットを定義したアプリケーション側のSMPサーバーを通じて 、署名済みのArm plus-DSPアップデート を実証します。新たに構築されたDSPファームウェアが実際にアップロードされるイメージに含まれているか確認してください。 インストールされたイメージの機密性については、別途対処してください。NXPのRT600セキュアプロビジョニングワークフローは暗号化アプリケーションとOTFADキーブロブ(mcuxpresso.nxp.com/secure/latest/_sources/06_processor_specific_workflow.md)の作成を説明し、RT600 FOTAノートは署名付き暗号化されたOTAアプローチを説明しています。それらはRT600の有用な参考資料ですが、手順は既製のZephyr SMP統合ではありません。- https://www.nxp.com/docs/en/application-note/AN13478.pdf 独立したArmおよびDSPの更新が必要な場合は、別々の画像保存と検証を設計し、互換性のないArm/DSPバージョンが同時に起動されるのを防ぐ方法も用意してください。私はそれを、結合イメージの例ですでに実証された機能ではなく、2番目の統合マイルストーンとして捉えるべきでしょう。 アプリケーション側のSMPとブートローダー側のシリアルリカバリーはどちらも考慮できますが、それぞれ異なる更新経路です。最初のDFUマイルストーンを検証するために両方を実装する必要はありません。 DSPは独立して更新する必要があるのか、それともArmとDSPを同時に更新しても問題ないのか確認していただけますか?その判断が、よりシンプルな結合イメージパスが要件を満たすか、それとも複数イメージのブート&ロールバックデザインが必要かを決定します。   すてきな一日を、 カン ------------------------------------------------------------------------------- 注記: この投稿があなたの質問への回答になっている場合は、「正解としてマーク」ボタンをクリックしてください。ありがとうございます! - 前回の投稿から7週間Threadをフォローしており、その後の返信は無視しています もし後で関連する質問があれば、新しいThreadを開き、閉じたThreadを参照してください。 ------------------------------------------------------------------------------- Re: Secure DFU on RT600 こんにちは、カンさん。 情報提供ありがとうございました。とても分かりやすく、大変参考になりました!ご質問にお答えすると、2つの画像を1つにまとめることに問題はありません。別々にする必要はありません。 さらに、いくつか質問があるので、ご意見をお聞かせいただければ幸いです。また、NXPのセキュアプロビジョニングワークフローは初めてなので、もし私の理解が間違っていたらご指摘ください。 私が正しく理解していれば、2つのマイルストーンは次のとおりである。1) FOTAイメージの署名とブートチェーンの検証、2) オフチップフラッシュ上のOTFADの検証。どうやら、西側のビルドプロセスではイメージに署名するだけで暗号化は行われていないようです。出力されるhex(bin)イメージファイルは平文のままですが、これはOTFADの2番目のステップで暗号化されるはずです。OTAアップデート時には、署名付きイメージが受信され、OTFAD暗号化された状態でフラッシュメモリに書き込まれる。それは、転送中の画像が攻撃にさらされる可能性があるという意味ですか? XIPとRAMでの読み込み、署名や暗号化と組み合わせた場合、Zephyrで作業負荷を減らすためにどちらがおすすめでしょうか? ZephyrでRT600のOTFAD機能(およびOTFADがMCUBootシリアルリカバリーでサポートされているかどうか)を示す例はありますか?modules/hal/nxp/mcux/mcux-sdk-ng/ドライバ/otfad/fsl_otfad.hは見つけましたが、まだ何も言及されていません。出発点となる情報があれば大変ありがたいです! よろしくお願いいたします。 ユエ Re: Secure DFU on RT600 こんにちは、 @YueZ さん。 ArmとDSPのファームウェアが一緒にパッケージ化できることを確認してくれてありがとうございます。私ならまず最初に考えるのは、2つの独立管理アプリケーションイメージではなく、 両方のファームウェアを含む署名付きアプリケーションアップデートを 1つにすることです。 あなたが提案したマイルストーンは理にかなっていますが、私なら少し違った形で分類します。 起動と更新の連鎖を証明する: 結合イメージをMCUboot経由で起動し、アプリケーション側のSMPで署名入り代替画像をアップロードし、アップグレードと回復の動作を確認します。 RT685 EVK 上で暗号化ブートを検証する: Secure Provisioning Tool (SPT) を使用して、外部フラッシュから OTFAD で暗号化されたイメージを構築してブートします。最初は、ドキュメントに記載されているシャドウレジスタ開発ワークフローを使用します。- プロセッサ固有のワークフロー — Secure Provisioning Tool 26.09  この2つを統合する:イメージの検証や復旧を損なうことなく、暗号化されたフラッシュレイアウト内でフィールドアップデートをどのように段階的に実行し、インストールするかを決定する。この最後のステップは、OTFADを有効にしても自動的には提供されません。-汎用ワークフロー — セキュアプロビジョニングツール 26.09 平文の構築出力と送信に関して:あなたの理解は概ね正しいです。文書化されたZephyr/MCUbootのワークフローは署名済みアプリケーションファイル zephyr.signed.bin 生成します;署名はその内容を隠しません。そのファイルがそのまま配布・アップロードされた場合、ファイルを入手したり保護されていない転送を観察できる人がファームウェアを読み取ることができます。適切に認証された暗号化されたトランスポートで転送を保護するか、暗号化された更新アーティファクトを配布することもできます。これらは、外部フラッシュメモリにインストールされたイメージを保護することとは別個のものです。- 汎用ワークフロー — Secure Provisioning Tool 26.09 暗号化XIPおよびMCUboot — MCUXpresso SDKドキュメント 提案されたOTA図に一つ訂正したいのは、 署名済みのプレーンテキスト画像を受け取り、Zephyrのフラッシュドライバーで書き込みをすると自動的にOTFAD暗号化されたフラッシュ内容を生成すると仮定しないことです。SPTのRT5xx/6xxワークフローは、 暗号化されたアプリケーション と OTFADキーの塊 を明示的に書き込みます。フィールドアップデーターは、保護されたアドレス範囲とキーを考慮しながら、互換性のある結果を再現するか、または別の検証済みのインストール方式を使用する必要があります。RT600 OTFADのリファレンスは、読み込み中の暗号化フラッシュの復号化を記述しています。SPTのプロビジョニング手順は、Zephyrのランタイム更新ライターの実装として受け取るべきではありません。- https://www.nxp.com/docs/en/training-reference-material/RT600_Security_Architecture_sb.pdf XIPとRAMへのロード: あなたの目的はOTFADで外部フラッシュに保存されたアプリケーションを保護することなので、 最初のセキュリティ証明として暗号化されたXIP を使うのが良いでしょう。SPTドキュメントには、RT5xx/6xxのブートワークフローが記載されています。これは ブート実験 のための推奨であり、暗号化されたXIPがZephyr DFU統合を簡単にするという主張ではありません。RAMへのロードも文書化されたRT5xx/6xxイメージ配置ですが、保存されたイメージを保護し安全な更新経路を設計する必要性を取り除くわけではありません。どちらの選択肢もあなたのSDKバージョンに対して、Zephyrのターンキーで作業負荷の少ないソリューションだとは証明できません。 例とシリアルリカバリーについて:OTFAD、MCUboot、SMP/シリアルリカバリーの暗号化アップデートを組み合わせたRT685 Zephyrの検証済み例は nxp-v4.4.1.1 見つかっていません。 fsl_otfad.h ヘッダーはドライバーインターフェースの存在を示します。RT685のMCUbootリカバリーやフラッシュインストールパスがそれを統合しているとは証明しません。NXPの Encrypted XIPおよびMCUboot のドキュメント では暗号化されたXIP拡張が説明されていますが、掲載されている OTFADの例基板はRT1152/RT1160/RT1170であり、RT685ではありません 。そのシリアルリカバリやインストール時の動作が、このボードにもそのまま引き継がれるとは考えない方が良いでしょう。それはまだチームに確認する必要がある事項です。 具体的な出発点として、 SPT 26.09「RT5xx/6xx デバイスワークフロー → シャドウレジスタを使用した OTFAD 暗号化イメージのブート」を使用して、暗号化ブートのベースラインを確立してください。並行して、 AN13478 「i.MX RT600でのFOTAの実装」を参照して、NXPのRT600における署名付き暗号化アップデート方式について調べてください。このアプリケーションノートはZephyr SMPの例 ではないため 、残る作業は暗号化イメージインストール方式とZephyr/MCUbootのスロットレイアウトおよび選択した更新経路を照合することです。   このボードでは、署名済みの結合イメージDFUとSPT生成のOTFAD XIPを別々に検証し、暗号化フィールドインストール(シリアルリカバリーサポートを含む)を統合タスクとして独自のテストが必要と扱います。   すてきな一日を、 カン ------------------------------------------------------------------------------- 注記: この投稿があなたの質問への回答になっている場合は、「正解としてマーク」ボタンをクリックしてください。ありがとうございます! - 前回の投稿から7週間Threadをフォローしており、その後の返信は無視しています もし後で関連する質問があれば、新しいThreadを開き、閉じたThreadを参照してください。 ------------------------------------------------------------------------------- Re: Secure DFU on RT600 こんにちは、カンさん。 現時点では、これだけの情報で十分理解できましたので、解決済みとしてマークします。チームからOTFADを使用したR T685 MCUbootリカバリ機能に関する最新情報があれば、私に知らせてください。 詳しい情報をありがとうございました!あなたも素敵な一日をお過ごしください! ユエ
View full article
RW612 output clock to pin Hello, I'm looking for a software example on how to output a clock signal on a pin so it can be meassured with an oscilloscope. I think this could be achieved with the CLKOUT signal (refer to image below), but I wasn't able to set this up correctly.  In this section of the user manual it says that CLKOUT must be routed to a pin via IOMUX, but I wasn't able to find a field for that function in the MCI_IO_MUX->FSEL register. Product: WiFi RW6XX Re: RW612 output clock to pin MCUXpresso could be helpful to generate clock Re: RW612 output clock to pin Hello @Niwo, To add the CLKOUT configuration, I suggest using MCuxpresso Config Tools. This tool allows you to configure the MCU’s clock tree and pins and automatically generates the corresponding APIs in the clock_config.c, pinmux.c, and pinmux.h files. If you are not familiar with this tool, I recommend reviewing the Quick Start Guide for MCUXpresso Config Tools to get started. You may also find the Beginning with pin/internal signal selection guide and the Clocks Tool section of the MCUXpresso Configuration Tools 26.09 documentation helpful for configuring the pins and clocks. Please let me know if you have any further questions. BR Habib
View full article
RW612 输出时钟到引脚 你好, 我正在寻找一个软件示例,说明如何通过引脚输出时钟信号,以便可以用示波器进行测量。 我认为可以用CLKOUT信号实现这一点(参见下图),但我没能正确设置。 用户手册的这一部分提到,CLKOUT 必须通过 IOMUX 路由到引脚,但我无法在MCI_IO_MUX->FSEL 寄存器中找到该功能的字段。 产品:WiFi RW6XX Re: RW612 output clock to pin MCUXpresso 可能有助于生成时钟信号 Re: RW612 output clock to pin 你好@Niwo , 要添加 CLKOUT 配置,我建议使用MCuxpresso 配置工具。该工具允许您配置MCU的时钟树和引脚,并自动在clock_config.c中生成相应的API。pinmux.c,和 pinmux.h文件。 如果您不熟悉此工具,我建议您查看MCUXpresso 配置工具快速入门指南以开始使用。您可能还会发现 MCUXpresso 配置工具 26.09 文档中的“引脚/内部信号选择入门指南”和“时钟工具”部分对配置引脚和时钟很有帮助。 如果您还有其他问题,请告诉我。 BR 哈比卜
View full article
寻找适用于 PQ2 Pro (MPC830x) 的 DDR2 寄存器参数架构 (RPA) 计算器 NXP 网站上的 MPC830x 页面有很多设计文档,但我听说里面还有某种计算器(电子表格?)。这有助于计算 DDR2 寄存器设置,可能命名为: MPC830x_DDR2_RPA.xls 或者类似的表达。即使是其他 PowerQuicc 2(例如虽然不是使用 DDR2 的 MPC830x,但它可能有用。 有没有可能它被保存在档案馆里或者评估委员会的资料中? 谢谢! Re: Looking for DDR2 Register Parameter Architecture (RPA) Calculator for PQ2 Pro (MPC830x) 嗨@mrand , 由于 MPC830x 系列产品已经停产三年多了,因此请求的文件或下载链接不再可用。 有关 DDR 寄存器编程指南,请参阅 AN3369。 谢谢。   顺祝商祺! 六月
View full article
PQ2 Pro(MPC830x)用のDDR2レジスタパラメータアーキテクチャ(RPA)カリキュレータを探しています NXPのMPC830xページには多くの設計ドキュメントがありますが、何らかのカリキュレータ(スプレッドシート?)があると聞いています。これはDDR2レジスタ設定の計算に役立ち、おそらく次のような名前が付けられます。 MPC830x_DDR2_RPA.xls あるいは、そのバリエーション。たとえそれが他の PowerQuicc 2 (つまり、DDR2 を使用した MPC830x と全く同じではありませんが、役に立つかもしれません。 アーカイブや評価ボードの資料と一緒に保管されている可能性はありますか? ご回答をお待ちしています。 Re: Looking for DDR2 Register Parameter Architecture (RPA) Calculator for PQ2 Pro (MPC830x) こんにちは、 @mrand さん。 MPC830xファミリーは3年以上前に終了しているため、リクエストされたファイルやダウンロードリンクはもはや利用できません。 DDRレジスタのプログラミングに関するガイダンスについては、AN3369を参照してください。 ありがとう。   よろしくお願いいたします。 6月
View full article
NCJ29D5 的供电电压容差 你好, 我想知道 NCJ29D5L 的供电电压及其容差,以及数据手册的链接(我在 NXP 网站上找不到)。 多谢 Re: supply voltage with tolerance for ncj29d5 你好, 希望你一切都好。很抱歉给您带来不便,但由于该产品的信息受保密协议(NDA)约束,因此不对外公开。这不是分享该设备任何信息的安全渠道,出于同样的原因,我也没有相关数据。 因此,我建议您联系我们代理商网络|NXP中的一家代理商。或者,如果您有直接联系人曾帮助您了解该产品的信息或最初帮助您获得集成电路,请直接与他/她联系。 由此给您带来的不便,我深表歉意。 顺祝商祺! 里卡多
View full article
supply voltage with tolerance for ncj29d5 hello, I would like to know the supply voltage, including its tolerances, for NCJ29D5L as well as the link to the datasheet (I could not find it on the NXP website). Thanks a lot  Re: supply voltage with tolerance for ncj29d5 Hello, Hope you are doing well. Sorry for the inconvenience this might cause you but as the information of this product it's under NDA (Non-Disclosure Agreement) the information it's not public, this is not a secure channel to share any information of this device, and I do not have the data as well for the same reason. For this reason, I recommend you contacting one of our distributors available in the Distributor Network|NXP. Or if you have a direct contact who helped you with information about this product or getting the IC in a first place, please communicate directly with him/her. I apologize for the inconveniences this might cause you. Best Regards, Ricardo
View full article
ncj29d5の許容範囲付き供給電圧 こんにちは、 NCJ29D5Lの電源電圧とその許容範囲、そしてデータシートのリンク(NXPのウェブサイトでは見つかりませんでした)を知りたいです。 どうもありがとう Re: supply voltage with tolerance for ncj29d5 こんにちは、 あなたの調子が良いといいのですが。ご不便をおかけして申し訳ありませんが、この製品の情報はNDA(秘密保持契約)に基づいており、公開されていません。この情報を共有する安全なチャネルではなく、同じ理由で私もデータを持っていません。 このため、代理店ネットワークに掲載されている当社の代理店のいずれかにご連絡いただくことをお勧めします。NXP。また、この製品やIC取得の際に直接のお問い合わせがいれば、直接連絡を取ってください。 ご迷惑をおかけして申し訳ございません。 よろしくお願いいたします。 リカルド
View full article
Looking for DDR2 Register Parameter Architecture (RPA) Calculator for PQ2 Pro (MPC830x) The MPC830x pages here at NXP have a number of design documents, but I've been led to believe there is some sort of calculator (spreadsheet?) which helps with computing DDR2 register settings, possibly named: MPC830x_DDR2_RPA.xls or some variation of that.  Even if it's for some other PowerQuicc 2 (i.e. not exactly MPC830x) that used DDR2, it might be useful. Any chance it's stored away in an archive or with an eval board collateral? Thank you! Re: Looking for DDR2 Register Parameter Architecture (RPA) Calculator for PQ2 Pro (MPC830x) Hi @mrand , As the MPC830x family has been EOL for over three years, the requested file or download link is no longer available. Please refer to AN3369 for DDR register-programming guidance. Thank you.   Best Regards, June
View full article
S32M27x FCCU Utility This document describes how to use Lauterbach FCCU (fault collection and control unit) periphery extension for S32M27x devices. It is expected that user has deep knowledge on FCCU mechanisms in order to effectively use this extension. This scripting tool consist of 136 scripts for Lauterbach debugger. It helps user to quickly debug micro without need of reference manual. Here is and example of windows that user can use (detailed description can be found in user guide):
View full article
[S32K396] eFlexPWM configuration issues MCU: S32K396 Driver: S32K3 RTD 7.0.1 Config tool: EB tresos Studio 30.0.0 Use case: 3-phase motor control (FOC), SM0..SM2 as complementary A/B pairs,20 kHz center-aligned PWM, fault handling on FAULT0  Question1: Pwm (FlexPWM): Fault settings are only available for the A output of a complementary channel pair — no way to configure the fault mapping of PWMB When a FlexPWM submodule is configured with Channel Pair = COMPLEMENTARY in the EB tresos Pwm plugin, only one channel entry (PWMA) is created and PWMB is automatically generated as the inverted output. However, in the fault settings (FlexPwmFaultChannelSettings: fault channel selection, fault level, fault output state, etc.) only the PWMA channel can be configured - there is no configuration entry for PWMB. The fault setup writes only the DIS0A field of SMx_DISMAP0. DIS0B and DIS0X keep their reset value 0xF and cannot be changed. Is there a supported way in EB tresos to configure the DIS0B/DIS0X mapping, or should this be considered a limitation/defect of the Pwm plugin? Question2: Pwm (FlexPWM): Center-aligned mode - no GUI option to generate an ADC trigger from a VAL0/VAL1 match (mid-point / reload trigger) (SM[x].TCTRL) We use center-aligned complementary PWM (SM0..SM2, 20 kHz) for 3-phase current sampling. In this configuration the center of the low-side conduction window coincides with the counter reload point, i.e. the VAL1 match. Sampling exactly at that instant gives the average phase current and maximum margin to the switching edges, which is the standard trigger point for low-side shunt FOC. In the EB tresos Pwm plugin, the per-channel Output Trigger configuration only offers "rising edge" / "falling edge" selections, which correspond to the VAL2/VAL3 match events. There is no option to enable the trigger sources tied to VAL0/VAL1 matches (TCTRL[OUT_TRIG_EN] bits for OUT_TRIG0/OUT_TRIG1 based on VAL0/VAL1), and no option tied to the reload event. Is there a supported way in this RTD release to generate an ADC trigger from the VAL0/VAL1 match (or from the reload event) in center-aligned mode? Questions3:Pwm (FlexPWM): Fault notification function configured in EB is generated as NULL_PTR in the PostBuild configuration In the EB tresos Pwm plugin, under FlexPwmFaultChannelSettings, a fault notification function name can be entered. The expectation is that the generated PostBuild configuration fills the callback member so that FlexPwm_Ip_Init() registers it into FlexPwm_Ip_aFaultIrqCallback[], and the fault ISR (FlexPwm_Ip_ProcessFaultIrq) calls it when FFLAG is set. But FlexPwm_Ip_VS_0_PBcfg.c generates the fault channel configuration with NULL_PTR. Is this a known limitation of the Pwm plugin, or a defect? Re: [S32K396] eFlexPWM configuration issues Hi, Q1 – Fault mapping for complementary PWMA/PWMB For a complementary channel pair, only PWMA is configured and PWMB is generated according to the configured A/B relationship.  The Pwm configuration provides individual fault enable settings through FlexPwmChannelFaultSettings. However, when complementary mode is selected, PWMB is no longer available as a separate configurable channel, so there is no corresponding GUI option to customize its DIS0B fault mapping. With the default DISMAP reset configuration, the fault inputs remain enabled for the output. Therefore, from the application point of view, the required fault protection is preserved with the default configuration. I will nevertheless check with the RTD team whether the inability to separately configure DIS0B/DIS0X in complementary mode is intentional and whether there is a supported method for applications requiring a different fault mapping. Q2 – ADC trigger in center-aligned PWM mode The Pwm configuration allows the trigger source to be selected from PWMX, PWMA or PWMB, together with rising edge, falling edge or both edge selection. For center-aligned PWM, VAL1 determines the PWM period and therefore cannot be freely adjusted to move the ADC sampling point. There are several possibilities depending on the required sampling point: If sampling exactly at the PWM reload point is required, the FlexPWM reload pulse is directly available as a TRGMUX trigger source and can be routed through TRGMUX to BCTU/ADC. If local synchronization using PWMX and its VAL0/VAL1 resources is not required for the submodule, PWMX can be configured and used for ADC triggering through the standard Pwm trigger configuration. If the sampling point needs to be independently adjusted relative to the PWM center, a free VALx comparator can be configured through the FlexPWM IP APIs and used as an output trigger. Therefore, the preferred solution depends on whether the ADC sampling point needs to be fixed at the PWM reload point or independently adjustable relative to it. Q3 – Fault notification generated as NULL_PTR According to the Pwm User Manual, FlexPwmFaultNotification specifies the user callback function for fault detection, and a configured value different from NULL or NULL_PTR should be used as the callback function name.   I also tested this with RTD 7.0.1 using the S32 Design Studio configuration tool. In this case, the configured fault notification is correctly propagated into FlexPwm_Ip_VS_0_PBcfg.c, including the callback prototype and the corresponding entry in the FaultNotification[] array.   However, I have not yet verified the same configuration using EB tresos Studio 30.0.0. Therefore, I will check with the RTD team whether there is any known difference or limitation in the EB tresos generation path that could result in NULL_PTR being generated instead. BR, Petr 回复: [S32K396] eFlexPWM configuration issues I have also further questions as bellow: Q1.I would like to follow up on this statement: "With the default DISMAP reset configuration, the fault inputs remain enabled for the output. Therefore, from the application point of view, the required fault protection is preserved with the default configuration." This holds only if all four fault inputs are actually routed on the board. In our ECU only FAULT0 is connected (it carries the FS_FLAG of the gate driver, ST L9908). FAULT1..FAULT3 are not routed at all, so those pads are left floating / not configured as Port pins, and the IMCR does not route them - the fault inputs read a constant level. Since DISMAP0 resets to 0xFFFF (every fault input mapped to every output), the consequence is: --With FLVL = LOW for the unrouted channels, the constant low level is interpreted as a permanent fault and the outputs stay disabled forever. - With FLVL = HIGH for the unrouted channels, those fault channels are permanently inactive, but they are still mapped onto the A/B/X outputs. Therefore, we have to manually update the DISMAP0 register after 'Pwm_Init()', so that only FAULT0 is mapped to DIS0A / DIS0B / DIS0X. Whether the DIS0A/DIS0B/DIS0X fields can be exposed in the GUI for complementary mode (so that A and B can be mapped independently)?  Q2.  option1(FlexPWM reload pulse as a TRGMUX trigger source): We confirmed that TRGMUX_IP_INPUT_PWM0_MST_RELOAD is available. option2(PWMX for ADC triggering): This is actually the path we tried first, before opening this thread: we wanted a PWMX falling edge aligned to VAL1. But when Channel Pair = COMPLEMENTARY is selected, the EB tresos Pwm plugin does not allow creating a PWMX channel container for that submodule at all, so the trigger source PWMX cannot be selected. Could you confirm whether this restriction in the plugin is intentional, and whether PWMX-based triggering is supposed to be usable in complementary mode? If it is a plugin limitation, it would be worth reporting to the EB plugin team as well. Thanks again for the detailed answer. Re: [S32K396] eFlexPWM configuration issues Thank you for your response, and wait for your confirmation from RTD team. 回复: [S32K396] eFlexPWM configuration issues Hi, Thank you for the clarification and additional testing. Q1 – DISMAP configuration You are correct. My previous statement about the default DISMAP configuration being sufficient was too general. For your application, where only FAULT0 from the L9908 is used, configuring the DIS0A/DIS0B/DIS0X mappings so that only FAULT0 affects the corresponding outputs is the appropriate configuration. I will clarify with the RTD team whether the lack of independent DIS0B/DIS0X configuration in complementary mode is an intentional limitation of the Pwm plugin and whether these settings are planned to be exposed by the configuration tool. Your manual update of DISMAP0 after Pwm_Init() provides a practical workaround in the meantime, provided the register configuration is consistent with the intended fault handling. Q2 – ADC trigger in center-aligned PWM mode Regarding PWMX, the restriction within the same submodule appears reasonable because PWMX uses VAL0/VAL1, which are also involved in the local synchronization/reload configuration. For your use case, I see two practical options: - If sampling exactly at the PWM reload point is required, use the reload trigger directly through TRGMUX. -If an adjustable sampling point is required, use an unused VAL comparator, for example VAL4/VAL5, and configure the trigger through the FlexPWM IP API. Another synchronized FlexPWM submodule could also be used to generate the trigger through its PWMX/VAL0/VAL1 resources, but using an available VAL4/VAL5 comparator appears simpler if no additional submodule functionality is required. I will confirm these options with the RTD team. BR, Petr
View full article
FRDM-IMXRT1186イーサネットLEDの動作不良 こんにちは、 私はFRDM-IMXRT1186ボード(PCB Rev A、SCH Rev A3)とJ56A ETH0イーサネットインターフェースを使用しています。イーサネット自体は1Gbpsで正常に動作しますが、2つのRJ45 LEDは点灯したままです。 PHYはアドレス5のYT8531SH-CAです。PHY LEDレジスタを手動で強制的に設定してみましたが、それでもLEDは点灯しませんでした。 公式のMCUXpresso SDK lwIP HTTPサーバーの例でも同じ動作を再現しました:サーバーとイーサネットは動作しますが、RJ45のLEDは点灯したままです。 これはこの基板リビジョンにおける既知の問題でしょうか?それとも、J56A LEDに関して必要なPHY構成やハードウェアの回避策はありますか? i.MX RT Re: FRDM-IMXRT1186 Ethernet LEDs not working ハイ 詳細な情報を提供していただきありがとうございます。あなたが説明した挙動からすると、イーサネットリンクとデータ通信は正常に動作しており、J56AインターフェースのLED表示は点灯していません。 詳細なご意見をありがとうございます。報告された行動については承知いたしました。 よろしくお願いします、 パブロ
View full article
[S32K344] Random Resets of Type "MCU_F_EXR_RESET" I am developing using a custom PCBA with an S32K344 microcontroller, and I occasionally have seen the board randomly reset and after the board resets, the `Power_Ip_GetResetReason()` function returns `MCU_F_EXR_RESET` (value = 15), which appears to be an external reset (i.e., the RESET pin was pulled low). However, when this has occurred, I have had nothing connected to the RESET pin, and the RESET pin is pulled high with a 10 kOhm resistor. Upon reading documentation, I found this section in the user manual for the S32K344 White Board: Is there a comprehensive list of these "some MCU internal failures" which can pull the RESET line low? Also, does this mean the MCU itself can pull the RESET pin low internally upon some other internal failure? If so would I still receive the `MCU_F_EXR_RESET` reset reason? Re: [S32K344] Random Resets of Type "MCU_F_EXR_RESET" @jleveque, I'm curious if you ever discovered the root cause of your unexpected resets? Re: [S32K344] Random Resets of Type "MCU_F_EXR_RESET" I do not know your API so it hard to judge what is : MCU_F_EXR_RESET "MCU_F_EXR_RESET" is a member of the "Power_Ip_ResetType" enum type in the Power_Ip_Specific.h file (part of the RTD, version 3.0.0). This is the type returned by the Power_Ip_GetResetReason() function defined in the Power_Ip.c file. Internal resets will also be propagated to reset_b pin as it is bidirectional. But there wont be set F_EXR flag in RGM [FES], but some other internal source flag. This is the info I was looking for. As long as it is guaranteed that the F_EXR flag will only ever be set if the RESET pin was pulled low externally (and not from an internal reset) then I can narrow down my search as to what is causing this issue. Thanks again, Peter! Re: [S32K344] Random Resets of Type "MCU_F_EXR_RESET" Hello, I do not know your API so it hard to judge what is : MCU_F_EXR_RESET But if you have external reset flag set in the RGM FES register then it mean the reset wa triggered from outside of uC. Internal resets will also be propagated to reset_b pin as it is bidirectional. But there wont be set F_EXR flag in RGM [FES], but some other internal source flag. Best regards, Peter Re: [S32K344] Random Resets of Type "MCU_F_EXR_RESET" This can be cause also by debugger, which is also pulling external reset. So the question is how do you read this function. Thank you for your reply, Peter! As I stated above, this reset is occurring with nothing connected to the RESET pin (the debugger is not physically connected), so this is being triggered by something else. As to how I read this function, I call the function first thing after boot and store the return value. Per your suggestion, I will add additional direct reads of the RGM [FES/DES] registers in hopes that I can get more insight, but ultimately I really want to know what are the "MCU internal failures" which can cause this "MCU_F_EXR_RESET" reset reason. Re: [S32K344] Random Resets of Type "MCU_F_EXR_RESET" Hello, `Power_Ip_GetResetReason()` function returns `MCU_F_EXR_RESET` This can be caused also by debugger, which is also pulling external reset.So the question is how do you read this function. But nevertheless you can read reset reason from RGM [FES/DES] registers: Clear FES/DES first.After your reset, read the registers to see the reset root cause. Usually you in SW clear the FES/DES after power on reset and test if the FES/DES value is 0. If not you run diagnostics to see the reset reason. Best regards, Peter Re: [S32K344] Random Resets of Type "MCU_F_EXR_RESET" Unfortunately, no. I left the company I was working for before this was resolved. It was last left in the hands of the electrical engineer who designed the board to review the PCB design with the suspicion that the cause may be EMI. I will note that on a subsequent project I worked on featuring an S32K358 MCU, I experienced spurious wake-ups from Standby mode, and I was able to reliably reproduce it by standing up out of my office chair. Looking into this phenomenon, I discovered that an office chair with a gas shock and metal legs can act as an EMP antenna, radiating a strong electromagnetic field! I found that there was actually a whitepaper written about it back in 1993: https://www.emcesd.com/pdf/eos93.pdf. I could measure this with an oscilloscope probe connected to nothing. Standing up from my chair would trigger the scope with a very brief spike of ~25V. So my original reset issue may have also been caused by EMI, as we had last suspected. I would suggest looking into EMI as a potential cause of your resets. Good Luck!
View full article
RT1186 TSN DEMOビルドの問題 i.MX RT1186のFRDMボードを2枚持っていて、プロジェクトをfrdmimxrt1186_tsn_app_cm33インポートしますが、いくつかのビルド設定があり、どれを選べばいいのか全く分かりません。 私の目標は、fgptpを有効にした状態で基本的なTSN通信をテストすることです。イーサネットケーブルで2台のボードを接続した後、2台のデバイスがマスターとスレーブの役割を交渉したことを示すシリアルポートのログが見られるはずです。 ユーザーガイドの説明は複雑です。どなたか、これを達成するための一般的な手順を教えていただけませんか? Re: RT1186 TSN DEMO build problem @ChandlerY様、 fgptpのテストを行うには、「リリース」を選択してください。 詳細な設定手順については、以下を参照してください。 https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs-Knowledge/Step-by-Step-Guide-to-Running-the-GenAVB-TSN-Stack-FreeRTOS/ta-p/2390969 を参照してください。第2章4節: よろしくお願いいたします。 シェリー
View full article
i.MX93 AHAB: Security implications of keeping SDP enabled in OEM_CLOSED Hello NXP Support, We have received several questions from a customer using the i.MX93 (VAR-SOM-MX93) regarding the security implications of leaving Serial Download Protocol (SDP) enabled in production devices with AHAB enabled and the lifecycle set to OEM_CLOSED. The customer would like to retain USB recovery functionality for troubleshooting and device recovery, while ensuring that this does not introduce security vulnerabilities. They have reviewed the i.MX93 Reference Manual and Security Reference Manual but would appreciate clarification on the following points: SDP access restrictions in OEM_CLOSED What memory, register, and eFuse read/write operations are permitted through SDP when the device is in OEM_CLOSED? Can an unauthenticated host access sensitive memory or perform write operations „outside“ the authenticated recovery process? BOOT_CFG10 eFuse settings The i.MX93 Reference Manual (Section 9.9.3, Table 57) documents the SDP_WO and SDP_READ_DISABLE settings. Could you clarify their meaning and behavior; how they affect SDP in OEM_CLOSED, and their intended use cases? The customer was also unable to locate these settings in the RM itself, in the fusemap spreadsheet nor in the Security Reference Manual. Security implications of OEM_CLOSED vs. OEM_LOCKED From NXP's perspective, what additional security risks should be considered when leaving SDP enabled in OEM_CLOSED compared to disabling USB recovery through OEM_LOCKED? Are there any recommended configurations or mitigations for production devices that require authenticated USB recovery? We would appreciate your guidance or references to further documentation covering these aspects. Thank you. Best regards, Alex Security Re: i.MX93 AHAB: Security implications of keeping SDP enabled in OEM_CLOSED Hi, Thank you for your interest in NXP Semiconductor products, 1. SDP is used to download images, production devices could have SDP enabled, new images could be overwritten only if they are signed. Aside from that, if devices have a signed image flashed, U-boot command line tools like md, mw, fuse read, write could be executed or code actions could be performed. 2. I am confirming their descriptions internally. 3. OEM_CLOSED and OEM_LOCKED are similar, except no debug/DFT/Boundary Scan/USB recovery and No Field Return in OEM_LOCKED. Regards
View full article
A53 reset and lockstep boot with S32G3 Dear NXP Support Team, When booting from Cortex-M7 on the S32G399A-EVB3, does Cortex-A53 automatically remain in reset? After M7 configures Cortex-A53 Lockstep mode, what is the correct procedure to release the A53 reset and allow it to start execution? Could you please clarify the expected reset behavior and provide the recommended reset-release sequence? Best regards, Toan Re: A53 reset and lockstep boot with S32G3 Hi, Toan Thank you for contacting us. I will help you check it and reply to you at the following case. Clarification on Reset Sequence and A53 Lockstep Boot Flow with S32G3 BSP 48.0.0 - NXP Community BR Joey
View full article
i.MX93 AHAB:在 OEM_CLOSED 模式下保持 SDP 启用的网络安全隐患 您好,NXP技术支持, 我们收到了一些使用 i.MX93 (VAR-SOM-MX93) 的客户提出的问题,询问在启用 AHAB 且生命周期设置为 OEM_CLOSED 的生产设备中启用串行下载协议 (SDP) 的网络安全隐患。 客户希望保留 USB 恢复功能以进行故障排除和设备恢复,同时确保这不会引入网络安全漏洞。 他们已查阅了 i.MX93 参考手册和网络安全参考手册,但希望就以下几点获得澄清: OEM_CLOSED 中的 SDP 访问限制 当设备处于 OEM_CLOSED 状态时,通过 SDP 允许执行哪些内存、寄存器和 eFuse 读/写操作?未经身份验证的主机能否在经过身份验证的恢复过程“之外”访问敏感内存或执行写入操作? BOOT_CFG10 eFuse 设置 i.MX93 参考手册(第 9.9.3 节,表 57) 记录了 SDP_WO 和 SDP_READ_DISABLE 设置。 能否解释一下它们的含义和行为;它们如何影响 OEM_CLOSED 中的 SDP,以及它们的预期用途?客户也无法在 RM 本身、fusemap 电子表格或网络安全参考手册中找到这些设置。 OEM_CLOSED 与 OEM_LOCKED 的网络安全隐患 从 NXP 的角度来看,与通过 OEM_LOCKED 禁用 USB 恢复相比,在 OEM_CLOSED 中启用 SDP 会带来哪些额外的网络安全风险? 对于需要经过身份验证的 USB 恢复的生产设备,是否有任何推荐的配置或缓解措施? 我们非常感谢您能提供这方面的指导或相关文件资料。 谢谢。 此致, 亚历克斯 安全 Re: i.MX93 AHAB: Security implications of keeping SDP enabled in OEM_CLOSED 您好, 感谢您对恩智浦半导体产品的关注, 1. SDP 用于下载图像,生产设备可以启用 SDP,只有经过签名的新图像才能被覆盖。除此之外,如果设备已刷入签名镜像,则可以执行 U-boot 命令行工具(如 md、mw、熔丝 read、write)或执行代码操作。 2. 我正在内部确认他们的描述。 3. OEM_CLOSED 和 OEM_LOCKED 类似,只是 OEM_LOCKED 没有调试/DFT/边界扫描/USB 恢复功能,也没有字段返回功能。 此致
View full article
S32K312 SIUL interrupt When an effective interrupt is generated,can not into void SIUL_2_Handler(void),but can into void Default_Handler(void),why? Re: S32K312 SIUL interrupt Hello @joshua9264 , The map file and memory view confirm that the vector table is correct. SIUL_2_Handler is located at 0x00400765 and the corresponding vector entry at 0x0040021C contains the same address. Therefore, the weak handler and vector-table linkage are not the cause. The reported CFSR.INVSTATE HardFault indicates an invalid processor execution state. Since the vector entry includes the required Thumb bit, the fault may occur inside the interrupt handler or during the exception return. The displayed Default_Handler may actually be the weak handler used for the HardFault exception. Please set an instruction breakpoint at 0x00400764, which is the actual first instruction of SIUL_2_Handler and step through the handler in the Disassembly view. This will confirm whether the processor enters the handler and identify the instruction after which the fault occurs. If the fault occurs during the return from the handler, please also provide the following values immediately after the HardFault: SCB->CFSR SCB->HFSR SCB->SHCSR SCB->ICSR MSP value The stacked PC and xPSR values The stacked xPSR must have the Thumb state bit, bit 24, set. A stacked PC of 0x00000000 or a cleared Thumb bit would explain the INVSTATE fault. Best regards, Pavel Re: S32K312 SIUL interrupt thank you PavelL I checked these addresses and data are correct,But it still cannot enter SIUL_2_Handler。 I will generate a project using S32DS to test The processor has escalated a configurable-priority exception to HardFault. I don't know what caused it   Re: S32K312 SIUL interrupt Hello @joshua9264 , Thank you for providing the project files. I checked the startup file, vector table, main.c, linker configuration and IAR project settings. The handler name appears to be correct: The vector table uses SIUL_2_Handler. main.c provides a strong implementation of SIUL_2_Handler. The startup file defines the default implementation as a weak alias to Default_Handler. SystemInit() sets SCB->VTOR to the __VECTOR_TABLE symbol. Therefore, the implementation in main.c should override the weak default handler. At this point, please check the final linker output to confirm which address was actually assigned to the vector table entry. The IAR project has map file generation enabled. Please check the Debug\List directory for a .map file. In the map file, search for: SIUL_2_Handler Default_Handler __VECTOR_TABLE Please verify that SIUL_2_Handler has its own address and is not resolved to the same address as Default_Handler. The map file should also indicate that the implementation comes from main.o, while the weak definition comes from the startup object. For the flash configuration, the vector table should start at 0x00400100. Since SIUL_2_IRQn is IRQ 55, its vector table entry should be located at: 0x00400100 + 4 × (16 + 55) = 0x0040021C Please also check the following values in the debugger after SystemInit() has executed: The value of SCB->VTOR. It should be 0x00400100 for the flash configuration. The 32-bit value stored at address 0x0040021C. The address of SIUL_2_Handler. The address of Default_Handler. The value stored at 0x0040021C should correspond to the address of the application implementation of SIUL_2_Handler, with bit 0 set because the Cortex-M7 executes Thumb instructions. If the vector entry points to Default_Handler, please perform a Clean and Rebuild in IAR and make sure that the newly generated .out file is downloaded to the MCU.  Best regrads, Pavel Re: S32K312 SIUL interrupt and this is  my project file Re: S32K312 SIUL interrupt Hi:PavelL This is startup file and vector table,I haven't found SIUL_2_IRQHandler, I am using an IAR project generated by S32DS。 Re: S32K312 SIUL interrupt Hello @joshua9264 , Since the CPU enters Default_Handler(), the SIUL2 interrupt is most likely generated correctly, but the interrupt vector is still linked to the default weak handler. Please check the startup file or vector table and use the exact ISR name assigned to SIUL_2_IRQn. The expected name may be SIUL_2_IRQHandler() rather than SIUL_2_Handler(). The linker map file can be used to verify which function is actually assigned to the interrupt vector. Best regards, Pavel
View full article
S32K312 SIUL割り込み 効果的な割り込みが生成された場合、Void SIUL_2_Handler(void)には入れないが、void Default_Handler(void)には入れるのか?なぜ? Re: S32K312 SIUL interrupt こんにちは、 @joshua9264 さん、 マップファイルとメモリビューにより、ベクターテーブルが正しいことが確認されました。SIUL_2_Handlerは0x00400765に位置し、対応するベクターエントリ0x0040021Cには同じアドレスが含まれています。したがって、弱いハンドラとベクターテーブルのリンクが原因ではありません。 報告されたCFSR.INVSTATEハードフォールトは、プロセッサの実行状態が無効であることを示します。ベクタエントリには必須のサムビットが含まれているため、割り込みハンドラ内または例外戻り時に障害が発生する可能性があります。表示されている Default_Handler は、実際には HardFault 例外に使用される弱いハンドラーである可能性があります。 SIUL_2_Handler の最初の命令である 0x00400764 に命令ブレークポイントを設定し、逆アセンブリビューでハンドラをステップ実行してください。これにより、プロセッサがハンドラーに入ったかどうか、そして故障が発生する命令を識別します。 ハンドラからの戻り時にエラーが発生した場合は、ハードフォルトの直後に以下の値も指定してください。 SCB->CFSR SCB->HFSR SCB->SHCSR SCB->ICSR MSP値 積み重ねられたPC値とxPSR値 スタックされたxPSRは、サム状態ビット(ビット24)がセットされている必要があります。スタックされたPCが0x00000000であるか、サムビットがクリアされている場合、INVSTATEエラーが説明できます。 よろしくお願いいたします。 パベル Re: S32K312 SIUL interrupt パベルさん、ありがとう これらのアドレスとデータは正しいものを確認しましたが、それでも入力できませんSIUL_2_Handler。 S32DSを使用してプロジェクトを生成してテストします プロセッサはHardFaultに対して設定可能な優先度の例外をエスカレーションしました。 何が原因かはわかりません   Re: S32K312 SIUL interrupt こんにちは、 @joshua9264 さん、 プロジェクトファイルをご提供いただきありがとうございます。 起動ファイル、ベクターテーブル、main.c を確認しました。リンカーの設定とIARプロジェクトの設定。ハンドラー名は正しいようです。 ベクトルテーブルはSIUL_2_Handlerを使用します。 main.c は、SIUL_2_Handler の強力な実装を提供します。 起動ファイルでは、デフォルトの実装を Default_Handler の弱いエイリアスとして定義しています。 SystemInit() は SCB->VTOR を __VECTOR_TABLE シンボルに設定します。 したがって、main.c の実装弱いデフォルトハンドラをオーバーライドする必要があります。この時点で、最終的なリンカーの出力を確認し、ベクターテーブルのエントリに実際に割り当てられたアドレスを確認してください。 IARプロジェクトでは、地図ファイルの生成機能が有効になっています。Debug\List ディレクトリに .map ファイルがあるかどうか確認してください。ファイル。地図ファイル内で以下を検索してください: SIUL_2_ハンドラー デフォルトハンドラー __VECTOR_TABLE SIUL_2_Handlerが独自のアドレスを持ち、Default_Handlerと同じアドレスに解決されていないことを確認してください。マップファイルには、実装がmain.oから来ており、弱い定義がスタートアップオブジェクトから来ていることも明記する必要があります。 フラッシュ構成の場合、ベクターテーブルは0x00400100から開始する必要があります。SIUL_2_IRQnはIRQ 55であるため、そのベクタテーブルエントリは次の場所に配置されます。 0x00400100 + 4 × (16 + 55) = 0x0040021C SystemInit() の実行後、デバッガーで以下の値も確認してください。 SCB->VTOR の値。フラッシュ構成の場合は0x00400100である必要があります。 アドレス0x0040021Cに格納されている32ビット値。 SIUL_2_Handler のアドレス。 Default_Handler のアドレス。 0x0040021Cに保存される値は、SIUL_2_Handlerのアプリケーション実装のアドレスに対応し、ビット0はCortex-M7がサム命令を実行するために設定されます。 ベクターエントリが Default_Handler を指している場合は、IAR でクリーンと再構築を実行し、新しく生成された .out ファイルが正しく生成されていることを確認してください。ファイルはMCUにダウンロードされます。 よろしくお願いいたします。 パベル Re: S32K312 SIUL interrupt そしてこれが私のプロジェクトファイルです Re: S32K312 SIUL interrupt こんにちは:パベル これは起動ファイルとベクターテーブルです。SIUL_2_IRQHandler は見つかりませんでした。 私はS32DSで生成されたIARプロジェクトを使用しています。 Re: S32K312 SIUL interrupt こんにちは、 @joshua9264 さん、 CPUがDefault_Handler()に入るため、SIUL2割り込みは正しく生成される可能性が高いですが、割り込みベクタは依然としてデフォルトの弱いハンドラにリンクされています。 スタートアップファイルまたはベクターテーブルを確認し、SIUL_2_IRQnに割り当てられた正確なISR名を使用してください。期待される名前は SIUL_2_Handler ()ではなく SIUL_2_IRQHandler()かもしれません。リンカーマップファイルを使って割り込みベクターに実際に割り当てられた関数を検証できます。 よろしくお願いいたします。 パベル
View full article