Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
i.MX 8M Plusおよびi.MX 95向けRAMの調達 こんにちは、 新しいプロジェクトのためにRAMを調達しているのですが、現在のメモリ不足のため、入手しやすい部品を見つけるのに苦労しています。 現在の入手状況や調達のしやすさを踏まえ、新しいデザインにおすすめのRAMチップはありますか? このプロジェクトでは、i.MX 8M Plusまたはi.MX 95のいずれかを使用する予定です。理想的には、LPDDR4/4Xを両プラットフォームで使い、ソーシングを簡素化し、同じメモリコンポーネントを再利用したいと考えています。 ただし、もし調達が楽になるなら、プラットフォームごとに異なるメモリタイプを使うことも検討しています。例えば: - i.MX 8M Plus向けLPDDR4(DDR4ではなく、この用途では低消費電力が重要) i.MX 95の場合はLPDDR4XまたはLPDDR5 念のため言っておくと、これらのプロセッサと互換性があると知られているメモリデバイスのおすすめを主に求めているわけではありません。むしろ、現在入手しやすく新しいデザインに適した特定の部品番号に興味があります。 どのメーカーや部品が入手しやすいかなど、何かおすすめや情報があれば大変ありがたいです。 ご回答をお待ちしています。 Re: Souring RAM for i.MX 8M Plus and i.MX 95 こんにちは、 @Radeoicさん 申し訳ありませんが、現在のDRAMのマーケット状況については詳しくありません。問い合わせは関連するDRAMサプライヤーに直接お問い合わせいただく必要があります。 B.R Re: Souring RAM for i.MX 8M Plus and i.MX 95 RAMの具体的なモデルを尋ねるべきです。 Re: Souring RAM for i.MX 8M Plus and i.MX 95 中国に拠点を置く製造業者の場合は非常に困難です。他国に拠点を置く場合は、米国企業が支援してくれます。
View full article
为什么 imx7d 依赖于 imx6q 最近,我在尝试减小版本中的内核大小时发现,`busfreq-imx.c` 依赖于 `platsmp.c`。文件用于定义 `scu_base` 和 `imx_smp_ops`。 但不知何故,imx7d 对编译 `platsmp` 的支持已被提交移除。 ``` 撤销“ARM:imx:为imx7d添加smp支持” 这将撤销提交 e34645f45805d8308866de7b69f117f554605bb6。 NXP 供应商树中未使用此功能。 签字人:董爱生 ``` 下面的提交添加了厂商特定的总线频率实现,但它没有在 Makefile 中选择 platsmp。 ``` Arm:imx:添加 i.MX7D 电源管理单元支持 此补丁增加了对 i.MX7D 电源管理单元的支持,包括 低功耗待机,FastMix 关闭时进入睡眠状态,A7-M4 AMP 电源 管理单元支持。 签字人:Anson Huang [爱生:删除重复的 imx7d_init_late 定义] 签字人:董艾生 [ Leo:已更新以符合 a2faac398 的要求(“使用 .arch 指令而不是汇编器命令行标志” ] 签字人:李阳 ``` 是我遗漏了什么,还是电路板支持包中存在某种隐藏的bug? 我使用的是 6.18.37-2.1.x 版本。我的版本中使用了电路板支持包。   i.MX7 双核 疑似软件缺陷 Re: why imx7d depends on imx6q 你好, 这似乎是源代码中的一个漏洞。 您能否使用之前的配置作为临时解决方案,看看是否能解决问题? 顺祝商祺! Re: why imx7d depends on imx6q 是的,目前我要么需要在 defconfig 中选择一个 imx6 设备,要么应用下面的补丁; ``` diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile 索引 2f22af122c6e..cdc66bdaba1c 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -44,7 +44,7 @@ obj-$(CONFIG_HAVE_IMX_MMDC) += mmdc.o obj-$(CONFIG_HAVE_IMX_SRC) += src.o obj-$(CONFIG_HAVE_IMX_DDRC) += ddrc.o obj-$(CONFIG_HAVE_IMX_MU) += mu.o -ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_LS1021A),) +ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_LS1021A)$(CONFIG_SOC_IMX7D_CA7),) obj-$(CONFIG_SMP) += headsmp.o platsmp.o obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o endif ``` 如果能在下一个 电路板支持包。 版本中修复这个问题就太好了。
View full article
imx7dがimx6qに依存する理由 最近、ビルドのカーネルサイズを小さくしようとしていたところ、`busfreq-imx.c`が`platsmp.c`に依存していることを発見しました。`scu_base`と`imx_smp_ops`の定義ファイル。 しかし、なぜかimx7dによる「platsmp」コンパイルのサポートはコミットによって削除されています ``` 「ARM: imx: imx7dにSMPサポートを追加」に戻す これはコミット e34645f45805d8308866de7b69f117f554605bb6 を元に戻すものです。 NXPのベンダーツリーでは使用されていません。 署名者: Dong Aisheng 「`」 また、ベンダー固有の busfreq 実装は下記のコミットで追加されていますが、makefile で platsmp を選択していません。 ``` Arm: imx: i.MX7Dのパワーマネージメントサポートを追加 このパッチでは、i.MX7Dのパワーマネージメントサポートが追加され、以下の内容が含まれています。 低消費電力アイドル、FastMixオフでサスペンド、A7-M4 AMP パワー マネージメントサポート。 署名者: Anson Huang [Aisheng: 重複しているimx7d_init_late定義を削除] 署名者: Dong Aisheng [Leo: a2faac398("アセンブラのコマンドラインフラグの代わりに.archディレクティブを使用する")に合わせて更新しました] 署名者: Li Yang 「`」 何か見落としているのでしょうか、それともこれはBSPの隠れたバグなのでしょうか? 私は6.18.37-2.1.xを使用しています。私のビルドにおけるBSP i.MX7Dual ソフトウェア不具合の疑い Re: why imx7d depends on imx6q こんにちは、 これはソースコードのバグのようです。 以前の設定を使って回避策を試してみて、問題が解決するか試してみることはできますか? よろしくお願いいたします。 Re: why imx7d depends on imx6q はい、今はdefconfigでimx6デバイスを選択するか、下記のパッチを適用する必要があります。 ``` diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile インデックス2F22af122C6e..CDC66BDA1C 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -44,7 +44,7 @@ obj-$(CONFIG_HAVE_IMX_MMDC) += mmdc.o obj-$(CONFIG_HAVE_IMX_SRC) += src.o obj-$(CONFIG_HAVE_IMX_DDRC) += ddrc.o obj-$(CONFIG_HAVE_IMX_MU) += mu.o -ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_LS1021A),) +ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_LS1021A)$(CONFIG_SOC_IMX7D_CA7),) obj-$(CONFIG_SMP) += headsmp.o platsmp.o obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o endif 「`」 次のBSPで修正されると本当に嬉しいです。
View full article
FS2400 INIT_CRC_NOK_I 在频繁的电源循环(开/关)条件下,检测到了 FS2400 的 INIT_CRC_NOK_I 标志。在这种情况下,我读取了 FS_I_XXX 寄存器,其内容与我在 INIT 阶段写入的数据一致。此外,故障错误计数没有增加,仍然为0。请问这是否是误报,这种情况是否可以不予处理? Re: FS2400 INIT_CRC_NOK_I 您好, 当 FS2400 的循环 CRC 校验机制检测到每 5 毫秒对 INIT 寄存器重新计算的 CRC 与存储在 FS_CRC 寄存器中的值不匹配时,将设置 INIT_CRC_NOK_I 标志。这是一项真正的功能安全监控功能,在不了解其根本原因的情况下不应忽视。 即使您可以读取 FS_I_XXX 寄存器并发现其值与您写入的值一致,也不能排除 CRC 校验不匹配的可能性——这种情况最常见的原因是 MCU 正确写入了 INIT 寄存器,但在 INIT 阶段结束之前没有计算并将正确的 CRC 值存储在 FS_CRC 中(即,未执行任何操作)。在第一次正确的监视程序刷新之前)。请核实以下内容: 1. CRC 计算:必须对以下寄存器位域的连接进行 8 位 CRC 计算(按此顺序): FS_I_OVUV_CFG1[15:0] FS_I_OVUV_CFG2[15:0] FS_I_ERRMON_LIMP0_CFG[15:0] FS_I_FSSM_CFG[15:4] FS_I_WD_CFG[15:7] 要应用的多项式是:x⁸ + x⁴ + x³ + x² + 1(与 SPI CRC 相同)。 2. CRC 注册:MCU 必须在 INIT 阶段结束之前将计算出的 CRC 写入 FS_CRC(即,在 INIT 阶段结束之前)。在第一次正确的监视程序刷新之前)。如果在写入 CRC 之后修改了任何 INIT 寄存器,则必须重新计算并重新写入 CRC。 3. 故障错误计数器说明:我们注意到您提到故障错误计数仍为 0。请注意,根据设备数据手册,上电复位 (POR) 后故障错误计数器从 1 开始,而不是从 0 开始。每次 INIT_CRC_NOK 触发信号被触发时,该计数器都会加 1。请问您能否确认一下您正在读取哪个寄存器和字段中的值?如果计数器在多次上电循环中保持为 1(POR-RESET 值),则表明该标志在上电序列的早期就被观察到,可能在计数器有时间累积之前。我们希望您能具体说明一下,您观察到该标志出现的时间与 INIT 阶段完成时间之间的确切关系。 4. 电源循环考虑:INIT 阶段总是从 POR(完全断电和上电)重新进入。循环 CRC 校验仅在 INIT 阶段结束后的正常模式下激活。如果在 INIT 关闭后不久观察到 INIT_CRC_NOK_I 标志,则强烈表明在第一次 5 毫秒检查时,FS_CRC 寄存器值与当前的 INIT 寄存器内容不匹配。 BRs,托马斯
View full article
S32G3におけるKMSの実現可能性 KMS機能はHSEデモアプリケーションでカスタムロジックで実装できますか?それとも HSE_FWTYPE = 9 / HSE_FWTYPE = 22 の使用は必須ですか? Re: Feasibility of KMS in S32G3 こんにちは、 @Pranathi06 投稿ありがとうございます。 デモアプリで言及されているKMSサービスはカスタムHSEのFW使用を目的としており、これがHSE_FWTYPE = 9(22)の理由です。プレミアムソフトに機能が含まれているため、詳細は地元のNXP担当者に問い合わせることをおすすめします(対応できない場合は support.nxp.com を通じてチケットを提出してください)。 BR チェイン  Re: Feasibility of KMS in S32G3 こんにちは、 @Pranathi06 ご返信ありがとうございます。 申し訳ありませんが、貴社のKMS実装がどのような規格/仕様を参照しているのかが不明なため、明確な確認を提供できない可能性があります。ご不便をおかけして申し訳ございません。 私の意見では、まず最新の標準HSE FW APIドキュメント(HSEのFWパッケージから入手可能なキーのインポート/エクスポート/生成など、標準HSEファイアメントでサポートされているすべてのAPI/サービスを含む)を確認し、その後、あなたの暗号スタックやカスタムアプリケーションに基づいて、KMSで定義された全機能が現在の標準HSE FWであるS32G3に基づいて正しく実装可能かどうかを分析することをお勧めします BR チェイン   Re: Feasibility of KMS in S32G3 KMS機能はHSEデモアプリケーション[標準]のカスタムロジックで実装できますか?
View full article
LPC55S28 ISP_CMD_EN 未禁用 ISP 命令 你好, 我有一个 LPC55S28 MCU,附带 CMPA 和 CFPA 设置。我直接通过 python 使用 blhost 读取这些值,命令如下。所以这些数据直接来自实际的MCU。这是在MCU完全断电重启之后的情况。 通过USB接口读取CMPA数据。 UV run Python -m spsdk.apps.blhost -u 0x3972,0x3333 read-memory 0x0009E400 512 -f cmpa_dump.bin CMPA 解析为 yaml,且 UV run Python -m spsdk.apps.pfr parse -f lpc55s28 -t cmpa -b cmpa_dump.bin -o parsed_cmpa.YAML 然后,对于地址不同的 CFPA,情况也一样。我从地址 0x9DE00 读取了 CFPA,我认为这是临时版本。但除了 CMPA_PROG_IN_PROGRESS 读取到非零值之外,ping 和 pong 都匹配。但乒乓球的比赛就0x00了。 以下是附件全部文件的摘要。完整文件附上以获取更多细节 CMPA:PI,DLFT NIDEN = USE_DAP,残疾 DEGEN = USE_DAP,失效 TAPEN = USE_DAP,已停用 ISP_CMD_EN = USE_DAP,失效 FA_ME_CMD_EN = FIXED_STATE,启用 SEC_BOOT_EN = ENABLE_0 CFPA:PIN和DLT NIDEN = USE_DAP,残疾 DEGEN = USE_DAP,失效 TAPEN = USE_DAP,已停用 ISP_CMD_EN = USE_DAP,失效 FA_ME_CMD_EN = FIXED_STATE,启用 据我了解,在这种设置下,我应该无法使用 blhost 读取内存。我可以读取CMPA、CFPA、应用程序闪存和应用程序RAM,我可以通过blhost转储整个可执行文件,而无需DAP认证。 问题: 1.如果 ISP_CMD_EN 被禁用,是否意味着您无法读取和写入内部存储器?可以是 PFR 或应用程序内存。我仍然需要发送安全 .sb 文件的功能。不过,这些文件会被传输到引导加载程序。 2. ISP_CMD_EN 是否会禁用通过引导加载程序经由 USB 加载 .SB 文件的功能? 3. 我需要进行哪些设置才能保留使用 .SB 文件的 USB 引导加载程序功能,但禁用通过 ISP 命令读取和写入内存的功能? 4. 为什么我的MCU仍然允许blhost ISP命令,即使CMPA和CFPA已经禁用了该命令? 我已阅读此链接中的论坛帖子: https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC55-Disable-ISP-and-SWD-to-utilize-code-protection/ta-p/1654157 但是设置中完全禁用了 ISP,这也会完全禁用引导加载程序。我认为那篇论坛帖子并没有解释为什么即使禁用了 ISP_CMD_EN,我的设置仍然允许通过 blhost 发送 ISP 命令。 Re: LPC55S28 ISP_CMD_EN not disabling ISP commands 嗨@guitardenver 关键在于 ISP_CMD_EN 不是所有 blhost 命令的全局启用/禁用位。它控制是否可以通过调试邮箱进入 ISP 模式命令。一旦设备通过另一条允许的启动路径进入 ROM ISP,USB blhost 命令将由 ROM 引导加载程序单独处理。 1. 内存读/写:禁用 ISP_CMD_EN 本身并不会禁用 ReadMemory 或 WriteMemory。这些命令仍然可以访问未受保护的内存。 2. SB 文件下载:ISP_CMD_EN 不会直接禁用 ROM ReceiveSBFile 命令。因此,不应将其视为 USB SB 文件更新的控制手段。 3. 阻止原始内存访问的同时进行 SB 更新:根据 LPC55S28 参考手册,目前没有配置可以在禁用 ReadMemory 和 WriteMemory 命令的同时保持 USB ISP 可用于 SB 更新。 4. 为什么 blhost 仍然有效:这种行为并不一定意味着您的 CMPA/CFPA 设置被忽略。该设备已进入 ROM ISP,而 ISP_CMD_EN 控制进入 ISP 的不同路径。 BR 哈里 Re: LPC55S28 ISP_CMD_EN not disabling ISP commands 嗨,哈里, 感谢您澄清了 ISP_CMD_EN 的作用,并确认 ROM ISP 处理程序一旦进入就缺少命令级过滤。 我们最初的设计假设是,LPC55S28 的认证 ROM 引导加载程序旨在作为生产现场通过 USB(经由签名的 SB2.1容器)进行更新的接口,而无需额外的闪存引导加载程序。然而,从您的回复来看,暴露 USB ROM ISP 接口实际上留下了一个完全开放的内存后门:任何拥有物理 USB 访问权限的人都可以发出原始的读取内存、写入内存和擦除闪存区域的命令。 虽然安全启动可以防止执行修改/未签名的代码,但攻击者仍然可以转储未加密的闪存 IP 或探测现场的SRAM 。 鉴于此,我有一些关于恩智浦希望客户如何在安全的商业产品中部署这项技术的具体问题: PRINCE + 开放式 USB ISP:如果我们启用 PRINCE 闪存加密来保护整个应用闪存中的静态 IP, NXP 对于在现场启用 USB ISP 的网络安全立场是什么?具体来说,在 ROM 启动加载程序内部对内部 SRAM 的任意读/写访问是否会构成实际的攻击面,从而导致密钥泄露或绕过启动逻辑?如果不会,那么我认为我会选择这条路。 推荐的现场更新架构:如果通过暴露的 USB 端口保持 ROM ISP 活动被认为是一种不安全的反模式,那么NXP 推荐的现场更新架构是什么? NXP 是否建议完全禁用 ROM ISP( DEFAULT_ISP_MODE = DISABLE )并使用 ROM IAP API 实现自定义双存储体/辅助引导加载程序来使用 SB 容器? Re: LPC55S28 ISP_CMD_EN not disabling ISP commands 嗨@guitardenver 感谢您提出的其他问题。我建议参考 AN12283 – LPC55Sxx 安全启动,特别是第 5、5.6 和 5.7 节。 AN12283 记录了安全启动、通过 ROM ISP receive-sb-file 命令进行 SB2/SB2.1 固件更新以及 PRINCE 闪存加密的使用。它还指出,PRINCE 密钥由片上 PUF 通过软件无法访问的内部硬件总线提供。 重要的一点是,要确认你的实际安全启动配置。根据 AN12283,SEC_BOOT_EN = 00 表示明文图像,而 01、10 和 11 表示签名图像。由于您之前的 SPSDK 输出显示 SEC_BOOT_EN = ENABLE_0,我建议您先检查其原始值。 有关安全启动、SB2.1 更新和 PRINCE 配置的详细信息,请参阅 AN12283。 LPC55Sxx 安全启动 BR 哈里
View full article
LPC55S28 ISP_CMD_EN not disabling ISP commands Hello,  I have an LPC55S28 MCU with the attached CMPA and CFPA settings. I got these value directly from reading via blhost via python with the commands below. So these came directly from the actual MCU. This was after a full power cycle of the MCU.  CMPA read via USB.  uv run python -m spsdk.apps.blhost -u 0x3972,0x3333 read-memory 0x0009E400 512 -f cmpa_dump.bin CMPA parse into yaml with uv run python -m spsdk.apps.pfr parse -f lpc55s28 -t cmpa -b cmpa_dump.bin -o parsed_cmpa.yaml Then the same thing for CFPA with different address. I read the CFPA from address 0x9DE00, which I think is the scratch version. But the ping and pong match other than the fact that the CMPA_PROG_IN_PROGRESS reads something non-zero for the scratch. But 0x00 for ping and pong. Below is a summary of the full files attached. Full files attached for more details CMPA: PIN, DFLT NIDEN = USE_DAP, DISABLED DEGEN = USE_DAP, DISABLED TAPEN = USE_DAP, DISABLED ISP_CMD_EN = USE_DAP, DISABLED FA_ME_CMD_EN = FIXED_STATE, ENABLED SEC_BOOT_EN = ENABLE_0 CFPA: PIN, DFLT NIDEN = USE_DAP, DISABLED DEGEN = USE_DAP, DISABLED TAPEN = USE_DAP, DISABLED ISP_CMD_EN = USE_DAP, DISABLED FA_ME_CMD_EN = FIXED_STATE, ENABLED From my understanding, with these settings, I should not be able to use blhost to read memory. I can read CMPA, CFPA, application flash, application RAM, I can dump my entire executable via blhost with no DAP authentication.  Questions: 1. If ISP_CMD_EN is disabled, does that mean you can not read and write to internal memory? Either PFR or application memory. I still need the ability to send secure .sb files to the bootloader though.  2. Does ISP_CMD_EN disable the ability to load .SB files via USB over the bootloader? 3. What settings do I need to keep USB bootloader functionality with .SB files, but disable the ability to read and write to memory over ISP commands? 4. Why is my MCU still allow blhost ISP commands even though the CMPA and CFPA have it disabled? I have read the forum post at this link: https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC55-Disable-ISP-and-SWD-to-utilize-code-protection/ta-p/1654157 But the settings have it completely disable ISP, which disables the bootloader completely. I I don't think that forum post shows why my settings are still allowing ISP commands over the blhost, when the ISP_CMD_EN is disabled.  Re: LPC55S28 ISP_CMD_EN not disabling ISP commands Hi @guitardenver  The key point is that ISP_CMD_EN is not a global enable/disable bit for all blhost commands. It controls whether ISP mode can be entered through the Debug Mailbox Enter ISP Mode command. Once the device has entered ROM ISP through another permitted boot path, USB blhost commands are handled separately by the ROM bootloader. 1. Memory read/write: Disabling ISP_CMD_EN does not by itself disable ReadMemory or WriteMemory. These commands can still access memory that is not otherwise protected. 2. SB file download: ISP_CMD_EN does not directly disable the ROM ReceiveSBFile command. Therefore, it should not be treated as the control for USB SB-file updates. 3. SB update while blocking raw memory access: According to the LPC55S28 reference manual, there is currently no configuration that can keep USB ISP available for SB updates while disabling ReadMemory and WriteMemory commands. 4. Why blhost still works: This behavior does not necessarily mean your CMPA/CFPA settings are being ignored. The device has already entered ROM ISP, while ISP_CMD_EN controls a different path into ISP. BR Harry Re: LPC55S28 ISP_CMD_EN not disabling ISP commands Hi Harry, Thanks for clarifying the role of ISP_CMD_EN and confirming that the ROM ISP handler lacks command-level filtering once entered. Our original design assumption was that the LPC55S28's authenticated ROM bootloader was intended to serve as the production field update interface over USB (via signed SB2.1 containers) without needing a secondary flash bootloader. However, from your reply, it appears that exposing the USB ROM ISP interface effectively leaves a wide-open memory backdoor: anyone with physical USB access can issue raw read-memory, write-memory, and flash-erase-region commands. While Secure Boot prevents modified/unsigned code from executing, an attacker could still dump unencrypted flash IP or probe SRAM in the field. Given that, I have a few specific questions on how NXP expects customers to deploy this in a secure commercial product: PRINCE + Open USB ISP: If we enable PRINCE flash encryption across the entire application flash to protect IP at rest, what is NXP's security stance on leaving USB ISP enabled in the field? Specifically, does arbitrary read/write access to internal SRAM while inside the ROM bootloader present a realistic attack surface for compromising keys or bypassing boot logic? If not, this is the path I think I would take. Recommended Field-Update Architecture: If leaving ROM ISP active over an exposed USB port is considered an insecure anti-pattern, what is NXP's recommended architecture for field updates? Does NXP recommend disabling ROM ISP entirely (DEFAULT_ISP_MODE = DISABLE) and implementing a custom dual-bank / secondary bootloader using the ROM IAP API to consume SB containers? Re: LPC55S28 ISP_CMD_EN not disabling ISP commands Hi @guitardenver  Thanks for the additional questions. I would recommend referring to AN12283 – LPC55Sxx Secure Boot, especially Sections 5, 5.6 and 5.7. AN12283 documents the use of Secure Boot, SB2/SB2.1 firmware updates through the ROM ISP receive-sb-file command, and PRINCE flash encryption. It also states that the PRINCE keys are provided by the on-chip PUF through an internal hardware bus that is not software accessible. One important point is to confirm your actual Secure Boot configuration. According to AN12283, SEC_BOOT_EN = 00 means Plain image, while 01, 10, and 11 mean Signed image. Since your previous SPSDK output showed SEC_BOOT_EN = ENABLE_0, I recommend checking its raw value first. Please refer to AN12283 for the detailed Secure Boot, SB2.1 update, and PRINCE configuration. LPC55Sxx Secure Boot BR Harry
View full article
RW612 button multiplexed with ISP pin I would like to use a button to make the RW612 boot into ISP mode when power is first applied to the board while the button is pressed. But that button will also be pressed regularly during normal operation. The button is connected to both ISP0 and GPIO24. In the datasheet it is stated that the ISP0 pin will change its function to EXT_REQ when the bootloader starts the code execution from flash. I dont exactly know what happens when the EXT_REQ pin is pulled low during normal operation. What does happen when EXT_REQ is pulled low occasionally during normal operation? Is there a way to disable its function in software, do I have to isolate EXT_REQ from the button after boot or is there nothing I have to worry about? Product: WiFi RW6XX Re: RW612 button multiplexed with ISP pin Hi @Niwo, hope you are doing well. The EXT_REQ pin is used to coexist with an external radio through PTA interface as mentioned in section 6.3 of the RW612 Datasheet. However, please note that as stated in Table 45 of UM11865, GPIO[24] is used by the ROM code for UART ISP interface and such functionality cannot be changed. Therefore I'd suggest to consider another GPIO for your button functionality and isolate the ISP interface. Also, please consider that ISP can be permanently disabled or limited for a final product implementation to enhance security access to the MCU, therefore it is important to keep in mind this feature for your design. Hope this helps! Re: RW612 button multiplexed with ISP pin Thank you @RomanVR for your reply, To clarify my goals regarding the button; The button should also make the MCU wake up from deep sleep and if I understand the user manual correctly, only GPIO[24] and GPIO[25] support this functionality. You mentioned that GPIO[24] is used for UART functionality by the ISP and it cannot be changed. Does this mean that GPIO[24] will always be a UART pin and I can't change that in my own program? Or does it only mean that I cannot modify which pins the ISP uses while it is running, and afterwards I can do whatever I want with these pins? For the EXT_REQ pin I decided that I will use a solder jumper for development purposes and later use IAP software updates instead of connecting it permanently to the button. Best regards Re: RW612 button multiplexed with ISP pin Hi @Niwo, thank you for providing details on your implementation. I apologize if I was not clear before regarding GPIO[24] functionality; the function of this GPIO can be changed in your application. However, from a ROM code perspective the UART functionality is exclusive from GPIO[24] & GPIO[26] and cannot be changed to another Flexcomm instance or GPIOs. Hope this information clears out your doubts.
View full article
RW612按钮与ISP引脚复用 我希望使用一个按钮,使RW612启动到ISP模式,当首次给板通电并按下该按钮。但在正常操作过程中,该按钮也会经常被按下。 该按钮同时连接到ISP0和GPIO24 。 数据手册中指出,当引导加载程序从闪存开始执行代码时, ISP0引脚的功能将变为EXT_REQ 。 我不太清楚在正常运行期间将EXT_REQ引脚拉低时会发生什么情况。 正常运行期间,如果EXT_REQ偶尔被拉低,会发生什么情况?是否有办法通过软件禁用其功能?启动后是否需要将EXT_REQ与按钮隔离?或者我无需担心什么? 产品:WiFi RW6XX Re: RW612 button multiplexed with ISP pin 嗨@Niwo ,希望你一切都好。 如 RW612 数据手册 第 6.3 节 所述,EXT_REQ 引脚用于通过 PTA 接口与外部无线电共存。但是请注意,如UM11865的表 45 所述,GPIO[24] 由 ROM 代码用于 UART ISP 接口,并且此功能无法更改。 因此,我建议考虑使用另一个 GPIO 来实现按钮功能,并将 ISP 接口隔离。另外,请注意,为了增强对 MCU 的网络安全访问,最终产品实现中可以永久禁用或限制 ISP,因此在设计时务必牢记此功能。 希望这能帮到你! Re: RW612 button multiplexed with ISP pin 感谢@RomanVR的回复, 为了阐明我关于按钮的目标;该按钮还应该使 MCU 从深度睡眠中唤醒,如果我理解用户手册正确的话,只有 GPIO[24] 和 GPIO[25] 支持此功能。 您提到 GPIO[24] 被 ISP 用于 UART 功能,并且不能更改。这是否意味着 GPIO[24] 将始终是 UART 引脚,而我无法在自己的程序中更改它?或者这仅仅意味着我不能在 ISP 运行时修改它使用的引脚,而之后我可以随意使用这些引脚? 对于 EXT_REQ 引脚,我决定在开发过程中使用焊接跳线,之后使用 IAP 软件更新,而不是将其永久连接到按钮上。 顺祝商祺! Re: RW612 button multiplexed with ISP pin @Niwo你好,感谢你提供实施方面的详细信息。 如果我之前对 GPIO[24] 的功能解释得不够清楚,我深表歉意;此 GPIO 的功能可以在您的应用程序中更改。但是,从 ROM 代码的角度来看,UART 功能与 GPIO[24] 和 GPIO[26] 互不相同,不能更改为其他 Flexcomm 实例或 GPIO。 希望这些信息能消除您的疑虑。
View full article
FS2400 INIT_CRC_NOK_I Under frequent power cycling(power on/off) conditions, the INIT_CRC_NOK_I flag of the FS2400 was detected. In this situation, I read the FS_I_XXX registers, and the contents are consistent with the data I wrote during the INIT phase. In addition, the fault error count did not increase and remained at 0. Could you help me confirm whether this is a false alarm and whether this situation can be left untreated? Re: FS2400 INIT_CRC_NOK_I Hi, The INIT_CRC_NOK_I flag is set when the FS2400's cyclic CRC check mechanism detects a mismatch between the CRC it recalculates over the INIT registers every 5 ms and the value stored in the FS_CRC register. This is a genuine safety monitoring function and should not be dismissed without understanding its root cause. The fact that you can read the FS_I_XXX registers back and find the values consistent with what you wrote does not rule out a CRC mismatch — the most common cause in this scenario is that the MCU writes the INIT registers correctly but does not compute and store the correct CRC in FS_CRC before closing the INIT phase (i.e. before the first correct watchdog refresh). Please verify the following: 1. CRC computation: The 8-bit CRC must be computed over the concatenation of the following register bit-fields (in this order): FS_I_OVUV_CFG1[15:0] FS_I_OVUV_CFG2[15:0] FS_I_ERRMON_LIMP0_CFG[15:0] FS_I_FSSM_CFG[15:4] FS_I_WD_CFG[15:7] The polynomial to apply is: x⁸ + x⁴ + x³ + x² + 1 (same as the SPI CRC). 2. CRC registration: The MCU must write the computed CRC into FS_CRC before the INIT phase is closed (i.e. before the first correct watchdog refresh). If any INIT register is modified after the CRC has been written, the CRC must be recomputed and rewritten. 3. Fault error counter clarification: We note that you mention the fault error count remained at 0. Please be aware that, per the device datasheet, the fault error counter starts at 1 after a power-on reset (POR), not 0. INIT_CRC_NOK increments this counter by +1 each time it is triggered. Could you confirm which register and field you are reading for this value? If the counter remains at 1 (the POR-reset value) across power cycles, this would suggest the flag is being observed very early in the power-on sequence, possibly before the counter has had time to accumulate. We would appreciate clarification on the exact timing of when you observe the flag relative to the INIT phase completion. 4. Power cycling consideration: The INIT phase is always re-entered from POR (full power-down and power-up). The cyclic CRC check only activates in Normal mode after the INIT phase is closed. If the INIT_CRC_NOK_I flag is being observed very shortly after INIT closes, this strongly points to the FS_CRC register value not matching the current INIT register content at the time of the first 5 ms check. BRs, Tomas
View full article
RCCU, FCCU, and Lockstep Diagnostic Data Flow on S32G3 Dear NXP, Based on my understanding, RCCU detects Lockstep mismatches and reports errors to FCCU, which handles fault management and may provide diagnostic information through the Linux kernel log (dmesg). However, the BSP documentation describes this process only at a high level. Could you please provide more specific implementation guidance for the S32G378A with Linux BSP 48.0.0? Available diagnostic data: What types of data can be collected from RCCU and FCCU, such as error status, fault source, error type, or fault context? What information is actually available in hardware, and what can be reported through Linux dmesg? End-to-end data flow: What is the exact flow from a Lockstep mismatch being detected by RCCU, through FCCU fault handling, to Linux kernel reporting? Which registers, interrupts, drivers, or software components are involved? Source code and implementation: Which source files, device drivers, device-tree entries, or configuration files need to be modified or enabled in BSP 48.0.0 to collect and report this information? Does NXP provide an existing GitHub repository, reference implementation, or sample code demonstrating the complete flow? Lockstep input and output: What does the Lockstep mechanism actually compare as its input? Is the input generated internally by the redundant A53 execution paths, or must software configure or load any input data? Where is the relevant configuration performed, and what diagnostic output can software retrieve when a mismatch occurs? Please provide the relevant Reference Manual sections, source-code references, and a concrete implementation workflow, as the current BSP documentation does not explain these details sufficiently. Re: RCCU, FCCU, and Lockstep Diagnostic Data Flow on S32G3 Thank you for your reply. I would like to ask one more question. The Linux BSP 48.0.0 User Manual describes FCCU configuration using Device Tree properties such as `nxp,ncf_fault_list` and `nxp,ncf_actions`. Could you please clarify which source file we should modify to apply this configuration? After saving the changes, will they take effect through the Device Tree, or do we also need to modify the FCCU driver? If possible, please provide a simple example for S32G378A-EVB3. Best regards, Toan Re: RCCU, FCCU, and Lockstep Diagnostic Data Flow on S32G3 Hello, @Toan  Thanks for the post 1. The FCCU provides a hardware interface to collect faults when a failure is detected in the device, it is hardware behavior, different fault number would reflect different failure, you may refer the fault map file attached in S32G3 RM. The Linux FCCU driver in BSP48 allows updating the selected list of Non-Critical Faults handled in FCCU and selecting one of the supported NCF actions using device tree, if the reaction set is an alarm, then the alarm information is printed in the kernel’s log if the corresponding failure occurred. 2. When RCCU detected the issue, the FCCU will record it and then execute the actions set by the user, for example, if alarm is set as the action, then the information could be found in the kernel log, the Linux FCCU driver, DTS, FCCU alarm interrupt handler would be involved. 3. The corresponding information could be obtained from the Chapter 6 of BSP48 UM. 4.  In the lockstep mode, one cluster is considered the main cluster and the second cluster is considered the checker cluster. From a software perspective, the two clusters operate as a single cluster in the lockstep mode. Cortex-A53 Cluster0 is the main execution cluster, where Cortex-A53 Cluster1 follows execution of Cortex-A53 Cluster0. Equivalent operation of replicated resources is supervised by comparators (RCCU) on all functional signals leaving the cluster for the rest of the MCU. Any operational deviations between the supervised signals causes the FCCU to be notified of the discrepancy. In S32G3 A53 Lockstep mode, software does not need to provide or load input data for the Lockstep comparison. The comparison is performed internally by the hardware during normal A53 execution and is transparent to application software. Software mainly configures the Lockstep operating mode, rather than the comparison data. Software can set the corresponding action for the fault. If a mismatch is detected, it is reported through the RCCU/FCCU safety fault mechanism and the relevant actions would be executed. BR Chenyin
View full article
Souring RAM for i.MX 8M Plus and i.MX 95 Hello, I am sourcing RAM for a new project and am having difficulty finding parts with good availability due to the current memory shortage. Are there any specific RAM chips you would recommend for new designs based on current availability and ease of procurement? The project will use either the i.MX 8M Plus or the i.MX 95. Ideally, I'd like to use LPDDR4/4X across both platforms to simplify sourcing and potentially reuse the same memory component. However, I am also open to using different memory types for each platform if that would make sourcing easier. For example: -LPDDR4 for i.MX 8M Plus (not DDR4, as low-power is important for this specific application) -LPDDR4X or LPDDR5 for the i.MX 95 To clarify, I'm not primarily looking for recommendations on memory devices that are known to be compatible with these processors. Rather, I'm interested in specific part numbers that are currently readily available and suitable for new designs. Any recommendations or insights into which manufacturers or parts are easier to source would be greatly appreciated. Thank you! Re: Souring RAM for i.MX 8M Plus and i.MX 95 Hi @Radeoic  Sorry, I am not familiar with the current market situation regarding the availability of DRAM. you will need to contact related DRAM suppliers directly to make inquiries. B.R Re: Souring RAM for i.MX 8M Plus and i.MX 95 If you are a manufacturer based in China, this is very difficult; if you are based in another country, U.S. companies can assist you. Re: Souring RAM for i.MX 8M Plus and i.MX 95 You should be asking for the specific model of the RAM.
View full article
S32G3中KMS的可行性 能否通过 HSE Demo 应用程序中的自定义逻辑来实现 KMS 功能,还是必须使用HSE_FWTYPE = 9 / HSE_FWTYPE = 22 ? Re: Feasibility of KMS in S32G3 你好, @Pranathi06 感谢分享。 演示应用程序中提到的 KMS 服务旨在使用自定义 HSE 固件,因此 HSE_FWTYPE = 9(22)。由于它是高级软件中包含的功能,我建议您联系当地的 恩智浦代表(如果无法联系,请通过 support.nxp.com 提交工单)以了解详细信息。 BR 陈银  Re: Feasibility of KMS in S32G3 你好, @Pranathi06 感谢您的回复。 抱歉,我不确定您的KMS实现指的是哪种标准/规范,我可能无法提供明确的确认,给您带来的不便敬请谅解。 依我之见,您首先可以查阅最新的标准 HSE 固件 API 文档(其中包含标准 HSE 固件支持的所有 API/服务,例如密钥导入/导出/生成等,这些内容可在 HSE 固件包中找到),以明确 HSE 固件支持的所有密钥管理服务。然后,根据您的加密协议栈/自定义应用程序,分析您 KMS 中定义的所有功能是否能够基于当前 S32G3 标准 HSE 固件正确实现。 BR 陈银   Re: Feasibility of KMS in S32G3 能否在 HSE Demo 应用程序[标准]中通过自定义逻辑实现 KMS 功能?
View full article
LPC55S28 ISP_CMD_EN は ISP コマンドを無効にしません こんにちは、 私はCMPAとCFPA設定が付いたLPC55S28 MCUを持っています。以下のコマンドを使用して、Python経由でblhostからこれらの値を直接読み取って取得しました。つまり、これらは実際のMCUから直接来たものです。これはMCUのフルパワーサイクル後のことです。 CMPAデータはUSB経由で読み取られます。 uv run Python -m spsdk.apps.blhost -u 0x3972,0x3333 read-memory 0x0009E400 512 -f cmpa_dump.bin CMPAをyamlにパースし、 UV run Python -m spsdk.apps.pfr parse -f lpc55s28 -t cmpa -b cmpa_dump.bin -o parsed_cmpa.yaml そして、CFPAについても住所は異なるものの同様のことが行われる。私はアドレス0x9DE00からCFPAを読み取りました。これはおそらくスクラッチバージョンだと思います。しかし、スクラッチの場合、CMPA_PROG_IN_PROGRESS がゼロ以外の値を読み取るという点を除けば、ping と pong は一致しています。でも、0x00はピンポンとトンのためです。 以下に、添付されているファイルの概要を示します。詳細は全文ファイルを添付しています CMPA:ピン、DFLT NIDEN = USE_DAP、障害 DEGEN = USE_DAP、無効化 TAPEN = USE_DAP、無効化 ISP_CMD_EN = USE_DAP、無効化 FA_ME_CMD_EN = FIXED_STATE、有効 SEC_BOOT_EN = ENABLE_0 CFPA:PIN、DFLT NIDEN = USE_DAP、障害 DEGEN = USE_DAP、無効化 TAPEN = USE_DAP、無効化 ISP_CMD_EN = USE_DAP、無効化 FA_ME_CMD_EN = FIXED_STATE、有効 私の理解では、これらの設定ではblhostを使用してメモリを読み取ることはできないはずです。CMPA、CFPA、アプリケーションフラッシュ、アプリケーションRAMを読み取れ、DAP認証なしでblhost経由で実行ファイルを全てダンプできます。 質問: 1.ISP_CMD_ENが無効になっていると、内部メモリへの読み書きができないということですか?PFRかアプリケーションメモリのいずれかです。安全な.sbファイルを送信する機能はまだ必要ですブートローダーにファイルを転送する必要がある。 2. ISP_CMD_ENは、ブートローダー経由でUSBから.SBファイルをロードする機能を無効にしますか? 3. .SBファイルを使用したUSBブートローダーの機能を維持しつつ、ISPコマンドによるメモリへの読み書き機能を無効にするには、どのような設定が必要ですか? 4. なぜMCUはCMPAやCFPAで無効になっているのに、blhost ISPコマンドを許可しているのでしょうか? こちらのリンク先のフォーラム投稿を読みました。 https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC55-Disable-ISP-and-SWD-to-utilize-code-protection/ta-p/1654157 しかし、設定ではISPが完全に無効になっており、ブートローダーも完全に無効になっています。ISP_CMD_ENが無効になっているにもかかわらず、なぜ私の設定でblhost経由でISPコマンドが許可されているのか、そのフォーラムの投稿には説明がないと思います。 Re: LPC55S28 ISP_CMD_EN not disabling ISP commands こんにちは、 @guitardenver 重要な点は、ISP_CMD_EN はすべての blhost コマンドに対するグローバルな有効/無効ビットではないということです。これは「Debug Mailbox Enter ISP Mode」コマンドでISPモードに入力できるかどうかを制御します。デバイスが別の許可されたブートパスを介してROM ISPに入ると、USB blhostコマンドはROMブートローダーによって個別に処理されます。 1. メモリの読み書き: ISP_CMD_EN を無効にしても、ReadMemory や WriteMemory は無効になりません。これらのコマンドは、保護されていないメモリにもアクセス可能です。 2. SB ファイルのダウンロード: ISP_CMD_EN は ROM ReceiveSBFile コマンドを直接無効にしません。したがって、これはUSB SBファイルの更新を制御するものとして扱うべきではありません。 3. 生のメモリアクセスをブロックしながらSB更新:LPC55S28リファレンス・マニュアルによると、ReadMemoryおよびWriteMemoryコマンドを無効にしつつ、USB ISPをSB更新のために利用可能に保つ設定は現在存在しません。 4. blhost がまだ機能する理由: この動作は、必ずしも CMPA/CFPA 設定が無視されていることを意味するものではありません。デバイスは既にROM ISPに入っているが、ISP_CMD_ENはISPへの別のパスを制御する。 BR ハリー Re: LPC55S28 ISP_CMD_EN not disabling ISP commands こんにちは、ハリーさん。 ISP_CMD_ENの役割を明確にしていただき、またROM ISPハンドラが一度起動されるとコマンドレベルのフィルタリング機能がないことを確認していただき、ありがとうございます。 当初の設計上の前提は、LPC55S28の認証済みROMブートローダーが、セカンダリのフラッシュブートローダーを必要とせずに、USB経由で(署名済みSB2経由)本番現場での更新インターフェースとして機能するというものでした。1コンテナを使わずに。しかし、あなたの返信からすると、USB ROM ISPインターフェースを公開することで、実質的にメモリのバックドアが広く開かれているようです。物理的なUSBアクセス権があれば、誰でも生の読み取りメモリ、書き込みメモリ、フラッシュ消去領域コマンドを発行できます。 Secure Bootは変更されたコードや署名されていないコードの実行を防ぎますが、攻撃者は現場で暗号化されていないフラッシュIPやプローブSRAMをダンプすることが可能です。 それを踏まえ、 NXPがお客様にこれを安全な商用製品にどのように展開することを期待しているのか、いくつか具体的な質問があります。 PRINCE + Open USB ISP: もしアプリケーション全体でPRINCEフラッシュ暗号化を有効にして静止時のIP保護をした場合、 NXPは現場でUSB ISPを有効にしておくことについてどのようなセキュリティ立場を取っていますか? 具体的には、 ROMブートローダー内で内部SRAMへの任意の読み書きアクセスは、鍵を漏らしたりブートロジックを回避したりする現実的な攻撃対象になるのでしょうか?もしそうでなければ、私が取るのはこの方法だと思います。 推奨されるフィールドアップデートアーキテクチャ:露出したUSBポートを介してROM ISPをアクティブにしたままにすることがセキュリティ上のアンチパターンとみなされる場合、 NXPが推奨するフィールドアップデートのアーキテクチャは何ですか? NXPは、ROM ISPを完全に無効化( DEFAULT_ISP_MODE = DISABLE)し、ROM IAP APIを使用してSBコンテナを消費するカスタムデュアルバンク/セカンダリブートローダーを実装することを推奨していますか? Re: LPC55S28 ISP_CMD_EN not disabling ISP commands こんにちは、 @guitardenver 追加のご質問ありがとうございます。AN12283 – LPC55Sxx セキュアブート、特にセクション5、5.6、5.7を参照することをお勧めします。 AN12283では、セキュアブート、ROM ISPのreceive-sb-fileコマンドによるSB2/SB2.1ファームウェアのアップデート、およびPRINCEフラッシュ暗号化の使用方法について説明しています。また、PRINCEキーはオンチップPUFからソフトウェアアクセスできない内部ハードウェアバスを通じて提供されるとも記載されています。 重要な点の1つは、実際のセキュアブートの設定を確認することです。AN12283によると、SEC_BOOT_EN = 00はプレーンイメージを意味し、01、10、11は署名付きイメージを意味します。以前のSPSDK出力でSEC_BOOT_EN = ENABLE_0と表示されていたので、まずはその生の値を確認することをお勧めします。 セキュアブート、SB2.1アップデート、およびPRINCE構成の詳細については、AN12283を参照してください。 LPC55Sxx セキュアブート BR ハリー
View full article
FS2400 INIT_CRC_NOK_I 頻繁な電源サイクル(電源オン/オフ)条件下で、FS2400のINIT_CRC_NOK_Iフラグが検出されました。この状況では、FS_I_XXXレジスタを読み取ったところ、その内容はINITフェーズ中に書き込んだデータと一致していました。さらに、故障エラー数は増加せず、0のままでした。これが誤報かどうか、またこの状況を放置してもよいのか、確認を手伝ってもらえますか? Re: FS2400 INIT_CRC_NOK_I こんにちは、 INIT_CRC_NOK_Iフラグは、FS2400の周期的CRCチェック機構が、5msごとにINITレジスタで再計算したCRCとFS_CRCレジスタに格納されている値との間に不一致を検出した場合に設定されます。これは真のセーフティ監視機能であり、その根本原因を理解しずに軽視すべきではありません。 FS_I_XXXレジスタを読み返して、あなたが書いた値と一致する結果が得られるという事実は、CRCの不一致を排除するものではありません。このシナリオで最も一般的な原因は、MCUがINITレジスタを正しく書き込むが、INITフェーズを閉じる前に正しいCRCをFS_CRCに計算・保存しないことです(すなわち、最初の正しいウォッチドッグ更新の前に)。以下の点をご確認ください。 1. CRC計算:8ビットCRCは、以下のレジスタビットフィールドの連結(この順序で)に対して計算する必要があります。 FS_I_OVUV_CFG1[15:0] FS_I_OVUV_CFG2[15:0] FS_I_ERRMON_LIMP0_CFG[15:0] FS_I_FSSM_CFG[15:4] FS_I_WD_CFG[15:7] 適用する多項式は、x⁸ + x⁴ + x³ + x² + 1 です(SPI CRC と同じです)。 2. CRC登録:MCUはINITフェーズが終了する前に計算されたCRCをFS_CRCに書き込みなければなりません(すなわち最初の正しいウォッチドッグ更新の前に)。CRCが書き込まれた後にINITレジスタが変更された場合、CRCを再計算して書き直す必要があります。 3. 障害エラーカウンタに関する補足説明:障害エラーカウントが0のままだったとのことですが、デバイスのデータシートによると、障害エラーカウンタは電源投入リセット(POR)後に0ではなく1から開始します。INIT_CRC_NOKはトリガーされるたびにこのカウンタを+1ずつ増加させます。この値をどのレジスタとフィールドで読み取っているのか確認してもらえますか?電源投入サイクルを経てもカウンタが1(PORリセット値)のままである場合、これは電源投入シーケンスの非常に早い段階でフラグが観測されていることを示唆しており、おそらくカウンタが蓄積される前に観測されていると考えられます。INITフェーズの完了からどのタイミングでフラグが観測されたのか、正確なタイミングについてご説明いただけると幸いです。 4. 電源サイクルに関する考慮事項: INIT フェーズは常に POR (完全な電源オフと電源オン) から再開されます。周期的なCRCチェックは、INITフェーズが終了した後の通常モードでのみ有効になります。INIT_CRC_NOK_IフラグがINIT終了直後に観測される場合、これは最初の5msチェック時点でFS_CRCレジスタの値が現在のINITレジスタの内容と一致していないことを強く示唆しています。 BRs、トーマス
View full article
S32G3におけるRCCU、FCCU、およびLockstep診断データフロー 親愛なるNXPへ、 私の理解では、RCCUはLockstepのミスマッチを検出し、FCCUにエラーを報告します。FCCUは故障マネジメントを担当し、Linuxカーネルログ(dmesg)を通じて診断情報を提供することがあります。しかし、BSPのドキュメントではこのプロセスが大まかに説明されているに過ぎません。 Linux BSP 48.0.0のS32G378Aに関するより具体的な実装ガイダンスを教えていただけますか? 利用可能な診断データ:RCCUおよびFCCUから収集可能なデータの種類には、エラーの状態、故障の発生源、エラータイプ、故障のコンテキストなどがありますか?ハードウェアで実際に利用可能な情報と、Linux dmesgを通じて報告できる情報は何でしょうか? エンドツーエンドのデータフロー:RCCUによるロックステップ不一致の検出から、FCCUの故障処理、Linuxカーネル報告までの正確な流れはどのようなものなのでしょうか?どのレジスタ、割り込み、ドライバ、またはソフトウェアコンポーネントが関与しているのでしょうか? ソースコードと実装:BSP 48.0.0でこれらの情報を収集・報告するために、どのソースファイル、デバイスドライバ、デバイスツリーエントリ、または設定ファイルを変更する必要があるのか?NXPは、完全なフローを示す既存のGitHubリポジトリ、リファレンス実装、またはサンプルコードを提供していますか? ロックステップの入出力:ロックステップ機構は、入力として実際に何を比較するのでしょうか?入力は冗長なA53実行パスによって内部的に生成されるのか、それとも入力データをソフトウェアで設定または読み込む必要があるのか?関連する構成はどこで行われ、不一致が発生した場合にソフトウェアが取得できる診断出力は何でしょうか? 関連するリファレンスマニュアルのセクション、ソースコード参照、具体的な実装ワークフローをご提供ください。現在のBSPドキュメントではこれらの詳細が十分に説明されていません。 Re: RCCU, FCCU, and Lockstep Diagnostic Data Flow on S32G3 お返事ありがとうございます。もう一つ質問させてください。 Linux BSP 48.0.0ユーザーマニュアルでは、デバイスツリーのプロパティ(例えば「nxp,ncf_fault_list」や「nxp,ncf_actions)」を用いてFCCUの設定を説明しています。 この設定を適用するためにどのソースファイルを修正すべきか、教えていただけますか?変更を保存した後、デバイスツリーを通じて有効になりますか?それともFCCUドライバも修正する必要がありますか? 可能であれば、S32G378A-EVB3の簡単な例を示してください。 よろしくお願いします、 トアン Re: RCCU, FCCU, and Lockstep Diagnostic Data Flow on S32G3 こんにちは、 @Toan 投稿ありがとうございます 1.FCCUは、デバイスで故障が検出された際に故障を収集するためのハードウェアインターフェースを提供しています。これはハードウェアの挙動であり、異なる故障番号は異なる故障を反映します。S32G3 RMに添付された故障マップファイルを参照してください。BSP48のLinux FCCUドライバは、FCCUで処理された非重大障害の選択リストを更新し、デバイスツリーを使ってサポートされるNCFアクションのいずれかを選択できます。反応セットがアラームの場合、アラーム情報は 対応する障害が発生した場合、カーネルのログに印刷されました。 2. RCCUが問題を検出すると、FCCUはそれを記録し、ユーザーが設定したアクションを実行します。例えば、アラームがアクションに設定されている場合、その情報はカーネルログに記載されており、Linux FCCUドライバ、DTS、FCCUアラーム割り込みハンドラが関与します。 3. 対応する情報はBSP48 UM第6章から入手可能。 4. ロックステップモードでは、1つのクラスタがメインクラスタ、2つ目のクラスタがチェッカークラスタとみなされます。ソフトウェアの観点からは、2つのクラスタはロックステップモードで単一のクラスタとして動作します。Cortex-A53 Cluster0はメインの実行クラスタであり、Cortex-A53 Cluster1はCortex-A53 Cluster0の実行後に続きます。複製されたリソースの同等な動作は、クラスタから出るすべての機能信号に対してコンパレータ(RCCU)によって監督され、残りのMCUに送られます。監督信号間の運用上の逸脱があれば、FCCUに不一致が通知されます。 S32G3 A53ロックステップモードでは、ソフトウェアはロックステップ比較のために入力データを提供または読み込む必要がありません。比較は通常のA53実行中にハードウェア内部で行われ、アプリケーションソフトウェアには透過的です。 ソフトウェアは主に比較データではなく、ロックステップの動作モードを設定します。ソフトウェアは故障に対応するアクションを設定できます。不一致が検出された場合、それはRCCU/FCCUのセーフティ故障メカニズムを通じて報告され、関連する対応が実行されます。 BR チェイン
View full article
S32G3上的RCCU、FCCU和锁步诊断数据流 尊敬的恩智浦: 据我了解,RCCU 会检测锁步不匹配并将错误报告给 FCCU,FCCU 会处理故障管理,并可能通过 Linux 内核日志 (dmesg) 提供诊断信息。然而,电路板支持包文档仅从宏观层面描述了这一过程。 能否提供针对 Linux 电路板支持包。 48.0.0 的 S32G378A 的更具体的实施指导? 可用的诊断数据:可以从 RCCU 和 FCCU 收集哪些类型的数据,例如错误状态、故障源、错误类型或故障上下文?硬件中实际有哪些信息可用,Linux dmesg 可以报告哪些信息? 端到端数据流:从 RCCU 检测到锁步不匹配,到 FCCU 故障处理,再到 Linux 内核报告,整个流程是怎样的?涉及哪些寄存器、中断、驱动程序或软件组件? 源代码和实现:在电路板支持包 48.0.0 中需要修改或启用哪些源文件、设备驱动程序、设备树条目或配置文件才能收集和报告此信息?NXP 是否提供现有的 GitHub 代码库、参考实现或示例代码来演示完整的流程? 锁步输入和输出:锁步机制的输入实际上比较的是什么?输入是由冗余的 A53 执行路径内部生成的,还是必须由软件配置或加载任何输入数据?相关配置在哪里执行?当出现不匹配情况时,软件可以检索到哪些诊断输出? 请提供相关的参考手册章节、源代码参考以及具体的实现流程,因为当前的电路板支持包文档对这些细节的解释不够充分。 Re: RCCU, FCCU, and Lockstep Diagnostic Data Flow on S32G3 感谢你的回复。我还想问最后一个问题。 Linux 电路板支持包。 48.0.0 用户手册描述了使用设备树属性(例如 `nxp,ncf_fault_list` 和 `nxp,ncf_actions`)配置 FCCU。 请问我们需要修改哪个源文件才能应用此配置?保存更改后,更改会通过设备树生效吗?还是我们还需要修改 FCCU 驱动程序? 如果可以,请提供 S32G378A-EVB3 的简单示例。 此致, 托安 Re: RCCU, FCCU, and Lockstep Diagnostic Data Flow on S32G3 你好, @Toan 谢谢你的帖子 1.FCCU 提供硬件接口来收集设备中检测到的故障信息,这是硬件行为,不同的故障编号反映不同的故障,您可以参考 S32G3 RM 中附加的故障映射文件。BSP48 中的 Linux FCCU 驱动程序允许更新 FCCU 中处理的非关键故障的选定列表,并使用设备树选择支持的 NCF 操作之一。如果响应集是警报,则警报信息为: 如果发生相应的故障,则将其打印在内核日志中。 2. 当 RCCU 检测到问题时,FCCU 将记录该问题,然后执行用户设置的操作,例如,如果将报警设置为操作,则可以在内核日志中找到相关信息,Linux FCCU 驱动程序、DTS、FCCU 报警中断处理程序将参与其中。 3. 相关信息可从 BSP48 UM 第 6 章中获得。 4.在锁步模式下,一个集群被视为主集群,另一个集群被视为校验集群。从软件角度来看,这两个集群在锁步模式下作为一个集群运行。Cortex-A53 Cluster0 是主执行集群,Cortex-A53 Cluster1 紧随其后执行。所有离开集群并发送到 MCU 其他部分的功能信号都由比较器 (RCCU) 进行监控,以确保复制资源的等效操作。任何被监控信号之间的操作偏差都会触发 FCCU 收到差异通知。 在 S32G3 A53 锁步模式下,软件不需要提供或加载锁步比较的输入数据。该比较由硬件在 A53 正常执行期间内部执行,对应用程序软件是透明的。 软件主要配置 Lockstep 操作模式,而不是对比数据。软件可以针对故障设置相应的操作。如果检测到不匹配,则会通过 RCCU/FCCU 功能安全故障机制报告,并执行相关操作。 BR 陈银
View full article
i.MX Security Features & Collateral Topic Link Comments Secure Boot  Secure Boot in AHAB enabled devices Applies to i.MX 8/8X/8XLite Family of Application Processors Extended to support i.MX 8ULP and i.MX 93 Family of Application Processors Secure boot - step-by-step guides for both HAB and AHAB enabled devices Secure Boot Automation -  Reference Design  Please switch to the latest BSP version for the updated guides. Security Reference Design - Yocto based Secure Boot automation Documentation at IMXLUG: Chapter "Security Reference Design" Secure Boot with i.MX 28 HAB Version 4 Applies to i.MX 28 Application Processor Secure boot in HABv4 enabled devices Applies to i.MX 6/7/8M Family of Application Processors Encrypted Boot  Encrypted boot App Note for HABv4 and CAAM enabled devices Applies to i.MX 6/7/8M Family of Application Processors Encrypted boot - step-by-step Guides for HAB enabled devices Encrypted boot - step-by-step Guides for AHAB enabled devices Link may not be updated with the latest BSP release. Please switch to the latest BSP or the required version. Security Training i.MX Security Training Various Security Training Workshops on older BSP releases.  NDA customers will need to request access from NXP. Secure Manufacturing Training Manufacturing Protection: Provision Sensitive Material in an Unsecure Environment Software Integrity and Data Confidentiality: Establishing Secure Boot and Chain of Trust on i.MX Processors This training explores the “Secure by Design” approach to software security for embedded systems using NXP i.MX processors - specifically, establishing secure boot and chain of trust  Securing Embedded Linux Devices: Pitfalls to Avoid This training session explores the proven best practices for designing and maintaining secure products, common security pitfalls & tips for hardening embedded Linux devices. Linux Kernel Security: Overview of Security Features and Hardening This training session explores how the Linux kernel's configuration can be strengthened to protect against security exploits. Essential Security Considerations for Edge Applications This training session introduces key features of embedded security, from secure boot and debug to lifecycle management. Code Signing Tool Latest Code Signing Tool Code Signing Tool (CST) package with complete source code and documentation. Using Code Signing Tool with Hardware Security Module Hardware Security Module backend exposed to extend the usage of CST with external HSM Using HSM mode for code signing in AHAB devices Using HSM mode for code signing in HAB devices  Offline HSM Code signing support for both HAB and AHAB based devices Secure Provisioning Tool (SPSDK) Latest SPSDK source code SPSDK source code Github repository Latest SPSDK documentation SPSDK readthedocs documentation covering Build/Installation, API, user guide and examples Supported MPU Devices - i.MX 8 ULP - i.MX 9 Family   Device specific examples : - i.MX 8ULP AHAB with U-BOOT - i.MX 95 AHAB with U-BOOT - i.MX 93 signed and encrypted AHAB image - i.MX 93 signed and encrypted AHAB image etc.. Examples such as: - secure boot/encrypted boot - secure debug - boot image build/deployment - Key creation/management EdgeLock Secure Enclave (ELE) Security Beyond the Edge | EdgeLock Secure Enclave  EdgeLock Secure EnclaveE API Reference Guide UG10186 EdgeLock Secure Enclave i.MX93 A1 User Guide UG10190 EdgeLock Secure Enclave i.MX95 B0 User Guide UG10404 V2X Secure Enclave i.MX95 B0 User Guide  The EdgeLock® Secure enclave is a preconfigured, self-managed and autonomous security subsystem that enables embedded developers to achieve their device security goals. User guides Available through - Secure Resources Secure Debug  Secure Debug on devices with JTAG controller Secure Debug on devices with JTAG controller and Authenticated Debug Module (ADM) Applies to i.MX 6/7/8M Family of Application Processors Applies to i.MX 8/8x Family of Application Processors   Secure Debug on ELE-AP based i.MX SoCs - New  AN14579 applies to i.MX 9 Family of Application Processors (ELE-AP) Extending the Root of Trust HABv4 RVT guidelines and recommendations  The HAB API allows the use of the HAB library to extend the root of trust and authenticate additional software images. This document describes system considerations when planning to make use of this API. HAB Persistent memory  HABv4 persistent memory address regions for various i.MX Application Processors HAB persistent memory is used by HAB to store logs. The base address and size are provided for each processor. OP-TEE i.MX Porting Guide - Configuring OP-TEE chapter Guide to OPTEE enablement on various i.MX devices can be requested for customers under NDA Getting Started with OP-TEE on i.MX Processors Webinar - Getting started with trusted execution environments (TEE) - OPTEE enablement on various i.MX devices  Secure  Updates Secure Over the Air Updates Source Code  ______________________________ Enabling SWUpdate on i.MX 6ULL, i.MX 8M Mini & i.MX 93 ______________________________  Secure Software Updates: Designing Ota Updates For Secure Embedded Linux Systems Secure Over-the-Air Prototype for Linux Using CAAM and Mender or SWUpdate ______________________________ SWUpdate is a Linux Update agent to provide an efficient and safe way to update an embedded Linux system. SWUpdate supports local and OTA updates, & multiple update strategies ___________________________ Webinar on Field updates of the software with Over-the-Air (OTA) Incremental updates, full OS updates. Signing of packages and update images, server authentication and other key considerations for securely deploying updates. Secure Manufacturing Manufacturing Protection App Note Manufacturing Protection Verification tool Secure Manufacturing Training Guidance to secure manufacturing in supported i.MX devices. Reference verification tool provided to authorize products with this feature enabled. Manufacturing Protection: Training on how to provision Sensitive Material in an Unsecure Environment Public Key Cryptography using CAAM Secure Key Strengthening Public Key Cryptography using CAAM Secure Key Source Code Leveraging the i.MX CAAM module to ensure the transfer of confidential data upon insecure channels using ECDSA secure keys Secure Storage i.MX Encrypted Storage Using CAAM Secure Keys Understanding SECO Secure Storage and Non-Volatile Memory Management  This document provides steps to run storage encryption at the block level using DM-Crypt taking advantage of the secure key feature. This document describes some of the key concepts related to the Security Controller secure storage and non-volatile memory management.  Securing Data Demo Application to Generate Red/Black Blobs Using CAAM and Encrypt/Decrypt Data Source Code This document provides instructions and steps on how to set up and run a demo application to generate both red and black key blobs and use them to encrypt and decrypt data. Enhanced OpenSSL using OP-TEE Enhanced OpenSSL on i.MX Processors  Source Code The purpose of this document is to describe how to add the support of accelerated OP-TEE OS with CAAM on top of OpenSSL.  On The Fly AES Decryption OTFAD App Note OTFAD Tool  OTFAD support in i.MX 7ULP Application Processor Tampering Application  Tampering Application on i.MX 7D SabreSD Board Source Code  The document describes the steps required for software configuration and physical setup for both passive and active tampering on i.MX 7D. Android™ Security User's Guide & User's Guide    Android Security User's Guide     Guide for customization work on security features supported by i.MX Android software. It provides an overview of the i.MX Android security features and it focuses on how to configure and use these security features. Android User's Guide      User Guide provides instructions for: • Downloading, patching, and building the software components that create the Android™ image. • Hardware/software configurations for programming the boot media and Building OTA update packages. i.MX Chip Lifecycle Transitioning the Chip Lifecycle to Field Return OEM This application note introduces the chip lifecycle concept. The document also describes how to move the chip lifecycle from the OEM Closed lifecycle to the Field Return OEM lifecycle with the SPSDK tool on EdgeLock Secure Enclave (Advanced Profile) (ELE-AP) based i.MX devices. i.MX Fuse Usage Fuse Usage on i.MX Devices  This application note covers fuse usage and various restrictions covering both  EdgeLock Secure Enclave (Advanced Profile) (ELE-AP) based i.MX devices and non-ELE based devices. i.MX ROMs Log Events i.MX ROMs Log Events This document describes the details of ROM log events for i.MX 6/7/8/9 series ROM.  Device Recovery  HABv4 closed device recovery using UUU Certain i.MX devices require the DCD pointer in IVT to be cleared before singing the recovery image. This document describes this procedure. EdgeLock 2GO  EdgeLock 2GO Services for MPU and MCU     EdgeLock 2GO Provisioning via Cloud Flow for MPUs This application note introduces various methods that the EdgeLock 2GO service can be used with MCU and MPU devices and the features available for each method. This document offers an outline of the EdgeLock 2GO platform and discusses the “Device provisioning via cloud” flow to connect the ELE based NXP devices to the EdgeLock 2GO cloud server.   Secure Elements Quick start guide for EdgeLock™ SE05x & i.MX 8M Quick start guide for EdgeLock™ SE050 & i.MX 6UltraLite Quick start guide for A71CH & i.MX 6UltraLite Ease ISA/IEC 62443 compliance with EdgeLock SE05x   Interfacing Secure Elements with the i.MX  Binding a host device to EdgeLock SE05x Binding MCUs with TrustZone® and Cryptographic Acceleration and Assurance Module (CAAM) to SE050x Secure Element Known Limitations & Guidelines Known limitations and guidelines document This page contains known limitations in various IPs with i.MX processors. i.MX Security Community  i.MX Security community page This is the parent page for various collateral related to security on i.MX Application Processors including public vulnerabilities Vulnerability Management Vigiles™ Software | NXP Vigiles is a Software Composition Analysis (SCA) tool that helps generate and analyze a Software Bill of Materials (SBOM) for publicly known cybersecurity vulnerabilities, particularly CVEs. Vigiles is optimized for embedded systems, and it provides a complete vulnerability lifecycle management tool.         Training: Best Practices for Triaging Common Vulnerabilities and Exposures (CVEs) in Embedded Systems | NXP Training: Introducing: Vigiles Training: Full Life-Cycle Security Maintenance of Embedded Linux BSPs Training: BSP Security Maintenance - Best Practices for Vulnerability Monitoring and Remediation i.MX Security Applications GitHub - i.MX Security Apps   GitHub for NXP Contains security applications like: - CAAM demo applications - Enhanced OpenSSL using OP-TEE - HSM SHE examples - Demo CAAM Blobs - Manufacturing protection verification tool Security Reference Manuals Link to Various i.MX Security Reference Manuals  Linux BSP Reference Manual Linux BSP and Reference Manuals   PQC Post-Quantum Cryptography  Post-Quantum Secure TLS 1.3 on Application MPUs | NXP Semiconductors Landing page with numerous Post-Quantum Cryptography resources and links to devices which support PQC This session delves into how post-quantum cryptography, hardware security modules (HSMs) and trusted platforms through the EdgeLock® Secure Enclave. Security Certification PSA Level 1: NXP PSA L1 Certified Products PSA Level 2: EdgeLock Secure Enclave  PSA Level 3: i.MX 93 EdgeLock Secure Enclave SESIP 1: i.MX 7ULP SESIP 2: EdgeLock Secure Enclave CAVP i.MX 8ULP AES i.MX 8ULP DRBG Please contact your NXP representative on the latest processor security certification status  CRA  & Security Compliance EU Cyber Resilience Act (CRA)  Ease CRA Compliance with i.MX 93  Ease ISA/IEC 62443-4-2 Compliance with i.MX 8ULP Ease ISA/IEC 62443-4-2 Compliance with i.MX 8XLite NXP is actively preparing for CRA implementation. This Web page gives an overview as part of this effort, NXP will provide clear statements outlining how our product families will comply with the applicable CRA classes. This document addresses OEMs who want to understand how i.MX 93 can facilitate the implementation of CRA requirements Describes how i.MX SoCs can be used to facilitate the implementation of ISA/IEC 62443-4-2 requirements. Security Blogs Securing Tomorrow: NXP’s Post-Quantum Cryptography Strategy U.S. Cyber Trust Mark: NXP Is Ready for the Paradigm Shift with EdgeLock® Assurance Program Securing Your Industrial Systems with IEC 62443 IoT Security Just Got Easier: EdgeLock 2GO Programming Partners Simplify Device Provisioning  This article explores how NXP’s portfolio enables seamless PQC adoption across new and existing products U.S. Cyber Trust Mark: Security Guidance for IoT Product Developers How NXP Supports Customers to Achieve 62443 Compliance EdgeLock 2GO service gives device OEMs a secure, simple and flexible way to provision and manage device credentials, over the entire lifecycle of the device. Security Whitepapers Security Primitives: Requirements in (I)IoT Systems  SECURING-INDUSTRIAL-IOT  Security Subsystems for System-on-Chip (SoC) Solutions   Functional Safety and Security: Essential and Complementary Disciplines for Modern Systems  The Emergence of Post-Quantum Cryptography  Post-Quantum Cryptography  A solution for 360 degree Industrial Internet Security/ABB-MSFT-NXP   
View full article
PQC合规性在发货后才发现为时已晚!从安全启动和固件更新的角度考虑量子攻击防护措施(日文博客) 继i.MX 94和i.MX 95之后,恩智浦半导体 (NXP) 发布了 MCX A5 系列,该系列产品在 ROM 中内置了安全引导加载程序,支持PQC(后量子加密)混合安全引导和安全固件更新。恩智浦半导体计划继续扩展其 PQC 兼容产品线。 恩智浦发布全新MCX A5 MCU,简化安全工业连接 | 恩智浦半导体 尽管量子计算机仍在开发中,而且使用量子计算机的具体攻击尚未开始,但现在采用内置 PQC 兼容安全引导加载程序的产品极其重要,特别是对于打算长期使用的设备,例如工业设备。 如果您打算稍后通过固件更新来解决该问题,那么您需要了解其中涉及的重大限制,以及在产品制造时需要采取哪些措施来确保符合 PQC 标准。 需要符合PQC规定的主要原因 以下是产品设计阶段就需要符合 PQC 标准的主要原因。 产品生命周期可能与量子计算机实际攻击的出现时间重叠 。工业设备、汽车设备、医疗设备等产品的使用寿命有时超过10年。如果这些产品在量子计算机真正普及之前就已经上市,那么市场届时就需要相应的应对措施。 “先获取后解密”意味着 现在获取的加密通信数据未来可以利用量子计算技术进行解密 。尤其对于需要长期保密的产品而言,攻击发生后再做出反应就为时已晚了。 资源需求可能非常庞大,而且以后很难解决。 根据具体算法的不同,PQC 算法可能比传统的 ECC/RSA 算法需要更高的资源(ROM、RAM、闪存、处理时间、功耗),这会增加后续实现的难度。如果您计划在未来支持 PQC,除了满足当前产品规格外,还需要从一开始就确保 PQC 所需的充足资源。 以上是一些常见的理由,但仅从以上内容来看,你可能会想:“如果处理的数据即使以后被解密也不会造成太大问题,那么现在就投入充足的资源进行设计,然后再通过固件更新添加 PQC 支持,岂不是更好吗?” 然而,实际上存在诸多限制。 由于固件更新,PQC 支持出现问题 后续PQC合规性的最大制约因素是: “第一条SBL(稍后详述)必须不可重写。” “固件更新镜像包含知识产权(IP)。” 这就是关键所在。 第一个 SBL(First SBL)与安全启动有关。 安全启动是一种重要的安全机制,它在启动固件之前通过签名验证来验证固件的完整性(固件未被损坏或篡改) 。 为此,需要一个安全引导加载程序 (SBL),它独立于被验证的固件而存在,在被验证的固件启动之前运行,并执行签名验证。 具体来说,系统启动后最先执行的SBL在此被称为第一SBL,并且该第一SBL必须是不可变的。至于原因,请参阅下文“第一SBL不得被覆盖”一节。 MCU 中的安全启动和安全(OTA)更新基础知识(日文博客) 换句话说,第一级系统认证机构(1st SBL)在产品出货时,如果固件验证算法仍采用ECC/RSA,而没有采用与PQC兼容的算法,那么之后再添加对PQC兼容算法的支持是不可能的。如果第一级系统认证机构的固件验证算法仍然是ECC/RSA,那么在量子计算机普及应用后,其签名存在被伪造的风险,恶意固件可能会被植入。 第二点是,即使产品本身处理的数据在之后被解密时不会造成重大问题,但产品的固件通常包含大量的知识产权(IP)。 如果固件更新镜像的加密算法不支持 PQC,则将来可能会因为固件更新镜像内容被解密而导致 IP 泄露的风险。 此外,如果固件更新映像的签名算法不支持 PQC,则存在固件更新映像的签名可能被伪造,从而加载恶意固件的风险。 基于以上所述,如果我们考虑未来对 PQC 的支持,那么可以合理地得出结论:至少在产品制造时,使用第一 SBL 的固件验证算法以及固件更新映像的签名和加密算法必须与 PQC 兼容。 NXP产品可以解决PQC合规性方面的挑战。 MCX A5 的启动 ROM 集成了 PQC 兼容的安全启动功能,使其可用作首个安全启动模块 (SBL)。此外,该启动 ROM 还支持 PQC 兼容的安全更新。与将 SBL 置于闪存相比,它还能减少所需的闪存容量。 将符合 PQC 标准的功能产品化需要验证密钥管理、签名基础设施、制造配置、OTA 更新、身份验证、性能评估和标准合规性,因此需要较长的准备时间。对于第一版 SBL 而言尤其如此,如前所述,第一版 SBL 无法更新,因此需要更加严格的验证。 截至撰稿时,MCX A5 尚未量产,目前正在进行认证,但其设计目标是获得 PSA 3 级和 SESIP 3 级第三方安全认证(NXP 已有多款产品获得 PSA/SESIP 认证)。认证完成后,我们将提供包括安全目标(一份定义评估目标、安全声明、要求、范围等的文件)在内的相关文档。 通过利用 MCX A5 的 PQC 兼容安全启动集成启动 ROM,以及 NXP 的工具集(例如MCUXpresso 安全配置工具和MCUXpresso SDK) ,我们可以减少 PQC 兼容安全启动和固件更新所需的实施和验证工作量。 选择SESIP 3级认证产品的关键要点 关于SESIP认证,需要注意的一点是,即使是获得SESIP 3级认证的产品,其认证所涵盖的功能范围也可能存在显著差异。因此,不仅要检查SESIP认证级别,还要仔细查看安全目标文档的内容,这一点至关重要。 认证产品的文档可从以下链接下载。 SESIP证书 - TrustCB 例如,在 NXP 的 SESIP Level 3 产品“MCX N94x / 54x / 23x SESIP 安全目标 Rev 1.1”中,图 3 显示认证范围不仅包括 SoC ROM(包括安全启动),还包括许多安全功能,例如EdgeLock ® 安全隔离区 (ELS S50) 。 虽然其他一些公司通过 SESIP 3 级认证的产品缺乏许多此类安全功能,但一些逻辑范围产品仅凭生命周期管理和内存保护功能就获得了 SESIP 3 级认证。   此外,NXP 的 SESIP 安全目标包括与 IEC 62443-4-2 等安全标准/法规的映射,可用于满足这些标准以及未来安全标准/法规中的类似要求。 截至撰写本文时,最新认证产品“i.MX RT700 SESIP 安全目标 Rev. 1.0”还包括与 CRA 的 EU 2024/2847 附件 I 基本网络安全要求的映射。 注:上述安全目标文档版本名称截至撰写本文时有效,但可能会有所更改。此外,SESIP 认证及其与安全标准/法规的映射并不能保证使用 NXP 产品的最终产品完全符合相关标准/法规。最终产品层面的集成以及必要的其他措施可能必不可少。 ========================= 我们目前无法回复此帖子“评论”部分留下的评论。 对于由此造成的不便,我们深表歉意,但在进行咨询时,请参考“ NXP 技术问题 - 如何联系我们(日语博客) ”。 (如果您已经是恩智浦的分销商或与恩智浦有合作关系,您可以直接咨询您的代表。) 继i.MX 94和i.MX 95之后,恩智浦半导体 (NXP) 发布了 MCX A5 系列,该系列产品在 ROM 中内置了安全引导加载程序,支持PQC(后量子加密)混合安全引导和安全固件更新。恩智浦半导体计划继续扩展其 PQC 兼容产品线。 恩智浦发布全新MCX A5 MCU,简化安全工业连接 | 恩智浦半导体 尽管量子计算机仍在开发中,而且使用量子计算机的具体攻击尚未开始,但现在采用内置 PQC 兼容安全引导加载程序的产品极其重要,特别是对于打算长期使用的设备,例如工业设备。 如果您打算稍后通过固件更新来解决该问题,那么您需要了解其中涉及的重大限制,以及在产品制造时需要采取哪些措施来确保符合 PQC 标准。 (阅读时间:10分钟) i.MX RT 处理器 i.MX 处理器 MCX 安全 日本博客
View full article
PQC対応は出荷後では遅い!セキュアブートとファームウェア・アップデートから考える耐量子対策 (日本語ブログ) i.MX 94およびi.MX 95に続き、MCXシリーズでも、PQC(Post-Quantum Cryptography:耐量子暗号)ハイブリッド対応のSecure BootとSecure Firmware UpdateをサポートするセキュアブートローダーをROMに内蔵したMCX A5ファミリが発表されました。NXPでは今後もPQC対応製品を拡充予定です。 NXP、セキュアな産業向けコネクティビティを簡素化する 新しいMCX A5 MCUを発表 | NXP Semiconductors 現時点では量子コンピューターは発展途上であり量子コンピューターによる具体的な攻撃がまだ始まっていなくても、PQC対応セキュアブートローダー内蔵製品を今から採用することは、特に産業機器など長期利用が想定される機器においては非常に重要です。 特にファームウェアアップデートによる後日の対応を検討されている場合、そこに存在する大きな制約と、製品製造時点でPQC対応のために行っておくべき内容を理解する必要があります。 PQC対応が必要とされる主な理由 製品設計時からPQC対応が必要とされる主な理由を3つ挙げます。 製品寿命が量子計算機による実用的攻撃の到来時期をまたぐ可能性がある 産業機器、車載機器、医療機器などは10年以上使われることがあります。量子コンピューターが実用化される時点で既に出荷済みだと、後から市場での対策が必要となります。 現在取得された暗号文を将来復号される可能性がある 「Harvest Now, Decrypt Later」により、現在取得された暗号化通信データが、将来の量子計算能力によって解析される可能性があります。特に長期機密性が必要な製品では、攻撃開始後に対応するのでは遅すぎます。 リソース要求が大きく後から対応困難な場合がある PQCアルゴリズムは方式によっては従来のECC/RSAよりもリソース要求(ROM、RAM、Flash、処理時間、電力)が大きいため、後からの対応が困難となる場合があります。将来のPQC対応を考えるなら、現在の製品仕様に合わせるだけでなく、PQC用のリソースの余裕を最初から確保する必要があります。 以上がよく語られる理由ですが、上記だけでは「取り扱うデータ自体は後で解読されてもさほど問題ない場合、現時点ではリソースに余裕を持たせた設計を行い、後でファームウェアアップデートでPQC対応をすればよいのでは?」と思われるかもしれません。 しかし現実には重要な制約があります。 ファームウェア・アップデートによるPQC対応の問題 後でPQC対応するための最大の制約は、 「1st SBL(後述)は書換不可とする必要がある」 「ファームウェアアップデートイメージは知的財産(IP)を含む」 という点です。 1つ目の1st SBLについてはセキュアブートと関連します。 セキュアブートはファームウェアを起動する前に署名検証によりファームウェアの完全性(破壊、改ざんがないこと)を検証したうえで起動する、セキュリティにおいて欠かせない仕組みです。 これを行うためには検証されるファームウェアとは独立して存在、検証対象ファームウェアの実行開始前に実行され、署名検証を行うセキュアブートローダー(Secure Bootloader : SBL)が必要です。 特にシステム起動後に最初に実行されるSBLのことをここでは1st SBLと呼びますが、この1st SBLは書換不可とする必要があります。その理由は以下記事の「1st SBLは書き換えられてはならない」の章を参照ください。 MCUにおけるセキュアブート、セキュア(OTA)アップデートの基本 (日本語ブログ) つまり製品出荷時の1st SBLによるファームウェア検証アルゴリズムをECC/RSAとしてPQC対応アルゴリズムは無し、後でPQC対応アルゴリズムの対応を追加する、という対応は不可能ということになります。1st SBLによるファームウェア検証アルゴリズムがECC/RSAのままだと、量子コンピューター実用化後はその署名を偽造され、不正ファームウェアを起動されるリスクがあります。 2つ目の点は、製品で取り扱うデータ自体は後で解読されてもさほど問題ない場合でも、一般には製品のファームウェアには一般に多くの知的財産(IP)が含まれるという点です。 ファームウェアアップデートイメージの暗号化アルゴリズムがPQC対応していない場合、将来ファームウェア更新イメージの内容を復号されることによるIP漏洩のリスクがあります。 またファームウェアアップデートイメージの署名アルゴリズムにPQC対応していない場合、ファームウェア更新イメージの署名を偽造されて不正なファームウェアをロードされるリスクもあります。 以上より、将来のPQC対応を考えるのであれば、最低でも1st SBLによるファームウェア検証アルゴリズム、ファームウェアアップデートイメージの署名・暗号化アルゴリズムは製品製造時点でPQCに対応する必要があると考えられます。 PQC対応の課題に対するNXP製品による解決 MCX A5のBoot ROMには、PQC対応セキュアブートの機能が統合されており、これを1st SBLとして使用できます。さらにこのBoot ROMにはPQC対応セキュア・アップデートをサポートする機能も含まれています。SBLをFlash上に配置する場合と比べ、必要なFlash容量も削減できます。 PQC対応機能の製品化には鍵管理、署名基盤、製造時プロビジョニング、OTA更新、認証、性能評価、規格対応などを検証する必要があり、長い準備期間が必要です。特に前述のとおり更新が不可能な1st SBLについてはより厳しい検証が必要となります。 MCX A5は本記事執筆時点では量産開始前であり、認証取得に向けた準備中ですが、PSA Level 3およびSESIP Level 3第三者セキュリティ認証取得を目標に設計されています(NXPではすでに多数の製品でPSA/SESIP認証取得の実績があります)。認証取得後は、Security Target(評価対象、セキュリティ主張、要求事項、スコープなどを定義する文書)を含む文書が提供されます。 MCX A5のPQC対応セキュアブート機能統合Boot ROMと、それと組み合わせて使用するMCUXpressoセキュア・プロビジョニング・ツールやMCUXpresso SDKといったNXPのツール群を活用することでPQC対応セキュアブートとファームウェア・アップデートの実装・検証工数の削減に寄与します。 SESIP Level 3認証製品選定のポイント SESIP認証について注意すべき点として、同じSESIP Level 3認証取得製品であっても製品によって認証のスコープに含まれる機能の範囲が大きく異なる場合があります。そのためSESIP認証のレベルだけでなくSecurity Target文書の内容を確認することが重要です。 認証取得済み製品の文書は以下からダウンロード可能です。 SESIP Certificates - TrustCB 例えばNXPのSESIP Level 3製品のうち「MCX N94x / 54x / 23x SESIP Security Target Rev 1.1」には以下「Fig 3. Logical Architecture and Certification Scope」に、Secure Boot含むSoC ROMだけでなく、EdgeLock ® セキュア・エンクレーブ(ELS S50)含む多数のセキュリティ機能がCertification Scopeに含まれていることが記載されています。 他社のSESIP Level 3認証製品の中にはこういったセキュリティ機能の多くが搭載されていない製品に対し、logical scopeはライフサイクル管理とメモリ保護機能のみとしてSESIP Level 3認証を取得している製品もあります。   また、NXPのSESIP Security TargetにはIEC 62443-4-2といったセキュリティ規格/規制に対するマッピングが含まれており、それらへの対応や将来のセキュリティ規格/規制内の類似した要求への対応にも活用可能です。 本記事執筆時点で最新の認証取得製品である「i.MX RT700 SESIP Security Target Rev. 1.0」にはCRAのEU 2024/2847 Annex I Essential Cybersecurity Requirementsに対するマッピングも含まれています。 注意 : 上記のSecurity Targetの文書バージョン名は本記事執筆時点のものであり、改定される可能性があります。また、SESIP認証およびセキュリティ規格/規制へのマッピングはNXP製品を使用した最終製品全体の規格/規制への適合を保証するものではありません。最終製品側での統合と、要求に応じて追加対策が必要となります。 ========================= 本投稿の「Comment」欄にコメントをいただいても、現在返信に対応しておりません。 お手数をおかけしますが、お問い合わせの際には「NXPへの技術質問 - 問い合わせ方法 (日本語ブログ)」をご参照ください。 (既に弊社NXP代理店、もしくはNXPとお付き合いのある方は、直接担当者へご質問いただいてもかまいません。) i.MX 94およびi.MX 95に続き、MCXシリーズでも、PQC(Post-Quantum Cryptography:耐量子暗号)ハイブリッド対応のSecure BootとSecure Firmware UpdateをサポートするセキュアブートローダーをROMに内蔵したMCX A5ファミリが発表されました。NXPでは今後もPQC対応製品を拡充予定です。 NXP、セキュアな産業向けコネクティビティを簡素化する 新しいMCX A5 MCUを発表 | NXP Semiconductors 現時点では量子コンピューターは発展途上であり量子コンピューターによる具体的な攻撃がまだ始まっていなくても、PQC対応セキュアブートローダー内蔵製品を今から採用することは、特に産業機器など長期利用が想定される機器においては非常に重要です。 特にファームウェアアップデートによる後日の対応を検討されている場合、そこに存在する大きな制約と、製品製造時点でPQC対応のために行っておくべき内容を理解する必要があります。 (読了:10分) i.MX RT Processors i.MX Processors MCX Security 日本語ブログ
View full article