Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
SDK_DelayAtLeastUs is inaccurate by 30% in IMXRT1186 M7 core Hi All, I am playing with FRDM-IMXRT1186 board where MCU has dual core M33 and M7. #iMXRT1186 I found that SDK_DelayAtLeastUs function is not that accurate. I expect the delay to be 0.5 sec(500,000 us) but the actual time is about 0.6 sec.  CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; DWT->CYCCNT = 0; DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; uint32_t t0 = DWT->CYCCNT; SDK_DelayAtLeastUs(500000U, SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY); LED_TOGGLE(); cycles = DWT->CYCCNT - t0; In SDK_DelayAtLeastUs, count = count / 3U * 2U can be count = count / 2U to get more accurate result. But I am not sure if this modification makes sense. #elif (__CORTEX_M == 7) /* Divide value may be different in various environment to ensure delay is precise. * Every loop count includes three instructions, due to Cortex-M7 sometimes executes * two instructions in one period, through test here set divide 1.5. Other M cores use * divide 4. By the way, divide 1.5 or 4 could let the count lose precision, but it does * not matter because other instructions outside while loop is enough to fill the time. */ count = count / 3U * 2U; Thank you. Re: SDK_DelayAtLeastUs is inaccurate by 30% in IMXRT1186 M7 core Dear @ewlee , The change to count = count / 2U may improve the result in your current test environment, but we would not recommend using it as a general fix. SDK_DelayAtLeastUs() is intended to provide a loop-based “at least” delay, and its accuracy may be affected by the runtime environment.  If an accurate 500 ms interval is required, we recommend using a hardware timer, such as a General Purpose Timer (GPT), for more precise timing. Best Regards, Shelly
View full article
PN5190 NFC读取器库 v07.13.00:如果命令没有收到中断请求 (IRQ),则发现循环将无限期挂起。 软件包: NXP NFC读取器库 v07.13.00 (NfcrdlibEx1_DiscoveryLoop, PN5190, Linux OSAL)。版本说明 RN00009。 运行发现循环示例时,phacDiscLoop_Run(POLL) 有时永远不会返回。该进程持续运行。这种情况会在没有刷卡的情况下发生,而且没有固定的周期。 phhalHw_Pn5190_WaitIrq() 会等待除 EXCHANGE_RF_DATA 之外的每条指令,并等待 PHOSAL_MAX_DELAY。在这种情况下,命令是 READ_REGISTER (0x04),并且 IRQ 引脚从未变为高电平,因此 phOsal_EventPend() 不会返回。中止路径 phhalHw_Pn5190_Wait_IrqAbortHandling() 的等待方式相同。 这种无限等待是故意的吗?应用程序应该如何在不重启电源的情况下恢复 PN5190? 我添加了许多来自演示示例的日志,并将 WaitIrq 的超时时间从无限缩短到 10 秒。 关于如何处理这件事,大家有什么建议吗? 附件是示例程序的日志。 Re: PN5190 NFC Reader Library v07.13.00: discovery loop hangs forever if a command gets no IRQ 补充信息:PN5190 版本 信息:芯片 ID:0x00,硬件:v83,ROM:v3,固件:v770 Re: PN5190 NFC Reader Library v07.13.00: discovery loop hangs forever if a command gets no IRQ 您能否尝试一下最新版本的NFC读取器库? NFC读取器库 | 恩智浦半导体 Re: PN5190 NFC Reader Library v07.13.00: discovery loop hangs forever if a command gets no IRQ 嗨,吉米, 我们将使用最新的 NFC读取器库 (07.18.00) 进行重新测试,并报告是否可以重现同样的故障。 我们还发现了主机端的问题。在 i.MX93 上,PN5190 位于 LPSPI5 上。当 SPI 输出焊盘处于快速转换速率和驱动强度 X6 (0x3fe) 时,发现循环轮询失败。phacDiscLoop_Run 返回 PHAC_DISCLOOP_FAILURE (0x0080),我们将其记录为“轮询模式失败”。 降低 i.MX93 输出边沿的速度可以消除这种故障。目前稳定的鼠标垫设置如下: LPSPI5_SCK:0x02(慢速转换,驱动 X1) LPSPI5_SOUT:0x02(慢速转换,驱动 X1) SPI 片选:0x02(慢速转换,驱动 X1) LPSPI5_SIN:保留在 0x3fe,因为此引脚为输入引脚 PN5190 IRQ GPIO:未更改 由于 SCK、SOUT 和芯片选择边沿速度较慢,轮询得以继续,我们不再看到“轮询模式故障”。快速边沿敲击到 PN5190 时钟引脚。我们将于 07.18.00 再次确认此事。 如果((DiscLoopStatus & PH_ERR_MASK) == PHAC_DISCLOOP_FAILURE)
View full article
Is it possible to implement the S32K1 LIN Stack without MCAL? Is this possible? We're using the S32K116 controller, which only comes with 128KB of flash memory. Memory space is already running low with the peripheral drivers added for basic system functionality. Now the question: Is it possible to add the LIN Stack without using MCAL Periphery drivers? This way I could switch to using IP drivers to reduce memory usage. First experiments showed that I cannot choose the Lpuart_Lin IP driver in the linstack_config middleware. Is there a setting I'm missing that enables me to choose it? Re: Is it possible to implement the S32K1 LIN Stack without MCAL? Hi@daniel_meier you can take a look at this post. https://community.nxp.com/t5/S32-SDK/LIN-Middleware-stack-configuration-issue/td-p/1739186https://community.nxp.com/t5/S32K/How-to-config-Lin-module-as-slave-node-base-MCAL-driver-in-S32K/td-p/1077781 In the RTD driver, the LIN stack depends on the configuration of the MCAL layer. If your project does not strictly require the use of RTD drivers, you might to try the S32K1 SDK. https://www.nxp.com/pages/s32-software-development-kit-for-s32k1:S32SDK-ARMK1
View full article
IMXRT1186 M7コアではSDK_DelayAtLeastUsの精度が30%低下する。 こんにちは、皆さん。 私はFRDM-IMXRT1186ボードでプレイしており、MCUにはデュアルコアのM33とM7があります。#iMXRT1186 SDK_DelayAtLeastUs関数はそれほど正確ではないことがわかりました。遅延時間は0.5秒(50万マイクロ秒)と予想していたが、実際の遅延時間は約0.6秒だった。 CoreDebug-> DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; DWT-> CYCCNT = 0; DWT-> CTRL |= DWT_CTRL_CYCCNTENA_Msk; uint32_t t0 = DWT-> CYCCNT ; SDK_DelayAtLeastUs (500000U, SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY); LED_TOGGLE(); サイクル数 = DWT-> CYCCNT - t0; SDK_DelayAtLeastUsでは、count = count / 3U * 2U を count = count / 2U にしてより正確な結果を得ることができます。 しかし、この変更が理にかなっているかどうかは確信が持てません。 #elif (__CORTEX_M == 7) /* 遅延を正確にするために、さまざまな環境で除算値が異なる場合があります。 * すべてのループカウントには3つの命令が含まれています。これはCortex-M7が時折実行されるためです。 * 1周期に2つの命令、テストを通してここで1.5を割ります。他のMコアは * 4を割る。ちなみに、1.5や4を割るとカウントの精度が落ちる可能性があるが、そうなる * 問題ありません。なぜなら、while loop 外の他の命令で時間を埋めるのに十分だからです。 */ count = count / 3U * 2U; よろしくお願いします。 Re: SDK_DelayAtLeastUs is inaccurate by 30% in IMXRT1186 M7 core @ewlee様、 count = count / 2U に変更することで、現在のテスト環境では結果が改善される可能性がありますが、一般的な修正方法として使用することはお勧めしません。 SDK_DelayAtLeastUs() は、ループベースの「最小」遅延時間を提供するように設計されており、その精度は実行環境によって影響を受ける可能性があります。 正確な500ミリ秒間隔が必要な場合は、汎用タイマー(GPT)などのハードウェアタイマーを使用して、より精密なタイミング制御を行うことをお勧めします。 よろしくお願いいたします。 シェリー
View full article
MCALなしでS32K1 LINスタックを実装することは可能でしょうか? これは可能ですか? S32K116コントローラを使っていますが、フラッシュメモリは128KBしか搭載されていません。 基本的なシステム機能のために周辺機器ドライバが追加されたため、メモリ容量はすでに不足しています。 さて質問です:MCAL周辺ドライバを使わずにLINスタックを追加することは可能でしょうか? こうすればIPドライバを使ってメモリ使用を減らせることができました。 最初の実験では、linstack_configミドルウェアでLpuart_Lin IPドライバを選べないことがわかりました。それを選択できる設定を見落としているのでしょうか? Re: Is it possible to implement the S32K1 LIN Stack without MCAL? こんにちは、@ daniel_meier この投稿をご覧いただけます。 https://community.nxp.com/t5/S32-SDK/LIN-Middleware-stack-configuration-issue/td-p/1739186https://community.nxp.com/t5/S32K/How-to-config-Lin-module-as-slave-node-base-MCAL-driver-in-S32K/td-p/1077781 RTDドライバでは、LINスタックはMCAL層の構成に依存します。 もしプロジェクトでRTDドライバの使用が厳密に必要でなければ、S32K1 SDKsを試してみるのも良いでしょう。 https://www.nxp.com/pages/s32-software-development-kit-for-s32k1:S32SDK-ARMK1
View full article
iMX8Mp_FALCON_MODE_RDC_FAILED 你好 环境详情: 板: i.MX8M Plus EVK(i.MX8MP EVK) 内核版本: 6.12.49 Yocto 环境:基于 Yocto 的 NXP 电路板支持包。 启动模式:猎鹰模式 我在 i.MX8MP 中启用了 Falcon 模式,但出现错误: 找不到节点!错误代码:-11!=> 我发现这个问题是由于 RDC 节点结构不完整引起的。 我们需要RDC节点吗?否则我们可以采用这个方案。 以下是我的启动日志: U-Boot SPL 2025.04-g4ddbad60eff3-dirty(2025年11月19日 07:56:58 +0000) DDRINFO:启动动态随机存取存储器\(DRAM\)初始化 DDRINFO:动态随机存取存储器\(DRAM\) 速率 4000MTS DDRINFO:DDRPHY 校准完成 DDRINFO:ddrmix 配置完成 SEC0:RNG 实例化 正常启动 尝试从 MMC2 启动 找不到节点!错误代码:-11! 找不到节点!错误代码:-11! 注意:请勿将 JR0 释放给 NS,因为它可能被 HAB 使用。 注意:BL31:v2.12.0(版本):lf-6.12.49-2.2.0-dirty 通知:BL31:版本时间:2025年10月17日 10:13:07 p104p104p104 NXP i.MX 版本 发行版。 6.12-walnascar imx8mpevk ttymxc1   imx8mpevk 登录:root root@imx8mpevk:~# i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: iMX8Mp_FALCON_MODE_RDC_FAILED 嗨@Sanjiv_Mns “imx8m,mcu_rdc”用于生成 RDC 配置,以分配 M7 独有的资源。如果不需要此功能,可以删除对board_handle_rdc_config的引用。如果需要,可以将mcu_rdc添加到 dts 中。 此致, 志明
View full article
PN5190 NFCリーダライブラリ v07.13.00:コマンドにIRQがなければディスカバリーループが永久にハングします パッケージ:NXP NFCリーダライブラリ v07.13.00(NfcrdlibEx1_DiscoveryLoop、PN5190、Linux OSAL)。リリースノートRN00009。 ディスカバリ ループの例を実行すると、phacDiscLoop_Run(POLL) が返されないことがあります。プロセスは継続されます。カードが提示されていない場合でも発生し、決まった周期で発生するわけでもありません。 phhalHw_Pn5190_WaitIrq() は、EXCHANGE_RF_DATA を除くすべての命令に対して PHOSAL_MAX_DELAY で待機します。このCASEでは、コマンドはREAD_REGISTER(0x04)で、IRQピンはハイにならなかったため、phOsal_EventPend()は戻りません。中止パスである phhalHw_Pn5190_Wait_IrqAbortHandling() も同様に待機します。 この無限待ち時間は意図的なものなのでしょうか?また、電源サイクルなしでアプリケーションがPN5190をどうやって復旧すればよいのでしょうか? デモ例から多くのログを追加し、WaitIrqのタイムアウトを無制限から10秒に短縮しました。 この件について、どのように対処すべきか何かご提案はありますか? サンプルプログラムのログを添付します。 Re: PN5190 NFC Reader Library v07.13.00: discovery loop hangs forever if a command gets no IRQ 追加情報:PN5190のバージョン 情報: ダイ ID: 0x00、HW: v83、ROM: v3、FW: v770 Re: PN5190 NFC Reader Library v07.13.00: discovery loop hangs forever if a command gets no IRQ こんにちは、ジミーさん。 最新のNFCリーダライブラリ(07.18.00)で再テストし、同じ故障が再現可能かどうか報告します。 ホスト側でも発見がありました。i.MX93では、PN5190はLPSPI5で動作します。SPI出力パッドを高速スルーレートおよび駆動強度X6(0x3fe)に設定すると、検出ループのポーリングが失敗します。phacDiscLoop_Run は PHAC_DISCLOOP_FAILURE (0x0080) を返します。これを「POLL モードの失敗」としてログに記録します。 i.MX93の出力エッジを遅くすることで、その不具合は解消されます。現在安定しているパッド設定は以下のとおりです。 LPSPI5_SCK: 0x02 (低速スルー、ドライブX1) LPSPI5_SOUT: 0x02 (低速スルー、ドライブX1) SPIチップセレクト:0x02(低速スルー、X1駆動) LPSPI5_SIN: このパッドは入力なので、0x3fe に残しておきます。 PN5190 IRQ GPIO: 変更なし SCK、SOUT、およびチップセレクトのエッジが遅くなったことで、ポーリングは継続され、「POLLモードの失敗」は発生しなくなりました。高速なエッジ信号がPN5190のクロックピンに伝わっていた。7月18日に改めて確認いたします。 if((DiscLoopStatus & PH_ERR_MASK) == PHAC_DISCLOOP_FAILURE) Re: PN5190 NFC Reader Library v07.13.00: discovery loop hangs forever if a command gets no IRQ 最新バージョンのNFC Reader Libraryを試してみてはどうですか? NFCリーダライブラリ |NXPセミコンダクターズ
View full article
MC34VR500V3ESが誤った電圧値を出力するのはなぜですか? こんにちは、 私の基板では、LS1021Aの電源供給にMC34VR500V3ESを使用しています。初回電源投入時に、以下に示すような誤った電圧値が出力されました。MC34VR500V3ESのVinは正しく3.3Vです。ENピンも3.3Vであることを確認してください。この回路図の部分をLS1021 A-I OT dee sig nと比較すると、LS1021A IOTの使用MC34VR500V1ES以外はほぼ同じです。MC34VR500V3ESのデフォルトのデバイス起動設定はデータシートのページ15に記載されています。つまり、最初の電源を入れる際は、IICでプログラムしなくてもシーケンス通りのデフォルト電圧を出力するということですね?しかし出力は出ません。デバッグの提案をいただけませんか? よろしくお願いいたします! よろしくお願いいたします。 ジェイソン 電源ソリューション Re: Why does MC34VR500V3ES output wrong voltage value こんにちは、太陽さん。 わかりました、電子負荷を探してみます。もう一つ問題があります。2つのLDO(LDO1とLDO3)が使用されていないため、負荷に接続されておらず、これらの2つのラインからの電圧出力が異常です。 ありがとう! よろしくお願いします! ジェイソン Re: Why does MC34VR500V3ES output wrong voltage value こんにちは まず、負荷をかけて実際の出力をテストし、結果を確認してください。100~200mA程度の電流を流し、一度に1つの経路ずつテストしてください。 Re: Why does MC34VR500V3ES output wrong voltage value こんにちは、太陽さん。 V3は工場出荷時にプログラム済みのバージョンであり、出力電圧とタイミングはマニュアルの15ページ、セクション6.1.1のデフォルト構成に従うため、設計は実際には非常にシンプルです。主にVINを供給し、ENピンを有効にするだけです。さらに、すべての出力フィードバックおよびループ回路(SWとLDOを含む)はチップ上に統合されています。現在、8つの電源出力のほぼすべてが間違っており、特にLDOは、非常に奇妙です。各電源出力のインピーダンスをテストしました。インピーダンスが92オームであるSW1の1.2V出力を除いて、他の8つは非常に高く、正常です。 回路図を以下に示します。この設計部分は、公式デモボードLS1021A-IOTの回路図とほぼ同じです。 ありがとう! よろしくお願いします! ジェイソン   Re: Why does MC34VR500V3ES output wrong voltage value こんにちは、 Jason_in_jobさん お使いのシステムはバージョンV3で、電源投入時にデフォルトでV3出力になります。電圧が正しくない場合は、以下の点にご注意ください。 1. 各チャンネルに100mAの負荷を追加してみてください。 2:基板レイアウトに重大な問題が発生する可能性は高くありません。 3:最初の提案がうまくいかない場合は、回路図を確認してください。 BR Re: Why does MC34VR500V3ES output wrong voltage value こんにちは、ジェイソン これもまた、以下の手順で新しいチケットを送信していただくべきトピックです。 家 ありがとう! BR Re: Why does MC34VR500V3ES output wrong voltage value こんにちは、太陽さん。 SWとLDOの出力電圧値と電源投入シーケンスをリセットする必要がある場合、I2C経由でレジスタを操作するにはどうすればよいでしょうか?マニュアルのこの部分はあまり詳しく書かれていないようです。ソフトウェア設定を説明するアプリケーションマニュアルを提供していただけませんか?例えば… 1. 最初の2ページのアドレスは5'b00000と5'b00001ですか? 2.機能ページと拡張ページ1(内部RAM)はどちらも同様のレジスタを持っています。どちらの領域にアクセスすればよいでしょうか? 3. 機能ページから拡張ページ1に切り替える際、まず0x7Fにあるページレジスタに書き込む必要がありますか? ありがとう! よろしくお願いします! ジェイソン
View full article
请求启用 SW32K14-MCAL421-RTMC-1.0.1 下载权限 您好,NXP支持团队, 我想申请下载SW32K14-MCAL421-RTMC-1.0.1 。 目前,我的 NXP 软件许可页面中的“上一版本”选项卡显示为灰色,我无法访问此版本。 我的账号用户名是Chefanqf 。 为了与基于S32K14x MCAL 4.2的现有项目兼容,需要此版本。 请问您能否帮我激活我账户下这款软件的使用权限? 非常感谢您的支持! 顺祝商祺! Re: Request to enable access for SW32K14-MCAL421-RTMC-1.0.1 download 你好@812311483 本次查询的内容与请求“请求启用SW32K14-MCAL421-RTMC-1.0.1下载权限”完全相同。 请问是这个账户需要安装该软件,还是之前的账户“Chefanqf”需要安装该软件? 此致敬礼, Robin Re: Request to enable access for SW32K14-MCAL421-RTMC-1.0.1 download 是的,我的账户需要下载 SW32K14-MCAL421-RTMC-1.0.1 用于学习和使用。请问您能否授予我此账户的下载权限?谢谢 Re: Request to enable access for SW32K14-MCAL421-RTMC-1.0.1 download 我已经给 FlexNet 的同事发了邮件,请他们为您的帐户启用此版本软件的下载权限。 Re: Request to enable access for SW32K14-MCAL421-RTMC-1.0.1 download 该软件已添加到您的帐户;请检查您是否可以下载。
View full article
i.MX6SXでカーネル6.6を搭載した場合、EPIT読み書きアクセスがクラッシュを引き起こす チームの皆さん、こんにちは。 私たちのプラットフォームはi.MX6SXプロセッサをベースにしており、ユーザー空間アプリケーションと通信するカスタムカーネルドライバを使ってデータ交換を行います。この実装はLinux Kernel 4.14で安定し、期待通りに動作しています。 Linux Kernel 6.6に移行した後、ドライバがEPITレジスタにアクセスしようとする際にシステムリセットが発生し始めました。この問題はレジスタの読み書き操作の両方で観察されており、新しいカーネルバージョンのEPITレジスタアクセス処理に直接関係しているようです。 以下のコードは、EPITの初期化、レジスタマッピング、レジスタアクセスフローの概要を示しています。epit2_irq_disable()関数はEPITレジスタにアクセスする際に関わる機能の一つです。実行がこの関数に到達し、EPITレジスタへの読み書きを試みると、システムがリセットされることが確認されました。   char *epitnode_user; // imx6sx.dtsi にノード パスを出力します   char *epitnode_voip; // imx6sx.dtsi にノード パスを出力します   struct device_node *np_user; struct device_node *np_voip;   unsigned int epitIrq_user; unsigned int epitIrq_voip;   void __iomem *epit_base_user; void __iomem *epit_base_voip;   static int __init notifier_init_module(void) { .. ..   /* エピットを有効にする */ epitnode_user = "/soc/bus@2000000/epit@20d0000"; epitnode_voip = "/soc/bus@2000000/epit@20d4000";   np_user = of_find_node_by_path(epitnode_user); np_voip = of_find_node_by_path(epitnode_voip);   if( np_user == NULL || np_voip == NULL )     { Printk(KERN_ERR「DTSIとは繋がれない!\n」)); -1を返す。    }     epitIrq_user = irq_of_parse_and_map(np_user, 0); epitIrq_voip = irq_of_parse_and_map(np_voip, 0);   if( epitIrq_user == NULL || epitIrq_voip == NULL )     { Printk(KERN_ERR「Irq!\n」を取れない); -1を返す。    } そうでない場合、 { printk("epitIrq_user: %depitIrq_voip: %d\n",epitIrq_user,epitIrq_voip); }   epit_base_user = of_iomap(np_user, 0); epit_base_voip = of_iomap(np_voip, 0); if( epit_base_user == NULL || epit_base_voip == NULL )     { printk(KERN_ERR「基地住所が取得できない!\n」)); -1を返す。    } そうでない場合、 { printk("epit_base_user: %lx epit_base_voip:%lx", epit_base_user, epit_base_voip); }   printk("%s %s が初期化されました\n", NFNMODULE_NAME, NFNMODULE_VERSION);   0を返す。 ... ...   0を返す。   } void epit2_irq_disable( void ) { 符号なしロング値; val = __raw_readl(epit_base_voip + EPITCR); val &= ~EPITCR_OCIEN; __raw_writel(val, epit_base_voip + EPITCR);   } i.MX51 i.MX6 全て i.MX6Dual Linux Re: EPIT Read/Write Access Causes Crash on i.MX6SX with Kernel 6.6 こんにちは、 @syedrizwan さん。 EPITクロックゲートレジスタCCGR1[CG6]またはCCGR1[CG7]を確認してください。モジュールクロックがゲーティングしていないことを確認する必要があります。 よろしくお願いします、 志明 Re: EPIT Read/Write Access Causes Crash on i.MX6SX with Kernel 6.6 こんにちは、Zhiming_Liu さん 最新情報ありがとうございます。 現在、 CCGR1[13:12] (CG6)とCCGR1[15:14] (CG7)は無効になっており、 CCM_CCGR1レジスタの値は0x00000000と読み取られています。 Linux 6.6のカーネルソースのどこでこれらのクロックゲートビットを有効にするべきでしょうか? Re: EPIT Read/Write Access Causes Crash on i.MX6SX with Kernel 6.6 こんにちは、 @syedrizwan さん。 epit dtsに時計を追加してみてください。 &epit1 { clocks = <&clks IMX6SX_CLK_EPIT1>; }; &epit2 { clocks = <&clks IMX6SX_CLK_EPIT2>; }; 次に、 of_clk_getとclk_prepare_enableを使用して、エピットレジスタを読み取る前にクロックを有効にします。 よろしくお願いします、 志明 Re: EPIT Read/Write Access Causes Crash on i.MX6SX with Kernel 6.6 こんにちは、 Zhiming_Liu 最新情報ありがとうございます。 今のところ、添付のスクリーンショットに示すように、 CCM_CCGR1レジスタを有効にしました。 実装方法について確認したい点があります。カーネルから CCM_CCGR1 レジスタを有効にすることで問題が解決するので、この方法で進めることは許容できますか?それとも、 デバイスツリー(DTS) でクロックを有効にして、あなたの提案通りカスタムドライバーで管理すべきでしょうか? Zhiming_Liuさん、これについてご意見を伺いたいです。 Re: EPIT Read/Write Access Causes Crash on i.MX6SX with Kernel 6.6 CCM_CCGR1レジスタに関するもう1つのアップデート:_raw_write1はクラッシュせず、正常に動作しています。 しかし、デバイスツリー(DTS)を介してCCM_CCGR1レジスタ値を更新する方法と、カーネル内で直接変更する方法のどちらが好ましい実装方法でしょうか?
View full article
Request to enable access for SW32K14-MCAL421-RTMC-1.0.1 download Hi NXP Support Team, I would like to request download access for SW32K14-MCAL421-RTMC-1.0.1. Currently, the “Previous” tab in my NXP Software Licensing page appears greyed out and I cannot access this version. My account username is Chefanqf. This version is needed for compatibility with an existing project based on S32K14x MCAL 4.2. Could you please help enable the entitlement for this software under my account? Thank you very much for your support! Best regards, Re: Request to enable access for SW32K14-MCAL421-RTMC-1.0.1 download Hi @812311483  The content of this inquiry is identical to the request: "Request to enable access for SW32K14-MCAL421-RTMC-1.0.1 download" Could you please clarify whether it is this account that requires the software, or if it was the previous account—"Chefanqf"—that needed it? Best Regards, Robin Re: Request to enable access for SW32K14-MCAL421-RTMC-1.0.1 download Yes, it is my account that needs to download SW32K14-MCAL421-RTMC-1.0.1 for learning and use. Could you please grant me the download permission for this account? Thank you Re: Request to enable access for SW32K14-MCAL421-RTMC-1.0.1 download I have emailed my colleagues at FlexNet and asked them to enable download access for this version of the software on your account. Re: Request to enable access for SW32K14-MCAL421-RTMC-1.0.1 download This software has been added to your account; please check whether you are able to download it.
View full article
Why does MC34VR500V3ES output wrong voltage value Hi, a MC34VR500V3ES is used to source LS1021A on my board. During the first power on,  it output wrong voltage value like below list shown. The Vin of MC34VR500V3ES is 3.3V correctly, and check the EN pin is 3.3V too. I compare this part of schematic to  LS1021A-IOT design, and they are the same almost besides LS1021A-IOT use MC34VR500V1ES. The default device start-up configuration for MC34VR500V3ES is indicated in the page.15 of datasheet. So, during the first power on, it will output all default voltage according to the sequence without programming through IIC, right? but it won't, could you please give me some suggestion to debug it? Thanks in advance! Best regards Jason Power solution Re: Why does MC34VR500V3ES output wrong voltage value Hi, sun: Okay, I'll go find the electronic load. There's another issue: two LDOs (LDO1 and LDO3) are not being used, so they're not connected to a load, and the voltage output from these two lines is abnormal. Thank you! Best regards! Jason Re: Why does MC34VR500V3ES output wrong voltage value Hi First, please apply a load to test the actual output and see what the results are. Just add 100-200mA, testing one path at a time. Re: Why does MC34VR500V3ES output wrong voltage value Hi, sun: Since V3 is a factory pre-programmed version and its output voltage and timing follow the default configuration on page 15, section 6.1.1 of the manual, the design is actually very simple. It mainly involves supplying VIN and enabling the EN pin. Furthermore, all output feedback and loop circuits (including SW and LDO) are integrated on-chip. Currently, almost all eight power outputs are incorrect, especially the LDOs, which is very strange. I tested the impedance of each power output; except for the 1.2V output of SW1, which has an impedance of 92 ohms, the other eight are very high, which is normal. The schematic diagram is shown below, and this part of the design is almost identical to the schematic diagram of the official demo board LS1021A-IOT. Thank you! Best regards! Jason   Re: Why does MC34VR500V3ES output wrong voltage value Hi Jason_in_job Your system is version V3, which defaults to V3 output upon power-up. If the voltage is incorrect: 1. Try adding a 100mA load to each channel. 2: The probability of a major problem with the PCB layout is not high. 3: If the first suggestion doesn't work, you can take a look at the schematic diagram. BR Re: Why does MC34VR500V3ES output wrong voltage value Hi, sun: If I need to reset the output voltage values and power-on sequence of the SW and LDO, how do I operate the registers via I2C? I see that this part of the manual isn't very detailed. Could you provide an application manual explaining the software configuration? For example... 1. Are the addresses of the first two pages 5'b00000 and 5'b00001? 2. Both the Functional page and Extended page 1 (internal RAM) have similar registers. Which space should I access? 3. When switching from a functional page to extended page 1, do I need to write to the Page Register register at 0x7F first? Thank you! Best regards! Jason Re: Why does MC34VR500V3ES output wrong voltage value Hi Jason This is another topic where I invite you to submit a new ticket from the path below. Home Thanks! BR
View full article
在 IMXRT1186 M7 内核中,SDK_DelayAtLeastUs 的精度存在 30% 的误差。 大家好, 我正在使用 FRDM-IMXRT1186 板,其 MCU 具有双核 M33 和 M7。#iMXRT1186 我发现 SDK_DelayAtLeastUs 函数的精度不太高。我预计延迟时间为0.5秒(50万微秒),但实际时间约为0.6秒。 CoreDebug-> DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; DWT-> CYCCNT = 0; DWT-> CTRL |= DWT_CTRL_CYCCNTENA_Msk; uint32_t t0 = DWT-> CYCCNT ; SDK_DelayAtLeastUs (500000U, SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY); LED_TOGGLE(); 循环 = DWT-> CYCCNT - t0; 在 SDK_DelayAtLeastUs 中,count = count / 3U * 2U 可以改为 count = count / 2U 以获得更准确的结果。 但我不太确定这样的修改是否合理。 #elif (__CORTEX_M == 7) /* 为确保延迟精确,在各种环境下除法值可能不同。 * 由于 Cortex-M7 有时会执行指令,因此每次循环计数都包含三条指令。 * 一周期内两条指令,通过测试此处设置除以 1.5。其他 M 核心使用 * 除以 4。顺便说一下,除以 1.5 或 4 可能会导致计数精度降低,但实际上并非如此。 * 没关系,因为 while 循环之外的其他指令足以填满时间。 */ 计数 = 计数 / 3U * 2U; 谢谢! Re: SDK_DelayAtLeastUs is inaccurate by 30% in IMXRT1186 M7 core 亲爱的@ewlee , 将 count = count / 2U 改为 count 可能会改善您当前测试环境中的结果,但我们不建议将其作为通用解决方案。 SDK_DelayAtLeastUs() 函数旨在提供基于循环的“至少”延迟,其精度可能会受到运行时环境的影响。 如果需要精确的 500 毫秒间隔,我们建议使用硬件定时器,例如通用定时器 (GPT),以获得更精确的计时。 顺祝商祺! 雪莉
View full article
PN5190 NFC Reader Library v07.13.00: discovery loop hangs forever if a command gets no IRQ Package: NXP NFC Reader Library v07.13.00 (NfcrdlibEx1_DiscoveryLoop, PN5190, Linux OSAL). Release note RN00009. Running the discovery-loop example, phacDiscLoop_Run(POLL) sometimes never returns. The process stays up. It happens with no card present, and not on a fixed cycle. phhalHw_Pn5190_WaitIrq() waits with PHOSAL_MAX_DELAY for every instruction except EXCHANGE_RF_DATA. In this case the command was READ_REGISTER (0x04) and the IRQ pin never went high, so phOsal_EventPend() does not return. The abort path, phhalHw_Pn5190_Wait_IrqAbortHandling(), waits the same way. Is that infinite wait intentional, and how should the application recover the PN5190 without a power cycle? I added many logs from the demo examples, and also reduce the timeout of WaitIrq from infinite to 10s. Any suggestion on how should we handle this? Attached is the logs from the sample program. Re: PN5190 NFC Reader Library v07.13.00: discovery loop hangs forever if a command gets no IRQ Additional info. the version of PN5190 Info: Die ID: 0x00, HW: v83, ROM: v3, FW: v770 Re: PN5190 NFC Reader Library v07.13.00: discovery loop hangs forever if a command gets no IRQ Could you try the latest version of NFC Reader Library? NFC Reader Library | NXP Semiconductors Re: PN5190 NFC Reader Library v07.13.00: discovery loop hangs forever if a command gets no IRQ Hi Jimmy, We will retest on the latest NFC Reader Library (07.18.00) and report whether the same failure can be reproduced. We also have a host-side finding. On the i.MX93, the PN5190 is on LPSPI5. With the SPI output pads at fast slew and drive strength X6 (0x3fe), discovery-loop polling fails. phacDiscLoop_Run returns PHAC_DISCLOOP_FAILURE (0x0080), which we log as "POLL mode failure". Slowing the i.MX93 output edges removes that failure. The pad settings that are now stable are: LPSPI5_SCK: 0x02 (slow slew, drive X1) LPSPI5_SOUT: 0x02 (slow slew, drive X1) SPI chip select: 0x02 (slow slew, drive X1) LPSPI5_SIN: left at 0x3fe, since this pad is an input PN5190 IRQ GPIO: unchanged With those slower SCK, SOUT, and chip-select edges, polling continues and we no longer see "POLL mode failure". The fast edges were ringing into the PN5190 clock pin. We will confirm this again on 07.18.00. if((DiscLoopStatus & PH_ERR_MASK) == PHAC_DISCLOOP_FAILURE)
View full article
EPIT 读/写访问导致 i.MX6SX 在内核 6.6 版本上崩溃 大家好, 我们的平台基于 i.MX6SX 处理器,并使用自定义内核驱动程序与用户空间应用程序进行通信以进行数据交换。该实现已在 Linux 内核 4.14 上稳定运行,符合预期。 迁移到 Linux 内核 6.6 后,当驱动程序尝试访问 EPIT 寄存器时,我们开始遇到系统 RESET 的情况。在寄存器读取和写入操作期间都会观察到该问题,并且似乎与新内核版本中的 EPIT 寄存器访问处理直接相关。 以下代码提供了 EPIT 初始化、寄存器映射和寄存器访问流程的高级概述。epit2_irq_disable() 函数是访问 EPIT 寄存器所涉及的函数之一。我们观察到,当程序执行到此函数并尝试从 EPIT 寄存器读取数据或写入数据时,系统会 RESET。   字符 *epitnode_user; // imx6sx.dtsi 中的 Epit 节点路径   字符 *epitnode_voip; // imx6sx.dtsi 中的 Epit 节点路径   struct device_node *np_user; struct device_node *np_voip;   unsigned int epitIrq_user; unsigned int epitIrq_voip;   void __iomem *epit_base_user; void __iomem *epit_base_voip;   static int __init notifier_init_module(void) { .. ..   /* 启用 epit */ epitnode_user = "/soc/bus@2000000/epit@20d0000" epitnode_voip = "/soc/bus@2000000/epit@20d4000"   np_user = of_find_node_by_path(epitnode_user); np_voip = of_find_node_by_path(epitnode_voip);   如果 ( np_user == NULL || np_voip == NULL )     { printk(KERN_ERR "无法与 dtsi 建立连接!\n"); 返回 -1;    }     epitIrq_user = irq_of_parse_and_map(np_user, 0); epitIrq_voip = irq_of_parse_and_map(np_voip, 0);   如果 epitIrq_user 为空或 epitIrq_voip 为空,则     { printk(KERN_ERR "无法获取中断!\n"); 返回 -1;    } else { printk("epitIrq_user: %d epitIrq_voip: %d\n",epitIrq_user, epitIrq_voip); }   epit_base_user = of_iomap(np_user, 0); epit_base_voip = of_iomap(np_voip, 0); 如果 epit_base_user 为空或 epit_base_voip 为空     { printk(KERN_ERR "无法获取基地址!\n"); 返回 -1;    } else { printk("epit_base_user: %lx epit_base_voip:%lx", epit_base_user, epit_base_voip); }   printk("%s %s 已初始化\n",NFNMODULE_NAME, NFNMODULE_VERSION);   return 0; ... ...   return 0;   } void epit2_irq_disable( void ) { 无符号长值; val = __raw_readl(epit_base_voip + EPITCR); val &= ~EPITCR_OCIEN; __raw_writel(val, epit_base_voip + EPITCR);   } i.MX51 i.MX6 全部 i.MX6 双核 Linux Re: EPIT Read/Write Access Causes Crash on i.MX6SX with Kernel 6.6 嗨@syedrizwan 请检查 EPIT 时钟门寄存器:CCGR1[CG6] 或 CCGR1[CG7]。需要确认模块时钟没有发生门控现象。 此致, 志明 Re: EPIT Read/Write Access Causes Crash on i.MX6SX with Kernel 6.6 嗨,刘志明, 谢谢你的更新。 目前, CCGR1[13:12] (CG6)和CCGR1[15:14] (CG7)已禁用,我正在读取CCM_CCGR1寄存器值为0x00000000 。 应该在 Linux 6.6 内核源代码的哪个位置启用这些时钟门位? Re: EPIT Read/Write Access Causes Crash on i.MX6SX with Kernel 6.6 嗨志明_刘 谢谢你的更新。 目前,我已经启用了CCM_CCGR1寄存器,如附图所示。 关于实施方案,我需要澄清一下。既然从内核启用CCM_CCGR1寄存器可以解决问题,那么采用这种方法是否可以接受?或者,是否应该像您建议的那样,在设备树 (DTS)中启用时钟,然后通过自定义驱动程序进行管理? 刘志明,我需要你的建议。 Re: EPIT Read/Write Access Causes Crash on i.MX6SX with Kernel 6.6 关于CCM_CCGR1 寄存器的又一个更新:_raw_write1 没有崩溃,运行正常。 然而,哪种实现方式更可取:是通过设备树 (DTS)更新CCM_CCGR1寄存器值,还是直接在内核中修改它? Re: EPIT Read/Write Access Causes Crash on i.MX6SX with Kernel 6.6 嗨@syedrizwan 请尝试在 epit dts 中添加时钟。 &epit1 { clocks = <&clks IMX6SX_CLK_EPIT1>; }; &epit2 { clocks = <&clks IMX6SX_CLK_EPIT2>; }; 然后使用of_clk_get和clk_prepare_enable 启用时钟,然后再读取 epit 寄存器。 此致, 志明
View full article
iMX8Mp_FALCON_MODE_RDC_FAILED こんにちは 環境の詳細: ボード: i.MX8M Plus EVK(i.MX8MP EVK) カーネルバージョン: 6.12.49 Yocto Environment:Yocto拠点のNXP BSP ブートモード:ファルコンモード i.MX8MPでFalconモードを有効にしたところ、エラーが発生しました。 ノードが見つかりませんでした!、エラー: -11! => この問題は、RDC ノードが構造化されていないことが原因であることがわかりました。 RDCノードが必要ですか?そうでなければ、こういうことにしよう。 ここにブートログを貼り付けます。 U-Boot SPL 2025.04-g4ddbad60eff3-dirty(2025年11月19日 07:56:58 +0000) DDRINFO: DRAM初期化開始 DDRINFO: DRAM レート 4000MTS                                                           DDRINFO: DDRHY キャリブレーションが完了しました DDRINFO: ddrmix 設定完了 SEC0: RNG がインスタンス化されました 通常起動 MMC2 から起動しようとしています ノードが見つかりませんでした!、エラー: -11!                                                       ノードが見つかりませんでした!、エラー: -11!                                                       注意:JR0はHABで使用可能なのでNSにリリースしないでください 通知:  BL31: v2.12.0(リリース):lf-6.12.49-2.2.0-dirty                         お知らせ:BL31:製造日時:2025年10月17日 10:13:07 p104p104p104 NXP i.MXリリース ディストリビューション 6.12-walnascar imx8mpevk ttymxc1   imx8mpevk ログイン: root root@imx8mpevk:~# i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: iMX8Mp_FALCON_MODE_RDC_FAILED こんにちは、 @Sanjiv_Mns 「imx8m,mcu_rdc」は、M7専用のリソースを割り当てるためのRDC構成を生成するために使用されます。もしこれが不要なら、 board_handle_rdc_configへの参照を削除できます。必要ならDTSに mcu_rdc を追加できます。 よろしくお願いします、 志明
View full article
iMX8Mp_FALCON_MODE_RDC_FAILED Hi Environment details: Board: i.MX8M Plus EVK (i.MX8MP EVK) Kernel Version: 6.12.49 Yocto Environment: Yocto-based NXP BSP Boot Mode: Falcon Mode As i have enabled the Falcon mode in i.MX8MP, getting a error:  Failed to find node!, err: -11!  => I Found this issue came from RDC node not structured. We need RDC node? else we can go with this. Here i am pasting my boot logs: U-Boot SPL 2025.04-g4ddbad60eff3-dirty (Nov 19 2025 - 07:56:58 +0000)         DDRINFO: start DRAM init                                                     DDRINFO: DRAM rate 4000MTS                                                   DDRINFO:ddrphy calibration done                                               DDRINFO: ddrmix config done                                                   SEC0:  RNG instantiated                                                       Normal Boot                                                                   Trying to boot from MMC2                                                     Failed to find node!, err: -11!                                               Failed to find node!, err: -11!                                               NOTICE:  Do not release JR0 to NS as it can be used by HAB                   NOTICE:  BL31: v2.12.0(release):lf-6.12.49-2.2.0-dirty                       NOTICE:  BL31: Built : 10:13:07, Oct 17 2025 p104p104p104 NXP i.MX Release Distro 6.12-walnascar imx8mpevk ttymxc1   imx8mpevk login: root root@imx8mpevk:~# i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: iMX8Mp_FALCON_MODE_RDC_FAILED Hi @Sanjiv_Mns  “imx8m,mcu_rdc” is used to generate an RDC configuration for allocating resources exclusively owned by the M7. If you do not need this, you can remove the reference to board_handle_rdc_config. If you do need it, you can add mcu_rdc to the dts. Best Regards, Zhiming
View full article
Secure DFU on RT600 Board: RT685 EVK Zephyr toolchain: zephyr-sdk-1.0.1, zsdk nxp-v4.4.1.1 Hi Team! I am working on a Zephyr-based RT600 application, which should include three images in total ( MCUBoot, ARM core image, and DSP core image). Since the RT600 is a flash-less MCU, those images have to live in the external flash, and I am looking for a proper way to protect them against read-back and other potential risks that could leak the image. On top of that, I would like to have the DFU feature to update both the ARM core and the DSP core images via SMP protocol (RT600 running as SMP server, or through MCUBoot serial recovery, or both) in an encrypted manner. I failed to find an example shipped with nxp-zsdk, could you please help me find a practical path to follow? Best regards, Yue Re: Secure DFU on RT600 Hi @YueZ , For the RT685 EVK, I recommend treating this as two related design tasks : securing what is stored in external flash, and securely updating the Arm and DSP firmware. An encrypted update alone does not establish that the active image is protected against external-flash read-back. A practical starting point is to package the DSP firmware with the Arm application and update them as one signed image . That lets you bring up a single MCUboot primary/secondary-slot update path before taking on independent DSP image management. Zephyr’s SMP image-management flow uploads an update to a secondary slot for MCUboot to process at boot.(zephyr/doc/services/device_mgmt/smp_groups/smp_group_1.rst at main · zephyrproject-rtos/zephyr · GitHub) On RT600, the boot images reside outside internal flash, either for loading into SRAM or for execution from external memory, so the flash layout and boot chain need to be designed together. - https://www.nxp.com/docs/en/application-note/AN12985.pdf  I would proceed in this order: Establish a trusted boot chain : authenticate the bootloader at startup, then have it verify signed application updates. Include production key provisioning and debug-access policy in the design. Demonstrate a signed Arm-plus-DSP update through an application-side SMP server, with a defined primary and secondary flash slot. Confirm that the newly built DSP firmware is actually included in the image being uploaded. Address confidentiality of the installed image separately . NXP’s RT600 secure-provisioning workflow describes writing an encrypted application and OTFAD key blobs,(mcuxpresso.nxp.com/secure/latest/_sources/06_processor_specific_workflow.md) and its RT600 FOTA note describes a signed-and-encrypted OTA approach. Those are useful RT600 references, but their procedures are not a ready-made Zephyr SMP integration. - https://www.nxp.com/docs/en/application-note/AN13478.pdf  If independent Arm and DSP updates are required, design separate image storage and verification, plus a way to prevent incompatible Arm/DSP versions from being activated together. I would treat that as a second integration milestone, not as a capability already demonstrated by the combined-image example. Application-side SMP and bootloader-side serial recovery can both be considered, but they are distinct update paths; you do not need to implement both to validate the first DFU milestone.  Could you confirm whether the DSP must be updated independently, or whether updating Arm and DSP together is acceptable? That decision determines whether the simpler combined-image path meets your requirements or whether a multi-image boot and rollback design is necessary.   Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: Secure DFU on RT600 Hi Kan, Thank you very much for the information, it is really clear and helpful! To answer your question, I am fine with packing the two images into one; they don't need to be separate. Additionally, I am eager to know your suggestions on a few more questions, and please correct me if I am wrong since I am new to the NXP secure-provisioning workflow: The two milestones are, if I understood it correctly: 1) verify FOTA image signing and boot chain; 2) verify OTFAD on the off-chip flash. It looks like the west build process only signs the image without encryption; the output hex(bin) image file remains in plaintext, which is supposed to be encrypted in the second step for OTFAD. On an OTA update, a signed image is received and then written into flash as OTFAD-encrypted. Does that mean the image in transit is exposed to attack? XIP or loading in RAM, which would you recommend for less workload in Zephyr if combined with signing and encryption?  Is there an example available in Zephyr demonstrating the OTFAD feature on RT600 (and whether OTFAD is supported by MCUBoot serial recovery)? I found modules/hal/nxp/mcux/mcux-sdk-ng/drivers/otfad/fsl_otfad.h, but nothing has referred to it yet. A starting point would be very much appreciated! Best regards, Yue Re: Secure DFU on RT600 Hi @YueZ , Thank you for confirming that the Arm and DSP firmware can be packaged together. That is the path I would start with: one signed application update containing both firmwares , rather than two independently managed application images. Your proposed milestones are sensible, but I would separate them slightly differently: Prove the boot and update chain: boot the combined image through MCUboot, upload a signed replacement through application-side SMP, and verify the upgrade and recovery behavior. Prove encrypted boot on the RT685 EVK: use Secure Provisioning Tool (SPT) to build and boot an OTFAD-encrypted image from external flash, initially using the documented shadow-register development workflow. - Processor-specific workflows — Secure Provisioning Tool 26.09  Integrate the two: determine how a field update will be staged and installed in the encrypted flash layout without breaking image verification or recovery. This last step is not provided automatically by enabling OTFAD. - Generic workflows — Secure Provisioning Tool 26.09  On the plaintext build output and transmission: your understanding is substantially correct. The documented Zephyr/MCUboot workflow produces a signed application file, zephyr.signed.bin ; signing does not conceal its contents. If that file is distributed and uploaded as-is, someone able to obtain the file or observe an unprotected transfer can read the firmware. You can protect the transfer with an appropriately authenticated, encrypted transport, or distribute an encrypted update artifact. These are separate from protecting the installed image in external flash. - Generic workflows — Secure Provisioning Tool 26.09 Encrypted XIP and MCUboot — MCUXpresso SDK Documentation I would make one correction to the proposed OTA diagram: do not assume that receiving a signed plaintext image and writing it with Zephyr’s flash driver automatically produces OTFAD-encrypted flash contents. SPT’s RT5xx/6xx workflow explicitly writes an encrypted application and OTFAD key blobs . A field updater must reproduce a compatible result—or use another validated installation scheme—while accounting for the protected address ranges and keys. The RT600 OTFAD reference describes decryption of encrypted flash during reads; the SPT provisioning procedure should not be taken as an implementation of Zephyr’s runtime update writer. -https://www.nxp.com/docs/en/training-reference-material/RT600_Security_Architecture_sb.pdf  XIP versus load-to-RAM: since your goal is specifically to protect an application stored in external flash with OTFAD, I would use encrypted XIP as the first security proof of concept . SPT documents that boot workflow for RT5xx/6xx. This is a recommendation for the boot experiment , not a claim that encrypted XIP makes the Zephyr DFU integration easy. Load-to-RAM is also a documented RT5xx/6xx image arrangement, but it does not remove the need to protect the stored image and design a secure update path. I cannot substantiate that either option is a turnkey, lower-workload Zephyr solution for your SDK version. Regarding examples and serial recovery: I have not found a validated RT685 Zephyr example combining OTFAD, MCUboot and SMP/serial-recovery encrypted updates for nxp-v4.4.1.1 . The fsl_otfad.h header establishes that a driver interface exists; it does not establish that the RT685 MCUboot recovery or flash-installation path integrates it. NXP’s Encrypted XIP and MCUboot documentation describes an encrypted-XIP extension, but its listed OTFAD example boards are RT1152/RT1160/RT1170, not RT685 . I would not assume that its serial-recovery or installation behavior carries over to this board. That is something I still need to check with the team. For a concrete starting reference, use SPT 26.09, “RT5xx/6xx device workflow → Booting OTFAD encrypted image using shadow registers” to establish the encrypted-boot baseline. In parallel, use AN13478, Implementing FOTA on i.MX RT600 to study NXP’s RT600 signed-and-encrypted update approach. That application note is not a Zephyr SMP example, so the remaining work is to reconcile its encrypted-image installation approach with your Zephyr/M​​CUboot slot layout and chosen update path.    For this board, I would validate signed combined-image DFU and SPT-generated OTFAD XIP separately, then treat encrypted field installation—including any serial-recovery support—as an integration task requiring its own test.   Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: Secure DFU on RT600 Hi Kan, This is enough information for me to digest at this point, I will mark it as a solution. Please notify me if the team has any updates on the capability of RT685 MCUboot recovery with OTFAD. Thank you very much for the details! You have a great day too! Yue
View full article
关于 S32G3 电路板支持包。 48.0.0 的 RESET 序列和 A53 锁步启动流程的说明 尊敬的恩智浦技术支持团队: 我正在使用 S32G378A EVB3 和 Linux 电路板支持包。 48.0.0。我的目标是先启动 Cortex-M7,然后从 M7 软件启用 Cortex-A53 锁步模式,最后在 Cortex-A53 上启动 Linux。 我了解到,电路板支持包。通过在 conf/local.conf 文件中添加以下内容来支持 m7boot 功能: DISTRO_FEATURES:append = " m7boot" 然后使用以下命令重建镜像: bitbake fsl-image-auto 之后,我会写入生成的 .sdcard 文件。将镜像文件写入SD卡,并从SD卡启动板。 但是,我需要了解实际的RESET和启动顺序。 问题 1:上电后的 RESET 状态是什么? 假设 Linux 已经安装并运行在 Cortex-A53 上。然后我关闭或断开板的电源,使用 m7boot 重建 电路板支持包。,将新镜像写入 SD 卡,然后再次打开板的电源。 完全断电重启后,哪些 Cortex-M7 和 Cortex-A53 内核或功能域会被硬件和 BootROM 保持在复位状态? BootROM 是否会根据 IVT 启动目标自动启动 M7_0,同时保持 A53 处于 RESET 状态? 是否需要任何额外的 RESET 配置来确保 A53 在 M7 软件启用 Lockstep 之前保持 RESET 状态? 问题 2:m7boot 会自动执行哪些操作? 启用 m7boot、重新构建电路板支持包并写入生成的 SD 卡映像后: 电路板支持包是否会自动提供并执行启用 A53 锁步功能的 M7 固件? 该固件是否会将 A53 保持在 RESET 状态,配置 A53_GPR06[CA53_LOCKSTEP_EN],然后释放 A53 以启动 Linux? 或者我必须单独修改、构建或部署 M7 固件来实现这些步骤? 请说明电路板支持包。中哪些部分是自动执行的,哪些部分需要用户实现。 问题 3:启用 Lockstep 并启动 A53 所需的运行时顺序是什么? 我希望能够提供从冷启动开始的完整操作步骤: 板上电并执行 BootROM。 IVT 选择 M7_0 作为启动目标。 M7固件启动。 配置锁步时保持 A53 处于 RESET 状态。 配置 Lockstep 后释放或启动 A53。 在 A53 上以锁步模式启动 Linux。 具体来说,启用 Lockstep 后,M7 如何释放或启动 A53?哪个已记录的寄存器、API 或固件函数执行此步骤? 这个过程是在一次正常启动过程中完成的,还是在启用 Lockstep 后需要 RESET 电路板或进行第二次启动? 问题 4:后续启动会发生什么? 当 Linux 在 A53 上以锁步模式运行时,如果我关闭或断开电路板的电源,然后再重新开机: 每次启动时,是否都会自动运行相同的 M7 优先、Lockstep 配置和 A53 启动顺序? 锁步配置在热RESET后是否会保留,还是必须通过 M7 重新配置? 冷启动、热RESET和软件重启之间有什么区别是我需要注意的吗? 我的目标是在每次启动时自动完成此操作,而无需手动进入启动加载程序或再次 RESET 板。 请提供 S32G378A EVB3 的相关 电路板支持包。 48.0.0 源代码参考、配置文件和已记录的重置/启动顺序? 顺祝商祺! Re: Clarification on Reset Sequence and A53 Lockstep Boot Flow with S32G3 BSP 48.0.0 你好,Toan 感谢你的回复。希望这些内容对您有所帮助。 问题 1:上电后的 RESET 状态是什么? >>> BootROM 根据 IVT 启动配置字中的 BOOT_TARGET 选择应用程序核心。对于“m7boot”,BootROM 使用映像中的 IVT 启动 M7。然后,M7 应用程序配置 A53 Lockstep,并负责启动 A53 core0。 问题 2:m7boot 会自动执行哪些操作? >>>在 Yocto 中使用 DISTRO_FEATURES:append = " m7boot", m7-sample 项目将自动下载,这是 M7 固件。 此应用程序包含几个功能,例如启用分区、启用 A53 核心、设置 a53_entry_point 地址以及在启用分区之前进行锁步设置,如下图所示。 https://github.com/nxp-auto-linux/m7-sample/blob/release/bsp48.0/src/main.c   问题 3:启用 Lockstep 并启动 A53 所需的运行时顺序是什么? 我希望能够提供从冷启动开始的完整操作步骤: 板上电并执行 BootROM。 IVT 选择 M7_0 作为启动目标。 M7固件启动。 配置锁步时保持 A53 处于 RESET 状态。 配置 Lockstep 后释放或启动 A53。 在 A53 上以锁步模式启动 Linux。 具体来说,启用 Lockstep 后,M7 如何释放或启动 A53?哪个已记录的寄存器、API 或固件函数执行此步骤? 这个过程是在一次正常启动过程中完成的,还是在启用 Lockstep 后需要 RESET 电路板或进行第二次启动? >>>你上面的理解对于 Yocto 中的 DISTRO_FEATURES:append = " m7boot" 基本正确。理论上讲,m7 样本有助于完成这些任务。 关于第 32 章模式输入模块 (MC_ME) 的 S32G2RM.pdf 文件,对于“启用锁步后 M7 如何释放或启动 A53”这个问题很有用。 问题 4:后续启动会发生什么? >>>您可以参考此链接查看 M7boot 源代码。 https://github.com/nxp-auto-linux/m7-sample/tree/release/bsp46.0 根据 m7-sample,M7boot 将在每次启动时设置 Lockstep 模式。 BR 乔伊 Re: Clarification on Reset Sequence and A53 Lockstep Boot Flow with S32G3 BSP 48.0.0 嗨,乔伊, 感谢您的反馈, 我们的计划是按照 S32G3 Linux 电路板支持包。 48.0.0 文档,使用 Yocto 为 S32G399A EVB3 构建 Linux 镜像,然后将其部署到 SD 卡。 我们打算先启动 Cortex-M7,并使用 M7 软件启用 Cortex-A53 Lockstep 模式,同时保持 A53 RESET 功能域处于 RESET 状态。配置好 Lockstep 后,Cortex-A53 将可以启动 Linux。 我们不打算使用 Cortex-M7 来运行我们的应用程序。M7 的唯一目的是在 Linux 启动之前执行必要的初始化以启用 A53 锁步模式。 此致, 托安 Re: Clarification on Reset Sequence and A53 Lockstep Boot Flow with S32G3 BSP 48.0.0 你好,Toan 感谢您与我们联系。 我已经收到您的案件,我会帮您核查。 在 Yocto 中,“DISTRO_FEATURES:append = 'm7boot'” 行提供了一个示例,方便地演示了 Cortex-M7 的启动过程,并启用了锁定步进操作模式。 请问您能否告知一下您项目中 S32G378 的启动过程?您是否考虑使用M7核心?您的项目是否考虑过使用引导加载程序来启动 M7 核心和 A53 核心? BR 乔伊 Re: Clarification on Reset Sequence and A53 Lockstep Boot Flow with S32G3 BSP 48.0.0 嗨,乔伊, 谢谢你的支持,我很感激。我还有一个问题想问。 由于我的唯一目标是启用 A53 Lockstep,请问默认的 m7-sample是否已经能够启用 Lockstep 并重启 A53 core0,从而使 Linux 能够在 Lockstep 模式下运行而无需任何额外的固件修改? 感谢您的确认。 此致, 托安 Re: Clarification on Reset Sequence and A53 Lockstep Boot Flow with S32G3 BSP 48.0.0 你好, Toan 感谢您与我们联系。 由于我的唯一目标是启用 A53 Lockstep,请问默认的 m7-sample 是否已经能够启用 Lockstep 并重启 A53 core0,从而使 Linux 能够在 Lockstep 模式下运行而无需任何额外的固件修改? >>>是的,m7-sample 启动应用程序确实可以实现您所说的功能,其主要功能包括启用锁步/分区/A53 核心,这与 RM 手册中的描述相符,如下图所示。 m7-sample/src/main.c 位于 版本/bsp48.0 · nxp-auto-linux/m7-sample · GitHub 1.启用锁步/分区 2.启用核心 此外,您还可以尝试检查Linux应用程序中的锁步功能。 希望这些信息对您有所帮助;如果您还有其他问题,可以随时联系我们。 BR 乔伊 Re: Clarification on Reset Sequence and A53 Lockstep Boot Flow with S32G3 BSP 48.0.0 嗨,乔伊, 非常感谢您的帮助和解答我的问题。我非常感谢您的支持。 如果以后我还有其他问题,希望还能再次得到您的帮助。 再次感谢! Re: Clarification on Reset Sequence and A53 Lockstep Boot Flow with S32G3 BSP 48.0.0 你好,Toan 我很乐意帮助你! 如果您还有其他问题,欢迎随时联系我们! BR 乔伊
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