Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
关于审查 WM8962 音频编解码器与 i.MX95-15x15 上的 SAI4 集成的请求 您好,NXP团队, 我创建了一个设备树补丁( wm8662_audio_codec_imx95_15x15.patch ),将 WM8962 音频编解码器与 SAI4 集成到我的自定义 i.MX95 15×15 板上。 请您检查一下这个补丁,并确认音频集成是否正确? 请重点关注: WM8962 I²C 配置、地址、时钟和电源。 SAI4 配置、引脚控制、时钟频率和主时钟设置。   注意:此补丁还包含 HDMI、LVDS 和其他配置。请忽略这些更改,仅查看 WM8962 音频编解码器和 SAI4 集成部分。 请提出必要的修改建议,并尽可能提供参考设备树示例。 请查看附件。 感谢您的支持。 Request to Review of WM8962 Audio Codec Integration with SAI4 on i.MX95-15x15-FRDM 亲爱的@Zhiming_Liu , 感谢您对外部 MCLK 和虚拟时钟配置的建议。 我已根据您的建议更新了我的设备树补丁( wm8662_audio_codec_imx95_15x15.patch )。能否请您再次审阅一下附件中的补丁,并澄清以下几点? 缺失属性: WM8962 编解码器设备树中剩余的属性是否全部正确,或者是否需要其他属性? MCLK 配置:我使用的是外部 MCLK { 24.000MHZ-D2Y-T},并且已按照建议添加了虚拟固定时钟节点。时钟配置是否正确,包括 12.288 MHz 的频率? SAI4 配置:我的 SAI4 配置是否正确,特别是分配的时钟、时钟父级、时钟速率以及fsl,sai-mclk-direction-output属性? &sai4 { #sound-dai-cells = <0> pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_sai4>; pinctrl-1 = <&pinctrl_sai4_sleep>; 已分配时钟 = <&scmi_clk IMX95_CLK_AUDIOPLL1_VCO>, <&scmi_clk IMX95_CLK_AUDIOPLL2_VCO>, <&scmi_clk IMX95_CLK_AUDIOPLL1>, <&scmi_clk IMX95_CLK_AUDIOPLL2>, < &scmi_clk IMX95_CLK_SAI4 >; 已分配时钟父级 = <0>, <0>, <0>, <0>, <&scmi_clk IMX95_CLK_AUDIOPLL1>; 分配的时钟速率 = <3932160000>, <3612672000>, <393216000>, <361267200>, <12288000>; fsl,sai-mclk-direction-output; 状态 = "正常"; 4.需要更改:我是否应该删除或修改 SAI4 或 WM8962 节点中的任何属性。 感谢您一直以来的支持。 Re: Request to Review of WM8962 Audio Codec Integration with SAI4 on i.MX95-15x15 嗨@deepak_k 如果您使用外部 MCLK,请在 dts 中添加虚拟时钟信息。 m8962_ext_mclk: wm8962-ext-mclk { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <12288000>; clock-accuracy = <20>; clock-output-names = "wm8962_ext_mclk"; }; wm8962: audio-codec@1a { compatible = "wlf,wm8962"; reg = <0x1a>; clocks = <&wm8962_ext_mclk>; clock-names = "mclk"; ..... /delete-property/ fsl,sai-mclk-direction-output; }; 此致, 志明
View full article
24MHz时钟问题RT1052 你好, 我开发了一款定制的PCB,其中包括RT1052 MCU。 我使用的时钟配置如下: 其中 C57 和 C58 被替换为 4.7 pF,以符合评估板的要求。 但是,我无法启动芯片上的振荡器。 我觉得启动顺序是正确的: 1) SNVS 3V3 稳定 2) NVCC_x、DCDC_IN、VDD_HIGH(3V3_main)变为 3V3 稳定。 3) VDD_SOC 稳定在 1.1V,这没问题。 当所有电源线都正常且选项字节设置为串行下载时,POR 将被释放。 如果我打开电源,我在示波器上看到没有振荡开始,XTALO 稳定在 3V3。 黄色 XTALO,蓝色 XTALI,绿色 3V3_main,红色 POR(200 毫秒后变为高电平) 如果我关闭电源,我看到一些振荡,我假设振荡器参数正常。 另外,虽然引脚连接正确,但我没有SWD通信。我尝试注入 20 MHz 时钟信号,得到了一些响应,但没有可靠的通信。因此,我首先尝试修复 24 MHz 振荡器。 有人知道为什么振荡器不启动吗? i.MX-RT1050 Re: 24MHz clock issue RT1052 嗨@JBA , 非常感谢您对我们产品的关注以及对我们社区的使用。 根据您的描述,我建议您检查与振荡器相关的连接以及实际的上电波形。 1:请在上电期间测量 VDD_SNVS_IN、VDD_HIGH_IN、DCDC_IN、DCDC_PSWITCH 和 POR_B。尤其请检查 DCDC_PSWITCH 在 DCDC_IN 稳定后至少 1 毫秒是否上升。 2:请查阅晶体制造商的规格说明,了解其负载电容(CL )和ESR,然后使用已安装的电容器值以及PCB和MCU引脚的寄生电容来计算有效负载电容。确认计算出的负载是否适合该晶体。除非晶体规格和板寄生参数相当,否则不应直接复制 EVK 的 4.7 pF 电容值。 3:请在电源稳定后测量 NVCC_PLL 处的电压。如果使用外部时钟源重复测试,请驱动 XTALO 并确保时钟的高电平电压不超过测量的 NVCC_PLL 电压。 顺祝商祺! 刘梅 Re: 24MHz clock issue RT1052 1)上电期间,VDD_SNVS_IN、VDD_HIGH_IN、DCDC_IN、DCDC_PSWITCH 和 POR_B 均被触发。这些信号正确,且顺序正确: 黄色:VDD_SNVS_IN。 绿色:VDD_HIGH_IN 和 DCDC_IN 红色:VDD_SOC 蓝色:POR DCDC_PSWITCH 和 VDD_SOC。DCDC_IN 稳定后 30 毫秒启用 PSWITCH。 2) 我使用 CL = 7 pF 和 stray = 3 pF 重新计算了电容。 负载电容设置为 8.2 pF,但示波器上仍然看不到振荡。 3) 我无法直接测量 NVCC_PLL 引脚,因为它位于 BGA 封装之下。但是,它直接连接到 VDD_HIGH 和 DCDC_IN。关于使用外部时钟源的问题:是否应该将其注入到 XTALI 引脚,而不是 XTALO 引脚? 我还能怎么办呢? 谢谢你的想法。   Re: 24MHz clock issue RT1052 这很令人困惑,因为 NVCC_PLL 与其他 NVCC_x 端口的名称相同。最好将其命名为 NVCC_PLL_CAP Re: 24MHz clock issue RT1052 嗨@JBA , 感谢您提供的最新信息。 关于您提出的“关于使用外部时钟源的问题:是否应该将其注入到 XTALI 引脚,而不是 XTALO 引脚?”这个问题 我指的是 RT1050 数据手册中描述的配置:外部 24 MHz 振荡器驱动 XTALO,XTALI 上有一个 18 pF 电容。所施加的时钟电平不得超过 NVCC_PLL。 我还想澄清一下您所说的“NVCC_PLL 直接连接到 VDD_HIGH 和 DCDC_IN”。你的意思是说 NVCC_PLL、VDD_HIGH_IN 和 DCDC_IN 都连接到同一个 3.3V PCB 网络吗?请检查原理图或PCB网络连接以确认这一点。NVCC_PLL 是内部 LDO_1P1 的约 1.1 V 输出,而 VDD_HIGH_IN 和 DCDC_IN 是电源输入。如果 NVCC_PLL 直接连接到 3.3V 电源,则在进行进一步的振荡器测试之前,需要纠正此连接。 顺祝商祺! 可能 Re: 24MHz clock issue RT1052 嗨,May, 我们还发现了 NVCC_PLL 问题。我断开连接后,振荡器现在开始工作了。感谢您的支持。
View full article
24MHz clock issue RT1052 Hi,  I have develop a customised PCB incl the RT1052 MCU. The clock configuration which I am using is: where C57 and C58 are replaced with 4.7 pF to be conform the evaluation board. However, I am not able to start the oscillator on the chip.  The power up sequence seem to me correct: 1) SNVS 3V3 stable 2) NVCC_x, DCDC_IN, VDD_HIGH (3V3_main) become 3V3 stable. 3) VDD_SOC becomes 1.1V stable which is OK. POR is released after all power lines are OK and option bytes are set to serial download. If I turn the power on I see on the scope that no ossilation is started and XTALO becomes 3V3 stable. Yellow XTALO, blue XTALI, green 3V3_main, red POR (becomes high after 200 ms) If i turn the power of I see some oscillation which I assume the oscillator parameters are OK. also I don't have SWD communication while pinning is correct. I tried to inject 20 MHz clock and got some response but no reliable communication. Therefore I tried first fixing the 24 MHz oscillator first. Does somebody know why the oscillator does not start? i.MX-RT1050 Re: 24MHz clock issue RT1052 Hi @JBA , Thank you so much for your interest in our products and for using our community. Based on your description, I would suggest you check the oscillator-related connections and the actual power-up waveforms. 1:  Please measure VDD_SNVS_IN, VDD_HIGH_IN, DCDC_IN, DCDC_PSWITCH, and POR_B during power-up. In particular, please check that DCDC_PSWITCH rises at least 1 ms after DCDC_IN is stable. 2:Please check your  crystal manufacturer’s specifications for its load capacitance (CL​) and ESR, then calculate the effective load capacitance using the installed capacitor values together with the PCB and MCU pin parasitic capacitance. Verify that the calculated load is appropriate for the crystal. The EVK’s 4.7 pF capacitor values should not be copied directly unless the crystal specifications and board parasitics are comparable. 3:Please measure the voltage at NVCC_PLL after the supplies have stabilized. If you repeat the test using an external clock source, drive XTALO and ensure that the clock’s high-level voltage does not exceed the measured NVCC_PLL voltage. Best Regards May Liu Re: 24MHz clock issue RT1052 1) VDD_SNVS_IN, VDD_HIGH_IN, DCDC_IN, DCDC_PSWITCH, and POR_B during power-up. These are correct and in the correct order: Yellow: VDD_SNVS_IN. Green: VDD_HIGH_IN and DCDC_IN Red: VDD_SOC Blue: POR DCDC_PSWITCH and VDD_SOC. PSWITCH is enabled 30 ms after DCDC_IN is stable. 2) I recalculated the capacitors using CL = 7 pF and stray = 3 pF. Load capacitors are set to 8.2 pF but still no oscillation visible on scope. 3) I am not able to directly measure the NVCC_PLL pin because it is under the BGA package. However, it is directly connected to VDD_HIGH and DCDC_IN. A question about using an external clock source: shouldn't it be injected at XTALI pin, instead of XTALO? What could I do else? thanks for you thoughts.   Re: 24MHz clock issue RT1052 Hi May, we found the NVCC_PLL issues also. I was able to remove the connection and now the oscillators starts working. Thanks for your support. Re: 24MHz clock issue RT1052 Hi @JBA , Thanks for your updated information. Regarding you question about "A question about using an external clock source: shouldn't it be injected at XTALI pin, instead of XTALO?"  I was referring to the configuration described in the RT1050 data sheet: an external 24 MHz oscillator drives XTALO , with an 18 pF capacitor on XTALI . The applied clock level must not exceed NVCC_PLL .  I would also like to clarify your statement that NVCC_PLL is “directly connected to VDD_HIGH and DCDC_IN.” Do you mean that NVCC_PLL, VDD_HIGH_IN, and DCDC_IN are all connected to the same 3.3 V PCB net ? Please check the schematic or PCB net connections to confirm this. NVCC_PLL is the approximately 1.1 V output of the internal LDO_1P1, whereas VDD_HIGH_IN and DCDC_IN are supply inputs. If NVCC_PLL is directly tied to that 3.3 V net, this connection needs to be corrected before further oscillator testing.  Best Regards May  Re: 24MHz clock issue RT1052 It is quite confusing because NVCC_PLL is called the same as other NVCC_x ports. It would be better to call it NVCC_PLL_CAP
View full article
Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer Our production firmware is built and validated with MCUXpresso IDE v11.3.1_5262. We need to keep this exact version for build reproducibility, and we are moving our release builds to a Linux build environment (headless build in a container). The Linux installer for this version (MCUXpressoIDE_11.3.1_5262.x86_64.deb.bin) is no longer listed on the download page. Could you provide access to it? Thank you Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer Hello @uesrmane , I’ll send it to you by email. Please check your inbox. The file is quite large, so I’m not sure if it will go through successfully. If you don’t receive it or have any issues, please let me know. BR Celeste Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer I can see the list but I can only see till version 11.6 , the older 11.3 are not found. Let me know if you can send the v11.3.1_5262 Linux installer. thank you Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer Yes my issue is that I can see the previous version list but I can only see until version 11.6V I cant see the older files, would it be possible to ask for the v11.3.1_5262 version for linux? Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer Hello @uesrmane , Thanks for your post. Please refer to the attached screen recording to see how to access your Flexera account and find the legacy MCUXpresso IDE versions. Please note that some versions may not be available for all accounts. If you cannot find the version you are looking for, please let me know. BR Celeste
View full article
#LX2160ボードで電源投入時に起動しない こんにちは、#Lx2160a-rdb ボードについて質問があります。 電源を接続して電源ボタンを押しても、回路が起動せず、LED D20とD23が赤く点灯します。デバイスの電源は以前には入れられていなかったにもかかわらず、過熱状態を示している。 その原因は何でしょうか?助けてください。ありがとうございます。 Re: Failure to boot upon power on in the #LX2160 board D20 + D23は必ずしもプロセッサが本当に熱いという意味ではありません。 D23(THERM)は、温度監視回路が熱異常を検知し、システムを停止したことを意味します。デフォルトの作動温度は85℃です。 D20(FAIL)は一般的な故障インジケーターであり、熱故障、電源のシーケンス故障、またはソフトウェアによってトリガーされることがあります。 最も可能性の高い原因 プロセッサーが取り付けられていないか、正しく接続されていない ソケットピンの曲がり/汚染 熱ダイオードの接続部が損傷している 温度モニターICまたは関連回路の故障 推奨される点検項目 交流電源を完全に外した後、プロセッサの取り付け、ソケットピン、ヒートシンク、基板の損傷を確認してください。 SW4[1]が通常動作(1)に設定されていることを確認してください。診断テストのみの場合、SW4[1]を0に設定すると、温度監視やその他のアラームが無効になります。これは恒久的な回避策として使用しないでください。 ATXコネクタの接続が正しいことを確認してください。J1 12VコネクタとメインのJ2 ATXコネクタの両方が接続されていることを確認してください。緑色の電源LED(D29~D39)が点灯するかどうか確認してください。 D20が点灯している間、M7~M0の状態LEDを観察してください。点滅パターンは故障したパワーシーケンサー階層を識別できます。
View full article
s32k364 HSE ABSwapアプリのアップデート NXPチームの皆様、HSEのABスワップ機能の使用に関していくつか質問がありますので、ご回答いただければ幸いです。ご協力ありがとうございます。 ユーザーアプリのアップグレード(HSEではない)用に、対応するHSEファームウェア(s32k3x6_hse_fw_1.15.0_2.50.0_pb241126.bin.pink)を既にインストール済みです。(ファームウェアアップデート)以下の質問があります。 1. ブートローダーは既に実装済みで、アドレス割り当ては以下のとおりです。 ブート:0x00400000-0x00433fff アプリ0x00434000-0x004fffffがABスワップ機能(整合性検証およびロールバック機能付き)を使用する必要がある場合、割り当てられたアドレスはどのように変更されるべきですか? 2. ダウンロードプロセスでは、パーティションごとにブートローダーをダウンロードする必要がありますか? 3. パーティションA/Bにアップグレードするたびに、対応するldファイルを変更する必要がありますか? 4. 関連資料を検討した結果、SBAFがIVTを認識できるように修正する必要があることが分かりました。具体的にどのような修正が必要ですか?関連するサンプルプログラムはありますか? 5. 署名と検証を追加する必要がありますか?既にSHA2_256チェックサムをテストして生成済みです。これを使用しても構いませんか? Re: s32k364 HSE ABSwap APP UPDATE こんにちは@caigangwu 1.S32K364をお持ちの場合、メモリレイアウトはS32K344などの他のデバイスとは異なります。図38をご覧ください。HSEファームウェアリファレンスマニュアル改訂版の「AB_SWAP」におけるS32K394、S32K374、S32K364のフラッシュメモリレイアウトの図。2.7. フラッシュブロック0は固定されています。これはブートローダーとして使用できます。フラッシュブロック1と2は、ABスワップ用です。したがって、アプリケーションは0x60_0000に移動する必要があります。 2. つまり、このデバイスの両方のパーティションにブートローダーのコピーを2つ用意する必要はないということです。固定ブロックにはブートローダーが1つだけ存在します。 3. いいえ、リンカーファイルを更新する必要はありません。アプリケーションプロジェクトは、常にアクティブなパーティションのアドレスに合わせてコンパイルする必要があります。なぜなら、アプリケーションは常にこのアクティブなパーティションから実行されるからです。つまり、アップデート中はパッシブパーティションにコピーされますが、スワップ後はアクティブパーティションから実行されます。 4. 質問の意味が理解できるかどうかわかりません。AB_SWAPモードのS32K364は、この優先順位を使用して0x40_0000、0x60_0000、0x1000_0000から起動できます。ブートローダーが0x40_0000に存在する場合、リセット後に実行されます。ブートローダーが存在しない場合、アドレス0x60_0000にあるアプリケーションが実行されます。これはブートローダーなしでアプリケーションを開発するために使用できるため、プロジェクトに変更を加える必要はありません。 セキュアブートを使用する場合、開始アドレスはセキュアブートの設定によって指定されます。 5. このような要件はOEMによって明記されるべきである。オートモーティブでは、セキュアブートによってアプリケーションとキーを保護するのが一般的です。 セキュアブートについては、HSEファームウェアリファレンスマニュアルrev.に記載されています。2.7項「7 セキュアブートおよびメモリ検証サービス」を参照。 弊社では、デモプロジェクトを含むセキュアブートのアプリケーションノートを提供しています。こちらからダウンロードできます: https://www.nxp.com/products/S32K3 アプリケーションノートはこちらをご覧ください。 ドキュメント -> セキュアファイル -> セキュアブート アプリケーションノート v0.1.1.0(AN744511) 関連するデモプロジェクトは、こちらからダウンロードできます。 デザインリソース -> ソフトウェア -> セキュアファイル -> SecureBootAppNoteDemo (SW745310) セキュアブートのその他の例は、HSEデモ例に記載されています。 https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples よろしくお願いいたします。 ルーカス Re: s32k364 HSE ABSwap APP UPDATE こんにちは、 @lukaszadrapa   AB SwapバージョンのHSEファームウェアをフラッシュしました。   s32k3x6_hse_fw_1.15.0_2.50.0_pb241126.bin.pink   私のブートローダーは0x400000にプログラムされています。   このブートローダーを使用して、アプリケーションをフラッシュメモリの0x600000番地からダウンロードしました。   その後、公式デモであるHSE_ActivatePassiveBlockの手順に従ってパッシブパーティションを有効化し、ソフトウェアリセットを実行しました。   しかし、ABスワップスイッチは機能しなかった。リセット後も、MCUは0x600000から始まるパーティションに切り替えるのではなく、物理アドレス0x400000にある元のブートローダーから起動します。   S32K364 HSE AB-Swapに関して、私が何か間違った操作をしたり、設定が不足していたりしないか確認していただけますか? Re: s32k364 HSE ABSwap APP UPDATE こんにちは、 @lukaszadrapa さん: HSE_ActivatePassiveBlock を呼び出すたびに、 システムリセット後、Dcm_ActiveAddressOTARegionを使用してOTAアクティブリージョンを取得すると、リージョン値が正常に変化していることが確認できます。 しかし、OTAアクティベーションステータスを読み取るためにDcm_StatusIsOTAEnabledを使用すると、常に0が返されます。 この問題をトラブルシューティングして解決するにはどうすればよいでしょうか? Re: s32k364 HSE ABSwap APP UPDATE こんにちは、 @francescovico さん はい、S32K364の場合、アクティブパーティションに1MB、パッシブパーティションに1MB、固定ブロックで0x40_0000に2MBがあります。アプリケーションが1MBを超える場合は、一部のデータや共有リソースを固定ブロックに強制的に移すオプションがあります。しかし、それが常に可能とは限らないことも理解しています。この場合、S32K366の方が良い選択肢です。S32K366は合計6MBのフラッシュメモリを搭載しています。アクティブブロックでは最大2MB – 176KBまで、パッシブブロックでも同じサイズを使用できます。さらに、固定ブロックに2MBが追加されます。アクティブブロックとパッシブブロックの176KBは、HSEファームウェア用に予約されています。 よろしくお願いいたします。 ルーカス Re: s32k364 HSE ABSwap APP UPDATE こんにちは、 @lukaszadrapa さん。 HSEファームウェアリファレンスマニュアルrev. 2.7の図38あたりで、フラッシュアプリケーションの最大サイズについて説明が必要です。 S32K364上でHSE A/Bスワップを実装しています。 もし私の理解が正しければ、アプリケーションの最大サイズは1MB(アクティブパーティションでは0x60_0000から0x6F_FFFF、パッシブパーティションでは0x80_0000から0x8F_FFFF MB)だということですね?本当ですか? HSEのファームウェア(ピンクの画像)はブロック0アドレスにあり、残りのフラッシュはブロック0に残っている(使えなかった)0x40_0000? 問題はA/Bスワップが必要で、アプリケーション容量が1MB以上になる可能性があることです。 A/Bスワップにおいて、最大アプリケーションサイズ(S32K364を用いる)が1MBなら、S32K366が最大アプリケーションサイズとなりますか? よろしくお願いいたします、フランチェスコ。
View full article
EMIOS counter bus configuration issue Hello experts, I configured .mex file for controller S32K342 with RTD 7.0.0. I am getting following error: I copied the configuration from S32K344 configuration with RTD 6.0.0 (because pin configuration and Peripherals configuration are same). I put all the counter bus correctly which we require. few screenshots for Emios_Mcl_Ip   Thanks. Re: EMIOS counter bus configuration issue Thank you for quick response. No, I did not copy entirely. I created new project with choosing 342 controller and copied the peripheral configurations. Not the whole project. Hope this helps. Thanks. Re: EMIOS counter bus configuration issue Thank you for the project. I copied the .mex file into one of my projects and, interestingly, I don't see any errors when generating code from it.. Could you please clarify what you mean by: "I copied the configuration from an S32K344 configuration with RTD 6.0.0"? Did you copy the .mex file from a project that was originally created with RTD 6.0.0? Regards, Daniel Re: EMIOS counter bus configuration issue Please the refer the configuration shared. Thanks. Re: EMIOS counter bus configuration issue Hello @sbidkar, Can you please share the .mex file? Thank you Re: EMIOS counter bus configuration issue Thank you, Daniel, for your response. I am using IDE version 3.6.4 BR. Re: EMIOS counter bus configuration issue Hi @sbidkar, Last time, I opened the .mex file in S32 Design Studio 3.6.9 with RTD 7.0.1, and the issue did not occur. When I tested it in S32 Design Studio 3.6.5 with RTD 7.0.0, I was able to reproduce the issue. Which IDE version are you using? I haven't found an existing report for this issue yet. I'll check with the IDE team and get back to you. Thank you, BR, Daniel Re: EMIOS counter bus configuration issue Hello Daniel, Any update on this? Re: EMIOS counter bus configuration issue Hi @sbidkar, Yes, this is the problem in RTD 7.0.0, fixed in RTD 7.0.1 Regards, Daniel
View full article
请求提供旧版 MCUXpresso IDE v11.3.1_5262Linux 安装程序 我们的生产固件是使用 MCUXpresso IDE v11.3.1_5262构建和验证的。为了保证构建的可复现性,我们需要保持这个确切的版本,并且我们将发布构建迁移到 Linux 构建环境(容器中的无头构建)。 该版本的 Linux 安装程序 (MCUXpressoIDE_11.3.1_5262.x86_64.deb.bin) 已不再列在下载页面上。您能提供访问权限吗? 谢谢 Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer 你好@uesrmane , 我会通过电子邮件发送给你。请查收您的收件箱。 文件很大,所以我不太确定能否成功上传。如果您没有收到或遇到任何问题,请告诉我。 BR 塞莱斯特 Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer 我可以看到列表,但我只能看到到 11.6 版本,找不到更早的 11.3 版本。请告诉我您是否可以发送 v11.3.1_5262 版本。Linux安装程序。谢谢 Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer 是的,我的问题是,我可以看到之前的版本列表,但只能看到到 11.6V 版本,看不到更早的文件。请问能否提供 v11.3.1_5262 版本?Linux 版本? Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer 你好@uesrmane , 感谢您的帖子。 请参考附件中的屏幕录像,了解如何访问您的 Flexera 帐户并查找旧版 MCUXpresso IDE。 请注意,某些版本可能不适用于所有帐户。如果您找不到想要的版本,请告诉我。 BR 塞莱斯特
View full article
EMIOS 计数器总线配置问题 各位专家好, 我配置了 .mex适用于带 RTD 7.0.0 的 S32K342 控制器的文件。 我收到以下错误信息: 我从 RTD 6.0.0 的 S32K344 配置中复制了配置(因为引脚配置和外设配置相同)。 我已经正确安装了我们需要的所有计数器总线。 Emios_Mcl_Ip 的一些截图   谢谢。 Re: EMIOS counter bus configuration issue 感谢您的快速回复。 不,我没有完全抄袭。我创建了一个新项目,选择了 342 控制器,并复制了外围设备配置。并非整个项目。 希望这能帮到您。 谢谢。 Re: EMIOS counter bus configuration issue 感谢您提交的项目。 我复制了.mex文件我将文件导入到我的一个项目中,有趣的是,从中生成代码时,我没有看到任何错误。 请问您能否解释一下“我从 RTD 6.0.0 的 S32K344 配置中复制了配置”是什么意思?你复制了 .mex 文件吗?这是最初使用 RTD 6.0.0 创建的项目的文件吗? 此致, 丹尼尔 Re: EMIOS counter bus configuration issue 请参考共享的配置信息。 谢谢。 Re: EMIOS counter bus configuration issue 你好@sbidkar , 请问您能分享一下.mex文件吗?文件? 谢谢 Re: EMIOS counter bus configuration issue 嗨@sbidkar , 上次,我打开了.mex文件。S32 设计工作室 3.6.9 中的文件使用 RTD 7.0.1 版本时,该问题没有出现。我在 S32 Design Studio 3.6.5 和 RTD 7.0.0 中测试时,我成功重现了这个问题。 你使用的是哪个版本的IDE? 我尚未找到关于此问题的现有报告。我会和IDE团队确认一下,稍后回复你。 谢谢! BR,丹尼尔 Re: EMIOS counter bus configuration issue 丹尼尔,谢谢你的回复。 我使用的是 IDE 版本 3.6.4。 BR。 Re: EMIOS counter bus configuration issue 你好,丹尼尔, 这件事有任何进展吗? Re: EMIOS counter bus configuration issue 嗨@sbidkar , 是的,这是RTD 7.0.0版本的问题所在。已在 RTD 7.0.1 中修复 此致, 丹尼尔
View full article
レガシーMCUXpresso IDEsのリクエストv11.3.1_5262Linuxインストーラー 本番用ファームウェアはMCUXpresso IDE v11.3.1_5262で構築・検証されています。ビルドの再現性のためにこの正確なバージョンを維持する必要があり、リリースビルドをLinuxビルド環境(コンテナ内のヘッドレスビルド)に移行します。 このバージョン(MCUXpressoIDE_11.3.1_5262.x86_64.deb.bin)のLinuxインストーラーは、もはやダウンロードページに掲載されていません。アクセスを許可していただけますか? よろしくお願い申し上げます。 Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer こんにちは、 @uesrmane さん。 メールで送ります。受信トレイをご確認ください。 ファイルがかなり大きいので、うまく処理されるかはわかりません。届かない場合や何か問題がある場合は、お知らせください。 BR セレステ Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer リストは見えますが、バージョン11.6までしか見当たりません。古い11.3は見つかりません。もし送れるなら教えてくださいv11.3.1_5262Linuxインストーラー。ありがとう Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer はい、問題は前のバージョンリストは見えるのにバージョン11.6Vまでしか見えず、古いファイルは見えないことです。v11.3.1_5262をリクエストすることは可能でしょうかLinux用のバージョンは? Re: Request for legacy MCUXpresso IDE v11.3.1_5262 Linux installer こんにちは、 @uesrmane さん。 投稿ありがとうございます。 添付の画面録画をご参照いただければ、Flexeraアカウントへのアクセス方法や、レガシーなMCUXpresso IDEバージョンの確認が可能です。 一部のバージョンは、すべてのアカウントでご利用いただけない場合がありますのでご注意ください。もしお探しのバージョンが見つからない場合は、ぜひ教えてください。 BR セレステ
View full article
Failure to boot upon power on in the #LX2160 board Hello, I have a question regarding the #Lx2160a-rdb board When I plug in the power and press the power button, the circuit fails to start, and LEDs D20 and D23 light up red. Even though the device hadn't been turned on previously, it still indicates an overheating condition. What could be the cause of this? Please help—thank you. Re: Failure to boot upon power on in the #LX2160 board D20 + D23 do not necessarily mean the processor is genuinely hot. D23 (THERM) means the thermal-monitor circuit detected a thermal fault and shut the system down. The default trip point is 85 °C. D20 (FAIL) is a general failure indicator; it can be triggered by thermal fault, a power-supply sequencing failure, or software. Most likely cause Processor not installed or not seated correctly Bent/contaminated socket pins Damaged thermal-diode connection Faulty thermal-monitor IC or related circuitry Recommended checks Remove AC power completely, then inspect processor installation, socket pins, heatsink, and board damage. Check that SW4[1] is set to normal operation (1). For diagnostic testing only, setting SW4[1] to 0 disables thermal monitoring and other alarms. Do not use this as a permanent workaround. Verify the correct ATX connections: both J1 12-V connections and the main J2 ATX connector. Check whether the green supply LEDs D29–D39 illuminate. Observe the M7–M0 status LEDs while D20 is lit. A blinking pattern can identify the power-sequencer tier that failed.
View full article
s32k364 HSE ABSwap APP UPDATE 亲爱的NXP团队,我在使用HSE的AB Swap功能时遇到了一些疑问,需要提供一下帮助,感谢支持。 我目前已经安装的对应的HSE fw(s32k3x6_hse_fw_1.15.0_2.50.0_pb241126.bin.pink),针对用户APP升级(不是HSE fw更新)有如下疑问: 1、请问我原来已经实现了bootloader,地址分配如下: boot:0x00400000-0x00433fff app:0x00434000-0x004fffff,如果需要使用AB Swap的功能(具备完整性校验和回退功能),应该如何修改分配地址? 2、下载时是否每个分区需要下载一个boot? 3、是否每次升级到A/B分区时都需要修改为对应的ld文件? 4、查阅了相关资料,了解到需要修改ivt以便SBAF可以识别,请问具体需要修改什么内容?是否有相关例程; 5、是否需要增加签名和校验,我已经测试生成了SHA2_256校验码,是否可以使用? Re: s32k364 HSE ABSwap APP UPDATE 你好@caigangwu 1.如果你有 S32K364,则内存布局与其他设备(如 S32K344 或类似设备)相比会有所不同。请看 "图 38.HSE 固件参考手册修订版中的 AB_SWAP 中 S32K394、S32K374 和 S32K364 的闪存布局示意图”2.7. 闪存块 0 已固定。这一个可用于引导加载器。闪存块 1 和 2 用于 AB 交换。因此,应用程序应移至 0x60_0000。 2。这意味着不必在此设备的两个分区中都有两个引导加载程序副本。固定区块中只有一个引导加载器。 3.不需要更新链接器文件。应用项目必须始终针对活动分区地址进行编译,因为它将始终从该活动分区执行。换句话说,它在更新过程中被复制到被动分区,但在交换后从活动分区运行。 4.我不太明白这个问题。AB_SWAP 模式下的 S32K364 可以使用此优先顺序从 0x40_0000、0x60_0000、0x1000_0000 启动。如果引导加载程序位于 0x40_0000,则它将在 RESET 后执行。如果不存在引导加载程序,将执行 0x60_0000 处的应用程序--这可用于在没有引导加载程序的情况下开发应用程序,因此无需更改项目。 如果使用安全启动,则起始地址由安全启动配置给出。 5.此类要求应由原始设备制造商指定。在汽车领域,通常的做法是通过安全启动来保护应用程序和密钥。 HSE 固件参考手册修订版中描述了安全启动。2.7 在 “7 安全启动和内存验证服务” 部分。 我们提供安全启动应用笔记,包括演示项目。可从以下网址下载: https://www.nxp.com/products/S32K3 应用说明可以在这里找到: 文档-> 安全文件-> 安全启动应用笔记 v0.1.1.0(AN744511) 相关演示项目可在此处下载: 设计资源 -> 软件 -> 安全文件 -> SecureBootAppNoteDemo (SW745310) 安全启动的其他示例可以在 HSE 演示示例中找到: https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples 问候, Lukas Re: s32k364 HSE ABSwap APP UPDATE 你好,@lukaszadrapa   我已经刷新了 AB 交换版 HSE 固件:   s32k3x6_hse_fw_1.15.0_2.50.0_pb241126.bin.pink   我的引导加载程序被编程为0x400000。   使用该引导加载程序,我从0x600000 开始将应用程序下载到闪存中。   然后我按照名为 HSE_ActivatePassiveBlock 的官方演示激活了被动分区,并进行了软件 RESET。   但 AB 交换开关不起作用。重置后,微控制器仍然从物理地址为 0x400000 的原始引导加载程序启动,而不是切换到从 0x600000 开始的分区。   您能否帮助检查一下我是否对 S32K364 HSE AB-Swap 进行了错误操作或缺少配置? Re: s32k364 HSE ABSwap APP UPDATE Hi@lukaszadrapa: 每次我调用 HSE_ActivatePassiveBlock 时,系统 RESET 后,我都会使用 dcm_ActiveAddressOtaRegion 获取 OTA 活跃区域,可以看到区域值在正常变化。 但是,当使用 Dcm_StatusIsOTAEnabled 读取 OTA 激活状态时,它总是返回 0。 我应该如何排除和解决这个问题? Re: s32k364 HSE ABSwap APP UPDATE 嗨@francescovico 是的,对于 S32K364,活动分区有 1MB,被动分区有 1MB,固定块有 2MB,地址为 0x40_0000。如果您的应用程序超过 1MB,您可以选择强制将某些数据或共享资源限制在固定块中。但我明白这并非总是可行。在这种情况下,S32K366 是更好的选择。S32K366 总共有 6MB 的闪存。活动块最多可以使用 (2MB – 176KB),被动块的大小也相同。固定块中额外增加 2MB。主动和被动块中的 176KB 空间保留给 HSE 固件。 此致, Lukas Re: s32k364 HSE ABSwap APP UPDATE 嗨@lukaszadrapa , 关于HSE 固件参考手册 rev. 2.7 中的图 38,我需要澄清一下闪存应用程序的最大大小。 我正在 S32K364 上实现 HSE A/B 交换。 如果我理解正确,应用程序的最大大小只能是 1MB(活动分区中从 0x60_0000 到 0x6F_FFFF,被动分区中从 0x80_0000 到 0x8F_FFFF),是这样吗? HSE固件(粉色图像)位于地址为0x40_0000的Block 0中,Block 0中的剩余闪存空间已浪费(无法使用)? 我的问题是,我需要 A/B 交换,但我的应用程序可能大于 1 MB。 在 A/B 交换中,如果使用 S32K364 时最大应用程序大小为 1MB,那么使用 S32K366 时最大应用程序大小是多少? 此致,弗朗西斯科。
View full article
The basics of secure boot and secure (OTA) updates in MCUs (Japanese blog) In security contexts, the terms "secure boot" and "secure/OTA update" are frequently used. This document explains the basics of these concepts and the Secure Boot Loader (SBL), a means of achieving them, primarily from the perspective of embedded MCU security. The fundamental concepts are similar for MPUs as well. Instructions and usage methods for individual products will be explained in separate articles. (Reading time: 15 minutes) Purpose and Overview of Secure Boot   The purpose of Secure Boot is to "detect and prevent malicious attackers from replacing or tampering with the firmware." If an attacker is able to rewrite the firmware through some kind of vulnerability, it can lead to a very wide range of risks. Examples of risks: Damage to the privacy and property of end product users Unauthorized reading of product firmware can lead to intellectual property leaks and misuse for counterfeit goods. Features that would normally require an additional license are made available for free. Product damage due to unauthorized operation By applying cryptographic signatures to firmware, the integrity of the application (that it has not been destroyed or tampered with) can be verified through signature verification. Note: While the absence of damage can be detected by error checks such as CRC, anyone can calculate the CRC, so if the program itself has been tampered with, it cannot be detected. Verification using a signature, which can only be calculated by the product manufacturer who possesses the secret key, is necessary. A common implementation involves using a separate firmware called a Secure Boot Loader (SBL). The SBL starts before the firmware boots, verifies the firmware's signature, and only boots the firmware if the signature verification is successful (i.e., Secure Boot). The purpose, challenges, and solutions of secure updates   The purpose of secure updates is to "safely update only legitimate firmware, preventing replacement with malicious firmware, tampering, or unintentional reverting to older versions." Firmware updates are used not only to add new features to a product, but also to fix bugs and vulnerabilities. Making software updates available for products already on the market benefits both product manufacturers and end-users.   End users can receive new features and performance improvements without having to replace their products. Furthermore, the provision of fixes for bugs and vulnerabilities discovered after shipment makes it easier to respond to newly discovered vulnerabilities, attack methods, and other threats. Especially for products connected to networks (including not only the internet but also internal networks within companies, buildings, and factories), the availability of continuous security updates is a crucial factor in product selection. Furthermore, if critical bugs or vulnerabilities are discovered, applying fixes without waiting for on-site product replacement or recall can potentially minimize product downtime and business disruption.   Product manufacturers can provide firmware updates to fix critical bugs and vulnerabilities discovered after shipment. This can potentially reduce logistics, labor, and inventory costs associated with recalling, repairing, and replacing affected products. Furthermore, by responding to market demands and specification changes discovered after shipment (including those originating not only from the manufacturer but also from third-party services), and by improving product functionality and compatibility, it becomes easier to extend the product lifecycle and maintain customer satisfaction and product reliability.   However, when applying firmware updates to market products, the following challenges must be addressed: # assignment Solution 1 IP leakage and counterfeit product manufacturing through reading update image content The update image is encrypted and decrypted within the product before application. 2 Attackers can write arbitrary firmware to products. By performing cryptographic signature verification before applying or booting the update image, the integrity of the update image is guaranteed before application or booting. 3 Product startup impossible due to rewrite interruption or failure. Support for retrying updates or recovering via a dual-slot method (described later) (described later) 4 Rollback attack: Reverting to a previous firmware version prior to the vulnerability fix. Preventing unauthorized rollbacks through version checks Note: When an update is performed via a wireless interface, it is specifically called an OTA update. *OTA: Over The Air A common implementation method involves preparing separate firmware for this purpose, as rewriting the running firmware is complex. Furthermore, since the solution to problem #2 involves the same process as the aforementioned secure boot, it is common to integrate the secure update function or a part of it into the SBL used for secure boot. The simplest method is for the SBL itself to receive the new firmware update image and write it directly to the area where the old firmware is located, as shown in the diagram below. The update image, including the new firmware, will be digitally signed and given a version number, and the firmware will be encrypted. The product will verify the signature to confirm the integrity of the image, confirm that the version is newer than the old firmware, and then decrypt and write the image to address issues #1, 2, and 4. The system can address issue #3 by remaining in the SBL (Secure Boot Block) state during interruption and entering a state where it waits to receive an update image due to a Secure Boot failure on the next startup. The biggest drawback of this method is that the execution of the old firmware is completely stopped, including while receiving a firmware update, and that it is not possible to revert to the old firmware if the process is interrupted. To resolve this, you can use the dual-slot update method described later. Security considerations The 1st SBL must not be rewritten. The diagram in the chapter "Purpose and Overview of Secure Boot" only shows the SBL and firmware, but in reality, after startup or reset, the MCU's built-in, non-rewritable Boot ROM is executed first. This Boot ROM may or may not include the functionality for secure boot. Examples of various NXP products and a simplified boot flow are shown below. Boot ROM Secure Boot feature Yes none Examples of NXP products MCX N Series MCX A5 Series MCX A13/14/15 Series Boot flow Reset ↓ Launch without signature verification Boot ROM (operates as the 1st SBL) ↓ Launch after signature verification Signed firmware (on Flash) Reset ↓ Launch without signature verification Boot ROM ↓ Launch without signature verification 1st SBL (on Flash) ↓ Launch after signature verification Signed firmware (on Flash) Here, we specifically refer to the first SBL (System Building Block) to start within the system as the 1st SBL. Secure Boot can be described as "a technology that starts the firmware only after the SBL has confirmed it is trustworthy." However, as mentioned above, the 1st SBL starts without verification by other SBLs. In other words , the 1st SBL is the Root of Trust (RoT) that must be trusted unconditionally , and it is impossible to detect if the 1st SBL is tampered with through some vulnerability. If the 1st SBL is tampered with and secure boot is bypassed, it becomes possible to boot any firmware, so the 1st SBL must be basically unrewritable except for areas that require rewriting (such as the version control area to prevent rollback attacks). Note: Strictly speaking, it is possible to allow updates to the 1st SBL only through authenticated routes, but this presents various problems, such as the risk of being unable to start up in the event of an interruption. It is considered easier to design by deploying a 2nd SBL (described later) and allowing updates to that instead. If the non-rewritable Boot ROM includes Secure Boot functionality: The non-rewritable Boot ROM acts as the 1st SBL to verify the firmware on the flash memory, so the 1st SBL can never be rewritten. The areas that need to be rewritten are implemented using OTP or flash memory that can only be modified from the Boot ROM. If the non-rewritable Boot ROM does not include Secure Boot functionality: The first SBL (Smart Burner Unit) that authenticates the firmware on the flash memory becomes the 1st SBL. It is necessary to use flash protection to make the 1st SBL unrewritable . Since the 1st SBL cannot be updated, it requires extremely careful design and verification, and integrating too many features is not recommended. By utilizing NXP's products with built-in Boot ROMs that have obtained SESIP/PSA security certification and feature secure boot functionality, this design verification effort can be reduced. In some cases, to build a flexible system with rich functionality using SBL, an additional rewritable 2nd SBL may be placed between the firmware and the SBL, as shown in the diagram below. Tampering after firmware startup is undetectable. Secure Boot is used for verification before firmware startup, so it cannot detect tampering after startup. While there are techniques to verify the firmware while it is running, the simplest implementation is to make the firmware unrewritable. However, considering firmware updates, it's not always possible to make it unrewritable. To make the firmware unrewritable, dynamic settings such as dynamically configurable memory protection functions are required, allowing rewriting while the firmware is running and rewriting is enabled during an update. The update image decryption key must be prevented from being read or used. If a vulnerability in the firmware allows the update image decryption key to be read and used, it could lead to the leakage of the update image contents. Since the SBL requires the use of the decryption key, it is necessary to be able to read and use the decryption key while the SBL is running. However, before transferring execution from the SBL to the firmware, if the decryption key exists in RAM, it must be discarded, and furthermore, memory protection must be used to prevent the firmware from reading the decryption key. If the MCU contains hardware such as a cryptographic accelerator with key isolation capabilities, the key cannot be read but can still be used. Therefore, access protection should be used to prevent its use, or the key should be deleted before transferring execution from the SBL to the firmware to prevent it from being imported and thus make it unreadable. When combined with the aforementioned firmware rewrite-disable setting, the access permissions during SBL execution and firmware execution should basically be as follows, and these permission settings must not be changeable from the firmware side. Dual-slot update The implementation method for secure updates that includes a separate area (Slot 1) for temporarily storing new firmware, distinct from the currently operating firmware area (Slot 0), is called the dual-slot method. The update will be performed using the following steps. Firmware receives new firmware A software reset transfers execution to the SBL, which then verifies and decrypts the new firmware. Switch the active firmware from the old firmware to the new firmware and start the new firmware experimentally. If the new firmware boots successfully, confirm the update to complete the process. The system will revert to the old firmware (=Rollback) only if the new firmware fails to boot. There are various methods for switching the active firmware, but in the diagram below, the firmware placed in Slot 0 is considered the active firmware, and the contents of Slot 0 and Slot 1 are swapped using the Swap method. This method requires storage capacity to store at least two update images, as well as space for boot management information and metadata, but it offers the following main advantages: It is possible to receive update images without completely shutting down the firmware. This configuration allows for the reception of update images to be performed in parallel with other firmware tasks. However, if the product's flash memory does not support read-while-write (RWW), it will be impossible to read code or interrupt vectors from the same flash memory area while writing, which will significantly impair the execution speed and responsiveness of the code on the flash memory. If you want to run applications that require real-time performance, you may need to take the following measures as needed. Place the code in RAM External flash memory for storing update images Use a product with built-in flash memory that supports RWW (e.g., NXP MCX N series ). SBL design can be simplified. As mentioned earlier, the 1st SBL is not updatable, requiring extremely careful design and verification, and integrating too many features is not recommended. If the process of receiving update images can be separated from processes such as signature verification, decryption, and key management, placing the receiving function outside the SBL (System Block Label) can reduce the design and verification scope of the SBL. In particular, if the configuration simply stores the received image in an inactive slot without verification, it becomes easier to separate the receiving function from the SBL. For example, methods for receiving updates wirelessly or via Ethernet require a complex protocol stack, making it more suitable to implement them on the firmware side or in the second SBL rather than integrating them into the first SBL. Additionally, as a recovery measure in case of problems with the firmware update reception function, a simple reception function using UART or similar may be retained on the 1st SBL side. Even if reception is interrupted or the new firmware cannot be started, operation can continue using the old firmware. Since the old firmware is not corrupted during reception, execution of the old firmware can be immediately resumed even if interrupted. Furthermore, since the old firmware is retained even after the update, it is possible to immediately revert to the old firmware (Rollback) in the event that the new firmware fails to boot. (This Rollback must be managed separately from malicious Rollback attacks by combining it with version checks.)   summary Secure Boot: Checks whether the currently installed firmware can be booted securely. Secure Update: Guarantees safe replacement with the latest firmware.   Related Information NXP Security - Summary Page (Japanese Blog) i.MX 93 Processor: Explaining the Secure Boot Signature and Authentication Mechanism (Japanese Blog) i.MX 93 Processor: How to Implement Secure Boot - Practical Guide (Japanese Blog) Secure Boot with i.MX 95 SPSDK (Japanese Blog) --> PQC-enabled Secure Boot ========================= We are currently unable to respond to comments left in the " Comment " section of this post . We apologize for the inconvenience, but please refer to " Technical Questions to NXP - How to Contact Us( Japanese Blog) " when making inquiries.(If you are already an NXP distributor or have a relationship with NXP, you may ask your representative directly.) In security contexts, the terms "secure boot" and "secure/OTA update" are frequently used. This document explains the basics of these concepts and the Secure Boot Loader (SBL), a means of achieving them, primarily from the perspective of embedded MCU security. The fundamental concepts are similar for MPUs as well. Instructions and usage methods for individual products will be explained in separate articles. (Reading time: 15 minutes) MCX Security Japanese Blog
View full article
MCU 中的安全启动和安全(OTA)更新基础知识(日文博客) 在安全领域,“安全启动”和“安全/OTA更新”这两个术语经常被使用。本文档主要从嵌入式MCU安全的角度,解释这些概念的基本原理以及实现这些概念的手段——安全启动加载程序(SBL)。这些基本概念也适用于微处理器(MPU)。 各个产品的使用说明和方法将在单独的文章中进行解释。 (阅读时间:15分钟) 安全启动的目的和概述   安全启动的目的是“检测并阻止恶意攻击者替换或篡改固件”。 如果攻击者能够通过某种漏洞重写固件,则可能导致各种各样的风险。 风险示例: 对最终产品用户的隐私和财产造成损害 未经授权读取产品固件可能导致知识产权泄露和被用于制造假冒商品。 通常需要额外许可证的功能现在免费提供。 因未经授权的操作造成的产品损坏 通过在固件上应用加密签名,可以通过签名验证来验证应用程序的完整性(即应用程序是否被破坏或篡改)。 注意:虽然可以通过 CRC 等错误校验方法来检测程序是否被篡改,但任何人都可以计算 CRC 值,因此如果程序本身已被篡改,则无法检测到。必须使用签名进行验证,而签名只能由拥有密钥的产品制造商计算得出。 一种常见的实现方式是使用一个名为安全启动加载程序 (SBL) 的独立固件。SBL 在固件启动之前启动,验证固件的签名,并且只有在签名验证成功后才启动固件(即安全启动)。 安全更新的目的、挑战和解决方案   安全更新的目的是“仅安全地更新合法固件,防止被恶意固件替换、篡改或意外恢复到旧版本”。 固件更新不仅用于为产品添加新功能,还用于修复漏洞和缺陷。为已上市产品提供软件更新,对产品制造商和最终用户都有益。   最终用户无需更换产品即可获得新功能和性能改进。此外,针对发货后发现的漏洞和缺陷提供修复程序,有助于用户更轻松地应对新发现的漏洞、攻击手段和其他威胁。尤其对于连接到网络(不仅包括互联网,还包括公司、楼宇和工厂内部网络)的产品而言,持续的安全更新是产品选择的关键因素。 此外,如果发现重大错误或漏洞,无需等待现场产品更换或召回即可应用修复程序,从而最大限度地减少产品停机时间和业务中断。   产品制造商可以提供固件更新,以修复发货后发现的关键缺陷和漏洞。这可以有效降低与召回、维修和更换受影响产品相关的物流、人工和库存成本。 此外,通过响应市场需求和发货后发现的规格变更(包括来自制造商和第三方服务商的变更),并改进产品功能和兼容性,可以更容易地延长产品生命周期,保持客户满意度和产品可靠性。   但是,在将固件更新应用于市场产品时,必须解决以下挑战: # 任务 解决方案 1 通过读取更新的图像内容进行知识产权泄露和制造假冒产品 更新镜像在应用前会在产品内部进行加密和解密。 2 攻击者可以将任意固件写入产品。 通过在应用或启动更新映像之前执行加密签名验证,可以保证更新映像在应用或启动之前的完整性。 3 由于重写中断或故障,产品无法启动。 支持通过双槽方法重试更新或恢复(稍后详述)(稍后详述) 4 回滚攻击:将固件恢复到漏洞修复之前的版本。 通过版本检查防止未经授权的回滚 注意:当通过无线接口执行更新时,它专门称为 OTA 更新。 OTA:空中传输 常见的实现方法是为此目的准备单独的固件,因为重写正在运行的固件非常复杂。此外,由于问题 2 的解决方案与上述安全启动过程相同,因此通常会将安全更新功能或其一部分集成到用于安全启动的 SBL 中。 最简单的方法是让 SBL 本身接收新的固件更新映像,并将其直接写入旧固件所在的区域,如下图所示。 包含新固件的更新镜像将进行数字签名并分配版本号,固件本身也会被加密。产品将验证签名以确认镜像的完整性,确认版本号高于旧固件,然后解密并写入镜像以解决问题 #1、2 和 4。 该系统可以通过在中断期间保持 SBL(安全启动块)状态,并在下次启动时由于安全启动失败而进入等待接收更新映像的状态来解决问题 #3。 这种方法的最大缺点是旧固件的执行完全停止,包括接收固件更新时,而且如果该过程中断,则无法恢复到旧固件。 要解决这个问题,您可以使用后面描述的双槽更新方法。 安全考量 第一份SBL文件不得重写。 “安全启动的目的和概述”章节中的图示仅显示了安全启动层 (SBL) 和固件,但实际上,启动或复位后,首先执行的是 MCU 内置的不可重写的启动 ROM。该启动 ROM 可能包含也可能不包含安全启动功能。下面展示了 NXP 各种产品的示例以及简化的启动流程。 启动ROM 安全启动功能 是的 没有任何 NXP产品示例 MCX N 系列 MCX A5系列 MCX A13/14/15系列 启动流程 重置 ↓ 无需签名验证即可启动 启动 ROM(作为第一个 SBL 运行) ↓签名验证后启动 已签名固件(在闪存上) 重置 ↓ 无需签名验证即可启动 启动ROM ↓ 无需签名验证即可启动 第一届SBL(Flash版) ↓签名验证后启动 已签名固件(在闪存上) 在这里,我们将系统中第一个启动的 SBL(系统构建模块)特称为第一个 SBL。 安全启动可以描述为“一种仅在安全启动层 (SBL) 确认其可信后才启动固件的技术”。然而,如上所述,第一个 SBL 会在未经其他 SBL 验证的情况下启动。 换句话说,第一安全启动层 (1st SBL) 是信任根 (RoT),必须无条件信任,而且无法检测到第一安全启动层是否因某种漏洞而被篡改。如果第一安全启动层被篡改,安全启动被绕过,则任何固件都可能被启动,因此第一安全启动层基本上是不可重写的,除非某些区域需要重写(例如版本控制区域,以防止回滚攻击)。 注:严格来说,虽然可以仅允许通过认证路由更新第一个安全边界层 (SBL),但这会带来诸多问题,例如在发生中断时可能无法启动。因此,更简便的方案是部署第二个 SBL(稍后详述),并允许对其进行更新。 如果不可重写的启动 ROM 包含安全启动功能: 不可重写的启动ROM充当第一SBL,用于验证闪存上的固件,因此第一SBL永远无法被重写。需要重写的区域使用OTP或闪存实现,这些闪存只能通过启动ROM进行修改。 如果不可重写的启动 ROM 不包含安全启动功能: 第一个用于验证闪存固件的SBL(智能刻录单元)就成为第一个SBL。必须使用闪存保护机制,使第一个SBL不可重写。 由于第一版 SBL 无法更新,因此需要极其谨慎的设计和验证,不建议集成过多的功能。 通过使用 NXP 的内置 Boot ROM 产品(这些产品已获得 SESIP/PSA 安全认证并具有安全启动功能),可以减少这种设计验证工作量。 在某些情况下,为了使用 SBL 构建具有丰富功能的灵活系统,可以在固件和 SBL 之间放置一个额外的可重写的第二个 SBL,如下图所示。 固件启动后进行篡改是无法检测的。 安全启动用于在固件启动前进行验证,因此无法检测启动后的篡改。 虽然有一些方法可以在固件运行时验证其完整性,但最简单的实现方法是使其不可重写。然而,考虑到固件更新,使其不可重写并非总是可行。 为了使固件不可重写,需要动态设置,例如动态可配置的内存保护功能,允许在固件运行时进行重写,并在更新期间启用重写功能。 必须防止更新镜像解密密钥的可读性和使用。 如果固件中的漏洞允许读取和使用更新映像解密密钥,则可能导致更新映像内容泄露。 由于SBL需要使用解密密钥,因此必须在SBL运行时能够读取和使用该解密密钥。但是,在将执行权从SBL转移到固件之前,如果解密密钥存在于RAM中,则必须将其丢弃,并且还必须使用内存保护来防止固件读取该解密密钥。 如果MCU包含诸如具有密钥隔离功能的加密加速器之类的硬件,则密钥虽然无法读取,但仍可使用。因此,应使用访问保护来防止密钥被使用,或者在将执行权从SBL转移到固件之前删除密钥,以防止密钥被导入,从而使其无法读取。 结合上述固件重写禁用设置,SBL 执行和固件执行期间的访问权限基本应如下,并且这些权限设置不得从固件端更改。 双槽位更新 实现安全更新的方法,包括一个单独的区域(插槽 1)用于临时存储新固件,该区域与当前运行的固件区域(插槽 0)不同,这种方法称为双插槽方法。 更新将按照以下步骤进行。 固件接收新固件 软件重置会将执行权移交给 SBL,然后 SBL 会验证并解密新的固件。 将当前固件从旧固件切换到新固件,并启动新固件进行实验。 如果新固件启动成功,请确认更新以完成该过程。 只有当新固件无法启动时,系统才会恢复到旧固件(=回滚)。 切换活动固件的方法有很多种,但在下图所示的示例中,放置在插槽 0 中的固件被视为活动固件,并且使用交换方法交换插槽 0 和插槽 1 的内容。 该方法需要足够的存储空间来存储至少两个更新镜像,以及用于存储启动管理信息和元数据的空间,但它具有以下主要优点: 无需完全关闭固件即可接收更新映像。 此配置允许接收更新映像与其他固件任务并行执行。 但是,如果产品的闪存不支持边写边读 (RWW),则在写入时无法从同一闪存区域读取代码或中断向量,这将严重影响闪存上代码的执行速度和响应能力。 如果您想运行需要实时性能的应用程序,则可能需要根据需要采取以下措施。 将代码放入 RAM 中 用于存储更新映像的外部闪存 使用内置闪存且支持 RWW 的产品(例如,NXP MCX N 系列)。 SBL设计可以简化。 如前所述,第一版 SBL 不可更新,需要极其谨慎的设计和验证,不建议集成过多功能。 如果能够将接收更新镜像的过程与签名验证、解密和密钥管理等过程分离,那么将接收功能置于系统块标签 (SBL) 之外,就可以缩小 SBL 的设计和验证范围。特别是,如果配置只是简单地将接收到的镜像存储在非活动时隙中而不进行验证,那么将接收功能从 SBL 中分离出来就更加容易了。 例如,通过无线或以太网接收更新的方法需要复杂的协议栈,因此更适合在固件端或第二个 SBL 中实现,而不是将其集成到第一个 SBL 中。 此外,作为固件更新接收功能出现问题的恢复措施,可以在 1st SBL 侧保留使用 UART 或类似技术的简单接收功能。 即使接收中断或新固件无法启动,也可以使用旧固件继续操作。 由于旧固件在接收过程中没有损坏,即使中断,也可以立即恢复旧固件的执行。 此外,由于更新后仍保留旧固件,因此如果新固件无法启动,可以立即恢复到旧固件(回滚)。(此回滚操作必须与版本检查相结合,以防止恶意回滚攻击。)   总结 安全启动:检查当前安装的固件是否可以安全启动。 安全更新:保证安全替换为最新固件。   相关信息 NXP Security - 摘要页面(日语博客) i.MX 93 处理器:安全启动签名和认证机制详解(日语博客) i.MX 93 处理器:如何实现安全启动 - 实用指南(日语博客) 使用 i.MX 95 SPSDK 实现安全启动(日文博客) --> 支持 PQC 的安全启动 ========================= 我们目前无法 回复 此帖子“ 评论”部分留下的评论。 对于由此造成的不便,我们深表歉意,但 在进行咨询时, 请 参考“ NXP 技术问题 - 如何联系我们 ( 日语博客 ) ” 。 (如果您已经是 恩智浦的 分销商或 与 恩智浦 有合作关系 ,您可以直接咨询您的代表。) 在安全领域,“安全启动”和“安全/OTA更新”这两个术语经常被使用。本文档主要从嵌入式MCU安全的角度,解释这些概念的基本原理以及实现这些概念的手段——安全启动加载程序(SBL)。这些基本概念也适用于微处理器(MPU)。 各个产品的使用说明和方法将在单独的文章中进行解释。 (阅读时间:15分钟) MCX 安全 日本博客
View full article
MCUにおけるセキュアブート、セキュア(OTA)アップデートの基本 (日本語ブログ) セキュリティ対応においてセキュアブート、セキュア/OTAアップデートという言葉がよく使用されます。これらの概要と、これらを実現するための手段であるセキュアブートローダー(SBL)の概要を主に組み込みMCUのセキュリティ対応の観点で解説します。MPUにおいても基本的な考え方は同様です。 個別の製品における対応や使用方法は別記事にて解説予定です。 (読了時間:15分) セキュアブートの目的と概要   セキュアブートの目的は「悪意ある攻撃者によるファームウェアの置き換えや改ざんを検出し起動を防止すること」です。 何らかの脆弱性経由などにより攻撃者がファームウェアを書き換えることができた場合、非常に広範囲のリスクが発生します。 リスクの例 : 最終製品ユーザーのプライバシーや財産への被害 製品ファームウェアの不正な読み出しによる知的財産漏洩や偽造品への流用 本来利用に追加のライセンスが必要な機能を無料で利用可能にする 不正な動作による製品破壊 ファームウェアに対して暗号技術による署名を行うと、署名検証によりアプリケーションの完全性(破壊、改ざんがないこと)を確認することができます。 注 : 破壊がないことだけであればCRCなどによるエラーチェックでも検出可能ですが、CRCは誰でも計算できるため、CRCごとプログラムを改ざんされた場合は検出できません。秘密の鍵を持つ製品製造者しか計算できない署名による検証が必要となります。 一般的な実装方法としては、ファームウェアとは別にセキュアブートローダー(SBL)という別のファームウェアを用意します。ファームウェア起動前にSBLが起動、ファームウェアの署名を検証し、署名検証に成功した場合のみファームウェアを起動します(=セキュアブート)。 セキュアアップデートの目的と課題および解決方法   セキュアアップデートの目的は「正当なファームウェアだけを安全に更新し、不正なファームウェアへの置き換えや改ざん、意図しない旧バージョンへの書き戻しを防止すること」です。 ファームウェア・アップデートは、製品の機能追加だけでなく、バグや脆弱性の修正にも利用されます。市場に出荷された製品であってもソフトウェアを更新できるようにすることで、製品製造業者とエンドユーザーの双方にメリットがあります。   エンドユーザーは、製品を買い替えることなく、新しい機能や性能改善の提供を受けられます。また、出荷後に発見されたバグや脆弱性に対する修正が提供されることで、新たに発見される脆弱性や攻撃手法などの脅威に対応しやすくなります。特に、ネットワーク(インターネットに限らず社内、建物、工場内などのネットワーク含む)に接続される製品では、セキュリティ更新が継続的に提供されるかどうかが、製品選定時の重要な判断材料になります。 さらに、重大なバグや脆弱性が見つかった場合でも、現地での製品交換や回収を待たずに修正を適用できれば、製品の停止時間や業務への影響を抑えられる可能性があります。   製品製造業者は、出荷後に発見された重大なバグや脆弱性に対して、ファームウェア・アップデートによる修正を提供できます。これにより、対象製品を回収して修理・交換するための物流費、作業費、在庫費などを削減できる可能性があります。 また、出荷後に判明した市場要求や仕様変更(製造業者自身起因のみではなくサードパーティ提供サービスとのインターフェースなど含む)に対応したり、製品の機能や互換性を改善したりすることで、製品のライフサイクルを延長し、顧客満足度や製品の信頼性を維持しやすくなります。   しかし市場製品へファームウェア・アップデートを適用する場合、主に以下のような課題を解決する必要があります。 # 課題 解決方法 1 アップデートイメージ内容読取によるIP漏洩や偽造品製造 アップデートイメージを暗号化、適用前に製品内で復号する 2 攻撃者による製品への任意ファームウェア書込 アップデートイメージの適用または起動前に暗号技術による署名検証を行うことで、アップデートイメージの完全性を保証したうえで適用または起動する 3 書換中断や失敗による製品起動不可 アップデートの再試行またはデュアルスロット方式(後述)による復帰(後述)への対応 4 脆弱性修正前の過去のバージョンのファームウェアへの巻き戻し(Rollback攻撃) バージョンチェックによる不正なRollbackの防止 注 : アップデートを無線インターフェースで行う場合を特にOTAアップデートと呼びます。 *OTA : Over The Air 一般的な実装方法としては、実行中のファームウェアを書き換えるのは複雑になるため、こちらもファームウェアとは別のファームウェアを用意します。さらに課題#2の解決方法は前述のセキュアブートと共通する処理のため、セキュアブートに使用するSBLにセキュアアップデート機能またはその一部を統合する場合も多いです。 最もシンプルな方法は、下図のようにSBL自身が新ファームウェアのアップデートイメージを受信して旧ファームウェアの配置されている領域に直接書込する方法です。 新ファームウェアを含むアップデートイメージには電子署名およびバージョン番号の付与と、ファームウェアの暗号化を施します。製品側では署名を検証してイメージの完全性を確認、バージョンが旧ファームウェアより新しいバージョンのファームウェアであることを確認し、復号と書き込みを行うことで課題#1, 2, 4に対応します。 中断時も次回起動時のセキュアブート失敗によりSBLにとどまり、アップデートイメージ受信待ちに入るという動作を行うことで課題#3に対応できます。 この方式の最大のデメリットは、ファームウェア・アップデート受信中含めて旧ファームウェアの実行が完全に停止することと、中断時は旧ファームウェアの実行に戻れないことです。 これを解決するには後述するデュアルスロット方式でのアップデートが利用可能です。 セキュリティ上考慮すべき点 1st SBLは書き換えられてはならない 「セキュアブートの目的と概要」の章で示した図はSBLとファームウェアしか示しておりませんが、実際は起動・リセット後はまずMCU内蔵の書換不可なBoot ROMが実行されます。このBoot ROMにはセキュアブートを行う機能が含まれる場合と含まれない場合があります。それぞれのNXP製品例と簡易的なブートフローを以下に示します。 Boot ROMの セキュアブート機能 有り 無し NXP製品例 MCX Nシリーズ MCX A5シリーズ  MCX A13/14/15シリーズ ブートフロー  リセット   ↓ 署名検証なしで起動 Boot ROM(1st SBLとして動作)   ↓ 署名検証後に起動 署名済みファームウェア(Flash上) リセット   ↓ 署名検証なしで起動 Boot ROM   ↓ 署名検証なしで起動 1st SBL(Flash上)   ↓ 署名検証後に起動 署名済みファームウェア(Flash上) ここではシステム内で最初に起動するSBLを特に1st SBLと呼んでいます。 セキュアブートは「SBLがファームウェアを信頼できることを確認してから起動する技術」と言えます。しかし上記の通り、1st SBLは他のSBLによる検証が行われることなく起動します。 つまり1st SBLは無条件に信頼しなければならない信頼の起点(RoT : Root of Trust)であり、何らかの脆弱性経由などで1st SBLを改ざんされても検出は不可能です。1st SBLが改ざんされセキュアブートがバイパスされると任意のファームウェアの起動が可能となるため、1st SBLは一部書換が必須となる領域(ロールバック攻撃防止のためのバージョン管理領域など)を除いて基本的に書換不可とする必要があります。 注:厳密には1st SBLを認証された経路のみでアップデート可能としてもよいですが、中断時の起動不可のリスクなど様々な問題があります。後述の2nd SBLを配置してそちらをアップデート可能にするほうが設計が容易と考えられます。 書換不可のBoot ROMにセキュアブート機能が含まれる場合: 書換不可のBoot ROMが1st SBLとしてフラッシュ上のファームウェアを検証するため、1st SBLが書き換えられることはありません。書換必要な領域はOTPや、Boot ROMのみから変更可能なフラッシュ領域を使用して実装されます。 書換不可のBoot ROMにセキュアブート機能が含まれない場合: フラッシュ上の最初にファームウェアの認証を行うSBLが1st SBLとなります。フラッシュ保護機能を活用して1st SBLを書換不可とする必要があります。 1st SBLは更新不可のため、非常に注意深い設計および検証が必要となり、あまり多くの機能を統合することは推奨されません。 NXPのSESIP/PSAセキュリティ認証取得済みのセキュアブート機能付きBoot ROM内蔵製品を活用することでこの設計検証工数を削減できます。 場合によってはSBLにより豊富な機能を搭載した柔軟なシステムの構築のため、下図のようにファームウェアとの間にさらに追加の書換可能な2nd SBLを配置することもあります。 ファームウェア起動後の改ざんは検知不可 セキュアブートはファームウェア起動前の検証のため、起動後の改ざんは検知できません。 ファームウェア動作中にファームウェアの検証を行う技術も存在しますが、最もシンプルな実装はファームウェアを書換不可とすることです。しかしファームウェア・アップデートも考慮すると常に書換不可とすることはできません。 ファームウェアを書換不可とする場合は、動的に設定可能なメモリ保護機能などを活用してファームウェア実行中は書換不可、アップデート実行中は書換可といった動的な設定が必要となります。 アップデートイメージ復号鍵の読出及び使用を防がなくてはならない ファームウェア側の何らかの脆弱性によりアップデートイメージ復号鍵が読出・使用されてしまった場合、アップデートイメージ内容の漏洩にもつながります。 SBL側では復号鍵を使用する必要があるため、SBL実行中は復号鍵を読出・使用できる必要がありますが、SBLからファームウェアへ実行を移す前にもしRAM上に復号鍵がある場合は破棄し、さらにメモリ保護機能を使用してファームウェアからの復号鍵の読出を禁止する必要があります。 MCU内に鍵隔離機能のある暗号アクセラレータなどのハードウェアがある場合は鍵の読出は不可ですが使用は可能なので、こちらもアクセス保護機能を使用して使用されないようにしたり、SBLからファームウェアへ実行を移す前に鍵を削除して鍵をインポートできないよう読出不可とする必要があります。 前述のファームウェア書換不可設定と合わせる場合と、SBL実行中とファームウェア実行中のアクセス権限は基本的に以下のようにし、さらにこの権限設定はファームウェア側からは変更不可とする必要があります。 デュアルスロット方式でのアップデート 以下のように動作中のファームウェア領域(Slot 0)とは別に新ファームウェアを一時的に格納するエリア(Slot 1)を設けたセキュアアップデートの実装方式をデュアルスロット方式と呼びます。 アップデートは以下の手順で行われます。 ファームウェアが新ファームウェアを受信 ソフトウェアリセットによりSBLに実行を移し、SBLが新ファームウェアの検証および復号を行う 有効なファームウェアを旧ファームウェアから新ファームウェアに切り替え、新ファームウェアを試験的に起動 新ファームウェアが起動成功した場合は更新を確定して完了。 新ファームウェアが起動失敗した場合のみ旧ファームウェアへ復帰 (=Rollback) 有効なファームウェアの切替方法には様々な方法がありますが、以下の図の場合はSlot0に置かれたファームウェアを有効なファームウェアとみなし、Swap方式によりSlot 0とSlot 1の内容を入れ替えて切り替えます。 この方式はアップデートイメージを少なくとも2つ格納できる容量に加え、ブート管理情報やメタデータ用の領域が必要になりますが、主に以下の利点があります。 ファームウェアを完全に停止させることなくアップデートイメージの受信が可能 この構成ではアップデートイメージの受信を他のファームウェアのタスクと並列して実行できるよう設計することが可能です。 ただし製品のフラッシュメモリが書込中の読出(RWW : Read While Write)に対応していない場合、書き込み中に同じフラッシュ領域からコードや割り込みベクターを読み出せないため、フラッシュ上のコード実行速度および応答性が大きく損なわれます。 リアルタイム性が要求されるアプリケーションなどを実行したい場合は必要に応じて以下のような対策を行う必要があります。 コードをRAMに配置 アップデートイメージ格納用のフラッシュメモリを外付け RWWをサポートしたフラッシュメモリを内蔵した製品を使用 (例 : NXP MCX Nシリーズ) SBL設計を簡略化できる 前述のとおり、1st SBLは更新不可なため、非常に注意深い設計および検証が必要となり、あまり多くの機能を統合することは推奨されません。 アップデートイメージの受信処理を、署名検証、復号、鍵管理などの処理から分離できる場合、受信機能をSBLの外部に配置することで、SBLの設計および検証範囲を抑えられます。特に、受信したイメージを未検証のまま非アクティブなスロットへ格納するだけの構成であれば、受信機能をSBLから分離しやすくなります。 例えば、無線またはイーサネット経由でアップデートを受信する方式は、複雑なプロトコルスタックを必要とするため、1st SBLに統合するよりも、ファームウェア側または2nd SBLに実装する方が適しています。 また、ファームウェア側のアップデート受信機能に問題が発生した場合の復旧手段として、1st SBL側にUARTなどによるシンプルな受信機能を残す場合もあります。 受信中断時や新ファームウェア起動不可時も旧ファームウェアでの動作継続が可能 受信動作中も旧ファームウェアが破壊されないため、中断した場合も旧ファームウェアの実行を即座に再開可能です。 また更新後も旧ファームウェアを保持しているため、万一新ファームウェア起動できなかった場合にも即座に旧ファームウェアへの復帰(Rollback)が可能です(このRollbackは、バージョンチェックを組み合わせて不正なRollback攻撃とは分けて管理する必要があります)   まとめ セキュアブート:今入っているファームウェアを安全に起動できるか確認 セキュアアップデート:新しいファームウェアへ安全に入れ替えられることを保証   関連情報 NXPのセキュリティ ~まとめページ~ (日本語ブログ) i.MX 93プロセッサ: セキュアブートの署名と認証の仕組みを解説 (日本語ブログ) i.MX 93プロセッサ: セキュアブートの実装方法 - 実践編 (日本語ブログ) i.MX 95 SPSDK によるセキュアブート (日本語ブログ) --> PQC対応セキュアブート ========================= 本投稿の「Comment」欄にコメントをいただいても、現在返信に対応しておりません。​ お手数をおかけしますが、お問い合わせの際には「NXPへの技術質問 - 問い合わせ方法 (日本語ブログ)」をご参照ください。​ (既に弊社NXP代理店、もしくはNXPとお付き合いのある方は、直接担当者へご質問いただいてもかまいません。) セキュリティ対応においてセキュアブート、セキュア/OTAアップデートという言葉がよく使用されます。これらの概要と、これらを実現するための手段であるセキュアブートローダー(SBL)の概要を主に組み込みMCUのセキュリティ対応の観点で解説します。MPUにおいても基本的な考え方は同様です。 個別の製品における対応や使用方法は別記事にて解説予定です。 (読了時間:15分) MCX Security 日本語ブログ
View full article
Smart Device Gateway – First Initialization Failure Symptoms On a clean install of Linux 6.18.37_2.1.0 i.MX Linux image, the Smart Device Gateway first-boot setup (`install.sh`) fails to prepare its Python virtual environment, and the application does not start.  Diagnosis The underlying cause is that `pip`/`uv` try to build `pycairo` and `pygobject` from source on the target, but the lean release image ships only the runtime cairo / GLib / GObject-Introspection libraries — not the matching `-dev` files (pkg-config `.pc`, headers, `.so` symlinks). The source build therefore fails. Solution # 1. Copy the archive to the board (scp, USB, etc.), e.g. to /root # scp missingfiles.tar.gz root@ :/root/ # 2. Extract over the root filesystem (preserves the tree AND symlinks: usr/lib, usr/include, ...) cd / tar xzvf /root/missingfiles.tar.gz # 3. Refresh the linker cache (optional but recommended) ldconfig 2>/dev/null || true # 4. Remove venv folder from /usr/share/smart-device-gateway/ before launching again the /usr/share/smart-device-gateway/install.sh cd /usr/share/smart-device-gateway/ rm -rf venv ./install.sh ARA240 DNPU i.MX Application Processors
View full article
Ara240 DNPU Hands-On Training Welcome to the Ara240 DNPU Training! This page provides access to training materials, presentations, demos, recordings, and supporting resources related to the Ara240 DNPU. While live Q&A support will be available during the training period, all content will remain accessible for future reference and self-paced learning. Required Hardware The following boards are supported: FRDM i.MX 95 Pro FRDM i.MX 95 FRDM i.MX 8M Plus Ara240 DNPU Ara240 16GB M.2 Module microSD >= 64GB storage USB-C debug cable Internet (Ethernet) HDMI Monitor 100 W power supply (Anker Charger is recommended) USB mouse USB keyword 1080p USB Camera Required Software The required Linux image can be found at: Embedded Linux for i.MX Applications Processors | NXP Semiconductors Instructions Step1. Watch introduction DNPU Training Introduction Ara 240 Software Components Presentation  Step2. Check the Hardware and Software Pre-requisites Getting Started Guide with FRDM-IMX8MPLUS Step3. Run the rest of the Software demo packages After completing the pre-work, each lab has its own guide document and a video guide you can use as support material in case you have any question at any step: Lab1: Running a GStreamer Pipeline for 8 Video Streams with YOLOv8n on Ara240 DNPU Ara Vision Multi-Stream YOLOv8 Object Detection Lab2: Running Unimodal Large Language Models on Ara240 DNPU LLM Edge Studio Lab3: Interacting with Vision-Language Models on Ara240 DNPU VLM Edge Studio Lab4: Enabling REST-Based LLM and VLM Inference on Ara240 DNPU eIQ AAF Connector Lab5: Running the Smart Device Gateway server on Ara240 DNPU  Smart Device Gateway  Additional Resources Take advantage of the resources below to deepen your knowledge and support your development efforts: Ara Software Development Kit (ARA SDK) Ara240 DNPU Six Pack Ara240 Discrete Neural Processing Unit (DNPU) Ara240 16GB M.2 Module FRDM i.MX 95 Pro FRDM i.MX 8M Plus ARA240 DNPU Hands-On Training
View full article
KW45 / MCX W71 - Trimming adjust of 32MHz & 32kHz external crystals  Introduction The KW45-EVK & FRDM-MCX W71 include an RSIM (Radio System Integration Module) module with an external 32 MHz crystal oscillator and 32kHz external oscillator. 32MHz clock source reference is mainly intended to supply the Bluetooth LE Radio peripheral, but it can be used as the main clock source of the MCU as well. This oscillator includes a set of programmable capacitors to support crystals with different load capacitance needs. Changing the value of these capacitors can modify the frequency the oscillator provides, that way, the central frequency can be tuned to meet the wireless protocol standards. This configurable capacitance range is from C: 3.74pF to C: 10.67pF and it is configured through the RFMC Register XO_Test field at the CDAC. The KW45 comes preprogrammed with a default load capacitance value (0x1Eh). However, since there is variance in devices due to tolerances and parasite effects, the correct load capacitance should be checked by verifying that the optimal central frequency is attained.  You will need a spectrum analyzer to measure the central frequency. To find the most accurate value for the load capacitance, it is recommended to use the Connectivity Test demo application. 32kHz clock source reference is mainly intended to run in low power when the 32MHz clock is switched off. This 32kHz clock enable to leave the low power mode and enter in Bluetooth LE events. Adjusting 32MHz Frequency Example Program the KW45 /MCX W71 Connectivity Test software on the device. This example can be found in SDK_2_15_000_KW45B41Z-EVK_MR5\boards\kw45b41zevk\wireless_examples\genfsk\connectivity_test folder from your SDK package. Baremetal and FreeRTOS versions are available. In case that KW45-EVK board is being used to perform the test, you should move the 15pF capacitor populated in C3 to C4, to direct the RF signal on the SMA connector.                               3. Connect the board to a serial terminal software. When you start the application,              you will be greeted by the NXP logo screen: Press the enter key to start the test. Then press "1" to select "Continuous tests":        5. Finally, select "6" to start a continuous unmodulated RF test. At this point, you should be able to measure the signal in the spectrum analyzer. You can change the RF channel from 0 to 127 ("q" Ch+ and "w" Ch- keys), which represents the bandwidth from 2.360GHz to 2.487GHz, stepping of 1MHz between two consecutive channels. To demonstrate the trimming procedure, this document will make use of channel 42 (2.402GHz) which corresponds to the Bluetooth LE channel 37. In this case, with the default capacitance value, our oscillator is not exactly placed at the center of the 2.402GHz, instead, it is slightly deflected to 2.40200155 GHz, as depicted in the following figure:       6. The capacitance can be adjusted with the "d" XtalTrim+ and "f" XtalTrim- keys. Increasing the capacitance bank means a lower frequency. In our case, we need to increase the capacitance to decrease the frequency. The nearest frequency of 2.402 GHz was 2.40199940 GHz      7. Once the appropriate XTAL trim value has been found, it can be programmed as default in any Bluetooth LE example, changing the BOARD_32MHZ_XTAL_CDAC_VALUE constant located in the board_platform.h file:   Adjusting 32kHz Frequency Example You could adjust the capacitor bank on the 32kHz oscillator. You need to observe the 32kHz frequency at pin 45 (PTC7) using an spectrum analyzer or a frequency meter. Inserting this below code in the main(void) in your application: Hello_world application in this example. 32kHz frequency is not active by default on pin45(PTC7). You need to configure the OSC32K_RDY at 1 in the CCM32K register Status Register (STATUS) field to observe the 32kHz frequency at pin 45 (PTC7). Configure the CAP_SEL, XTAL_CAP_SEL and EXTAL_CAP_SEL field available in the CCM32K register 32kHz Oscillator Control Register (OSC32K_CTRL). XTAL_CAP_SEL and EXTAL_CAP_SEL values are from 0pF (0x00h) to 30pF (0x0Fh). You could configure those 2 registers in the clock_config.c file. Default values are 8pF for both registers.   Protocol: BLE -> connectivity Re: KW45 / MCX W71 - Trimming adjust of 32MHz & 32kHz external crystals ISEL settings
View full article
KW45 / MCX W71 - 32MHz & 32kHz 外部水晶振動子のトリミング調整  紹介 KW45-EVK & FRDM-MCX W71には、外部32MHz水晶発振器と32kHz外部発振器を備えたRSIM(Radio System Integration Module)モジュールが含まれています。32MHzクロックソースリファレンスは、主にBluetooth LEラジオ周辺機器への供給を目的としていますが、MCUのメインクロックソースとしても使用できます。この発振器には、さまざまな負荷容量のニーズを持つ水晶振動子をサポートするためのプログラム可能なコンデンサのセットが含まれています。これらのコンデンサの値を変更すると、発振器が提供する周波数を変更できるため、中心周波数をワイヤレスプロトコル規格に合わせて調整できます。この設定可能な容量範囲は、C:3.74pFからC:10.67pFまでで、CDACのRFMCレジスタXO_Testフィールドを通じて設定されます。KW45には、デフォルトの負荷容量値(0x1Eh)が事前にプログラムされています。ただし、許容誤差や寄生虫の影響によりデバイスにはばらつきがあるため、最適な中心周波数が達成されていることを確認して、正しい負荷容量を確認する必要があります。中心周波数を測定するには、スペクトラムアナライザが必要になります。負荷容量の最も正確な値を見つけるには、コネクティビティ・テスト・デモ・アプリケーションを使用することをお勧めします。32kHzクロックソースリファレンスは、主に32MHzクロックがオフのときに低電力で動作することを目的としています。この32kHzクロックにより、低電力モードを終了してBluetooth LEイベントに参加できます。 32MHz周波数の調整例 デバイスにKW45 / MCX W71接続テストソフトウェアをプログラムします。この例は、SDK パッケージの SDK_2_15_000_KW45B41Z<[>-EVK_MR5\boards\kw45b41zevk\wireless_examples\genfsk\connectivity_test フォルダにあります。ベアメタル版とFreeRTOS版があります。 KW45-EVKボードを使用してテストを実行する場合は、C3に実装された15pFコンデンサをC4に移動して、RF信号をSMAコネクタに向ける必要があります。                       3.ボードをシリアル端末ソフトウェアに接続します。アプリケーションを起動すると、NXPのロゴ画面が表示されます。 Enter キーを押してテストを開始します。次に、「1」を押して「連続テスト」を選択します。 5.最後に、「6」を選択して、連続的な無変調RFテストを開始します。この時点で、スペクトラムアナライザで信号を測定できるはずです。RF チャネルを 0 から 127 (「q」Ch+ キーと "w" Ch- キー) に変更でき、これは 2.360GHz から 2.487GHz までの帯域幅を表し、2 つの連続するチャネル間で 1MHz のステッピングを行います。トリミング手順を示すために、このドキュメントでは、Bluetooth LE チャネル 37 に対応するチャネル 42 (2.402GHz) を使用します。この場合、デフォルトの静電容量値では、次の図に示すように、発振器は2.402GHzの中心に正確に配置されず、代わりに2.40200155GHzにわずかに偏向します。 6.静電容量は、「d」XtalTrim+キーと「f」XtalTrim-キーで調整できます。キャパシタンスバンクを大きくすると、周波数が低くなります。この場合、周波数を下げるには静電容量を増やす必要があります。2.402 GHzの最も近い周波数は2.40199940 GHzでした 7.適切なXTALトリム値が見つかったら、Bluetooth LEの例でデフォルトとしてプログラムでき、board_platform.hにあるBOARD_32MHZ_XTAL_CDAC_VALUE定数を変更できます。ファイル:   32kHz周波数の調整例 32kHz発振器のコンデンサバンクを調整できます。 ピン45(PTC7)の32kHzの周波数は、スペクトラムアナライザまたは周波数計を使用して観察する必要があります。 以下のコードをアプリケーションのmain(void)に挿入します:この例ではHello_worldアプリケーション。32kHzの周波数は、ピン45(PTC7)ではデフォルトではアクティブではありません。 ピン 45 (PTC7) の 32kHz 周波数を観察するには、CCM32K レジスタの Status Register (STATUS) フィールドで OSC32K_RDY を 1 に設定する必要があります。 CCM32Kレジスタの32kHz発振器制御レジスタ(OSC32K_CTRL)で使用可能なCAP_SEL、XTAL_CAP_SEL、およびEXTAL_CAP_SELフィールドを設定します。 XTAL_CAP_SELとEXTAL_CAP_SELの値は、0pF (0x00h) から 30pF (0x0Fh) です。これらの 2 つのレジスタは、clock_config.c で構成できますファイル。デフォルト値は、両方のレジスタで8pFです。   プロトコル:BLE→コネクティビティ Re: KW45 / MCX W71 - Trimming adjust of 32MHz & 32kHz external crystals ISEL設定
View full article
KW45 / MCX W71 - 32MHz 和 32kHz 外部晶体的微调  介绍 KW45-EVK 和 FRDM-MCX W71 包括一个 RSIM(无线电系统集成模块)模块,该模块带有一个外部 32 MHz 晶体振荡器和 32kHz 外部振荡器。32MHz 时钟源参考主要用于为蓝牙 LE 无线电外设供电,但也可以用作 MCU 的主时钟源。该振荡器包括一组可编程电容器,以支持具有不同负载电容需求的晶体。改变这些电容器的值可以修改振荡器提供的频率,这样就可以调整中心频率以满足无线协议标准。该可配置电容范围从 C: 3.74pF 至 C: 10.67pF,并通过 CDAC 上的 RFMC 寄存器 XO_Test 字段进行配置。KW45 预先编程了默认负载电容值 (0x1Eh)。然而,由于公差和寄生效应导致设备存在差异,因此应通过验证是否达到最佳中心频率来检查正确的负载电容。您将需要一个频谱分析仪来测量中心频率。为了找到负载电容的最准确值,建议使用连接测试演示应用程序。32kHz 时钟源参考主要用于在 32MHz 时钟关闭时以低功耗运行。此 32kHz 时钟可以退出低功耗模式并进入蓝牙 LE 事件。 调整 32MHz 频率示例 在设备上对 KW45 /MCX W71 连接测试软件进行编程。此示例可在 SDK 包中的SDK_2_15_000_KW45B41Z-EVK_MR5\boards\kw45b41zevk\wireless_examples\genfsk\connectivity_test文件夹中找到。有 Baremetal 和 FreeRTOS 版本可供选择。 如果使用 KW45-EVK 板进行测试,则应将 C3 中的 15pF 电容器移至 C4,以将 RF 信号引导至 SMA 连接器上。                       3.将开发板连接到串行终端软件。当您启动应用程序时,您将看到 NXP 徽标屏幕: 按回车键开始测试。然后按“1”选择“连续测试”: 5.最后,选择“6”开始连续未调制的射频测试。此时,您应该能够在频谱分析仪中测量信号。您可以将 RF 通道从 0 更改为 127( “q” Ch+ 和“w” Ch- 键),这代表带宽从 2.360GHz 到 2.487GHz,两个连续通道之间的步进为 1MHz。为了演示修剪过程,本文档将使用与蓝牙 LE 通道 37 相对应的通道 42(2.402GHz)。在这种情况下,使用默认电容值,我们的振荡器并没有准确地位于 2.402GHz 的中心,而是稍微偏向 2.40200155 GHz,如下图所示: 6.可以使用“d” XtalTrim+ 和“f” XtalTrim- 键调整电容。增加电容组意味着降低频率。在我们的例子中,我们需要增加电容来降低频率。2.402 GHz 的最近频率是 2.40199940 GHz 7.一旦找到合适的 XTAL 调整值,就可以在任何蓝牙 LE 示例中将其编程为默认值,从而更改 board_platform.h 中的 BOARD_32MHZ_XTAL_CDAC_VALUE 常量文件:   调整 32kHz 频率示例 您可以调整 32kHz 振荡器上的电容器组。 您需要使用频谱分析仪或频率计观察引脚 45(PTC7)处的 32kHz 频率。 在应用程序的 main(void) 中插入以下代码:本例中为 Hello_world 应用程序。默认情况下,pin45(PTC7)上的 32kHz 频率未激活。 您需要在 CCM32K 寄存器状态寄存器(STATUS)字段中将 OSC32K_RDY 配置为 1,以观察引脚 45(PTC7)处的 32kHz 频率。 配置 CCM32K 寄存器 32kHz 振荡器控制寄存器 (OSC32K_CTRL) 中的 CAP_SEL、XTAL_CAP_SEL 和 EXTAL_CAP_SEL 字段。 XTAL_CAP_SEL 和 EXTAL_CAP_SEL 值从 0pF (0x00h) 到 30pF (0x0Fh)。您可以在clock_config.c中配置这两个寄存器文件。两个寄存器的默认值均为 8pF。   协议:BLE -> 连接性 Re: KW45 / MCX W71 - Trimming adjust of 32MHz & 32kHz external crystals ISEL 设置
View full article