Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
S32K358 未收到 UART RX 数据 我正在尝试测试 FRDM A S32K358 板上的 UART 通信。在此传输中使用了 UART6 tx 和 rx,我可以在 Tera 终端上看到预期的数据,并且在调试器中看到 Lpuart_Uart_Ip_SyncSend API 状态为成功。但是当我尝试对接收器 UART6RX 引脚执行操作时,Lpuart_Uart_Ip_SyncReceive(UART_LPUART_INTERNAL_CHANNEL, rxData, 1, 10000) 函数出现响应超时。 所以我尝试使用不同的UART接口,例如UART3,结果也一样。然后我尝试将PTD3和PTD2配置为GPIO,并尝试设置这两个引脚的值。在这种情况下,PTD3未被设置(没有任何变化),但PTD2被设置为1。 请问如何检查接收数据?我正在尝试对引脚进行硬件环回测试。因为我没有逻辑分析仪。 提前感谢! Ankita_0-1787651884647.png
View full article
S32K344 セキュアデバッグの問題 S32K344チップを使ったときに問題が発生しました。最初にチップをプログラムしたときは正常で、プログラムも正常に動作していましたが、2回目のプログラムでPEを使い、Targertを接続できないとエラーが出てしまい、Blelow(画像:)が 出ますfe6b2cf0ebcb862d181cfdc8fc0582f.png   IDEはS32DS3.4で、PEダウンロードプログラムを使ってください。なぜこの問題が起きたのか分かりません。ボードのチエがセキュアモードにエントリしているのかもしれません。どうやってアンセキュア状態に変えるのか?何か方法があるのかもしれません。どうやって?この問題を解決しますか?   Re: S32K344 Secure debug problem こんにちは、チームの皆さん、 S32 Design Studio 3.6.8を使ってS32K344(M7)カスタムボードのデバッグ中に問題に直面しています PEmicro USBマルチリンクユニバーサルFXデバッガー。 環境 MCU:S32K344(Q257) ハードウェア: カスタムボード IDE: S32 Design Studio 3.6.8 デバッガー: PEmicro USB Multilink Universal FX 接続: SWD Re: S32K344 Secure debug problem こんにちは、ルーカスさん、 この問題は解決しましたか?私もS32K344を使用しているときに同じ問題が発生します。 Re: S32K344 Secure debug problem こんにちは、 今テストしてみましたが、私の環境では正常に動作しました。同じ例を使って、PEで何度かプログラムを書き直し、電源のオンオフを試してみましたが、それでも正常に動作しました。 セキュリティと関係があるべきではありません。すでに述べたように、PEが何らかの理由でデバッグモードに入れない場合の標準的なメッセージです。あれは新品のボードだったのか?PEと基板間のリボンケーブルを確認しましたか?別のボードをプログラムできますか? よろしくお願いいたします。 ルーカス Re: S32K344 Secure debug problem こんにちは、 セキュリティの問題というよりは、デバッガが接続を確立できないという一般的なメッセージのように思えます。明日、自分のボードで確認してみます。調査結果をお知らせします。 よろしくお願いいたします。 ルーカス
View full article
S32K312MINI-EVB Hello, I am using an NXP S32K312MINI-EVB board. Initially, the board was powered ON and the LEDs were working, but the USB connection was not detected by Windows Device Manager. I verified that the PEmicro driver is installed. Device Manager shows: Jungo Connectivity → pemicrovincdrv I also tested the board with another PC and another USB connection, but the board was not detected. During troubleshooting, while the board was connected through USB, I removed the J19 and J20 jumpers. The board LEDs turned OFF. I then put the jumpers back, but now the board does not power on when i tried to give power supply though USB . when I supply 12 V through J1 only RGB led is ON. According to the S32K312MINI-EVB Hardware User Manual: USB-C J9 → J19 = 1–2, J20 = 1–2 12 V J1 → J19 = 2–3, J20 = 2–3 I have set J19/J20 accordingly, but the power LED remains OFF. Could someone please help me determine whether the board's power circuit may have been affected and which test points I should measure? I can provide photos of the board and voltage measurements at J23 (VBAT), J24 (VBST), J16 (P5V0), J17 (P3V3), and J27 (GND). Thank you. Re: S32K312MINI-EVB Hi Please do not use a USB hub; connect the USB cable directly to the computer. I recommend connecting via USB 3.0 or Type-C port. S32K312MINI on board debugger.pngS32K312MINI on board debugger.png Does the red OSDA_LED D9 light up? Otherwise, OpenSDA may not work properly, which would prevent the onboard debugger from being used. Please check the voltage one by one according to the schematic diagram. Best Regards, Robin Re: S32K312MINI-EVB Hi When powered by USB (J19 1-2, J20 1-2), pin 2 of J19 measures 12V, and pin 2 of J20 measures 5V. The red OSDA_LED on D9 is lit. UM12505 Table 3. Supply board method (low current).png When powered externally by J1 (J19 2-3, J20 2-3), pin 2 of both J19 and J20 measures 12V. No LED is lit. In this case, an external debugger needs to be connected to J7 to download programs to the S32K312. UM12505 Table 4. Supply board method (high current).png Also, please refer to Figure 3. Main THP for power measurements in UM12505, FRDM-A-S32K312 development board for MCUs hardware user manual to check if it conforms to Table 5. Through hole pads for measure voltages. UM12505 Table 5. Through hole pads for measure voltages Figure 3. Main THP for power measurements.png
View full article
iMX95搭載のUUU こんにちは、 iMX95ベースのシステムにU-Bootをダウンロードして実行したい。 私はこのスクリプト cmd.lst を作成しました。 # ヤミン・アメックス SDPS: boot -f flash.bin SDPS: 完了 SDPV: 遅延 1000 SDPV: write -f flash.bin -skipspl SDPV: ジャンプ SDPV: 完了 # } コマンドラインでこれらのコマンドを手順通りに実行すれば、問題なく動作します。 でも私が電話したら => sudo /usr/bin/uuu -v -b ./cmd.lst それはぶら下がっている 既知のUSBデバイスが表示されるまでお待ちください... 新しいUSBデバイスが1:41-636B3EF4AB264648に接続されました 1:41-636B3EF4AB264648>コマンド開始:SDPS: boot -f flash.bin 100%1:41-636B3EF4AB264648>OK (3.007秒) 1:41-636B3EF4AB264648>コマンド開始:SDPS:完了 1:41-636B3EF4AB264648>OK (0秒) これらの手順を1つのコマンドリスト内で実行することは許可されていないのですか? あるいは、このコマンドリストのどこが間違っているのでしょうか? Re: UUU with iMX95 はい、SDPSとSDPVのステップは1つのUUUコマンドリストにまとめることができます。i.MX95の場合、意図された手順は次のとおりです。まずSDPS: boot -f flash.binSPL を起動し、次に SDPV: write -f flash.bin -skipspl および SDPV: jump complete/start U-Boot を起動します。私が見つけたスクリプトの例では、SDPS: done を挟まずに、同じ結合された SDPS→SDPV フローを使用しています。 あなたの場合の問題はおそらく設置方法と、スクリプトの呼び出し方にある可能性が高いです。 uuu_version 1.5.233 SDPS: boot -f flash.bin SDPV: 遅延 1000 SDPV: write -f flash.bin -skipspl SDPV: ジャンプ カスタムスクリプトファイルとして直接実行する: sudo /usr/bin/uuu -v ./cmd.lst としてではなく: sudo /usr/bin/uuu -v -b ./cmd.lst -b オプションは、sd、emmc、sd_all、emmc_all などの UUU 組み込みスクリプトについて文書化されていますが、カスタム スクリプト ファイルは通常、uuu に直接渡されます。また、「done」は全体のフローの最後のコマンドとして説明されているため、最初のブートステージの直後にSDPS: doneを入れると、UUUがそのステージを停止し、SDPVステージにスムーズに進む代わりに次の既知のUSBデバイスを待つことがあります。 ですので、以下のファイルからファイルを変更したほうがいいと思います: SDPS: boot -f flash.bin SDPS: 完了 SDPV: 遅延 1000 SDPV: write -f flash.bin -skipspl SDPV: ジャンプ SDPV: 完了 、 uuu_version 1.5.233 SDPS: boot -f flash.bin SDPV: 遅延 1000 SDPV: write -f flash.bin -skipspl SDPV: ジャンプ SDPS→SDPV遷移でまだ待機状態が続く場合は、より新しいUUUリリースを試してください。i.MX95レポートの1つでは、100%でハングアップする場合にuuu_1.5.201からuuu_1.5.233に移行することを特に推奨しています。また、-Tでステージスイッチの待機タイムアウトを増やすこともできます。-Tは、ステージスイッチで次の既知のUSBデバイスを待つためのタイムアウトです。 1 つのスクリプトを使用しますが、中間の done 行を削除し、uuu -v ./cmd.lst でファイルを直接実行します。その後、ボードがまだ SDPV ステージに再列挙されない場合にのみ、UUU を更新するか、-T を増やします。 Re: UUU with iMX95 こんにちは、そしてありがとうございます、@yipingwang フィードバックが遅くなり申し訳ありません。 cmd-lst を次のように変更しました。 SDPS: boot -f flash.bin SDPV:ディレイ1000 SDPV: write -f flash.bin -skipspl SDPV:ジャンプ SDPV:完了 その後、uuu_1.5.233に切り替えたら問題なく動作しました。 しかし、呼びかけはこうでなければならない。 => ./uuu-v -b ./cmd.lst と => ./uuu-v ./cmd.lst どうやら、cmd.lst をボットローダーバイナリとしてロードしようとしているようです。 返される値: 新しいUSBデバイスが3:5-636B3EF4AB264648に接続されました 3:5-636B3EF4AB264648>コマンド開始:SDPS: boot -f "./cmd.lst"
View full article
UUU 搭配 iMX95 你好, 我想在基于 iMX95 的系统上下载并运行 U-Boot。 我创建了这个脚本 cmd.lst: # { SDPS:启动 -f flash.bin SDPS:完成 SDPV:延迟 1000 SDPV:写入 -f flash.bin -skipspl SDPV:跳跃 SDPV:完成 # } 如果我在命令行中一步一步地执行这些命令,它就能正常工作。 但如果我打电话 => sudo /usr/bin/uuu -v -b ./cmd.lst 它挂着 等待已知 USB 设备出现…… 1:41-636B3EF4AB264648 处已连接新的 USB 设备 1:41-636B3EF4AB264648>启动命令:SDPS:boot -f flash.bin 100%1:41-636B3EF4AB264648>确定 (3.007秒) 1:41-636B3EF4AB264648>启动命令:SDPS:完成 1:41-636B3EF4AB264648>确定(0秒) 是否不允许在同一个命令列表中执行这些步骤? 或者说,这个命令列表有什么问题? Re: UUU with iMX95 是的,SDPS 和 SDPV 步骤可以放在同一个 UUU 命令列表中。对于 i.MX95,预期顺序为:首先 SDPS:启动 -f flash.bin启动 SPL,然后 SDPV:写入 -f flash.bin -skipspl 和 SDPV:跳转完成/启动 U-Boot。我找到的脚本示例使用了相同的组合 SDPS→SDPV 流程,但没有在它们之间执行 SDPS: done。 你的情况很可能是 done 文件的放置方式有问题,也可能是脚本的调用方式有问题: uuu_version 1.5.233 SDPS:启动 -f flash.bin SDPV:延迟 1000 SDPV:写入 -f flash.bin -skipspl SDPV: jump 直接将其作为自定义脚本文件运行: sudo /usr/bin/uuu -v ./cmd.lst 并非如此: sudo /usr/bin/uuu -v -b ./cmd.lst -b 选项适用于 UUU 内置脚本,例如 sd、emmc、sd_all 或 emmc_all,而自定义脚本文件通常直接传递给 uuu。此外,done 被描述为整个流程的最后一个命令,因此在第一个启动阶段之后立即放置 SDPS: done 可以让 UUU 停止该阶段并等待下一个已知的 USB 设备,而不是顺利地继续进入 SDPV 阶段。 所以我会把你的文件从: SDPS:启动 -f flash.bin SDPS:完成 SDPV:延迟 1000 SDPV:写入 -f flash.bin -skipspl SDPV: jump SDPV:完成 至: uuu_version 1.5.233 SDPS:启动 -f flash.bin SDPV:延迟 1000 SDPV:写入 -f flash.bin -skipspl SDPV: jump 如果仍然在 SDPS→SDPV 转换时等待,请尝试更新的 UUU 版本;一份 i.MX95 报告特别建议从 uuu_1.5.201 升级到 uuu_1.5.233 以解决 100% 卡住的问题。您还可以使用 -T 增加舞台切换等待超时时间,即在舞台切换时等待下一个已知 USB 设备的超时时间。 使用一个脚本,但删除中间的 done 行,并直接使用 uuu -v ./cmd.lst 运行该文件;然后,仅当板仍然没有重新枚举到 SDPV 阶段时才更新 UUU 或增加 -T。 Re: UUU with iMX95 您好,谢谢@yipingwang 请原谅我回复晚了…… 当我将 cmd-lst 更改为: SDPS:启动 -f flash.bin SDPV:延迟 1000 SDPV:写入 -f flash.bin -skipspl SDPV:跳跃 SDPV:完成 然后切换到 uuu_1.5.233 就正常了。 但必须这样打电话: => ./uuu-v -b ./cmd.lst 和 => ./uuu-v ./cmd.lst 看起来 uuu 试图将 cmd.lst 作为 botloader 二进制文件加载。 它返回: 新的 USB 设备已连接到 3:5-636B3EF4AB264648 3:5-636B3EF4AB264648>启动命令:SDPS:boot -f "./cmd.lst"
View full article
S32K312MINI-EVB こんにちは、 私はNXP社のS32K312MINI-EVBボードを使用しています。 最初はボードが電源を入れていてLEDも点灯していましたが、USB接続はWindowsデバイスマネージャーで認識されませんでした。 PEmicroドライバーがインストールされていることも確認しました。デバイスマネージャーには以下が表示されます: Jungo コネクティビティ → pemicrovincdrv 別のPCと別のUSB接続でもテストしてみましたが、ボードは認識されませんでした。 トラブルシューティングの際、基板をUSB接続中に J19とJ20ジャンパーを取り外しました。基板のLEDが消灯した。 その後、ジャンパーを元に戻しましたが、今度はUSB経由で電源を供給しようとしてもボードの電源が入りません。J1を通して12Vを供給すると、RGB LEDのみが点灯します。 S32K312MINI-EVBハードウェアユーザーマニュアルによると: USB-C J9 → J19 = 1–2、J20 = 1–2 12V J1→J19=2~3、J20=2~3 J19/J20を適切に設定しましたが、電源LEDが点灯しません。 基板の電源回路が影響を受けている可能性や、どのテストポイントを測定すべきか、どなたか教えていただけませんか? J23(VBAT)、J24(VBST)、J16(P5V0)、J17(P3V3)、J27(GND)でのボードと電圧測定の写真を提供できます。 よろしくお願いします。 Re: S32K312MINI-EVB ハイ USBハブは使用しないでください。USBケーブルをコンピュータに直接接続してください。USB 3.0またはType-Cポートでの接続をお勧めします。 S32K312MINI on board debugger.pngS32K312MINI搭載 debugger.png 赤色のOSDA_LED D9は点灯しますか? そうしないと、OpenSDAが正しく動作せず、オンボードデバッガが使用できなくなる可能性があります。 回路図に従って、電圧を一つずつ確認してください。 よろしくお願いいたします ロビン Re: S32K312MINI-EVB ハイ USB電源(J19 1-2、J20 1-2)で給電する場合、J19のピン2は12V、J20のピン2は5Vを示す。D9 の赤色の OSDA_LED が点灯します。 UM12505 表3。電源基板方法(低電流).png J1(J19 2-3、J20 2-3)によって外部から電源が供給されると、J19とJ20の両方のピン2で12Vが測定されます。LEDは点灯していません。この場合、プログラムをS32K312にダウンロードするために外部デバッガをJ7に接続する必要があります。 UM12505 表4。電源基板方法(高電流).png また、図3もご参照ください。UM12505の電力測定用のメインTHP、MCUハードウェアユーザーマニュアルFRDM-A-S32K312開発ボード(表5に準拠しているか確認)。電圧測定用のスルーホールパッド。 UM12505 表5. 電圧測定用スルーホールパッド 図3. 電力測定用メインTHP.png
View full article
使用OTFAD时,J-Flash和MCUXpress IDE有什么区别? 应用OTFAD时,J-Flash和MCUXpress IDE有什么区别? 我目前正在使用 RT1010 EVK 测试 OTFAD 配置。 我使用 MCUXpress SPT 程序配置了 OTFAD 并下载了固件。 我将配置的 EVK 的启动模式设置为 FlexSPI 启动模式。 我还有一个关于后续JTAG访问的问题。 虽然我没有配置任何 JTAG 安全设置,但 J-Flash 程序可以连接到目标设备,但我之后无法读取或重写闪存。 但是,如果我在 MCUXpress IDE 中构建原始项目,并使用类似“调试与下载?”的功能下载它,我可以下载一个未配置 OTFAD 的版本。 我想知道这两个程序有什么区别。 为什么无法在 J-Flash 中访问? 但为什么在集成开发环境(IDE)中可以做到呢? i.MXRT 安全 Re: What are the differences between J-Flash and MCUXpress IDE when using OTFAD? 尊敬的@TnseoRnr , 1. 为什么在 J-Flash 中无法访问 Flash? J-Flash 依靠其自身的 Flash 算法和 J-Link 配置。对于 i.MX RT 设备上的外部 Flash,编程工具通常需要先将 Flash 驱动程序算法加载到片上 RAM 中并执行它。这段驻留在 RAM 中的代码负责 FlexSPI 初始化、擦除操作和编程。 如果当前 J-Flash 项目使用的 SEGGER Flash Loader、JLinkScript、FlexSPI LUT 或 FCB 配置与 SPT 配置后的设备状态不匹配,则可能会遇到调试器可以连接到内核,但无法可靠地读取、擦除或编程外部 Flash 的情况。 2. 为什么仍然可以从 MCUXpresso IDE 访问 Flash? MCUXpresso IDE 的下载和调试流程通常不仅仅是简单的基于 JTAG 的外部 Flash 写入。相反,它会执行完整的目标初始化和 RAM 驻留 Flash 驱动程序过程: 将 Flash 驱动程序下载到 i.MX RT 设备的内部 RAM 中。→ 初始化 FlexSPI 接口。→ 将应用程序映像分段缓冲,并调用 Flash 擦除/编程 API。 同样,LinkServer 也使用 .cfx 文件。闪存驱动程序通过RESET→运行闪存驱动程序→程序序列执行下载。 因此,即使 J-Flash 项目没有针对当前的 OTFAD 或 FlexSPI 状态正确配置,MCUXpresso IDE 也可能能够重新初始化 Flash 并成功执行擦除/编程操作。 顺祝商祺! 雪莉
View full article
iMX8qm 启动核心 A72_0 大家好,NXP论坛, 在 iMX8qm 上,我们能否从 A72 核心启动?SCUFW 是否支持这样做? 谢谢! Re: iMX8qm Boot Core A72_0 请先使用现有的 flash_ca72 目标;不要替换 u-boot-atf.bin 文件。使用 u-boot-atf-a72.bin除非您有意使用驾驶舱/多 AP 图像流。 证据表明存在这种区别: flash_ca72 被描述为与普通 A-core 启动目标相同的基本启动映像,但加载到 A72 而不是 A53。 u-boot-atf.bin 是 ATF 和 U-Boot 的组合镜像:bl31.bin加上 u-boot.bin/ u-boot-hash.bin。 u-boot-atf-a72.bin出现在 flash_cockpit 目标中,其中镜像包含两个 AP 有效载荷:一个用于 A53,另一个用于 A72:-ap u-boot-atf.bin a53 0x80000000 ... -ap u-boot-atf-a72.bin a72 0xC0000000 ... 。 因此,重要的选择器不仅是文件名;它还是目标中的 imx-mkimage -ap ... a72 ... 参数。对于单个 A72 启动映像,使用 u-boot-atf.bin 的 flash_ca72 与文档中所述的意图一致:即使文件名没有后缀 -a72,有效载荷也会通过目标规则加载到 A72。 推荐路径: 使用现有目标构建标准的仅限 A72 的镜像: 制作 SOC=iMX8QM flash_ca72 在 Linux 端使用 CA72 设备树/配置。NXP 文档指出,i.MX8QM MEK CA72 DTB 仅支持两个 Cortex-A72 内核,并且需要使用 flash_ca72 构建的特殊启动映像。 预留 u-boot-atf-a72.bin对于显式打包第二个 A72 AP 映像的流程(例如 flash_cockpit),除非您的 电路板支持包的 soc.mak评论或发行说明另有说法。 启动时验证镜像是否实际进入 A72 路径:检查 make V=1 SOC=iMX8QM flash_ca72 命令发出的 imx-mkimage 命令,或检查 iMX8QM/soc.mak 文件。并确认 AP 线路使用 a72。 要点:将当前 flash_ca72 引用视为对 u-boot-atf.bin 的引用这是有意为之;u-boot-atf-a72.bin 是用于驾驶舱/多分区风格镜像中单独使用的 A72 有效载荷,而不是 flash_ca72 的自动替代品。 Re: iMX8qm Boot Core A72_0 我们想澄清/确认一个小问题:`flash_ca72` 目标目前引用了 `u-boot-atf.bin`,同时,在相同的配置中,还有一个单独的 `u-boot-atf-a72.bin` 可用。 我们该如何进行? Re: iMX8qm Boot Core A72_0 是的——在 i.MX8QM 上,应用程序处理器启动映像可以面向 Cortex-A72 而不是 Cortex-A53,SCFW 允许这种流程。NXP 的 imx-mkimage 有一个 flash_ca72 目标,被描述为普通 A53 启动映像的 A72 变体,旨在尽早启动 A72 以优化启动时间。 重要的区别在于: First code after RESET: 不是 A72。设备启动流程仍然从 ROM/SCU/SCFW 开始。 AP 端引导加载程序/操作系统启动:是的,这可以在 A72 上完成。SCFW 初始化 DDR,加载 Cortex-A 映像,然后启动内核并设置其起始地址。 配置机制:启动容器可以为 a72 指定一个 AP 镜像,例如示例显示 imx-mkimage 中的 -ap ... a72 ...。 所以答案是: SCFW 确实允许从 A72 启动 AP 软件路径,但 A72 不是 RESET/ROM 启动主控;它是由 SCFW 根据启动容器配置启动的。 Re: iMX8qm Boot Core A72_0 你好, 我按照以下步骤构建引导加载程序,但引导加载程序构建失败,没有任何日志记录。 请您核对一下附件中的步骤。 谢谢! mkdir Scarthgap_New cd Scarthgap_New   1. 获取网络安全控制器二进制文件 mkdir SECO 光盘 SECO wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-5.9.4.1-0333596.bin chmod +x imx-seco-5.9.4.1-0333596.bin ./imx-seco-5.9.4.1-0333596.bin   mkashyap@cse-dev02:~/iMX8/Scarthgap_New/SECO/imx-seco-5.9.4.1-0333596/firmware/seco$ ls -al 总计 976 drwxrwxr-x 2 mkashyap mkashyap   4096 8月26日 22:21 . drwxrwxr-x 3 mkashyap mkashyap   4096 8月26日 22:21 .. -rw-r--r-- 1 mkashyap mkashyap    194 7月 29  2024 commit-id.txt -rw-r--r-- 1 mkashyap mkashyap 163840 2024年7月29日 mx8dxla1-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap 163840 2024年7月29日 mx8dxlb0-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap 76944 2024 年 7 月 29 日 mx8qmb0-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap  71312 7月29日  2024 mx8qxb0-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap  78408 7月29日  2024 mx8qxc0-ahab-container.img -rwxr-xr-x 1 mkashyap mkashyap 423875 2024 年 7 月 29 日 SECO_FW_release_note.pdf mkashyap@cse-dev02:~/iMX8/Scarthgap_New/SECO/imx-seco-5.9.4.1-0333596/firmware/seco$   我们使用 mx8qmb0-ahab-container.img   光盘 ../../../..   2. 下载并构建 ATF mkdir ATF 光盘 ATF git clone https://github.com/varigit/imx-atf-b lf_v2.10_6.6.52-2.2.0_var01   cd imx-atf 源 /opt/fsl-imx-xwayland/6.6-scarthgap/environment-setup-armv8a-poky-linux unset LDFLAGS 制作 PLAT=imx8qm bl31   mkashyap@cse-dev02:~/iMX8/Scarthgap_New/ATF/imx-atf/build/imx8qm/release$ ls -al 总计76 drwxrwxr-x 7 mkashyap mkashyap  4096 8月26日 22:37 . drwxrwxr-x 3 mkashyap mkashyap  4096 8月26日 22:36 .. drwxrwxr-x 3 mkashyap mkashyap  4096 8月26日 22:37 bl31 -rwxrwxr-x 1 mkashyap mkashyap 45213 8月 26日 22:37 bl31.bin drwxrwxr-x 2 mkashyap mkashyap 4096 8 月 26 日 22:37 lib drwxrwxr-x 2 mkashyap mkashyap 4096 8月26日 22:37 libc drwxrwxr-x 2 mkashyap mkashyap 4096 八月 26 22:37 libwrapper drwxrwxr-x 2 mkashyap mkashyap 4096 8月26日 22:37 romlib   光盘 ../../../../../   3. 下载并构建 SCFW mkdir SCFW    cd SCFW     wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2018q4/gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz sudo tar xf gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz -C ./opt     git clone https://github.com/varigit/imx-sc-firmware.git -b 1.17.0 cd imx-sc-firmware/src/scfw_export_mx8qm_b0     export TOOLS=/home/mkashyap/iMX8/Scarthgap_New/SCFW/Opt    执行 clean-qm    使 qm R=B0 B=var_som V=1     mkashyap@cse-dev02:~/iMX8/Scarthgap_New/SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0$ ls -al 总计 3384 drwxrwxr-x 11 mkashyap mkashyap 4096 8月26日 22:47 . drwxrwxr-x 6 mkashyap mkashyap 4096 8月26日 22:47 .. drwxrwxr-x 3 mkashyap mkashyap 4096 8月26日 22:47 板 drwxrwxr-x 3 mkashyap mkashyap 4096 8月26日 22:44 设备 drwxrwxr-x 25 mkashyap mkashyap 4096 8月26日 22:47 司机 drwxrwxr-x 2 mkashyap mkashyap 4096 8月26日 22:44 main    -rwxrwxr-x 1 mkashyap mkashyap 184448 8 月 26 日 22:47 scfw_tcm.bin -rwxrwxr-x 1 mkashyap mkashyap 2787784 8月26日 22:47 scfw_tcm.elf    -rw-rw-r-- 1 mkashyap mkashyap 513123 8 月 26 日 22:47 scfw_tcm.map drwxrwxr-x 4 mkashyap mkashyap 4096 8月26日 22:44 soc drwxrwxr-x 26 mkashyap mkashyap 4096 8月26日 22:44 ss drwxrwxr-x 9 mkashyap mkashyap 4096 8月26日 22:47 svc drwxrwxr-x 10 mkashyap mkashyap 4096 8月26日 22:44 测试 drwxrwxr-x 2 mkashyap mkashyap 4096 8月26日 22:44 实用程序     光盘 ../../../../../     4. 构建 u-boot mkdir u-boot    cd u-boot     git clone https://github.com/varigit/uboot-imx.git -b lf_v2024.04_6.6.52-2.2.0_var01    cd uboot-imx        cp ../../SECO/imx-seco-5.9.4.1-0333596/firmware/seco/mx8qmb0-ahab-container.img ./mx8qm-ahab-container.img    cp ../../SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0/scfw_tcm.bin ./mx8qm-mek-scfw-tcm.bin    让 mrproper    制作 imx8qm_var_som_defconfig make -j8     光盘 ../../     5. 制作图像 mkdir MkImage    cd MkImage     git clone https://github.com/varigit/imx-mkimage-b lf-6.6.52_2.2.0_var01    cd imx-mkimage        cp ../../SECO/imx-seco-5.9.4.1-0333596/firmware/seco/mx8qmb0-ahab-container.img ./iMX8QM/    cp ../../SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0/scfw_tcm.bin ./iMX8QM/    cp ../../u-boot/uboot-imx/u-boot.bin ./iMX8QM/    cp ../../u-boot/uboot-imx/spl/u-boot-spl.bin ./iMX8QM/    cp ../../ATF/imx-atf/build/imx8qm/release/bl31.bin ./iMX8QM/        制作 SOC=iMX8QM flash_ca72        cd iMX8QM make -f soc.mak SOC=iMX8QM MKIMG=../mkimage_imx8 PAD_IMAGE=./pad_image.sh flash_ca72        mkashyap@cse-dev02:~/iMX8/Scarthgap_New/MkImage/imx-mkimage/iMX8QM$ ls -al 总计 6792 drwxrwxr-x 3 mkashyap mkashyap 4096 8月26日 23:08 . drwxrwxr-x 13 mkashyap mkashyap 4096 8月26日 23:06 .. -rwxrwxr-x 1 mkashyap mkashyap 45213 8月26日 23:06 bl31.bin -rwxrwxr-x 1 mkashyap mkashyap 2564 8月26日 22:59 expand_c_define.sh    -rw-rw-r--  1 mkashyap mkashyap 1895424 8 月 26 日 23:08 flash.bin -rw-rw-r-- 1 mkashyap mkashyap 9 Aug 26 23:06 head.hash -rwxrwxr-x 1 mkashyap mkashyap 2078 年 8 月 26 日 22:59 mkimage_fit_atf.sh    -rw-r--r-- 1 mkashyap mkashyap 76944 8 月 26 日 23:02 mx8qmb0-ahab-container.img    -rwxrwxr-x 1 mkashyap mkashyap 184448 8 月 26 日 23:03 scfw_tcm.bin drwxrwxr-x 2 mkashyap mkashyap 4096 8月26日 22:59 脚本    -rwxrwxr-x 1 mkashyap mkashyap 13271 8 月 26 日 22:59 soc.mak    -rwxrwxr-x 1 mkashyap mkashyap 1631521 8 月 26 日 23:06 u-boot-atf.bin    -rw-rw-r-- 1 mkashyap mkashyap 1500440 8 月 26 日 23:04 u-boot.bin    -rw-rw-r-- 1 mkashyap mkashyap 1500449 8 月 26 日 23:06 u-boot-hash.bin    -rw-rw-r-- 1 mkashyap mkashyap 139387 8 月 26 日 23:04 u-boot-spl.bin     生成的 flash.bin 文件被用作引导加载程序镜像。 Re: iMX8qm Boot Core A72_0 就您的具体手术而言,关键在于: 制作 SOC=iMX8QM flash_ca72 如果您打算将引导加载程序加载到 A72 而不是 A53 ,那么从概念上讲,这是正确的目标。NXP 社区指南将 flash_ca72 描述为类似于基本的 flash_b0 映像,但加载到A72而不是A53 。 “无日志”症状并不一定意味着 SCFW 拒绝了 A72 启动。一个已知的陷阱是A53 和 A72 不使用同一个日志终端,因此,如果您监测通常的 A-core/A53 UART,即使 A72 镜像正在运行或稍后在不同的控制台路径上出现故障,您可能也看不到任何东西。 验证您的步骤: 面积 评估 SECO集装箱 mx8qmb0-ahab-container.img 是 i.MX8QM B0 的正确容器类别。 ATF 使 PLAT=imx8qm bl31 对于 i.MX8QM 来说是合理的。 SCFW 构建 qm R=B0 B=var_som V=1 与 i.MX8QM B0 Variscite 目标一致。 U-Boot imx8qm_var_som_defconfig 是需要确认的关键项:它必须与 A72 启动路径和控制台配置兼容。 mkimage 目标 flash_ca72 仅适用于 A72 启动。对于正常的 Linux 电路板支持包。启动,文档中记录的 i.MX8QM 命令是 make SOC=iMX8QM flash。 SPL副本 u-boot-spl.bin 可能与 flash_ca72 无关;该目标不是基于 SPL 的流程。 重复镜像版本 同时运行顶层 make SOC=iMX8QM flash_ca72 和手动运行 make -f soc.mak ... flash_ca72 是不必要的。使用一条简洁的顶级命令。 我会修改/优化图像生成部分,使其: cd ~/iMX8/Scarthgap_New/MkImage/imx-mkimage cp ../../SECO/imx-seco-5.9.4.1-0333596/firmware/seco/mx8qmb0-ahab-container.img ./iMX8QM/ cp ../../SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0/scfw_tcm.bin ./iMX8QM/ cp ../../u-boot/uboot-imx/u-boot.bin ./iMX8QM/ cp ../../ATF/imx-atf/build/imx8qm/版本/bl31.bin ./iMX8QM/ make clean 制作 SOC=iMX8QM flash_ca72 然后使用: iMX8QM/flash.bin 同时修复/检查此 SCFW 路径: export TOOLS=/home/mkashyap/iMX8/Scarthgap_New/SCFW/Opt 您已将文件提取到 ./opt 目录。但是导出了.../SCFW/Opt。Linux 路径区分大小写。既然你已经生成了scfw_tcm.bin你的 shell 可能确实有有效的工具路径,但这一行需要验证。 推荐的调试顺序: 首先构建并启动标准镜像: 让 SOC=iMX8QM 闪存 这会检查 SECO + SCFW + ATF + U-Boot + 板 DDR/控制台是否基本正确。Linux 用户指南中记录了此标准 i.MX8QM flash.bin 文件。生成路径。 然后使用以下命令重新构建: 制作 SOC=iMX8QM flash_ca72 监控A72 控制台/UART ,而不仅仅是普通的 A53 控制台。A53 和 A72 日志终端有所不同。 如果仍然没有反应,请比较生成的 flash.bin 文件。比较 flash 和 flash_ca72 之间的大小/布局,并确认 Variscite U-Boot 配置是否真正启用了 A72 启动目标使用的控制台。 所以直接的答案是: SCFW 确实允许通过 flash_ca72 镜像流程启动 A72 上的 Cortex-A 端,但 SCFW 仍然负责初始启动编排。你的步骤对 A72 启动基本有效,但需要移除重复的 soc.mak 调用,验证 SCFW 工具路径,最重要的是检查 A72 的 UART/控制台。 要点:i.MX8QM 上的 A72 启动是通过 flash_ca72 实现的;静默启动更有可能是镜像/配置/控制台问题,而不是 SCFW 拒绝启动 A72。 Re: iMX8qm Boot Core A72_0 哪里可以找到SCFW参考手册或设计手册,以便对SCFW固件进行修改? Re: iMX8qm Boot Core A72_0 您可以从这里开始: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101/ta-p/1124236 https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Getting-started/ta-p/1121153 SCFW 参考/移植文档包含在 NXP SCFW 移植工具包中,而不是作为单独的公开参考手册提供。 从 NXP i.MX 软件和开发页面下载工具包。选择与您的 i.MX BSP 对应的版本;NXP 需要匹配的移植工具包以保持与其提供的二进制文件的兼容性。 接受许可协议并运行包含的 .bin 文件安装程序。 请查看下方: doc/pdf/sc_fw_port.pdf — 详细的 SCFW 移植指南 doc/pdf/ — SCFW API 用户指南、版本说明及相关文档 src/ — SoC 专用 SCFW 导出归档 该工具包包含源代码和目标代码的混合体。针对特定电路板的定制是在导出的电路板源代码中进行的,通常位于 platform/board/mx8 _ / 目录下,包括 board.c 等文件。; SCFW 的核心大部分仍然是对象式的,无法通过公共工具包进行修改。 通用 i.MX 移植指南 UG10165 中也有一个“移植系统控制器固件”章节,解释了与 BSP 和 meta-imx-scfw 的集成。 Re: iMX8qm Boot Core A72_0 如何在SCFW中获取我们自己的自定义日志? 谢谢 莫汉
View full article
i.MX6Q HAB開発用の旧バージョンのコード署名ツール(CST)の提供依頼 NXP技術サポートチームへ、 現在、i.MX6Q SabreSDプラットフォームをベースにしたHigh Assurance Boot(HAB)セキュアブートソリューションを開発しており、公式のNXP BSPリリースL3.14.52_1.1.0を使用していますGAは当社の製品に対して完全に検証されています。 最新のCST v3.1.0公式ポータルからダウンロードしたものは、このレガシーBSPバージョンと完全に互換性がなく、i.MX6QのHABv4プロトコルに一致する有効な署名データを生成できません。これにより、その後のセキュアブート検証作業が妨げられます。 私はすでにNXPのコード署名ツールに関するソフトウェアライセンス契約を読み、受け入れており、このツールはNXP i.MX シリーズチップの社内製品開発にのみ使用されることを確認しています。 CST v2.3.2(HABv4用)のダウンロードリンクを教えていただけますか?このバージョンは、私たちが使用しているi.MX6Q BSPに対して公式に推奨されているマッチングツールです。 プロジェクトやチップの部品番号について追加情報が必要な場合は、どうぞお気軽にご連絡ください。 再開まで今しばらくお待ちください。 よろしくお願いいたします。 リクエフイ i.MX6Quad Re: Request for Old Version of Code Signing Tool (CST) for i.MX6Q HAB Development こんにちは、 お元気でいらっしゃいますか?古いバージョンは共有できますが、コミュニティでは共有できません。サポートチケットの作成を手伝って、私に連絡して追跡できるようにしてください。 https://support.nxp.com/s/?language=en_US よろしくお願いいたします。 アルド。 Re: Request for Old Version of Code Signing Tool (CST) for i.MX6Q HAB Development こんにちは、 私はi.MX6Q SabreSDと旧バージョンのL3.14.52_1.1.0を使用しています。BSP、ただしCST v3.1.0完全な互換性はありません。公式のダウンロードリンクやダウンロード方法に関する情報があれば大変ありがたいです。 Re: Request for Old Version of Code Signing Tool (CST) for i.MX6Q HAB Development NXPの現在のi.MX6QソフトウェアページにはCST 3.1.0が記載されていますダウンロード可能な「i.MX High Assurance Boot Reference Code Signing Tool」、リビジョン3.1.0として提供されます。fc4me
View full article
KW47:WDOG待機/停止モードと電源モード(スリープ/ディープスリープ)の関係 こんにちは、 KW47リファレンスマニュアルを読んでいるのですが、WDOGの低消費電力モードとシステムの電源モードの関係について混乱しています。 WDOGの章では、制御およびステータスレジスタには次のビットが含まれています。 - 待って: 「チップが待機モードのときにWDOGが動作できるようにします。」 - 停止: 「チップが停止モードのときにWDOGが動作できるようにします。」 WDOGの章には、次のようにも記載されています。 - 選択したWDOGクロックソースは、停止モードでもアクティブな状態を維持する必要があります。 デバッグモードおよび停止モードでは、バスクロック以外のクロックソースを使用する必要があります。 一方、「電源モード」の章では、以下のことが説明されています。 スリープモード: - CPUの実行が停止しました - コアクロックゲートオフ システムクロックとバスクロックは引き続き動作する可能性があります。 ディープスリープモード: - コアクロックゲートオフ - システムクロックゲートがオフになっています バスの時計が閉まっている これらの記述に基づくと、以下のように解釈するのが妥当と思われる。 - 待機モード ≈ スリープモード - 停止モード ≈ ディープスリープモード しかし、リファレンス・マニュアルにはこのマッピングを裏付ける明確な記述は見つかっていません。 私の質問は以下のとおりです。 1. WDOG待機モードはKW47のパワーモードスリープモードに対応しますか? 2. WDOG停止モードはKW47のパワーモードのディープスリープモードに対応しますか? 3. それとも、待機/停止はWDOG特有のCPU状態で、SoCの電源モードとは異なるのでしょうか? 4. この関係を明示的に説明したリファレンス・マニュアルのセクションやアプリケーションノートはありますか? ご協力ありがとうございます。 Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) こんにちは、お元気でお過ごしでしょうか。   KW47リファレンスマニュアルで使用されている用語は、WDOG制御レジスタのWAITおよびSTOPフィールドを、WDOG固有のCPU状態ではなくチップ/コアの低消費電力状態を参照として解釈するものと一致しています。両者の関係は、厳密な等価関係というよりは、機能的な対応関係と表現するのが適切でしょう。 その意味で、WDOG WAITは待機/スリープクラスの状態に相当し、CPUの実行は停止するものの、システムクロックとバスクロックは引き続き使用可能となる。WDOG STOPはStop/Deep-Sleepクラス条件に対応し、コア、システム、バスのクロックがゲートされており、ウォッチドッグはそのモードでアクティブなクロックソースを使用するように設定されて初めて継続できます。   よろしくお願いします、 ソフィア。 Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) こんにちは、ソフィアさん。 先ほどのご説明、ありがとうございました。 あなたの回答に基づくと、私の理解は以下のとおりです。 - WDOG WAITは、待機/スリープクラスの低電力状態に対応します。 - WDOG STOPは、停止/ディープスリープクラスの低電力状態に相当します。 この関係は、厳密な一対一の対応関係ではなく、機能的な対応関係である。 KW47リファレンスマニュアルを改めて確認したところ、次のセクションを見つけました。 28.4 低消費電力モードでのモジュール動作 表225:低消費電力モードでのCortex M33コアモジュールの動作 WDOGxの場合、表には以下が示されています。 - スリープ:オン - ディープスリープ:オプション - 電源オフ:オプション - ディープパワーダウン:オフ この表から、WDOGの動作は少なくともディープスリープと電源オフモードで設定可能だと解釈しました。 挙動をよりよく理解するために、KW47-Loc評価ボードを使ってテストを行いました。 試験条件: - WDOGが有効 - WDOG の更新は vApplicationIdleHook() から実行されます - PWR_EnterLowPower() は FreeRTOS の vPortSuppressTicksAndSleep() から実行されます。 低電力状態に入った後にウォッチドッグリセットが発生するかどうかを観察する テスト結果: CASE 1 待機=0、停止=0 → ウォッチドッグのリセットは発生しませんでした CASE 2 WAIT=1、STOP=0 → ウォッチドッグリセットが行われました ケース3 WAIT=0、STOP=1 → ウォッチドッグのリセットは発生しませんでした 私の解釈では、ウォッチドッグリセットが発生した際、デバイスは低電力状態に入り、vApplicationIdleHook()は実行されなくなったものの、ウォッチドッグは実行を継続し、最終的にタイムアウトしたと考えられます。 しかし、ウォッチドッグリセットはWAIT=1かつSTOP=0の場合にのみ発生し、STOP=1の場合はウォッチドッグリセットは発生しなかった。 この結果から、低電力モード時のウォッチドッグ動作において、WAITビットとSTOPビットが実際にどのように適用されるのか理解に苦しんでいます。 以下の点について説明していただけますか? 1.デバイスが PWR_EnterLowPower() によって低電力モードに入った場合、WDOG の動作は WAIT ビットと STOP ビットのどちらによって制御されますか? 2. 観測された結果は、デバイスがディープスリープモードではなくスリープモードに入っていることを示しているのでしょうか、それともディープスリープモードに入っていると解釈すべきでしょうか? 3. STOPビットは、電源モードの章で説明されているディープスリープモードに対応していますか、それとも別の低電力状態を指していますか? 4. 表225の以下の項目は、WDOG WAITおよびSTOP制御ビットに関してどのように解釈すべきですか? - WDOGx:オプション(ディープスリープ) - WDOGx:オプション(電源オフ) 再開まで今しばらくお待ちください。 Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) @sofiaurueta 追加のテストを実施し、その結果を上記の記事に追記しました。 私の解釈が正しいか教えていただけませんか? よろしくお願いします。 Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) こんにちは、 @hyama さん。返信が遅くなり申し訳ありません。   SDKの例を使ってテストしていますか?デバイスがディープスリープモードに入っていることをどのように確認していますか? ご説明いただいた動作から判断すると、デバイスは単にスリープモードに入っているだけかもしれません。もしデバイスがディープスリープに入っていたら、結果は逆になります。STOP=1(CASE 3)がタイムアウトを引き起こし、WAIT=1(CASE 2)は影響がないはずです。WAIT=1がリセットをトリガーするという事実は、デバイスがディープスリープではなくスリープモードに入ったことと一致している。   皆様からのご質問にお答えします。 1.デバイスが PWR_EnterLowPower() によって低電力モードに入った場合、WDOG の動作は WAIT ビットと STOP ビットのどちらによって制御されますか? CS[WAIT]とCS[STOP]は、それぞれ独立したモードを制御する独立した制御装置であり、CS[WAIT]はスリープモードでのWDOGの動作を制御し、CS[STOP]はディープスリープモードでのWDOGの動作を制御します。 デバイスがスリープモードに入る場合、CS[WAIT]がアクティブコントロールとなります。CS[STOP]はここでは効果がありません。なぜなら、ディープスリープには入らないからです。デバイスが代わりにディープスリープに入るように設定されている場合、CS[STOP]がアクティブな制御になります。   2. 観測された結果は、デバイスがディープスリープモードではなくスリープモードに入っていることを示しているのでしょうか、それともディープスリープモードに入っていると解釈すべきでしょうか? この結果はスリープモードへの移行とは一致するが、ディープスリープとは一致しない。3つのテストケースに基づき、スリープモードに入っています。   3. STOPビットは、電源モードの章で説明されているディープスリープモードに対応していますか、それとも別の低電力状態を指していますか? ドキュメントによると、CS[STOP]はディープスリープに対応し、テストで観察された挙動はこれと一致しています(ディープスリープが入力されていないと仮定した場合)。   4. 表225の以下の項目は、WDOG WAITおよびSTOP制御ビットに関してどのように解釈すべきですか? ディープスリープの「オプション」とは、CS[STOP]=1かつバスクロック以外のクロックソースが設定されている場合にWDOGがディープスリープで動作できることを意味します。デバッグモードおよび停止モードでは、バスクロック以外のクロックソースを使用する必要があります。バスクロックを用いることで、ウォッチドッグはアーキテクチャ的に「有効化」できますが、そのクロックは失われており、例えば32K_CLKなど別のクロックソースが選択されない限りは消えています。 よろしくお願いします、 ソフィア。 Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) こんにちは、 @sofiaurueta さん 先ほどのご説明、ありがとうございました。 >SDKの例を使ってテストしていますか?デバイスがディープスリープモードに入っていることをどのように確認していますか? ご質問についてですが、テストはSDKのサンプルプロジェクトで実施されたものではありません。これはNXP SDKをベースにした私たちのアプリケーションで実施されました。 デバイスがディープスリープモードに入るかどうかを確認するため、追加調査を行ったところ、低電力モードに入る際に以下のパスが実行されることが分かりました。 vPortSuppressTicksAndSleep() -> PWR_EnterLowPower() -> PM_EnterLowPower() -> PM_低電力モードに入る() -> CMC_EnterLowPowerMode() CMC_EnterLowPowerMode()では、SDKはWFIを実行する前にSCB->SCRレジスタのSLEEPDEEPビットを設定します。 SLEEPDEEPビットを設定してWFIを実行すると、デバイスがディープスリープモードに入るというのが私たちの理解です。この理解がKW47に対して正しいか確認していただけますか? 私が質問しているのは、WDOGテストの結果がSTOPビットではなくWAITビットに依存しているように見えるからです。 助けてくれてありがとう。
View full article
请求提供 i.MX6Q HAB 开发用旧版代码签名工具 (CST) 尊敬的恩智浦技术支持团队: 我目前正在基于 i.MX6Q SabreSD 平台开发高度保证启动 (HAB) 安全启动解决方案,使用的是 NXP 官方 BSP (电路板支持包) 版本 L3.14.52_1.1.0。GA 已针对我们的产品进行了全面验证。 最新版 CST v3.1.0从官方门户网站下载的版本与此旧版 电路板支持包。 不完全兼容,无法生成与 i.MX6Q 的 HABv4 协议匹配的有效签名数据。这会阻碍我们后续的安全启动验证工作。 我已经阅读并接受了 NXP 代码签名工具的软件许可协议,并且我确认该工具将仅用于我们 NXP i.MX 系列芯片的内部产品开发。 请问能否提供CST v2.3.2 (适用于 HABv4)的下载链接?这是我们使用的 i.MX6Q 电路板支持包。的官方推荐匹配工具。 如果您需要有关我们项目或芯片零件编号的任何其他信息,请随时与我联系。 感谢您的支持。 顺祝商祺! 立学会 i.MX6 四核 Re: Request for Old Version of Code Signing Tool (CST) for i.MX6Q HAB Development 你好, 我正在使用 i.MX6Q SabreSD 和旧版 L3.14.52_1.1.0。电路板支持包,但 CST v3.1.0不完全兼容。任何官方下载链接或指导都将不胜感激。 Re: Request for Old Version of Code Signing Tool (CST) for i.MX6Q HAB Development 你好, 希望你一切都好。我可以分享一个旧版本,但我不能在这里的社区分享,请帮我创建一个支持工单,并在工单中向我咨询,以便我跟踪问题。 https://support.nxp.com/s/?language=en_US 此致敬礼/Saludos, 阿尔多。 Re: Request for Old Version of Code Signing Tool (CST) for i.MX6Q HAB Development NXP 当前的 i.MX6Q 软件页面列出了 CST 3.1.0 版本。可下载的“i.MX 高度保证启动参考代码签名工具”,版本 3.1.0。fmc4me
View full article
iMX8qm Boot Core A72_0 Hello NXP Forum, on iMX8qm, can we have the bootup done from A72 core? Does SCUFW permit that. Thanks Re: iMX8qm Boot Core A72_0 Proceed with the existing flash_ca72 target first; do not replace u-boot-atf.bin with u-boot-atf-a72.bin unless you are intentionally using the cockpit / multi-AP image flow. The evidence points to this distinction: flash_ca72 is described as the same basic boot image as the normal A-core boot target, but loaded to the A72 instead of the A53. u-boot-atf.bin is the combined ATF + U-Boot image: bl31.bin plus u-boot.bin / u-boot-hash.bin . u-boot-atf-a72.bin appears in the flash_cockpit target, where the image contains two AP payloads : one for A53 and a separate one for A72: -ap u-boot-atf.bin a53 0x80000000 ... -ap u-boot-atf-a72.bin a72 0xC0000000 ... . So the important selector is not only the filename; it is the imx-mkimage -ap ... a72 ... argument in the target. For a single A72 boot image, flash_ca72 using u-boot-atf.bin is consistent with the documented intent: the payload is loaded to A72 by the target rule, even if the filename is not suffixed -a72 . Recommended path: Build the standard A72-only image using the existing target: make SOC=iMX8QM flash_ca72 Use the CA72 device tree / configuration on the Linux side. NXP documentation notes that the i.MX8QM MEK CA72 DTB supports the two Cortex-A72 cores only and requires the special boot image built with flash_ca72 . Reserve u-boot-atf-a72.bin for flows that explicitly package a second A72 AP image, such as flash_cockpit , unless your BSP’s soc.mak comments or release notes say otherwise. Validate at boot that the image is actually entering the A72 path: check the imx-mkimage command emitted by make V=1 SOC=iMX8QM flash_ca72 or inspect iMX8QM/soc.mak and confirm the AP line uses a72 . Takeaway: treat the current flash_ca72 reference to u-boot-atf.bin as intentional; u-boot-atf-a72.bin is for the separate A72 payload used in cockpit/multi-partition style images, not automatically the replacement for flash_ca72 . Re: iMX8qm Boot Core A72_0 There is a small point we would like to clarify/validate: the `flash_ca72` target currently references `u-boot-atf.bin`, while a separate `u-boot-atf-a72.bin` is also available in the same configuration. How do we proceed Re: iMX8qm Boot Core A72_0 Yes — on i.MX8QM, the application-processor boot image can be targeted to the Cortex-A72 instead of the Cortex-A53, and SCFW permits that flow. NXP’s imx-mkimage has a flash_ca72 target described as the A72 variant of the normal A53 boot image, intended to bring up the A72 as early as possible for boot-time optimization . The important distinction is: First code after reset: not the A72. The device boot flow still starts through ROM/SCU/SCFW. AP-side bootloader / OS bring-up: yes, this can be done on the A72. SCFW initializes DDR, loads Cortex-A images, then boots the cores and sets their start addresses. Configuration mechanism: the boot container can specify an AP image for a72 , e.g. examples show -ap ... a72 ... in imx-mkimage usage. So the answer is: SCFW does allow booting the AP software path from A72, but A72 is not the reset/ROM boot master; it is started by SCFW according to the boot container configuration. Re: iMX8qm Boot Core A72_0 Hello, I have followed the following steps to build bootloader, but the bootloader fails without any logs. Could you please validate attached steps. Thanks mkdir Scarthgap_New cd Scarthgap_New   1. Get the Security Controller Binaries mkdir SECO cd SECO wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-5.9.4.1-0333596.bin chmod +x imx-seco-5.9.4.1-0333596.bin ./imx-seco-5.9.4.1-0333596.bin   mkashyap@cse-dev02:~/iMX8/Scarthgap_New/SECO/imx-seco-5.9.4.1-0333596/firmware/seco$ ls -al total 976 drwxrwxr-x 2 mkashyap mkashyap   4096 Aug 26 22:21 . drwxrwxr-x 3 mkashyap mkashyap   4096 Aug 26 22:21 .. -rw-r--r-- 1 mkashyap mkashyap    194 Jul 29  2024 commit-id.txt -rw-r--r-- 1 mkashyap mkashyap 163840 Jul 29  2024 mx8dxla1-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap 163840 Jul 29  2024 mx8dxlb0-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap  76944 Jul 29  2024 mx8qmb0-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap  71312 Jul 29  2024 mx8qxb0-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap  78408 Jul 29  2024 mx8qxc0-ahab-container.img -rwxr-xr-x 1 mkashyap mkashyap 423875 Jul 29  2024 SECO_FW_release_note.pdf mkashyap@cse-dev02:~/iMX8/Scarthgap_New/SECO/imx-seco-5.9.4.1-0333596/firmware/seco$   we use mx8qmb0-ahab-container.img   cd ../../../..   2. Download and build ATF mkdir ATF cd ATF git clone https://github.com/varigit/imx-atf -b lf_v2.10_6.6.52-2.2.0_var01   cd imx-atf source /opt/fsl-imx-xwayland/6.6-scarthgap/environment-setup-armv8a-poky-linux unset LDFLAGS make PLAT=imx8qm bl31   mkashyap@cse-dev02:~/iMX8/Scarthgap_New/ATF/imx-atf/build/imx8qm/release$ ls -al total 76 drwxrwxr-x 7 mkashyap mkashyap  4096 Aug 26 22:37 . drwxrwxr-x 3 mkashyap mkashyap  4096 Aug 26 22:36 .. drwxrwxr-x 3 mkashyap mkashyap  4096 Aug 26 22:37 bl31 -rwxrwxr-x 1 mkashyap mkashyap 45213 Aug 26 22:37 bl31.bin drwxrwxr-x 2 mkashyap mkashyap  4096 Aug 26 22:37 lib drwxrwxr-x 2 mkashyap mkashyap  4096 Aug 26 22:37 libc drwxrwxr-x 2 mkashyap mkashyap  4096 Aug 26 22:37 libwrapper drwxrwxr-x 2 mkashyap mkashyap  4096 Aug 26 22:37 romlib   cd ../../../../../   3. Download and build SCFW    mkdir SCFW    cd SCFW        wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2018q4/gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz    sudo tar xf gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz -C ./opt        git clone https://github.com/varigit/imx-sc-firmware.git -b 1.17.0    cd imx-sc-firmware/src/scfw_export_mx8qm_b0        export TOOLS=/home/mkashyap/iMX8/Scarthgap_New/SCFW/Opt    make clean-qm    make qm R=B0 B=var_som V=1        mkashyap@cse-dev02:~/iMX8/Scarthgap_New/SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0$ ls -al    total 3384    drwxrwxr-x 11 mkashyap mkashyap    4096 Aug 26 22:47 .    drwxrwxr-x  6 mkashyap mkashyap    4096 Aug 26 22:47 ..    drwxrwxr-x  3 mkashyap mkashyap    4096 Aug 26 22:47 board    drwxrwxr-x  3 mkashyap mkashyap    4096 Aug 26 22:44 devices    drwxrwxr-x 25 mkashyap mkashyap    4096 Aug 26 22:47 drivers    drwxrwxr-x  2 mkashyap mkashyap    4096 Aug 26 22:44 main    -rwxrwxr-x  1 mkashyap mkashyap  184448 Aug 26 22:47 scfw_tcm.bin    -rwxrwxr-x  1 mkashyap mkashyap 2787784 Aug 26 22:47 scfw_tcm.elf    -rw-rw-r--  1 mkashyap mkashyap  513123 Aug 26 22:47 scfw_tcm.map    drwxrwxr-x  4 mkashyap mkashyap    4096 Aug 26 22:44 soc    drwxrwxr-x 26 mkashyap mkashyap    4096 Aug 26 22:44 ss    drwxrwxr-x  9 mkashyap mkashyap    4096 Aug 26 22:47 svc    drwxrwxr-x 10 mkashyap mkashyap    4096 Aug 26 22:44 test    drwxrwxr-x  2 mkashyap mkashyap    4096 Aug 26 22:44 utilities        cd ../../../../../     4. Build u-boot    mkdir u-boot    cd u-boot        git clone https://github.com/varigit/uboot-imx.git -b lf_v2024.04_6.6.52-2.2.0_var01    cd uboot-imx        cp ../../SECO/imx-seco-5.9.4.1-0333596/firmware/seco/mx8qmb0-ahab-container.img ./mx8qm-ahab-container.img    cp ../../SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0/scfw_tcm.bin ./mx8qm-mek-scfw-tcm.bin    make mrproper    make imx8qm_var_som_defconfig    make -j8        cd ../../     5. Make Image     mkdir MkImage    cd MkImage        git clone https://github.com/varigit/imx-mkimage -b lf-6.6.52_2.2.0_var01    cd imx-mkimage        cp ../../SECO/imx-seco-5.9.4.1-0333596/firmware/seco/mx8qmb0-ahab-container.img ./iMX8QM/    cp ../../SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0/scfw_tcm.bin ./iMX8QM/    cp ../../u-boot/uboot-imx/u-boot.bin ./iMX8QM/    cp ../../u-boot/uboot-imx/spl/u-boot-spl.bin ./iMX8QM/    cp ../../ATF/imx-atf/build/imx8qm/release/bl31.bin ./iMX8QM/        make SOC=iMX8QM flash_ca72        cd iMX8QM    make -f soc.mak SOC=iMX8QM MKIMG=../mkimage_imx8 PAD_IMAGE=./pad_image.sh flash_ca72        mkashyap@cse-dev02:~/iMX8/Scarthgap_New/MkImage/imx-mkimage/iMX8QM$ ls -al    total 6792    drwxrwxr-x  3 mkashyap mkashyap    4096 Aug 26 23:08 .    drwxrwxr-x 13 mkashyap mkashyap    4096 Aug 26 23:06 ..    -rwxrwxr-x  1 mkashyap mkashyap   45213 Aug 26 23:06 bl31.bin    -rwxrwxr-x  1 mkashyap mkashyap    2564 Aug 26 22:59 expand_c_define.sh    -rw-rw-r--  1 mkashyap mkashyap 1895424 Aug 26 23:08 flash.bin    -rw-rw-r--  1 mkashyap mkashyap       9 Aug 26 23:06 head.hash    -rwxrwxr-x  1 mkashyap mkashyap    2078 Aug 26 22:59 mkimage_fit_atf.sh    -rw-r--r--  1 mkashyap mkashyap   76944 Aug 26 23:02 mx8qmb0-ahab-container.img    -rwxrwxr-x  1 mkashyap mkashyap  184448 Aug 26 23:03 scfw_tcm.bin    drwxrwxr-x  2 mkashyap mkashyap    4096 Aug 26 22:59 scripts    -rwxrwxr-x  1 mkashyap mkashyap   13271 Aug 26 22:59 soc.mak    -rwxrwxr-x  1 mkashyap mkashyap 1631521 Aug 26 23:06 u-boot-atf.bin    -rw-rw-r--  1 mkashyap mkashyap 1500440 Aug 26 23:04 u-boot.bin    -rw-rw-r--  1 mkashyap mkashyap 1500449 Aug 26 23:06 u-boot-hash.bin    -rw-rw-r--  1 mkashyap mkashyap  139387 Aug 26 23:04 u-boot-spl.bin     The generated flash.bin was used as an bootloader image Re: iMX8qm Boot Core A72_0 For your specific procedure, the important point is this: make SOC=iMX8QM flash_ca72 is the correct target conceptually if your intent is to load the bootloader to the A72 instead of the A53 . NXP community guidance describes flash_ca72 as similar to the basic flash_b0 image, but loaded to the A72 rather than the A53 . The “no logs” symptom does not automatically mean SCFW rejected A72 boot . A known gotcha is that A53 and A72 do not use the same log terminal , so if you monitor the usual A-core/A53 UART you may see nothing even though the A72 image is running or failing later on a different console path. Validation of your steps: Area Assessment SECO container mx8qmb0-ahab-container.img is the right class of container for i.MX8QM B0. ATF make PLAT=imx8qm bl31 is reasonable for i.MX8QM. SCFW Building make qm R=B0 B=var_som V=1 is consistent with an i.MX8QM B0 Variscite target. U-Boot imx8qm_var_som_defconfig is the key item to confirm: it must be compatible with the A72 boot path and console configuration. mkimage target flash_ca72 is the right target only for A72 boot. For normal Linux BSP boot, the documented i.MX8QM command is make SOC=iMX8QM flash . SPL copy u-boot-spl.bin is likely irrelevant for flash_ca72 ; that target is not the SPL-based flow. Duplicate image build Running both top-level make SOC=iMX8QM flash_ca72 and then manually running make -f soc.mak ... flash_ca72 is unnecessary. Use one clean top-level command. I would correct/clean the image-generation part to: cd ~/iMX8/Scarthgap_New/MkImage/imx-mkimage cp ../../SECO/imx-seco-5.9.4.1-0333596/firmware/seco/mx8qmb0-ahab-container.img ./iMX8QM/ cp ../../SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0/scfw_tcm.bin ./iMX8QM/ cp ../../u-boot/uboot-imx/u-boot.bin ./iMX8QM/ cp ../../ATF/imx-atf/build/imx8qm/release/bl31.bin ./iMX8QM/ make clean make SOC=iMX8QM flash_ca72 Then use: iMX8QM/flash.bin Also fix/check this SCFW path: export TOOLS=/home/mkashyap/iMX8/Scarthgap_New/SCFW/Opt You extracted into ./opt , but exported .../SCFW/Opt . Linux paths are case-sensitive. Since you did produce scfw_tcm.bin , your actual shell may have had a valid tool path, but this line should be verified. Recommended debug sequence: First build and boot the standard image: make SOC=iMX8QM flash This checks that SECO + SCFW + ATF + U-Boot + board DDR/console are basically correct. The Linux User’s Guide documents this standard i.MX8QM flash.bin generation path. Then rebuild with: make SOC=iMX8QM flash_ca72 Monitor the A72 console/UART , not only the normal A53 console. The A53 and A72 log terminals differ. If still silent, compare the generated flash.bin size/layout between flash and flash_ca72 , and confirm that the Variscite U-Boot config actually enables the console used by the A72 boot target. So the direct answer is: SCFW does permit starting the Cortex-A side on A72 through the flash_ca72 image flow, but SCFW still owns the initial boot orchestration. Your procedure is mostly valid for A72 boot, but remove the duplicate soc.mak invocation, verify the SCFW tool path, and most importantly check the A72 UART/console. Takeaway: A72 boot on i.MX8QM is supported via flash_ca72 ; a silent boot is more likely an image/config/console issue than SCFW simply refusing to start A72. Re: iMX8qm Boot Core A72_0 Where can we get SCFW reference manual or design manual to make modification to SCFW firmware Re: iMX8qm Boot Core A72_0 You can start here: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101/ta-p/1124236 https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Getting-started/ta-p/1121153 The SCFW reference/porting documentation is supplied inside the NXP SCFW Porting Kit , rather than as a separate public reference manual. Download the kit from the NXP i.MX Software and Development page. Select the release corresponding to your i.MX BSP; NXP requires the matching porting kit to maintain compatibility with its supplied binaries. Accept the license and run the included .bin installer. Look under: doc/pdf/sc_fw_port.pdf — detailed SCFW Porting Guide doc/pdf/ — SCFW API User Guide, release notes, and related documentation src/ — SoC-specific SCFW export archives The kit contains a mixture of source and object code. Board-dependent customization is performed in the exported board sources—typically under platform/board/mx8 _ / , including files such as board.c ; much of the core SCFW remains object-only and cannot be modified through the public kit. The general i.MX Porting Guide, UG10165 , also has a “Porting System Controller Firmware” chapter and explains integration with the BSP and meta-imx-scfw. Re: iMX8qm Boot Core A72_0 How do we get our own customised logs in SCFW? Thanks Mohan
View full article
Request for Old Version of Code Signing Tool (CST) for i.MX6Q HAB Development Dear NXP Technical Support Team, I am currently developing a High Assurance Boot (HAB) secure boot solution based on the ‌i.MX6Q SabreSD platform‌, using the official NXP BSP release L3.14.52_1.1.0 GA which is fully validated for our product. The latest CST v3.1.0 downloaded from the official portal is not fully compatible with this legacy BSP version, and it cannot generate valid signature data that matches the HABv4 protocol of i.MX6Q. This blocks our subsequent secure boot verification work. I have already read and accepted the NXP Software License Agreement for the Code Signing Tool, and I confirm that this tool will only be used for internal product development on our NXP i.MX series chips. Could you please provide the download link for ‌CST v2.3.2 (for HABv4)‌? This version is the officially recommended matching tool for the i.MX6Q BSP we are using. If you need any additional information about our project or chip part number, please feel free to contact me. Thank you for your support. Best regards, lixuehui i.MX6Quad Re: Request for Old Version of Code Signing Tool (CST) for i.MX6Q HAB Development Hello, Hope you're doing well, I can share an old version but I cannot share it here on the community, please help me creating a support ticket and ask for me on it so I can track it. https://support.nxp.com/s/?language=en_US Best regards/Saludos, Aldo. Re: Request for Old Version of Code Signing Tool (CST) for i.MX6Q HAB Development Hello, I’m working with an i.MX6Q SabreSD and the legacy L3.14.52_1.1.0 BSP, but CST v3.1.0 isn’t fully compatible. Any official download link or guidance would be greatly appreciated.  Re: Request for Old Version of Code Signing Tool (CST) for i.MX6Q HAB Development NXP’s current i.MX6Q software page lists CST 3.1.0 as the downloadable “i.MX High Assurance Boot Reference Code Signing Tool,” revision 3.1.0. fmc4me
View full article
KW47:WDOG 等待/停止模式与电源模式(睡眠/深度睡眠)之间的关系 你好, 我正在阅读 KW47 参考手册,但我对 WDOG 低功耗模式和系统电源模式之间的关系感到困惑。 在 WDOG 章节中,控制和状态寄存器包含以下位: - 等待: “使 WDOG 在芯片处于等待模式时也能运行。” - 停止: “使 WDOG 在芯片处于停止模式时也能运行。” WDOG章节还指出: - 在停止模式下,选定的 WDOG 时钟源必须保持活动状态。 - 对于调试模式和停止模式,必须使用总线时钟以外的时钟源。 另一方面,“电源模式”章节描述了: 睡眠模式: CPU执行已停止。 - 核心时钟已关闭 系统时钟和总线时钟可能会继续运行 深度睡眠模式: - 核心时钟已关闭 系统时钟已关闭 总线时钟已关闭 基于以上描述,可以合理地解释如下: - 等待模式 ≈ 睡眠模式 - 停止模式 ≈ 深度睡眠模式 然而,我尚未在参考手册中找到任何明确说明来证实这种映射关系。 我的问题是: 1. WDOG 等待模式是否对应于 KW47 的电源模式睡眠模式? 2. WDOG 停止模式是否对应于 KW47 的电源模式深度睡眠模式? 3. 或者说,Wait/Stop WDOG 是 CPU 特有的状态,与 SoC 电源模式不同? 4. 是否有参考手册章节或应用笔记明确描述了这种关系? 感谢您的帮助。 Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) 你好,希望你一切都好。   KW47 参考手册中使用的术语与将 WDOG 控制寄存器中的 WAIT 和 STOP 字段解释为对芯片/内核低功耗状态的引用,而不是对 WDOG 特定 CPU 状态的引用是一致的。我会将这种关系描述为功能对应,而不是严格的等价关系。 从这个意义上讲,WDOG WAIT 对应于等待/睡眠类条件,其中 CPU 执行停止,但系统和总线时钟可能仍然可用。WDOG STOP 对应于停止/深度睡眠类条件,其中内核、系统和总线时钟被门控,看门狗只有在配置为使用在该模式下保持活动的时钟源时才能继续工作。   此致, 索菲亚。 Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) 你好,索菲亚, 感谢您之前的解释。 根据您的回复,我的理解是: - WDOG WAIT 对应于等待/睡眠类低功耗状态。 - WDOG STOP 对应于停止/深度睡眠级别的低功耗状态。 - 这种关系是一种功能对应关系,而不是严格的一对一映射关系。 再次查阅KW47参考手册后,我发现了以下章节: 28.4 模块在低电源模式下的运行 表 225:Cortex M33 核心模块在低电源模式下的运行情况 对于 WDOGx,表格显示: - 睡眠:开启 - 深度睡眠:可选 - 关机:可选 深度关机:关闭 从这张表中,我了解到 WDOG 操作至少可以在深度睡眠和关机模式下配置。 为了更好地了解其行为,我使用 KW47-Loc 评估板进行了测试。 测试条件: - 已启用 WDOG - WDOG 刷新由 vApplicationIdleHook() 执行 - PWR_EnterLowPower() 由 FreeRTOS vPortSuppressTicksAndSleep() 执行 - 观察进入低功耗状态后是否发生看门狗复位 测试结果: 案例 1 等待=0,停止=0 → 未发生看门狗RESET 案例 2 等待=1,停止=0 → 看门狗复位发生 案例3 等待=0,停止=1 → 未发生看门狗复位 我的理解是,当看门狗复位时,设备进入低功耗状态,vApplicationIdleHook() 不再执行,而看门狗继续运行,最终超时。 但是,只有当 WAIT=1 且 STOP=0 时才会发生看门狗 RESET,而当 STOP=1 时则不会发生看门狗 RESET。 由于这个结果,我很难理解在低功耗电源模式下,WAIT 和 STOP 位是如何实际应用于看门狗操作的。 请您澄清以下几点? 1.当设备通过 PWR_EnterLowPower() 进入低功耗模式时,WDOG 操作是由 WAIT 位控制还是由 STOP 位控制? 2. 观察到的结果表明设备实际上进入了睡眠模式而不是深度睡眠模式,还是应该解释为进入了深度睡眠模式? 3. STOP 位是否对应于电源模式章节中描述的深度睡眠模式,还是指不同的低功耗状态? 4. 表 225 中的下列条目应该如何解释与 WDOG WAIT 和 STOP 控制位相关的内容? - WDOGx:可选的(深度睡眠) - WDOGx:可选的(掉电) 感谢您的支持。 Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) @sofiaurueta 我进行了一些额外的测试,并将我的发现更新到了上面的帖子中。 请问我的理解是否正确? 谢谢! Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) @hyama你好,很抱歉回复晚了。   您是否使用 SDK 中的示例进行测试?您如何确认设备已进入深度睡眠模式? 根据你描述的情况,设备可能只是进入了睡眠模式。如果设备进入深度睡眠状态,结果则相反:STOP=1(情况 3)应该会导致超时,而 WAIT=1(情况 2)应该不会产生任何影响。WAIT=1 触发 RESET 这一事实表明设备进入了睡眠模式,而不是深度睡眠模式。   回答您的问题: 1.当设备通过 PWR_EnterLowPower() 进入低功耗模式时,WDOG 操作是由 WAIT 位控制还是由 STOP 位控制? CS[WAIT] 和 CS[STOP] 是独立模式的独立控制,其中 CS[WAIT] 控制睡眠模式下的 WDOG 操作,CS[STOP] 控制深度睡眠模式下的 WDOG 操作。 如果设备进入睡眠模式,则 CS[WAIT] 为活动控制。CS[STOP] 在这里不起作用,因为没有进入深度睡眠状态。如果设备配置为进入深度睡眠状态,则 CS[STOP] 将是活动控制。   2. 观察到的结果表明设备实际上进入了睡眠模式而不是深度睡眠模式,还是应该解释为进入了深度睡眠模式? 结果与进入睡眠模式相符,与深度睡眠不符。根据三个测试用例,系统进入睡眠模式。   3. STOP 位是否对应于电源模式章节中描述的深度睡眠模式,还是指不同的低功耗状态? 根据文档,CS[STOP] 对应于深度睡眠,测试中观察到的行为与此一致(假设没有进入深度睡眠)。   4. 表 225 中的下列条目应该如何解释与 WDOG WAIT 和 STOP 控制位相关的内容? 对于深度睡眠,“可选”意味着如果 CS[STOP]=1 并且配置了总线时钟以外的时钟源,则 WDOG 可以在深度睡眠中运行。对于调试模式和停止模式,必须使用总线时钟以外的时钟源。使用总线时钟,看门狗在架构上可以“启用”,但它的时钟就消失了,除非选择不同的时钟源,例如 32K_CLK。 此致, 索菲亚。 Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) 嗨@sofiaurueta 感谢您之前的解释。 > 您是否使用 SDK 中的任何示例进行测试?您如何确认设备已进入深度睡眠模式? 关于您的问题,该测试并非在 SDK 示例项目上进行。这是在我们基于 NXP SDK 的应用程序上执行的。 为了验证设备是否进入深度睡眠模式,我进行了一些额外的调查,发现进入低功耗模式时会执行以下路径: vPortSuppressTicksAndSleep() -> PWR_EnterLowPower() -> PM_EnterLowPower() -> PM_EnterLowPowerMode() -> CMC_EnterLowPowerMode() 在 CMC_EnterLowPowerMode() 中,SDK 在执行 WFI 之前设置 SCB->SCR 寄存器中的 SLEEPDEEP 位。 我们理解,设置 SLEEPDEEP 位并执行 WFI 意味着设备进入深度睡眠模式。请问您对KW47的理解是否正确? 我这样问是因为我的 WDOG 测试结果似乎取决于 WAIT 位而不是 STOP 位。 感谢您的帮助。
View full article
iMX8qm ブートコア A72_0 こんにちは、NXPフォーラムの皆様、 iMX8qmで、A72コアから起動できますか?SCUFWはそれを許可していますか? よろしくお願いします。 Re: iMX8qm Boot Core A72_0 まず既存の flash_ca72 ターゲットで処理を進めてください。u-boot-atf.bin は置き換えないでください。u-boot-atf-a72.bin を使用コックピット/マルチAPイメージフローを意図的に使用しない限り。 証拠はこの違いを示している。 flash_ca72は、通常のAコアブートターゲットと同じ基本ブートイメージですが、A53ではなくA72にロードされるものとして説明されています。 u-boot-atf.bin は、ATF と U-Boot を組み合わせたイメージです: bl31.bin加えて u-boot.bin/ u-boot-hash.bin . u-boot-atf-a72.binflash_cockpitターゲットに表示され、イメージには2つのAPペイロードが含まれています。1つはA53用、もう1つはA72用です。 -ap u-boot-atf.bin a53 0x80000000 ... -ap u-boot-atf-a72.bin a72 0xC0000000 ... 。 したがって、重要なセレクタは単なるファイル名ではありません。それはIMX-MKIMAGE -APです...A72 ...ターゲットの議論。単一の A72 ブート イメージの場合、u-boot-atf.bin を使用する flash_ca72 は、文書化された意図と一致しています。ファイル名に -a72 が付加されていなくても、ターゲット ルールによってペイロードが A72 にロードされます。 推奨パス: 既存のターゲットを使用して、標準のA72専用イメージを作成します。 SOC=iMX8QM flash_ca72 を作成します Linux側ではCA72デバイスツリー/設定を使いましょう。NXPのドキュメントによると、i.MX8QM MEK CA72 DTBは2つのCortex-A72コアのみをサポートし、flash_ca72で構築された特別なブートイメージが必要です。 u-boot-atf-a72.bin を予約するflash_cockpitのように、2つ目のA72 APイメージを明示的にパッケージ化するフローの場合、ただしBSPのsoc.makが使わない限りコメントやリリースノートには、それとは異なる記載がある。 起動時にイメージが実際にA72パスに入っていることを確認します。make V=1 SOC=iMX8QM flash_ca72によって生成されるimx-mkimageコマンドを確認するか、iMX8QM/soc.makを調べます。AP ラインが a72 を使用していることを確認してください。 要点:現在の flash_ca72 参照を u-boot-atf.bin として扱う。意図的なものです。u-boot-atf-a72.bin は、コックピット/マルチパーティション スタイルのイメージで使用される個別の A72 ペイロード用であり、flash_ca72 の自動的な代替ではありません。 Re: iMX8qm Boot Core A72_0 明確に/検証したい小さな点があります: `flash_ca72` ターゲットは現在 `u-boot-atf.bin` を参照しています。同じ構成で、別の `u-boot-atf-a72.bin` も利用可能です。 どのように進めていくべきか Re: iMX8qm Boot Core A72_0 はい、i.MX8QMではアプリケーションプロセッサのブートイメージをCortex-A53ではなくCortex-A72にターゲットに設定でき、SCFWはその流れを許可しています。NXPのimx-mkimageには、通常のA53ブートイメージのA72バリアントとして説明されているflash_ca72ターゲットがあり、ブート時間の最適化のためにA72をできるだけ早く起動することを目的としています。 重要な違いは次のとおりです。 リセット後の最初のコード: A72ではない。デバイスの起動フローは、引き続きROM/SCU/SCFWを経由して開始されます。 AP側ブートローダー/OSの起動:はい、A72で可能です。SCFWはDDRを初期化し、Cortex-Aイメージを読み込み、コアを起動して開始アドレスを設定します。 設定機構:ブートコンテナはa72用のAPイメージを指定することができます。例:例として、imx-mkimage の使用例で -ap ... a72 ... が示されています。 つまり答えはこうです:SCFWはA72からAPソフトウェアパスを起動できますが、A72はリセットやROMのブートマスターではなく、SCFWによってブートコンテナの設定に従って起動されます。 Re: iMX8qm Boot Core A72_0 あなたの具体的な手順に関して、重要な点は以下のとおりです。 SOC=iMX8QM flash_ca72 を作成します ブートローダーをA53ではなくA72にロードすることが目的であれば、概念的にはこれが正しいターゲットです。NXPコミュニティのガイダンスでは、flash_ca72は基本flash_b0イメージに似ていますが、A53ではなくA72に読み込まれています。 「ログなし」という症状は、必ずしもSCFWがA72ブートを拒否したことを意味するものではありません。よく知られている落とし穴として、A53とA72は同じログターミナルを使っていないため、通常のAコア/A53 UARTを監視しても、A72イメージが別のコンソールパスで動作しているか、後で失敗しても何も見つからないことがあります。 手順の検証: エリア 評価 SECOコンテナ mx8qmb0-ahab-container.img は i.MX8QM B0 に適したコンテナのクラスです。 ATF make PLAT=imx8qm bl31 は i.MX8QM に対して妥当です。 SCFW qm=B0 B=var_som V=1の構築はi.MX8QM B0 Varisciteターゲットと一致します。 U-Boot imx8qm_var_som_defconfig は確認すべき重要な項目です。A72 のブートパスおよびコンソール構成と互換性がある必要があります。 mkimageターゲット flash_ca72 は A72 ブートの場合にのみ適切なターゲットです。通常のLinux BSP起動では、文書化されたi.MX8QMコマンドがmake SOC=iMX8QM flashです。 SPLコピー u-boot-spl.bin は flash_ca72 にはおそらく関係ありません。そのターゲットは SPL ベースのフローではありません。 イメージの複製 トップレベルの make SOC=iMX8QM flash_ca72 を実行してから、手動で make -f soc.mak ... flash_ca72 を実行する必要はありません。簡潔なトップレベルコマンドを1つだけ使用してください。 画像生成部分を以下のように修正・整理します。 cd ~/iMX8/Scarthgap_New/MkImage/imx-mkimage cp ../../SECO/imx-seco-5.9.4.1-0333596/firmware/seco/mx8qmb0-ahab-container.img ./iMX8QM/ cp ../../SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0/scfw_tcm.bin ./iMX8QM/ cp ../../u-boot/uboot-imx/u-boot.bin ./iMX8QM/ cp ../../ATF/imx-atf/build/imx8qm/release/bl31.bin ./iMX8QM/ make clean SOC=iMX8QM flash_ca72 を作成します 次に以下を使用します。 iMX8QM/flash.bin また、このSCFWパスも修正/確認してください。 export TOOLS=/home/mkashyap/iMX8/Scarthgap_New/SCFW/Opt ./opt に展開しました、ただしエクスポートされた…/SCFW/Opt。Linuxのパスは大文字を区別しています。scfw_tcm.bin を生成したので実際のシェルには有効なツールパスが設定されていたかもしれませんが、この行を確認する必要があります。 推奨デバッグ手順: まず、標準イメージをビルドして起動します。 make SOC=iMX8QM flash これは、SECO + SCFW + ATF + U-Boot + ボードのDDR/コンソールが基本的に正しいことを確認するものです。Linuxユーザーガイドにはこの標準i.MX8QMが記載されていますflash.bin生成パス。 次に、以下のコマンドで再構築します。 SOC=iMX8QM flash_ca72 を作成します 通常のA53コンソールだけでなく、 A72コンソール/UARTも監視してください。A53とA72のログ端末は異なります。 それでも音がしない場合は、生成された flash.bin を比較してください。flash と flash_ca72 間のサイズ/レイアウトを確認し、Variscite U-Boot の設定が実際に A72 ブートターゲットで使用されるコンソールを有効にしていることを確認します。 つまり、直接的な答えはこうです:SCFWはflash_ca72イメージフローを通じてA72のCortex-A側を起動することを許可していますが、SCFWは初期のブートオーケストレーションを所有しています。あなたの手順はA72ブートにはほぼ有効ですが、重複したsoc.mak呼び出しを削除し、SCFWツールパスを確認し、そして何よりもA72のUART/コンソールを確認してください。 要点:i.MX8QM での A72 ブートは flash_ca72 を介してサポートされています。サイレントブートは、SCFW が単に A72 の起動を拒否しているというよりも、イメージ/設定/コンソールの問題である可能性が高いです。 Re: iMX8qm Boot Core A72_0 こんにちは、 以下の手順に従ってブートローダーを構築しましたが、ログも出力されずにブートローダーが失敗します。 添付された手順を検証していただけますか? よろしくお願いします。 mkdir Scarthgap_New cd Scarthgap_New   1. セキュリティ・コントローラバイナリーを入手する mkdir SECO CDセコ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-5.9.4.1-0333596.bin chmod +x imx-seco-5.9.4.1-0333596.bin ./imx-seco-5.9.4.1-0333596.bin   mkashyap@cse-dev02:~/iMX8/Scarthgap_New/SECO/imx-seco-5.9.4.1-0333596/firmware/seco$ ls -al 合計976 drwxrwxr-x 2 mkashyap mkashyap   4096 8月26日 22:21 . drwxrwxr-x 3 mkashyap mkashyap   4096 8月 26 22:21 .. -rw-r--r-- 1 mkashyap mkashyap    194 7月29日  2024 commit-id.txt -rw-r--r-- 1 mkashyap mkashyap 163840 2024年7月29日 mx8dxla1-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap 163840 2024年7月29日 mx8dxlb0-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap 76944 Jul 29 2024 mx8qmb0-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap  71312 7月29日  2024 mx8qxb0-ahab-container.img -rw-r--r-- 1 mkashyap mkashyap  78408 7月29日  2024 mx8qxc0-ahab-container.img -rwxr-xr-x 1 mkashyap mkashyap 423875 Jul 29 2024 SECO_FW_release_note.pdf mkashyap@cse-dev02:~/iMX8/Scarthgap_New/SECO/imx-seco-5.9.4.1-0333596/firmware/seco$   私たちはmx8qmb0-ahab-container.imgを使用します   CD ../../../..   2. ATFをダウンロードしてビルドする mkdir ATF cd ATF git clone https://github.com/varigit/imx-atf-b lf_v2.10_6.6.52-2.2.0_var01   cd imx-atf 出典 /opt/FSL-IMX-Xwayland/6.6-scarthgap/environment-setup-armv8a-poky-linux LDFLAGSを解除します PLAT=imx8qm bl31 を作成します   mkashyap@cse-dev02:~/iMX8/Scarthgap_New/ATF/imx-atf/build/imx8qm/release$ ls -al 合計76 drwxrwxr-x 7 mkashyap mkashyap  4096 8月26日 22:37 . drwxrwxr-x 3 mkashyap mkashyap  4096 8月 26 22:36 .. drwxrwxr-x 3 mkashyap mkashyap  4096 8月26日 22:37 bl31 -rwxrwxr-x 1 mkashyap mkashyap 45213 8月26日 22:37 bl31.bin drwxrwxr-x 2 mkashyap mkashyap 4096 8 月 26 日 22:37 ライブラリ drwxrwxr-x 2 mkashyap mkashyap 4096 8月26日 22:37 libc drwxrwxr-x 2 mkashyap mkashyap 4096 8 月 26 日 22:37 libwrapper drwxrwxr-x 2 mkashyap mkashyap 4096 8月26日 22:37 romlib   CD ../../../../../   3. SCFWをダウンロードしてビルドする    mkdir SCFW    cd SCFW     wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2018q4/gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz sudo tar xf gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz -C ./opt     git clone https://github.com/varigit/imx-sc-firmware.git -b 1.17.0 cd imx-sc-firmware/src/scfw_export_mx8qm_b0     export TOOLS=/home/mkashyap/iMX8/Scarthgap_New/SCFW/Opt clean-qm を作成する    qm R=B0 B=var_som V=1 にする     mkashyap@cse-dev02:~/iMX8/Scarthgap_New/SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0$ ls -al 合計 3384    drwxrwxr-x 11 mkashyap mkashyap    4096 8月26日 22:47 .    drwxrwxr-x  6 mkashyap mkashyap    4096 8月26日 22:47 ..    drwxrwxr-x  3 mkashyap mkashyap    4096 8月26日 22:47 掲示板    drwxrwxr-x  3 mkashyap mkashyap    4096 8月26日 22:44 デバイス    drwxrwxr-x 25 mkashyap mkashyap    4096 Aug 26 22:47 ドライバ    drwxrwxr-x  2 mkashyap mkashyap    4096 8月26日 22:44 main    -rwxrwxr-x 1 mkashyap mkashyap 184448 8 月 26 日 22:47 scfw_tcm.bin -rwxrwxr-x 1 mkashyap mkashyap 2787784 8月26日 22:47 scfw_tcm.elf    -rw-rw-r-- 1 mkashyap mkashyap 513123 8 月 26 日 22:47 scfw_tcm.map    drwxrwxr-x  4 mkashyap mkashyap    4096 8月26日 22:44 soc    drwxrwxr-x 26 mkashyap mkashyap    4096 8月26日 22:44 ss    drwxrwxr-x  9 mkashyap mkashyap    4096 8月26日 22:47 svc    drwxrwxr-x 10 mkashyap mkashyap    4096 8月26日 22:44 test    drwxrwxr-x  2 mkashyap mkashyap    4096 8月26日 22:44 utilities     CD ../../../../../     4. u-bootをビルドする    mkdir u-boot    cd u-boot     git clone https://github.com/varigit/uboot-imx.git -b lf_v2024.04_6.6.52-2.2.0_var01 cd uboot-imx        cp ../../SECO/imx-seco-5.9.4.1-0333596/firmware/seco/mx8qmb0-ahab-container.img ./mx8qm-ahab-container.img    cp ../../SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0/scfw_tcm.bin ./mx8qm-mek-scfw-tcm.bin mrproper を作る    imx8qm_var_som_defconfig を作成する    make -j8     CD ../../     5. 画像を作成する mkdir MkImage cd MkImage     git clone https://github.com/varigit/imx-mkimage-b lf-6.6.52_2.2.0_var01 cd imx-mkimage        cp ../../SECO/imx-seco-5.9.4.1-0333596/firmware/seco/mx8qmb0-ahab-container.img ./iMX8QM/    cp ../../SCFW/imx-sc-firmware/src/scfw_export_mx8qm_b0/build_mx8qm_b0/scfw_tcm.bin ./iMX8QM/    cp ../../u-boot/uboot-imx/u-boot.bin ./iMX8QM/    cp ../../u-boot/uboot-imx/spl/u-boot-spl.bin ./iMX8QM/    cp ../../ATF/imx-atf/build/imx8qm/release/bl31.bin ./iMX8QM/     SOC=iMX8QM flash_ca72 を作成します     cd iMX8QM    make -f soc.mak SOC=iMX8QM MKIMG=../mkimage_imx8 PAD_IMAGE=./pad_image.sh flash_ca72        mkashyap@cse-dev02:~/iMX8/Scarthgap_New/MkImage/imx-mkimage/iMX8QM$ ls -al 合計6792    drwxrwxr-x  3 mkashyap mkashyap    4096 8月26日 23:08 .    drwxrwxr-x 13 mkashyap mkashyap    4096 8月 26 23:06 ..    -rwxrwxr-x  1 mkashyap mkashyap   45213 8月26日 23:06 bl31.bin    -rwxrwxr-x  1 mkashyap mkashyap    2564 8月 26 22:59 expand_c_define.sh    -rw-rw-r-- 1 mkashyap mkashyap 1895424 8 月 26 日 23:08 flash.bin    -rw-rw-r--  1 mkashyap mkashyap       9 Aug 26 23:06 head.hash    -rwxrwxr-x  1 mkashyap mkashyap    2078 Aug 26 22:59 mkimage_fit_atf.sh    -rw-r--r-- 1 mkashyap mkashyap 76944 8 月 26 日 23:02 mx8qmb0-ahab-container.img    -rwxrwxr-x 1 mkashyap mkashyap 184448 8 月 26 日 23:03 scfw_tcm.bin    drwxrwxr-x  2 mkashyap mkashyap    4096 8月26日 22:59 scripts    -rwxrwxr-x 1 mkashyap mkashyap 13271 8 月 26 日 22:59 soc.mak    -rwxrwxr-x 1 mkashyap mkashyap 1631521 8 月 26 日 23:06 u-boot-atf.bin    -rw-rw-r-- 1 mkashyap mkashyap 1500440 8 月 26 日 23:04 u-boot.bin    -rw-rw-r-- 1 mkashyap mkashyap 1500449 8 月 26 日 23:06 u-boot-hash.bin    -rw-rw-r-- 1 mkashyap mkashyap 139387 8 月 26 日 23:04 u-boot-spl.bin     生成された flash.bin はブートローダーイメージとして使用されました Re: iMX8qm Boot Core A72_0 こちらから始められます: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101/ta-p/1124236 https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Getting-started/ta-p/1121153 SCFWのリファレンス/ポーティングドキュメントは、独立した公開リファレンスマニュアルではなく、NXP SCFWポーティングキット内に提供されています。 NXPの i.MX ソフトウェア&開発ページからキットをダウンロードしてください。ご使用のi.MX BSPに対応するリリースを選択してください。NXPは、提供するバイナリとの互換性を維持するために、対応するポーティングキットを必要とします。 ライセンスに同意し、付属の.binファイルを実行してください。インストーラ。 以下をご覧ください: doc/pdf/sc_fw_port.pdf — SCFW移植ガイドの詳細 doc/pdf/ — SCFW APIユーザーガイド、リリースノートおよび関連ドキュメント src/ — SoC固有のSCFWエクスポートアーカイブ このキットには、ソースコードとオブジェクトコードが混在して含まれています。基板依存のカスタマイズは、エクスポートされたボードソースで行われます。通常はplatform/board/mx8 _ /の下で、board.cなどのファイルも含まれます;SCFWのコアの多くはオブジェクトのみのままで、パブリックキットを通じて変更することはできません。 UG10165年の一般的な i.MX Porting Guideには「Porting System Controller Firmware」の章があり、BSPやmeta-imx-scfwとの統合について説明しています。 Re: iMX8qm Boot Core A72_0 SCFWファームウェアの修正を行うためのSCFWリファレンスマニュアルや設計マニュアルはどこで入手できますか? Re: iMX8qm Boot Core A72_0 SCFWで独自のカスタマイズされたログを取得するにはどうすればよいですか? ありがとう モハン
View full article
What are the differences between J-Flash and MCUXpress IDE when using OTFAD? What is the difference between J-Flash and MCUXpress IDE when applying OTFAD? I am currently testing OTFAD configuration using an RT1010 EVK. I used the MCUXpress SPT program to configure OTFAD and download the firmware. I set the BOOT mode of the configured EVK to FlexSPI Boot mode. I have a question regarding JTAG access afterward. Although I did not configure any JTAG security settings, the J-Flash program connects to the target, but I cannot read or rewrite the flash memory afterwards. However, if I build the original project in MCUXpress IDE and download it using a feature like "Debug & Download?", I can download a version where OTFAD is not configured. I would like to know the difference between these two programs. Why is access not possible in J-Flash? But why is it possible in the IDE? i.MXRT Security Re: What are the differences between J-Flash and MCUXpress IDE when using OTFAD? Dear @TnseoRnr , 1. Why can't Flash be accessed in J-Flash? J-Flash relies on its own Flash algorithm and J-Link configuration. For external Flash on i.MX RT devices, the programming tool typically needs to first load a Flash driver algorithm into the on-chip RAM and execute it. This RAM-resident code is responsible for FlexSPI initialization, erase operations, and programming. If the SEGGER Flash Loader, JLinkScript, FlexSPI LUT, or FCB configuration used by the current J-Flash project does not match the device state after SPT configuration, you may encounter a situation where the debugger can connect to the core, but cannot reliably read, erase, or program the external Flash. 2. Why can Flash still be accessed from MCUXpresso IDE? The MCUXpresso IDE download and debug flow is typically more than a simple JTAG-based write to external Flash. Instead, it performs a complete target initialization and RAM-resident Flash driver procedure: Downloads a Flash driver into the internal RAM of the i.MX RT device. → Initializes the FlexSPI interface. → Buffers the application image in segments and invokes Flash erase/program APIs. Similarly, LinkServer uses a .cfx Flash driver and performs downloading through a reset → run Flash driver → program sequence. As a result, MCUXpresso IDE may be able to reinitialize the Flash and successfully perform erase/program operations, even when a J-Flash project is not properly configured for the current OTFAD or FlexSPI state. Best Regards, Shelly
View full article
KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) Hello, I am reading the KW47 Reference Manual and I am confused about the relationship between the WDOG low-power modes and the system power modes. In the WDOG chapter, the Control and Status register contains the following bits: - WAIT: "Enables WDOG to operate when the chip is in Wait mode." - STOP: "Enables WDOG to operate when the chip is in Stop mode." The WDOG chapter also states that: - The selected WDOG clock source must remain active in Stop mode. - For Debug and Stop modes, a clock source other than the bus clock must be used. On the other hand, the Power Modes chapter describes: Sleep mode: - CPU execution halted - Core clock gated off - System clock and bus clock may continue running Deep Sleep mode: - Core clock gated off - System clock gated off - Bus clock gated off Based on these descriptions, it seems reasonable to interpret: - Wait mode ≈ Sleep mode - Stop mode ≈ Deep Sleep mode However, I have not been able to find any explicit statement in the Reference Manual confirming this mapping. My questions are: 1. Does WDOG Wait mode correspond to the Power Mode Sleep mode on KW47? 2. Does WDOG Stop mode correspond to the Power Mode Deep Sleep mode on KW47? 3. Or are Wait/Stop WDOG-specific CPU states that are different from the SoC power modes? 4. Is there any Reference Manual section or Application Note that explicitly describes this relationship? Thank you for your help. Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) Hello, hope you are doing well.   The terminology used in the KW47 Reference Manual is consistent with interpreting the WAIT and STOP fields in the WDOG control register as references to chip/core low-power states, rather than as WDOG-specific CPU states. I would describe the relationship as functional correspondence rather than a strict equivalence. In that sense, WDOG WAIT corresponds to the Wait/Sleep class condition, where CPU execution is halted but the system and bus clocks may remain available. WDOG STOP corresponds to the Stop/Deep-Sleep class condition, where the core, system, and bus clocks are gated and the watchdog can continue only if it is configured to use a clock source that remains active in that mode.   Best regards, Sofia. Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) Hello Sofia, Thank you for your previous explanation. Based on your reply, my understanding is: - WDOG WAIT corresponds to a Wait/Sleep-class low-power condition. - WDOG STOP corresponds to a Stop/Deep-Sleep-class low-power condition. - The relationship is a functional correspondence rather than a strict one-to-one mapping. After reviewing the KW47 Reference Manual again, I found the following section: 28.4 Module operation in low power modes Table 225: Cortex M33 core module operation in low power modes For WDOGx, the table shows: - Sleep : ON - Deep Sleep : Optional - Power Down : Optional - Deep Power Down : OFF From this table, I interpreted that WDOG operation can be configured in at least Deep Sleep and Power Down modes. To better understand the behavior, I performed a test using a KW47-Loc evaluation board. Test conditions: - WDOG enabled - WDOG refresh is performed from vApplicationIdleHook() - PWR_EnterLowPower() is executed from FreeRTOS vPortSuppressTicksAndSleep() - Observe whether a watchdog reset occurs after entering the low-power state Test results: Case 1 WAIT=0, STOP=0 → No watchdog reset occurred Case 2 WAIT=1, STOP=0 → Watchdog reset occurred Case 3 WAIT=0, STOP=1 → No watchdog reset occurred My interpretation is that when a watchdog reset occurred, the device entered a low-power state where vApplicationIdleHook() was no longer executed while the watchdog continued running and eventually timed out. However, a watchdog reset occurred only when WAIT=1 and STOP=0, while no watchdog reset occurred when STOP=1. Because of this result, I am having difficulty understanding how the WAIT and STOP bits are actually applied to watchdog operation during low-power modes. Could you please clarify the following points? 1. When the device enters a low-power mode through PWR_EnterLowPower(), is WDOG operation controlled by the WAIT bit or the STOP bit? 2. Does the observed result indicate that the device is actually entering Sleep mode rather than Deep Sleep mode, or should it be interpreted as entering Deep Sleep mode? 3. Does the STOP bit correspond to the Deep Sleep mode described in the Power Modes chapter, or does it refer to a different low-power state? 4. How should the following entries in Table 225 be interpreted with respect to the WDOG WAIT and STOP control bits? - WDOGx : Optional (Deep Sleep) - WDOGx : Optional (Power Down) Thank you for your support. Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) @sofiaurueta  I performed some additional testing and updated the post with my findings above. Could you please let me know if my interpretation is correct? Thank you. Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) Hi @hyama , I apologize for the late reply.   Are you testing with any example from the SDK? How are you confirming that the device is entering Deep Sleep mode? From the behavior you described, it is possible that the device is only entering Sleep mode. If the device were entering Deep Sleep, the results would be the opposite: STOP=1 (Case 3) should have caused the timeout, and WAIT=1 (Case 2) should have had no effect. The fact that it is WAIT=1 that triggers the reset is consistent with the device entering Sleep mode, not Deep Sleep.   Answering your questions: 1. When the device enters a low-power mode through PWR_EnterLowPower(), is WDOG operation controlled by the WAIT bit or the STOP bit? CS[WAIT] and CS[STOP] are independent controls for independent modes where CS[WAIT] controls WDOG operation in Sleep mode, and CS[STOP] controls WDOG operation in Deep Sleep mode. In the case that the device enters Sleep mode, CS[WAIT] is the active control. CS[STOP] has no effect here because Deep Sleep is not entered. If the device were instead configured to enter Deep Sleep, CS[STOP] would be the active control.   2. Does the observed result indicate that the device is actually entering Sleep mode rather than Deep Sleep mode, or should it be interpreted as entering Deep Sleep mode? The results are consistent with Sleep mode entry and are inconsistent with Deep Sleep. Based on the three test cases, Sleep mode is being entered.   3. Does the STOP bit correspond to the Deep Sleep mode described in the Power Modes chapter, or does it refer to a different low-power state? Based on the documentation, CS[STOP] corresponds to Deep Sleep, and the behavior observed in the tests is consistent with this (assuming that Deep Sleep was not entered).   4. How should the following entries in Table 225 be interpreted with respect to the WDOG WAIT and STOP control bits? The "Optional" for Deep Sleep means the WDOG can operate in Deep Sleep if CS[STOP]=1 and a clock source other than the bus clock is configured. For Debug and Stop modes, a clock source other than the bus clock must be used. Using the bus clock the watchdog can be "enabled" architecturally but its clock is gone, unless a different clock source is selected, for example, 32K_CLK. Best regards, Sofia. Re: KW47: Relationship between WDOG Wait/Stop modes and Power Modes (Sleep/Deep Sleep) Hi @sofiaurueta  Thank you for your previous explanation. >Are you testing with any example from the SDK? How are you confirming that the device is entering Deep Sleep mode? Regarding your question, the test was not performed on an SDK example project. It was performed on our application based on the NXP SDK. To verify whether the device enters Deep Sleep mode, I performed some additional investigation and found that the following path is executed when entering low-power mode: vPortSuppressTicksAndSleep() -> PWR_EnterLowPower() -> PM_EnterLowPower() -> PM_EnterLowPowerMode() -> CMC_EnterLowPowerMode() In CMC_EnterLowPowerMode(), the SDK sets the SLEEPDEEP bit in the SCB->SCR register before executing WFI. Our understanding is that setting the SLEEPDEEP bit and executing WFI means that the device enters Deep Sleep mode. Could you please confirm whether this understanding is correct for KW47? I am asking because my WDOG test results appear to depend on the WAIT bit rather than the STOP bit. Thank you for your help.
View full article
OTFADを使用した場合、J-FlashとMCUXpress IDEの違いは何ですか? OTFADを適用する際のJ-FlashとMCUXpress IDEの違いは何ですか? 現在、RT1010 EVKを使ってOTFADの設定をテストしています。 OTFADの設定とファームウェアのダウンロードには、MCUXpress SPTプログラムを使用しました。 設定済みのEVKのブートモードをFlexSPIブートモードに設定しました。 その後のJTAGアクセスについて質問があります。 JTAGのセキュリティ設定は設定していませんが、J-Flashプログラムはターゲットに接続します。ただし、その後フラッシュメモリの読み書きはできません。 しかし、MCUXpress IDEで元のプロジェクトを構築し、「Debug & Download?」のような機能を使ってダウンロードすると、OTFADが設定されていないバージョンをダウンロードできます。 この2つのプログラムの違いを知りたいです。 なぜJ-Flashではアクセスできないのですか? では、なぜIDEで可能なのでしょうか? i.MX RT Security Re: What are the differences between J-Flash and MCUXpress IDE when using OTFAD? @TnseoRnr様、 1. なぜJ-FlashでFlashにアクセスできないのか? J-Flashは独自のフラッシュアルゴリズムとJ-Link構成に依存しています。i.MX RTデバイス上の外部フラッシュの場合、プログラミングツールは通常、まずオンチップRAMにフラッシュドライバアルゴリズムを読み込み実行する必要があります。このRAM常駐コードは、FlexSPIの初期化、消去操作、およびプログラミングを担当します。 現在のJ-Flashプロジェクトで使用されているSEGGER Flash Loader、JLinkScript、FlexSPI LUT、またはFCB構成がSPT設定後のデバイス状態と一致しない場合、デバッガはコアに接続できるものの、外部フラッシュを確実に読み取ったり消去したりプログラムできなくなることがあります。 2. なぜMCUXpresso IDEからまだFlashにアクセスできるのか? MCUXpresso IDEのダウンロードおよびデバッグフローは、単なるJTAGベースの外部フラッシュへの書き込み以上のものです。代わりに、完全なターゲット初期化およびRAM常駐フラッシュドライバ手順を実行します。 i.MX RTデバイスの内部RAMにFlashドライバをダウンロードします。→ FlexSPIインターフェースを初期化します。→ アプリケーション画像をセグメントごとにバッファし、Flash消去やプログラムAPIを呼び出します。 同様に、LinkServer は .cfx ファイルを使用します。フラッシュドライバーをリセットしてダウンロードを行い→フラッシュドライバー→プログラムシーケンスを実行します。 その結果、MCUXpresso IDEは、J-Flashプロジェクトが現在のOTFADやFlexSPIの状態に正しく設定されていなくても、フラッシュの初期化や消去・プログラム操作を正常に実行できる可能性があります。 よろしくお願いいたします。 シェリー
View full article
Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environment Hi everyone, I'm currently working on a Flash driver that runs in SRAM (specifically, in DTCM without cache enabled for convenience). I've run into some issues and would appreciate your insights. Project background: I have two projects: one includes the C40 driver, and the other (which I'll call fls_drv_demo) does not. My goal is to compile the driver in the C40-enabled project, place it at address 0x00500000 via the AT linker directive, and then in fls_drv_demo, use memcpy to copy it to the intended DTCM address. After that, I hardcode the function addresses and call them to observe Flash behavior changes for verification. What I've done so far: In the C40-enabled project, I placed all C40 IP-layer functions into the .ramcode section and collected them in the flash_driver section. Custom functions for initialization and programming are placed in the .Fls_Api_Tab section, also collected into flash_driver. Linker scripts have been modified accordingly. The current problem: In the fls_drv_demo project, when I call a function pointer—whether it's Fls_Init or a programming function like ((uint32_t (*)(const uint32_t, const uint8_t*, const uint32_t))(0x2000702C | 1))(0x00540000, flswritearray, 16); —the execution always jumps to 0x00406764 after some internal IP-layer function completes. Specifically: Fls_Init executes successfully. However, during the write function, after the internal C40_Ip_MainInterfaceSectorErase finishes and is about to return (pop), the PC pointer ends up at 0x00000000. My suspicion: I'm wondering whether some internal functions are still being compiled into .text or .mcal.text sections, causing the program to access the wrong stub area and leading to this behavior. Or is there some additional setup step I'm missing? I'm completely stuck at this point and would really appreciate any suggestions or guidance. Apologies if the phrasing is a bit off—this was translated with AI assistance. I've attached some screenshots of the project and the issue for reference. Thanks in advance!   Linker file configuration in the C40 driver project 20260825-102549.jpg20260825-102549.jpg20260825-102549.jpg20260825-102549.jpg20260825-102549.jpg20260825-102549.jpg20260825-102549.jpg20260825-102549.jpg20260825-102549.jpg The .map file (function and stub region address allocation) generated after modifying the linker in the C40 driver project 20260825-103800.jpg20260825-103800.jpg20260825-103800.jpg20260825-103800.jpg20260825-103800.jpg20260825-103800.jpg20260825-103800.jpg20260825-103800.jpg20260825-103800.jpg 20260825-103746.jpg20260825-103746.jpg20260825-103746.jpg20260825-103746.jpg20260825-103746.jpg20260825-103746.jpg20260825-103746.jpg20260825-103746.jpg20260825-103746.jpg   The specific contents of the fls_drv_demo project 20260825-103909.jpg20260825-103909.jpg20260825-103909.jpg20260825-103909.jpg20260825-103909.jpg20260825-103909.jpg20260825-103909.jpg20260825-103909.jpg20260825-103909.jpg   When running the write function (at 0x2000702C), it goes into the internal RTD library function C40_Ip_MainInterfaceSectorErase (at 0x200074EC). At 0x20007502, it jumps to 0x20007B52, and then the PC points to the address stored at 0x20007B54, which is 0x00406764. Subsequently, when executing the pop instruction at 0x00406778, the value of r3 is as shown in the figure, pointing to 0x2001FFD8. 0x2001FFD8 then points to 0x20007BA8, and the value at 0x7BA8 is 0x00000000, causing the program to crash/run away. 20260825-105216.jpg20260825-105216.jpg20260825-105216.jpg20260825-105216.jpg20260825-105216.jpg20260825-105216.jpg20260825-105216.jpg20260825-105216.jpg20260825-105216.jpg 20260825-110659.jpg20260825-110659.jpg20260825-110659.jpg20260825-110659.jpg20260825-110659.jpg20260825-110659.jpg20260825-110659.jpg20260825-110659.jpg20260825-110659.jpg 20260825-110639.jpg20260825-110639.jpg20260825-110639.jpg20260825-110639.jpg20260825-110639.jpg20260825-110639.jpg20260825-110639.jpg20260825-110639.jpg20260825-110639.jpg 20260825-110710.jpg20260825-110710.jpg20260825-110710.jpg20260825-110710.jpg20260825-110710.jpg20260825-110710.jpg20260825-110710.jpg20260825-110710.jpg20260825-110710.jpg 1.jpg1.jpg1.jpg1.jpg1.jpg1.jpg1.jpg1.jpg1.jpg 2.jpg2.jpg2.jpg2.jpg2.jpg2.jpg2.jpg2.jpg2.jpg 20260825-111431.jpg20260825-111431.jpg20260825-111431.jpg20260825-111431.jpg20260825-111431.jpg20260825-111431.jpg20260825-111431.jpg20260825-111431.jpg20260825-111431.jpg 20260825-130859.jpg20260825-130859.jpg20260825-130859.jpg20260825-130859.jpg20260825-130859.jpg20260825-130859.jpg20260825-130859.jpg20260825-130859.jpg20260825-130859.jpg 20260825-130909.jpg20260825-130909.jpg20260825-130909.jpg20260825-130909.jpg20260825-130909.jpg20260825-130909.jpg20260825-130909.jpg20260825-130909.jpg20260825-130909.jpg Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi @yunaidejiezi, Yes, you need to place all the functions called from the C40_Ip to SRAM. In the below example, I had to place functions from SchM_Mem_43_INFLS.h to SRAM too.  https://community.nxp.com/t5/S32K-Knowledge-Base/S32K312-C40-Ip-SRAM-RTD-500-DS35/ta-p/2074245 Yes, there is this example in RTD 4.0.0. Mem_InFls_Example_S32K344 danielmartynek_0-1787734274169.pngdanielmartynek_0-1787734274169.pngdanielmartynek_0-1787734274169.pngdanielmartynek_0-1787734274169.pngdanielmartynek_0-1787734274169.pngdanielmartynek_0-1787734274169.pngdanielmartynek_0-1787734274169.pngdanielmartynek_0-1787734274169.pngdanielmartynek_0-1787734274169.png Regards, Daniel Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi, @danielmartynek     Thank you for your reply.     The disassembly at 0x00406764 is running in the fls_drv_demo project. The function it actually points to may not be OsIf_SuspendAllInterrupts() from the C40 driver project, but the instructions executed are indeed those for disabling interrupts. I think this function might have been inlined at compile time, since its address is not found in the .map file, so this factor may be irrelevant. Next, I will try to move the functions called internally by c40_ip into the .flash_driver section. In addition, regarding your suggestion to use the Mem_43_InFls MCAL driver, are there any reference examples of making a Flash driver with MCAL? Actually, I have never used MCAL at all. Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi @yunaidejiezi, Based on the disassembly, you forgot to move the OsIf_SuspendAllInterrupts() function to DCTM, all the functions called by the C40_Ip driver must be in DCTM. I would recommend using the Mem_43_InFls MCAL driver, which handles the copy-to-RAM automatically at runtime and avoids all of this manual dependency tracking. BR, Daniel Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi @yunaidejiezi, This looks like a compatibility issue. I can see many different RTD versions in the screenshots you posted. Please use a single RTD version per S32DS IDE installation, and the IDE version should match the release notes of the RTD you want to use. You can have multiple S32DS IDE installations if you need to work with more RTD versions. Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi,@danielmartynek  It's possible that my description wasn't clear enough. The reason multiple versions appear in the screenshots is that I have several projects open at the same time: FLs_drv_demo, Mem_InFls_Example_S32K344, and S32K312_C40_Ip_SRAM_RTD_500_DS35. For the project I created, the RTD version is as shown in Figure 2 in the previous post: S32K3_RTD_4_0_0_P24_D2405_ASR_REL_4_4_REV_0000_20240515. The versions of the two projects you recommended to me are: S32K3_RTD_5_0_0_D2408_ASR_REL_4_7_REV_0000_20241002 S32K3_RTD_6_0_0_QLP04_D2508_ASR_REL_4_7_REV_0000_20250822 My question is: due to the RTD version differences, in the fls_drv_demo project, the Mem_43_INFLS_Driver component is not available in Mcal, and the file SchM_Mem_43_INFLS is not generated in my project. This is clearly shown in the project manager comparison between the two projects in the screenshots below. 20260827-163404.jpg20260827-163404.jpg20260827-163404.jpg20260827-163404.jpg20260827-163404.jpg20260827-163404.jpg20260827-163404.jpg 20260827-163400.jpg20260827-163400.jpg20260827-163400.jpg20260827-163400.jpg20260827-163400.jpg20260827-163400.jpg20260827-163400.jpg Overall, my current RTD version likely does not support developing a flash driver based on the Mem_43_INFLS_Driver. Therefore, I would like to know: for a project that uses the C40 component, is it mandatory to generate the following functions and place them in SRAM? 20260827-163521.jpg20260827-163521.jpg20260827-163521.jpg20260827-163521.jpg20260827-163521.jpg20260827-163521.jpg20260827-163521.jpg Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi,@danielmartynek  Thank you for your reply. I have opened two projects: Mem_InFls_Example_S32K344 and S32K312_C40_Ip_SRAM_RTD_500_DS35. Now I have discovered a very serious issue: it seems that the RTD version I imported does not contain the Mem_43_INFLS_Driver component. After opening Mem_InFls_Example_S32K344, I could not find Mem_43_INFLS_Driver in the MCAL layer. Also, in the S32K312_C40_Ip_SRAM_RTD_500_DS35 project, it appears that Mem_43_INFLS_Driver is not used (since I did not see any calls to Mem_FLs layer functions in main). However, the RTD folder in the Project Explorer does contain SchM_Mem_43_INFLS.c/.h. In the .map file, functions like SchM_Enter_Mem_43_INFLS_MEM_EXCLUSIVE_AREA_04 are also placed into the SRAM area. I would like to know: when using C40, is SchM_Mem_43_INFLS.c/.h mandatory to be included? Does C40 internally call functions like SchM_Enter_Mem_43_INFLS_MEM_EXCLUSIVE_AREA_04? 20260827-102145.jpg20260827-102145.jpg20260827-102145.jpg20260827-102145.jpg20260827-102145.jpg20260827-102145.jpg There is no Mem_43_INFLS_Driver in the Mem_InFls_Example_S32K344 project   20260827-102152.jpg20260827-102152.jpg20260827-102152.jpg20260827-102152.jpg20260827-102152.jpg20260827-102152.jpg This is my RTD version   20260827-102157.jpg20260827-102157.jpg20260827-102157.jpg20260827-102157.jpg20260827-102157.jpg20260827-102157.jpg The RTD version of the Mem_InFls_Example_S32K344 project. 20260827-103214.jpg20260827-103214.jpg20260827-103214.jpg20260827-103214.jpg20260827-103214.jpg20260827-103214.jpg The RTD version of the S32K312_C40_Ip_SRAM_RTD_500_DS35 project Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi @yunaidejiezi, Regardless of the RTD version you use, there must be an MCAL FLS driver in the Flash example added by default. If you do not see it there and it cannot be added, there is a problem with the IDE - probably because you have multiple RTD versions in a single IDE installation. Yes, you also need the SchM_Mem_43_INFLS.h functions in SRAM. https://community.nxp.com/t5/S32K-Knowledge-Base/S32K312-C40-Ip-SRAM-RTD-500-DS35/ta-p/2074245 BR, Daniel Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi,@danielmartynek  I apologize for the delayed reply. What I can confirm is that I have never tried installing multiple versions of RTD simultaneously in the IDE. However, it seems that the MCAL FLS driver you mentioned does exist in my setup—just under a different name than Mem_43_INFLS_Driver, so I'm not entirely sure. I've placed it below for reference. 20260828-095254.jpg20260828-095254.jpg20260828-095254.jpg20260828-095254.jpg 20260828-095249.jpg20260828-095249.jpg20260828-095249.jpg20260828-095249.jpg I would like to know whether this component is usable. It does appear to have a built-in feature for automatically placing code into the SRAM region.     Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi @yunaidejiezi, I see, thank you. This is because the RTD releases are based on different AUTOSAR specifications. AUTOSAR 4.4.0 uses the Fls driver, while AUTOSAR 4.7.0 (R21-11) uses Mem_43_INFLS. The naming convention changed, but the functionality is very similar. As you mentioned, there is also the option to Load Access Code On Job Start. The Configuration Tool layout is different - the SRAM address configuration is located on a different tab, but otherwise the configuration is equivalent. Regards, Daniel Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi @yunaidejiezi, Thanks for the feedback, sorry to hear about the issues. If you have any problems with the MCAL driver, let me know. Regards, Daniel Re: Some issues encountered during Flash driver development on S32K344 under the RTD 4.0.0 environme Hi,@danielmartynek     I'm very sorry for not replying to this thread for so long. Over the past week, I've been trying the previous approach—developing based on the C40 component. However, I still couldn't make it work, and all sorts of issues left me overwhelmed and without the motivation to continue communicating. Over the weekend, I thought it over and decided to temporarily abandon this route and switch to developing with MCAL instead. This might take a lot more time, but I will calm down and focus on solving the problems step by step. I would like to express my most sincere gratitude to you for all the advice and help you have provided.
View full article
使用 opencv_extra 进行 bitbake 下载时出现问题 大家好,论坛! 我尝试下载 LF-6.6.52_2.2.x 版本 imx-image-full 所需的软件包,但在下载 OpenCV extra 包时遇到了问题:要么耗时过长,要么下载失败。 khang at GL72-6QF in /devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp $ bitbake imx-image-full --runall=fetch Loading cache: 100% |#######################################################################################################################################################################| Time: 0:00:02 Loaded 5730 entries from dependency cache. Parsing recipes: 100% |#####################################################################################################################################################################| Time: 0:00:00 Parsing of 3654 .bb files complete (3653 cached, 1 parsed). 5731 targets, 377 skipped, 3 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "2.8.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "aarch64-poky-linux" MACHINE = "imx8mpevk" DISTRO = "fsl-imx-xwayland" DISTRO_VERSION = "6.6-scarthgap" TUNE_FEATURES = "aarch64 armv8a crc crypto" TARGET_FPU = "" meta meta-poky meta-oe meta-multimedia meta-python meta-freescale meta-freescale-3rdparty meta-freescale-distro meta-imx-bsp meta-imx-sdk meta-imx-ml meta-imx-v2x meta-nxp-demo-experience meta-nxp-matter-baseline meta-nxp-openthread meta-arm meta-arm-toolchain meta-clang meta-gnome meta-networking meta-filesystems meta-qt6 meta-parsec meta-tpm meta-virtualization = " : " Sstate summary: Wanted 0 Local 0 Mirrors 0 Missed 0 Current 887 (0% match, 100% complete)################################################################################## | ETA: 0:00:00 Initialising tasks: 100% |##################################################################################################################################################################| Time: 0:00:05 NOTE: Executing Tasks Setscene tasks: 887 of 887 Setscene tasks: 887 of 887 WARNING: opencv-4.10.0.imx-r0 do_fetch: Failed to fetch URL git://github.com/opencv/opencv_extra.git;destsuffix=extra;name=extra;branch=4.x;protocol=https, attempting MIRRORS if available ERROR: opencv-4.10.0.imx-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp/tmp/sysroots-uninative/x86_64-linux/usr/bin:/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp/tmp/work/armv8a-mx8mp-poky-linux/opencv/4.10.0.imx/recipe-sysroot-native/usr/bin/python3-native:/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/sources/poky/scripts:/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp/tmp/work/armv8a-mx8mp-poky-linux/opencv/4.10.0.imx/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp/tmp/work/armv8a-mx8mp-poky-linux/opencv/4.10.0.imx/recipe-sysroot/usr/bin/crossscripts:/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp/tmp/work/armv8a-mx8mp-poky-linux/opencv/4.10.0.imx/recipe-sysroot-native/usr/sbin:/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp/tmp/work/armv8a-mx8mp-poky-linux/opencv/4.10.0.imx/recipe-sysroot-native/usr/bin:/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp/tmp/work/armv8a-mx8mp-poky-linux/opencv/4.10.0.imx/recipe-sysroot-native/sbin:/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp/tmp/work/armv8a-mx8mp-poky-linux/opencv/4.10.0.imx/recipe-sysroot-native/bin:/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/sources/poky/bitbake/bin:/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp/tmp/hosttools"; export HOME="/home/khang"; LANG=C git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all clone --bare --mirror https://github.com/opencv/opencv_extra.git /home/khang/Workspace/Ref/Platforms/NXP/iMX/NXP/yocto_dl/v6.6/git2/github.com.opencv.opencv_extra.git --progress failed with exit code 128, see logfile for output ERROR: opencv-4.10.0.imx-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/opencv/opencv_extra.git;destsuffix=extra;name=extra;branch=4.x;protocol=https') ERROR: Logfile of failure stored in: /devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/build-xwayland-8mp/tmp/work/armv8a-mx8mp-poky-linux/opencv/4.10.0.imx/temp/log.do_fetch.91350 ERROR: Task (/devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/sources/meta-imx/meta-imx-bsp/recipes-support/opencv/opencv_4.10.0.imx.bb:do_fetch) failed with exit code '1' NOTE: Tasks Summary: Attempted 1774 tasks of which 1773 didn't need to be rerun and 1 failed. Summary: 1 task failed: /devel/NXP/SW/imx-yocto-bsp-6_6_52-2_2_2/sources/meta-imx/meta-imx-bsp/recipes-support/opencv/opencv_4.10.0.imx.bb:do_fetch Summary: There was 1 WARNING message. Summary: There were 2 ERROR messages, returning a non-zero exit code. 请大家多多支持! 谢谢,并致以最诚挚的问候! Khang i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: Issue bitbake download with opencv_extra 我这边进行了验证,运行以下命令后,大约花了 1 个小时才完成 git 源代码下载。 $ bitbake opencv -c patch -f 您可以尝试以下变通方法。 请进入 downloads/git2 文件夹执行以下操作: git clone --mirror https://github.com/opencv/opencv_extra.git github.com.opencv.opencv_extra.git   touch github.com.opencv.opencv_extra.git.done Re: Issue bitbake download with opencv_extra 嗨@yipingwang , 看起来像是网络/位置问题。我尝试通过 VPN 连接,完全成功了。 顺祝商祺! K.
View full article