Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
FreeRTOS system cannot run (cannot run immediately after creation) After my project program was built according to the specifications, I found that it could not run on the FreeRTOS system (I have investigated and it is not a memory shortage issue, nor should it be a priority issue). My S32DS compiler version is shown in the image below. The task failed to be created. Does this version not support FreeRTOS? Or are there any special configuration requirements? Re: freertos 系统跑不通问题(创建即跑不通) Hello @sunshine88 , The application is not actually stuck because of the sys_msleep(5000) call itself. The behavior indicates that the time base used by sys_now() is not incrementing. Therefore, the timeout condition inside sys_msleep() can never be reached. In the OSIF configuration screenshot, OsIfUseSystemTimer is enabled and the operating system type is set to FreeRTOS. However, the references under OsIfCounterConfig_0 , including the counter and system timer clock references, appear to be incomplete or empty. Adding the PIT component alone does not guarantee that the OSIF time base is correctly configured and initialized. Please do not modify the TCP/IP Stack source code or implement another delay workaround at this point. Instead, I recommend the following: Import the original lwip_FreeRTOS_s32K358 example from the installed TCP/IP Stack package. Build and run the original example without any modifications. Check whether sys_now() increments in the original example. Compare the FreeRTOS, BaseNXP/OSIF, PIT, clock, interrupt, and TCP/IP Stack configurations with your custom project. Verify that the generated initialization sequence includes the required BaseNXP/OSIF and timer initialization. We still need the information requested previously to analyze the custom project correctly: the exact MCU part number; the exact evaluation board or custom board; the original example or project type used as the starting point; whether the unmodified lwip_FreeRTOS_s32K358 example works on the same hardware; the generated implementation of sys_now() ; whether the FreeRTOS tick count returned by xTaskGetTickCount() is increasing. Please first check xTaskGetTickCount() . If it increases while sys_now() remains constant, the FreeRTOS scheduler and tick interrupt are running, and the problem is specifically in the OSIF time-base configuration or initialization. If xTaskGetTickCount() also remains constant, the problem is more fundamental and the FreeRTOS tick interrupt or scheduler configuration must be investigated. If possible, please also provide the complete project archive rather than configuration screenshots only. Without the generated configuration and initialization code, it is not possible to determine which timer or clock source is actually used by sys_now() . Best regards, Pavel Re: freertos 系统跑不通问题(创建即跑不通) Hello, I have created an LWIP program routine, but the Ethernet mainLoopTask task is stuck at sys_msleep(5000); unable to delay. When I step into this function, I find that startTime = sys_now(); the sys_now() function cannot count. My current configuration page is as follows. What could be causing this? I'm very confused. Re: freertos 系统跑不通问题(创建即跑不通) Hello @sunshine88 , The versions shown in your screenshots should support FreeRTOS. S32 Design Studio 3.5 Update 14, RTD 4.0.0, FreeRTOS 4.0.0, and TCP/IP Stack 1.0.4 appear to be the expected package combination, so this does not look like a general version compatibility issue. According to the code shown, the failure occurs directly in xTaskCreate(). Could you please provide the following information? The exact MCU part number and evaluation board or custom board being used. You previously mentioned S32K358, but please confirm the exact device and board. The name of the original example used as the starting point. The value returned by xTaskCreate(). The value printed by xPortGetFreeHeapSize() before and after the xTaskCreate() call. The configured values of configTOTAL_HEAP_SIZE, configSUPPORT_DYNAMIC_ALLOCATION, and the selected FreeRTOS heap implementation, for example heap_4.c. The exact point where the application stops, including the debugger call stack if it enters an assertion, exception, or HardFault handler. Please note that sufficient total MCU RAM does not necessarily mean that sufficient FreeRTOS heap is available. xTaskCreate() dynamically allocates both the task control block and the task stack from the FreeRTOS heap. Also, the 1024U stack-depth argument normally represents stack elements rather than bytes, so the actual allocation is larger than 1024 bytes on the Cortex-M7. As a baseline test, I recommend importing and running the original lwIP FreeRTOS example without modifications. Once the original example works, please add the additional task with a small stack, a normal priority, and a vTaskDelay() call inside its loop. This will help distinguish an environment or board configuration problem from an issue introduced by the additional task. I also noticed that your xTaskCreate() call uses a stack depth of 1024U, while the original working example uses 256U. Please restore the original value of 256U and test the unmodified example first. Note that this parameter specifies the number of stack elements, not the number of bytes, so using 1024U requires significantly more FreeRTOS heap.   Best regards, Pavel
View full article
Replacement of MIMX8QM6AVUFFAB with MIMX8QP6AVUFFAB Can we replace MIMX8QM6AVUFFAB with MIMX8QP6AVUFFAB Re: Replacement of MIMX8QM6AVUFFAB with MIMX8QP6AVUFFAB The replacement is practical if the design does not use the QuadMax-only compute/DSP resources and the QP-specific software and hardware checks pass.
View full article
I.MX6ULL ENET1 无法从物理层接收数据 I.M6ULL + 4.19.35 + KSZ 8081rnb  我们现场部署了300台这种设备。大多数情况下它们都能正常运行,业务/服务也能按预期运作。然而,我们偶尔会发现服务无法访问。经调查,我们发现 eth1 (ENET1) 停止接收数据包,即使其 LINK LED 指示灯常亮,ACT LED 指示灯有时闪烁。 此外,我们还验证了在 ENET1 上拔下并重新插入以太网电缆一次后,网络恢复正常。重启设备也能恢复它。请您帮忙分析一下可能的根本原因——是在物理层(PHY)还是媒体访问控制层(MAC)? 从该寄存器读取的值如下: 我们读取的寄存器列表包括 MAC 寄存器和 PHY 寄存器。由于篇幅较长,全文列于下一页。 命令: phy eth1 0x1读取 PHY 寄存器 1。 内存工具 i.MX6UL Linux Re: I.MX6ULL ENET1 can't recv data from phy 你好@240697273 我们读取的寄存器列表包括 MAC 寄存器和 PHY 寄存器。由于篇幅较长,全文列于下一页。 我找不到这些登记簿。请重新发送。 B,R
View full article
KW45B41Z EVK not programming over on board Debugger MCU Link. Hi, I am trying to program the KW45B41Z-EVK using the kw45b41zevk_hello_world SDK example code. When I start debugging, the onboard debugger gets detected, but then I get the following error: 0 Available SWD Devices detected. Connect a device and try again. I have connected the USB cable to J14 and left JP22 open (to program using the onboard debugger itself). Also, JP28 pins 1 and 2 are shorted, as mentioned in the KW45UM. However, even after that, I am unable to program and debug the example. I have also tried the kw45b41zevk_led_blinky SDK example, but it behaves in the same way. I also tried using an external debugger to debug the board by shorting JP22, as mentioned in the KW45UM, but I am getting the same issue. I have attached a screenshot of the issue I am facing. I also tried to erase the flash and write the image using the Secure Provisioning Tool. First, I entered ISP mode by shorting JP25 to enable SW4, then long-pressed SW4 and Reset (SW3). Once the Test Connection passed, I erased the flash (location 0x00000000, size 0x100000) successfully. Then I used the following image: ${SPT_INSTALL_BIN}\data\sample_data\targets\KW45B41Z8\source_images\kw45b41zevk_led_blinky.s19 I was able to build and program the image successfully, and the intended RGB LED1 is also blinking indicating that KW45B41Z microcontroller is working fine. However, even after this, I am still unable to program or debug the board. Re: KW45B41Z EVK not programming over on board Debugger MCU Link. Hi, @kaif1  Which IDE are you using?  MCUXpresso IDE or MCUXpresso for VS Code? Let me have a try on my side, then let you know the default jumper settings. Best regards, Christine. Re: KW45B41Z EVK not programming over on board Debugger MCU Link. Hi, @kaif1  Please refer to my jumper settings, and I verified on my local side, I can flash hello_world example into the board successfully. And I am using MCUXpresso IDE with SDK 25.12.00. Please have a try with my jumper settings and then let me know whether it works for you . Best regards, Christine. Re: KW45B41Z EVK not programming over on board Debugger MCU Link. Since the Secure Provisioning Tool can successfully flash and run code on the chip, the physical hardware is completely fine, meaning the "0 SWD Devices detected" error stems from a communication mismatch between your IDE's debug probe server and the onboard MCU-Link firmware. This is usually resolved by updating the MCU-Link firmware to the latest version compatible with your IDE, or by manually holding down the reset button during the connection sequence to prevent a low-power application state from locking out the debug interface.
View full article
how to read lpddr5's mr with imx95 HI experts:      As title , how to read LPDDR5's MR register with imx95 ?  I have reference to the BSP of imx8mp and imx9,  and found the code " lpddr4_mr_read"  . But I found that they are difference, and there is no mention of how to read MR in reference manual. Best Regards. Yocto Project Re: how to read lpddr5's mr with imx95 HI db16122: I want to read the "manufacturer id" in imx-oei for difference DDR compatible.   Re: how to read lpddr5's mr with imx95 please refer to User Guide for Config Tools for i.MX.-Which MR is most important? Re: how to read lpddr5's mr with imx95 IMX95 DDR initialized in the oei/ddr. An only MR write is used, no read examples. DDRC->DDR_SDRAM_CFG |= DDRC_DDR_SDRAM_CFG_MEM_EN_MASK; Thanks
View full article
i.MX95 19x19 EVK – M2-JODY-W6 Wi-Fi 卡的可用性和相机模块兼容性 您好,NXP团队, 我们正在与 NXP i.MX95 19x19 EVK (IMX95LPD5EVK-19) 合作开发 Android Automotive OS 项目。 我们想就以下问题获得澄清: 1. M2-JODY-W6 无线网卡 我们的 i.MX95 EVK 套件中不包含 M2-JODY-W6 Wi-Fi 卡。 请问您能否提供以下信息: - M2-JODY-W6 Wi-Fi 卡的供货情况 - 我们如何获得/购买这张卡 - NXP是否提供样品或推荐的订购渠道 - i.MX95 19x19 EVK 所需的任何文档或兼容性信息 2. 摄像头模块兼容性 我们还希望获得有关 i.MX95 19x19 EVK 官方支持/验证的相机模块的信息。 请问您能否提供以下信息: - 推荐/已验证的摄像头模块 - 确切的模块/零件编号 - 使用的相机传感器 - 硬件连接/接口信息 相关文件 - Linux/Android 驱动程序或软件支持信息 - 任何可用的参考设计或配置信息 板: NXP i.MX95 19x19 EVK 零件编号:IMX95LPD5EVK-19 软件: Android Automotive OS 16 NXP BSP 希望您能就以上问题提供指导。 谢谢,此致敬礼! 格纳纳·普拉桑纳·古纳卡拉 Re: i.MX95 19x19 EVK – M2-JODY-W6 Wi-Fi Card Availability and Camera Module Compatibility 你好, 第一个问题请提交技术案例,第二个问题请参考以下应用笔记: https://www.nxp.com/docs/en/application-note/AN14853.pdf 此致问候
View full article
i.P-384秘密鍵/ブラックブロブの利用ケースにおけるMX8DXL CAAMカバーの制限 こんにちは、NXPチームの皆様、 私たちは、i.MX8DXL CAAMにおけるECDSA P-384ブラックキー/ブロブのサポートを評価しています。 観察された結果 P-256 外部から提供された平文のP-256秘密鍵から開始します。 プレーンテキストキー → カバー → 黒いキーの塊 黒い塊から黒い鍵を復元する ECDSAの署名/確認 結果:合格 P-384(CAAM生成の黒鍵) ECDSA秘密鍵をKEY_COLOR_BLACKとして生成する COVER操作なしで秘密鍵からブラックブロブを生成する 黒い塊から黒い鍵を復元する ECDSAの署名/確認 結果:合格 P-384(外部平文秘密鍵) 外部から提供された平文のP-384秘密鍵(48バイト)から開始します。 プレーンテキストキー → カバー → 黒いキーの塊 黒い塊から黒い鍵を復元する ECDSAの署名/確認 結果:失敗 追加の観察 NXPのパッチに以下のコメントがあることに気づきました。 https://github.com/nxp-imx-support/imx_sec_apps/blob/master/caam-ecdsa-blackkey/patch/0002-caam-black-key-blob-feature.patch /* * KEYコマンドは32バイトに制限されているようなので、ロードを使うべきです * コマンドは最大64バイトまで読み込み可能です。 * * TODO: KEYコマンドは、より大きなキーをロードできるようにする必要があることを示しています * 32バイトより小さいが、実際には機能しない * * TODO: LOAD コマンドは最大 96 までロードできるはずです * バイトキーは実際には機能せず、64バイトに制限されています */ 我々も同様の挙動を観察した。 KEYコマンドの代わりにLOADコマンドを使用することで、48バイトのP-384秘密鍵を含む、32バイトを超える鍵を扱うことができます。 しかし、これは上記の問題を解決するものではありません。鍵は覆ってブロブに保存できますが、復元された黒鍵はECDSA署名や検証に成功裏に使用できません。   私たちの質問: CAAM COVER操作において、32バイトを超えるECC秘密鍵に対する既知の制限事項はありますか? COVER経由で外部のP-384平文秘密鍵をインポートし、それをECDSAのブラックキーとして使うことはサポートされているユースケースでしょうか? 観測された動作は、CAAMハードウェアの制限によるものなのでしょうか? 外部生成されたP-384平文秘密鍵をインポートし、それをECDSA操作のブラックキーとして使う推奨されるCAAM方法はありますか? 何かアドバイスをいただければ幸いです。 ありがとうございます。よろしくお願いいたします。 ホジャメス。 Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case 補足事項:   私たちの懸念はECDSAのユースケースに限られません。   COVERを介して外部のP-384秘密鍵をインポートすることがECDSAの標準ワークフローではないとしても、COVER操作自体の制限事項を理解しておきたいと考えています。   当社のアプリケーションでは、COVER操作はECDSA秘密鍵だけでなく、一般的な機密データの保護にも利用されることがあります。したがって、32バイトを超えるペイロードサイズのサポートは重要な考慮事項です。 我々のテストに基づくと、LOADコマンドの回避策を用いることで、32バイトを超えるペイロードを処理できることがわかった。約80バイト以下のペイロードは正常に動作するようですが、それより大きいサイズでは動作が不安定になります。これらの観察結果が、実際のCAAMの制限を反映しているのか、それとも実装上の問題を反映しているのかを理解したいと考えています。 また、ECDSAのユースケースとは独立して、COVER操作自体に文書化されたサイズ制限があるかどうかもNXPは明確にしていただけますか?   よろしくお願いします。 Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case このCAAM機能をテストするための環境を構築する必要があります。結果が出次第、ご連絡いたします。 Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case こんにちは、イーピンワンさん ご返信ありがとうございます。 >>この部分で、どのようなCAAMエラーが発生していましたか? >>エラーコードを教えてもらえますか? ECDSA関連のすべての操作には、以下のコードパッチを使用しています。 " https://github.com/nxp-imx-support/imx_sec_apps/blob/master/caam-ecdsa-blackkey/patch/0001-linux-imx-4.14.78_1.0.0_ga-ecdsa-primitives-using-caam.patch " 署名検証のために caam_ecdsa_verify() を呼び出すとき、 'ECDSA_VERIFY_FAIL (0)' を返します。 このエラーは「P-384 (external plaintext private key)」の場合のみ発生します。 >> アプリケーションノート「CAAMセキュアキーを用いた公開鍵暗号のAN12838強化」では、ブラックキーを用いたECDSA署名のデモが説明されていますが、同様の実装でテストしていますか? 私たちの成功例については、はい、似ています。 しかし、失敗したケース『P-384(外部平文秘密鍵)』については、 少し違います。鍵は外部から来ています。 よろしくお願いいたします。 Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case 「プレーンテキストキー → カバー → 黒キーの塊」 黒い塊から黒い鍵を復元する ECDSAの署名/確認 結果:失敗 この部分で、どのようなCAAMエラーが発生していましたか?エラーコードを教えてもらえますか?アプリケーションノート「CAAMセキュアキーを用いた公開鍵暗号のAN12838強化」では、ブラックキーを用いたECDSA署名のデモが説明されていますが、同様の実装でテストされていますか?ありがとう。 KEYコマンドの制限については、現在も調査中です。 Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case 失敗した場合、「KEY」コマンドと「FIFO STORE」コマンドを使って、平文の秘密鍵に基づいて黒鍵を生成していますか?失敗時に使われるCAAMの記述子(十六進形の単語)を捨てることは可能ですか?コマンドとパラメータを確認する方が簡単でしょう。ありがとう。 Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case こんにちは、イーピンワンさん >>失敗したCASEのために、 >>「KEY」コマンドと「FIFO STORE」コマンドを使っていますか? >>平文の秘密鍵に基づいて黒鍵を生成するのですか? いいえ、KEYコマンドではなくLOADコマンドを使用しています。 この場合、キーは48バイト(P384)です。 < https://github.com/nxp-imx-support/imx_sec_apps/blob/master/caam-ecdsa-blackkey/patch/0002-caam-black-key-blob-feature.patch > に記載されているとおりです。 「KEYコマンドは32バイトに制限されているようだ。だからロードを使うべきだ * コマンドは最大64バイトまで読み込める。 KEYコマンドで48バイトのキーを使用すると、DECOエラーが報告されます。 ジョブリングステータス: 0x40000106、 DECO、06h - 無効なKEYコマンド そこで、上記のパッチコードと同じLOADコマンドを使うようにコードを変更しました。 ありがとうございます。よろしくお願いいたします。
View full article
如何使用 IMX95 读取 LPDDR5 的 MR HI专家: 如题,如何使用imx95读取LPDDR5的MR寄存器?我参考了 imx8mp 和 imx9 的 BSP,并找到了代码“lpddr4_mr_read”。但我发现它们之间存在差异,而且参考手册中也没有提及如何阅读 MR。 顺祝商祺! Yocto Project Re: how to read lpddr5's mr with imx95 嗨 db16122: 我想读取imx-oei文件中的“制造商ID”,以区分DDR内存是否兼容。 Re: how to read lpddr5's mr with imx95 请参阅 i.MX 配置工具用户指南。MR最重要吗? Re: how to read lpddr5's mr with imx95 IMX95 DDR 在 oei/ddr 中初始化。 仅使用 MR 写入,没有读取示例。 DDRC->DDR_SDRAM_CFG |= DDRC_DDR_SDRAM_CFG_MEM_EN_MASK; 谢谢!
View full article
i.MX95 19x19 EVK – M2-JODY-W6 Wi-Fiカードの入手可能性とカメラモジュールの互換性 NXPチームの皆様、こんにちは。 私たちはAndroid オートモーティブ OSプロジェクトのためにNXP i.MX95 19x19 EVK(IMX95LPD5EVK-19)を使用しています。 以下の点についてご説明をいただきたい。 1. M2-JODY-W6 Wi-Fiカード M2-JODY-W6 Wi-Fiカードは、当社のi.MX95 EVKキットには含まれていません。 以下の情報を教えていただけますか: - M2-JODY-W6 Wi-Fiカードの入手可能性 - カードの取得・購入方法 - NXPがサンプルまたは推奨ご注文チャネルを提供するかどうか - i.MX95 19x19 EVKに必要なドキュメントや互換性情報 2. カメラモジュールの互換性 i.MX95 19x19 EVKで公式にサポート/検証済みのカメラモジュールに関する情報も提供していただけると幸いです。 以下の情報を提供していただけますか: - 推奨/検証済みカメラモジュール - 正確なモジュール/部品番号 - 使用カメラセンサ - ハードウェア接続/インターフェース情報 - ドキュメント - Linux/Androidドライバまたはソフトウェアのサポート情報 - 利用可能なリファレンス・デザインや構成情報 ボード: NXP i.MX95 19x19 EVK 部品番号:IMX95LPD5EVK-19 ソフトウェア: Android オートモーティブ OS 16 NXP BSP 上記の質問について、ご助言いただければ幸いです。 よろしくお願いいたします。 グナナ・プラサンナ・グナカラ Re: i.MX95 19x19 EVK – M2-JODY-W6 Wi-Fi Card Availability and Camera Module Compatibility こんにちは、 最初の質問については技術的なケースを開いてください。2つ目の質問については以下のANを参照してください:https://www.nxp.com/docs/en/application-note/AN14853.pdf  よろしくお願いします。
View full article
ubuntu では、mcuxpresso-secure-provisioning パッケージを使用して、固 定ファイルに名前を付けて、コアシートに書き込みます。 まず、私が使用したチップはMCXN947です。 mcuxpresso-secure-provisioning-26.09-1_amd64-ubuntu26.debパッケージをUbuntuシステムにダウンロードしてインストールしました。 では、このソフトウェアを使って署名され暗号化されたSBフォーマットファイルをどうやって生成すればいいのでしょうか? 私はビデオを見て、bin ファイルに署名と暗号化を行い、Windows システムで sb ファイルをチップに正常に書き込みました。 Ubuntuシステムを操作する方法に関するビデオはありますか?バイナリファイルに署名および暗号化するためのコマンドラインに関するドキュメントはありますか? よろしくお願いします。 Re: 在ubuntu上,怎样使用 mcuxpresso-secure-provisioning 软件给固件签名加密并烧写到芯片 こんにちは、 @justdomyself ドキュメント:https://docs.mcuxpresso.nxp.com/secure/latest/ MCXNデバイスのワークフローを説明する章: https://docs.mcuxpresso.nxp.com/secure/latest/06_processor_specific_workflow.html#n23x-n24x-n52x-n53x-n54x-n94x-device-workflow コマンドラインサポート:https://docs.mcuxpresso.nxp.com/secure/latest/08_command_line_operations.html 関連項目 securep.exe print - cli - examples UbuntuとWindowsのユーザー体験は非常に似ています。問題が発生した場合は、トラブルシューティングのセクションを参照してください。https: //docs.mcuxpresso.nxp.com/secure/latest/09_troubleshooting.html
View full article
FreeRTOSシステムは実行できません(作成直後は実行できません)。 仕様書に従ってプロジェクトプログラムを作成した後、FreeRTOSシステム上で実行できないことがわかりました(調査の結果、メモリ不足の問題ではなく、優先度の高い問題でもないことがわかりました)。S32DSコンパイラのバージョンは、以下の画像に示されています。 タスクの作成に失敗しました。このバージョンはFreeRTOSをサポートしていないのでしょうか?それとも、特別な設定要件があるのでしょうか? Re: freertos 系统跑不通问题(创建即跑不通) こんにちは、@sunshine88 さん。 申請が sys_msleep(5000) コール自体のせいで止まっているわけではありません。この動作は、 sys_now() で使用されている時間ベースが増加していないことを示しています。したがって、 sys_msleep() 内のタイムアウト条件には決して到達できません。 OSIF構成のスクリーンショットでは、 OsIfUseSystemTimer が有効になっており、オペレーティングシステムの種類はFreeRTOSに設定されています。しかし、 OsIfCounterConfig_0 の下の参照、カウンタとシステムタイマークロックの参照を含め、不完全または空であるようです。PITコンポーネントを追加するだけでは、OSIFタイムベースが正しく構成および初期化されることを保証するものではありません。 現時点では、TCP/IPスタックのソースコードを変更したり、別の遅延回避策を実装したりしないでください。代わりに、私は以下のことをお勧めします。 インストールされたTCP/IPスタックパッケージから元の lwip_FreeRTOS_s32K358 例をインポートしてください。 元のサンプルを一切変更せずにビルドして実行してください。 元の例で sys_now() が増加するかどうかを確認してください。 FreeRTOS、BaseNXP/OSIF、PIT、クロック、割り込み、およびTCP/IPスタックの設定を、カスタムプロジェクトと比較してください。 生成された初期化シーケンスに、必要なBaseNXP/OSIFおよびタイマーの初期化が含まれていることを確認してください。 カスタムプロジェクトを正しく分析するためには、以前にご依頼した情報が引き続き必要です。 正確なMCU部品番号; 正確な評価ボードまたはカスタムボード; 出発点として使用された元の事例またはプロジェクトの種類。 変更されていない lwip_FreeRTOS_s32K358 の例が同じハードウェアで動作するかどうか。 sys_now() の生成された実装。 xTaskGetTickCount() によって返される FreeRTOS ティック カウントが増加しているかどうか。 まず xTaskGetTickCount() を確認してください。 sys_now() が一定のままでが増加する場合、FreeRTOSスケジューラとティック割り込みが実行されており、問題は具体的にはOSIFタイムベースの設定または初期化にあります。 xTaskGetTickCount() も一定のままであれば、問題はより根本的なものであり、FreeRTOSのティック割り込みまたはスケジューラ構成を調査する必要があります。 可能であれば、構成スクリーンショットだけでなく、プロジェクト全体のアーカイブも提供してください。生成された構成コードと初期化コードがないと、 sys_now() が実際にどのタイマーまたはクロックソースを使用しているかを判断することはできません。 よろしくお願いいたします。 パベル Re: freertos 系统跑不通问题(创建即跑不通) こんにちは。LWIPプログラムルーチンを作成しましたが、Ethernet mainLoopTaskタスクがsys_msleep(5000);で停止してしまい、遅延させることができません。この関数をステップ実行すると、startTime = sys_now(); と表示されますが、sys_now()関数はカウントできません。現在の設定ページは以下のとおりです。何が原因でしょうか?非常に困惑しています。 Re: freertos 系统跑不通问题(创建即跑不通) こんにちは、@sunshine88 さん。 スクリーンショットに表示されているバージョンはFreeRTOSをサポートしているはずです。S32 Design Studio 3.5 アップデート14、RTD 4.0.0、FreeRTOS 4.0.0、およびTCP/IPスタック1.0.4これは予想されるパッケージの組み合わせのようで、一般的なバージョン互換性の問題とは思えません。 示されているコードによると、エラーはxTaskCreate()関数内で直接発生しています。以下の情報を教えていただけますか? 正確なMCU部品番号と評価ボード、またはカスタムボードが使われているのです。以前S32K358とおっしゃっていましたが、正確なデバイス名と基板名をお知らせください。 出発点として使用された元の例の名前。 xTaskCreate() によって返される値。 xTaskCreate() 呼び出しの前後で xPortGetFreeHeapSize() によって出力される値。 configTOTAL_HEAP_SIZE、configSUPPORT_DYNAMIC_ALLOCATION の設定値、および選択された FreeRTOS ヒープ実装 (例: heap_4.c)。 アプリケーションが停止する正確なポイント、特にアサーション、例外、ハードフォールハンドラに入るデバッガ呼び出しスタックも含まれます。 十分なMCU RAMがあっても、必ずしも十分なFreeRTOSヒープが利用できるとは限りません。xTaskCreate() は、FreeRTOS ヒープからタスク制御ブロックとタスクスタックの両方を動的に割り当てます。また、1024Uのスタック深度引数は通常、バイトではなくスタック要素を表すため、Cortex-M7の実際の割り当ては1024バイトより大きいです。 ベースラインテストとして、オリジナルのlwIP FreeRTOSサンプルを修正せずにインポートして実行することをお勧めします。元のサンプルが正常に動作したら、小さなスタックサイズ、通常の優先度、そしてループ内にvTaskDelay()呼び出しを含む追加タスクを追加してください。これにより、環境やボード構成の問題と、追加タスクによって引き起こされた問題を区別するのに役立ちます。 また、あなたの xTaskCreate() 呼び出しではスタック深度が 1024U であるのに対し、元の動作例では 256U を使用していることに気づきました。まず、元の値である256Uに戻し、変更を加えていないサンプルをテストしてください。このパラメータはバイト数ではなくスタック要素数を指定するため、1024Uを使うには大幅に多くのFreeRTOSヒープが必要です。   よろしくお願いします、 パベル
View full article
ベンダーのツールに関する経験 皆さん、こんにちは。ベンダーのハードウェアを扱う際に、ベンダーのツールを使った経験についてお聞かせください。例えば、NXPのLayerscapeシリーズやSTM32MP1シリーズのような製品について話してみましょう。私はNXPのLayerscape SoCの一つをベースにしたボードを作っていましたが、唯一提供されているツールが例えば、DDRはEclipseをベースにした**ピー音**IDEです。このツールの品質を考えれば、無料で提供しても文句は言わないでしょうが、ライセンス料はかなり高いです。IDEを使ってこれやあれをやりたいですか?頑張ってください。「私にできる精一杯」は、ほとんど100%正確ではなく、古い部分的なドキュメント、必ず答えが得られるフォーラム、誰かが対応してくれる、そして画面の内容がほとんど見えない240p動画です。DDRの立ち上げと検証にのみ使用し、残りの作業はこのツールなしで済ませたいと思っています。他のベンダーとの取引経験はいかがですか?TIはどうでしょうか?STのツールもいくつか見たことがありますが、確かにずっとシンプルに見えました。ただ、実際に使った経験はありません。 Re: Experience with vendor's tools こんにちは、 Eclipse ベースは老朽化しており、DDR ツール (DDR ストレス テスト ツール) は機能的ですが扱いにくく、ライセンス コストとの比較。品質比率は組み込みコミュニティでよく見られる不満です。ドキュメントのギャップは現実的で、AN(アプリケーションノート)は公式のツールドキュメントよりも優れたリソースであることが多いです。多くのエンジニアは、計画通りDDR PHYの開始やトレーニングに専念して使い、その後は次に進みます。   NXP Layerscape DDRの立ち上げに関する実践的なヒント 今のところはこれしか選択肢がないので: DDRストレステストツールのスタンドアロンバイナリ(CodeWarriorとは別)が利用可能な場合があり、そちらの方が軽量です。 NXPの i.MX/Layerscape コミュニティ(GitHub)には、ツール誘導作業を省略できるリファレンスDDR設定があります。 LSDK(Layerscape SDK) スクリプトは、DDR initパラメータをIDEよりも透明に公開することがあります。 よろしくお願いします。
View full article
Ibis model for Lx2160a Hi guys  I'd like to know  how can i get a ibis model for lx2160a, can anybody can help me with it ? Thanks a lot Yuan Re: Ibis model for Lx2160a IBIS models are not public, please create case here:  https://support.nxp.com/s/?language=en_US  And share your NDA. Thanks
View full article
i.MX95 19x19 EVK – M2-JODY-W6 Wi-Fi Card Availability and Camera Module Compatibility Hello NXP Team, We are working with the NXP i.MX95 19x19 EVK (IMX95LPD5EVK-19) for an Android Automotive OS project. We would like to get clarification on the following: 1. M2-JODY-W6 Wi-Fi Card The M2-JODY-W6 Wi-Fi card is not included in our i.MX95 EVK kit. Could you please provide information on: - Availability of the M2-JODY-W6 Wi-Fi card - How we can obtain/purchase the card - Whether NXP provides a sample or recommended ordering channel - Any required documentation or compatibility information for the i.MX95 19x19 EVK 2. Camera Module Compatibility We would also like information about a camera module officially supported/validated with the i.MX95 19x19 EVK. Could you please provide: - Recommended/validated camera module - Exact module/part number - Camera sensor used - Hardware connection/interface information - Relevant documentation - Linux/Android driver or software support information - Any available reference design or configuration information Board: NXP i.MX95 19x19 EVK Part Number: IMX95LPD5EVK-19 Software: Android Automotive OS 16 NXP BSP We would appreciate your guidance on the above questions. Thanks and Regards, Gnana Prasanna Gunakala Re: i.MX95 19x19 EVK – M2-JODY-W6 Wi-Fi Card Availability and Camera Module Compatibility Hello,  For your first question please open a technical case, for the second question please refer to the following AN: https://www.nxp.com/docs/en/application-note/AN14853.pdf  Regards.
View full article
在ubuntu上,怎样使用 mcuxpresso-secure-provisioning 软件给固件签名加密并烧写到芯片 First, the chip I used is  MCXN947. I  have  downloaded and installed mcuxpresso-secure-provisioning-26.09-1_amd64-ubuntu26.deb  package in my ubuntu system。 So how to use this software  to  generare a sb formate file which has been signed and encrypted ? I  have watch the video  and  signed and encrypted  the  bin file ,   and write the sb  file  to the  chip sucsessfuly in windows system. Is there have  video to  operate on  ubuntu system?  Is there have the document about the  cmd line  to  signe and encryt  bin file   ? Thanks Re: 在ubuntu上,怎样使用 mcuxpresso-secure-provisioning 软件给固件签名加密并烧写到芯片 Hi @justdomyself  Documentation: https://docs.mcuxpresso.nxp.com/secure/latest/ Chapter describing workflow for MCXN devices: https://docs.mcuxpresso.nxp.com/secure/latest/06_processor_specific_workflow.html#n23x-n24x-n52x-n53x-n54x-n94x-device-workflow Command line support: https://docs.mcuxpresso.nxp.com/secure/latest/08_command_line_operations.html See also  securep.exe print-cli-examples User experience on Ubuntu and Windows are very similar. If you find any problem, refer to Troubleshooting section: https://docs.mcuxpresso.nxp.com/secure/latest/09_troubleshooting.html
View full article
Power ArchitectureのS32 Design Studio v2.1におけるPEmicro GDBローンチ失敗 こんにちは、 私がテストしている基板はMTRCKTSPS5744P(3相PMSMモーター制御開発キットとMPC5744P MCU)です。 何らかの理由で、ダウンロード処理がうまくいきません。 ダウンロードに失敗した後、デバッグボタンをクリックすると、このウィンドウが表示されます。 eunwoo_lee_0-1789496057004.png このエラーメッセージが表示されたウィンドウがポップアップします。 サービス開始順序の誤り PEmicro GDB起動失敗:GDBサーバーがターゲットプロセッサへの接続を確立できませんでした。接続と電源を確認してください。デバッグ構成の起動設定が正確であることを確認してください。 コンソールパネルにこのメッセージが表示されます。 127.0.0.1 から 127.0.0.1 を経由して接続します。ポート「53438」から7224への接続 PEエラー:警告。部品が稼働している間はレジスタが読み取れません。 PEエラー:警告。部品が稼働中はメモリを読み取れません。@0 (4バイト) PEエラー:警告。部品が稼働中はメモリを読み取れません。@0 (4バイト) PEエラー:警告。部品が稼働している間はレジスタが読み取れません。 PEエラー:警告。部品が稼働中はメモリを読み取れません。@0 (4バイト) PEエラー:警告。部品が稼働中はメモリを読み取れません。@0 (4バイト) PEエラー:警告。パートが実行中はバイナリを書けません。40001000 - 長さ: 0 - 値: バイナリデータ PEエラー:警告。パートが実行中はバイナリを書けません。40001000 - 長さ: 460 - 値: バイナリデータ PEエラー:警告。パートが実行中はバイナリを書けません。40001460 - 長さ: 460 - 値: バイナリデータ PEエラー:警告。パートが実行中はバイナリを書けません。400018c0 - 長さ: 460 - 値: バイナリデータ PEエラー:警告。パートが実行中はバイナリを書けません。40001d20 - 長さ:2e0 - 値:バイナリデータ PE-エラー:GDBクライアント処理:例外が発生しました:プログラム例外! 例外クラス: EIDCONNCLOSEDGRACEFULLY メッセージ:接続が正常に切断されました。 アドレス 0X0046EA89 127.0.0.1 経由で「127.0.0.1」から切断されました。ポート「53438」による7224からの切断 ターゲットとの接続が切断されました。 この問題に対する解決策をご存知ですか? ありがとうございます。 Re: PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 こんにちは、 この問題に対する解決策をご存知ですか? メッセージの通り、レジスタをその場で書き込む・読み取ることはできません。まずデバッガーでコードの実行を停止し、その後レジスタやメモリなどを修正できます。 MPC5744Pはユーザーコードを実行中で、P&Eプローブがデバイスを停止できないため、すべてのメモリ/レジスタアクセスが失敗し、ダウンロード操作が中止されます。 これはフラッシュプログラミングの問題というよりは、デバッガがダウンロード前にMPC5744Pを停止させることに失敗しているように見えます。 例えば、マイクロコントローラでSWT0を有効にしたSWはありますか? それとも、ソフトウェアが一切動作していない、まっさらなサンプルなのでしょうか? よろしくお願いいたします。 ピーター Re: PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 フラットリボンケーブルを交換することで、この問題を解決しました。ケーブルの接続性は良さそうに見えるが、デバッガーとの接続に失敗する。ケーブルがクロストークや線間ノイズの影響を受けやすいのだと思います。最終的には、ケーブルを短くすることで解決しました。
View full article
imx95でlpddr5のmrを読み取る方法 HIの専門家: タイトルにあるように、imx95でLPDDR5のMRレジスタを読み取る方法を教えてください。imx8mpとimx9のBSPを参照して、「lpddr4_mr_read」というコードを見つけました。しかし、私は違いがあり、リファレンス・マニュアルにはMRの読み方についての記述がありません。 よろしくお願いいたします。 Yocto Project Re: how to read lpddr5's mr with imx95 HI db16122: DDR互換性の違いを確認するために、imx-oeiの「製造元ID」を読み取りたい。 Re: how to read lpddr5's mr with imx95 i.MX.-Which の設定ツールに関するユーザーガイドをご参照くださいMRが最も重要ですか? Re: how to read lpddr5's mr with imx95 IMX95 DDRはoei/ddrで初期化されました。 MR書き込みのみを使用し、読み取りの例は示していません。 DDRC->DDR_SDRAM_CFG |= DDRC_DDR_SDRAM_CFG_MEM_EN_MASK; よろしくお願いします。
View full article
MIMXRT700 EVK 电池连接和外部供电说明 嗨,团队、 我们目前正在开发 MIMXRT700 EVK,需要澄清电池连接和外部电路板加电。 我们注意到 PMIC IC 有一个 VBAT 输入,但我们无法确定 EVK 上可以直接连接电池的确切连接器/接头。 请您帮助我们解决以下问题: 请向我们指示 RT700 EVK 上可用的官方电池连接器/接头。 连接器/接头在主板上的确切位置 支持的电池类型/规格 推荐的连接器/部件号 我们还想了解使用外部电源适配器为 RT700 EVK 加电,同时仍支持闪存和调试的正确程序。 目前,我们正在通过 USB 调试端口为电路板供电和调试。我们想知道 从外部为电池和适配器供电时需要进行哪些更改/设置。在此设置中,通过USB/J-Link进行刷新和调试 是否将继续有效。 谢谢& , Suhas 评估板 Re: MIMXRT700 EVK Battery Connection and External Power Up Clarification 你好@suhas1503、 感谢您对 NXP MIMXRT 系列的关注! PMIC 支持电池供电,但在 EVK 上,默认设置为 DNP。您可以在电路图上找到 J37。 详细描述可以在 “MIMXRT700-EVK 板用户手册 [UM12188]” 中找到。请看一看。 Gavin_Jia_0-1779932324256.pngGavin_Jia_0-1779932324256.pngGavin_Jia_0-1779932324256.png Gavin_Jia_1-1779932333707.pngGavin_Jia_1-1779932333707.pngGavin_Jia_1-1779932333707.png 对于 RT700,没有关于 PMIC 电池选择的具体要求;您可以根据 PCA9422 数据表选择电池。 此外,RT700-EVK 支持外接电源适配器供电,并支持 5V 电源。它通过 J45 连接,通过短接 J2 上的针脚 1 和 2 选择电源。详细信息请参见 “MIMXRT700-EVK 板用户手册 [UM12188]” 第 2.2 节。 由外部电源供电时,板载调试器继续正常运行。 致以最诚挚的问候, Gavin Re: MIMXRT700 EVK Battery Connection and External Power Up Clarification 您好, 我正在使用 MIMXRT700-EVK,并将 Murata 2EL M.2 模块连接到 RT700-EVK 上的 M.2 插槽。 我正在测试 MCUXpresso SDK 中的不同示例。 硬件设置: - 主板:MIMXRT700-EVK - M.2 模块:村田 2EL M.2 模块 Murata 2EL 模块连接到 M.2 插槽 电源由JP37通过电池提供。 - MCUXpresso SDK:SDK_26_03_00_MIMXRT700-EVK 观察到的行为: 当 RT700-EVK 通过 JP37 使用电池供电时: 1.hello_world 示例运行正常。 2. xaf_record 示例运行正常。 3. edgefast_bluetooth_examples/peripheral_ht 示例构建和烧录成功,但应用程序在运行时初始化期间失败。 UART 日志如下: BLE外设HT演示开始…… [sdio] 错误:卡片初始化失败 [wifi_io] 错误:SDIO 驱动程序初始化失败。 断言错误“API_SUCCESS == result”: 文件“中间件/wireless/ethermind/port/pal/mcux/bluetooth/controller/controller_wifi_nxp.c” 第 120 行 但是,当我使用相同的 edgefast_bluetooth_examples/peripheral_ht 示例,并分别使用 J54 USB 调试端口和 J45 端口连接适配器时,该示例可以正常工作。 因此,EdgeFast Bluetooth 示例在 J54/J45 配置下可以正常工作,但当使用电池通过 JP37 为电路板供电时则会失败。 hello_world 和 xaf_record 示例在 JP37 电池配置下运行正常。 预期行为: 我希望当 RT700-EVK 通过 JP37 使用电池供电并且连接了 Murata 2EL M.2 模块时,edgefast_bluetooth_examples/peripheral_ht 示例能够成功初始化蓝牙控制器。 问题: 1. 使用 Murata 2EL M.2 模块运行 EdgeFast Bluetooth 示例时,JP37 电源配置是否受支持? 2. 当 JP37 与电池一起使用时,Murata 2EL M.2 模块是否需要任何额外的跳线、开关或电源配置? 3. 为什么在使用 JP37 电池配置时,应用程序会报告以下错误? [sdio] 错误:卡片初始化失败 [wifi_io] 错误:SDIO 驱动程序初始化失败。 4. 当使用 JP37 电池供电时,无线模块是否有任何电源时序或 M.2 电源使能配置要求? 5. 对于使用 Murata 2EL M.2 模块、EdgeFast 蓝牙示例和电池供电的情况,是否有推荐的 RT700-EVK 跳线和电源配置? 如果您需要任何其他信息,例如完整的 UART 日志、跳线配置、SDK 配置、原理图详情或功率测量,请告诉我。 谢谢! Bluetooth Example Fails with SDIO/Wi-Fi Initialization Error When Powered by Battery Through JP37 您好, 我正在使用 MIMXRT700-EVK,并将 Murata 2EL M.2 模块连接到 RT700-EVK 上的 M.2 插槽。 我正在测试 MCUXpresso SDK 中的不同示例。 硬件设置: - 主板:MIMXRT700-EVK - M.2 模块:村田 2EL M.2 模块 Murata 2EL 模块连接到 M.2 插槽 电源由JP37通过电池提供。 - MCUXpresso SDK:SDK_26_03_00_MIMXRT700-EVK 观察到的行为: 当 RT700-EVK 通过 JP37 使用电池供电时: 1.hello_world 示例运行正常。 2. xaf_record 示例运行正常。 3. edgefast_bluetooth_examples/peripheral_ht 示例构建和烧录成功,但应用程序在运行时初始化期间失败。 UART 日志如下: BLE外设HT演示开始…… [sdio] 错误:卡片初始化失败 [wifi_io] 错误:SDIO 驱动程序初始化失败。 断言错误“API_SUCCESS == result”: 文件“中间件/wireless/ethermind/port/pal/mcux/bluetooth/controller/controller_wifi_nxp.c” 第 120 行 但是,当我使用相同的 edgefast_bluetooth_examples/peripheral_ht 示例,并分别使用 J54 USB 调试端口和 J45 端口连接适配器时,该示例可以正常工作。 因此,EdgeFast Bluetooth 示例在 J54/J45 配置下可以正常工作,但当使用电池通过 JP37 为电路板供电时则会失败。 hello_world 和 xaf_record 示例在 JP37 电池配置下运行正常。 预期行为: 我希望当 RT700-EVK 通过 JP37 使用电池供电并且连接了 Murata 2EL M.2 模块时,edgefast_bluetooth_examples/peripheral_ht 示例能够成功初始化蓝牙控制器。 问题: 1. 使用 Murata 2EL M.2 模块运行 EdgeFast Bluetooth 示例时,JP37 电源配置是否受支持? 2. 当 JP37 与电池一起使用时,Murata 2EL M.2 模块是否需要任何额外的跳线、开关或电源配置? 3. 为什么在使用 JP37 电池配置时,应用程序会报告以下错误? [sdio] 错误:卡片初始化失败 [wifi_io] 错误:SDIO 驱动程序初始化失败。 4. 当使用 JP37 电池供电时,无线模块是否有任何电源时序或 M.2 电源使能配置要求? 5. 对于使用 Murata 2EL M.2 模块、EdgeFast 蓝牙示例和电池供电的情况,是否有推荐的 RT700-EVK 跳线和电源配置? 如果您需要任何其他信息,例如完整的 UART 日志、跳线配置、SDK 配置、原理图详情或功率测量,请告诉我。 谢谢! Re: Bluetooth Example Fails with SDIO/Wi-Fi Initialization Error When Powered by Battery Through JP3 你好@suhas1503、 我认为最可能的原因是 EVK 上的 M.2 所需的电源来自其他元器件,而不是 VBAT。我建议你看一下原理图。特别是第 5 页和第 6 页。 在第 5 页中,找出所有与 JP33 类似的跳线帽,并将它们从 SYS_5V0 切换到 VBAT。在表 6 中,找出所有与 JP11 类似的跳线帽,并将它们从 PMIC 切换到 DCDC_3V3。最终目标是使 VBAT 能够为相应的模块供电。从我粗略一看来看,关键是要确保 MCU_3V3 和 WL_3V3 的电源配置正确。 (如果您有新的问题,请随时提交新的工单或帖子。)已关闭帖子中的更新很容易被忽略。感谢您的理解与合作! 致以最诚挚的问候, Gavin Re: Bluetooth Example Fails with SDIO/Wi-Fi Initialization Error When Powered by Battery Through JP3 您好, 我按照您建议的跳线更改操作,并使用电池供电测试了 RT700-EVK。 我按如下方式更改了跳线设置: JP33 → 2–3 JP34 → 2–3 JP36 → 2–3 JP11 → 2–3 JP7 → 2–3 我将3.7V、500mAh 锂聚合物电池连接到 JP37 。 经过这些更改, BLE Peripheral HT 演示成功初始化,BLE 也按预期开始广播。 然而,运行一段时间后, RT700-EVK 开始不断重启。每次 RESET 后,应用程序都会重新启动,BLE 初始化,广播也会重新开始。 因此,跳线更改已启用电池供电下的 BLE 功能,但持续 RESET 问题仍然存在。 请问是什么原因导致电池供电期间反复重启?接下来我应该检查哪些方面?
View full article
i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case Hi NXP team, We are evaluating ECDSA P-384 black key/blob support on i.MX8DXL CAAM. Observed results P-256 Starting from an externally provided plaintext P-256 private key: Plaintext key → COVER → black key blob Restore black key from black blob ECDSA sign/verify Result: PASS P-384 (CAAM-generated black key) Generate ECDSA private key as KEY_COLOR_BLACK Generate black blob from private key without COVER operation Restore black key from black blob ECDSA sign/verify Result: PASS P-384 (external plaintext private key) Starting from an externally provided plaintext P-384 private key (48 bytes): Plaintext key → COVER → black key blob Restore black key from black blob ECDSA sign/verify Result: FAIL Additional observation We noticed the following comments in the NXP patch: https://github.com/nxp-imx-support/imx_sec_apps/blob/master/caam-ecdsa-blackkey/patch/0002-caam-black-key-blob-feature.patch /* * KEY commands seems limited to 32 bytes, so we should use the load * command instead which can load up to 64 bytes. * * TODO: The KEY command indicate it should be able to load key bigger * than 32bytes but it doesn't work in practice * * TODO: The LOAD command indicate it should be able to load up to 96 * byte keys it doesn't work in practice and is limited to 64 bytes */ We observed similar behavior. Using the LOAD command instead of the KEY command allows us to handle keys larger than 32 bytes, including a 48-byte P-384 private key. However, this does not resolve the issue above. Although the key can be covered and stored in a blob, the restored black key cannot be used successfully for ECDSA sign/verify.   Our questions: Is there any known limitation of the CAAM COVER operation for ECC private keys larger than 32 bytes? Is importing an external P-384 plaintext private key through COVER and then using it as an ECDSA black key a supported use case? Is the observed behavior expected due to a CAAM hardware limitation? Is there a recommended CAAM method to import an externally generated P-384 plaintext private key and use it as a black key for ECDSA operations? Any guidance would be appreciated. Thanks and best regards, hojames. Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case Additional note:   Our concern is not limited to the ECDSA use case.   Even if importing an external P-384 private key through COVER is not a supported ECDSA workflow, we would still like to understand the limitations of the COVER operation itself.   In our application, the COVER operation may also be used to protect general sensitive data, not only ECDSA private keys. Therefore, support for payload sizes larger than 32 bytes is an important consideration. Based on our testing, using the LOAD-command workaround allows handling payloads larger than 32 bytes. Payloads below approximately 80 bytes appear to work, while larger sizes show inconsistent behavior. We would like to understand whether these observations reflect an actual CAAM limitation or an implementation issue. Could NXP also clarify whether there are any documented size limitations for the COVER operation itself, independent of the ECDSA use case?   Thank you. Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case We need to set up the environment to test this CAAM function. We will update you once We have some results. Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case Hi yipingwang, Thanks for the reply. >>For this part, what CAAM error did you observed? >>Could you provide the error code? We are using below code patch for all ECDSA related operations: "https://github.com/nxp-imx-support/imx_sec_apps/blob/master/caam-ecdsa-blackkey/patch/0001-linux-imx-4.14.78_1.0.0_ga-ecdsa-primitives-using-caam.patch" when calling caam_ecdsa_verify() for signature verification, it returns 'ECDSA_VERIFY_FAIL (0)'. The error occurs only with the case 'P-384 (external plaintext private key)'. >> The application note "AN12838-Strengthening Public Key Cryptography using CAAM Secure Key" describe a demo for ECDSA signature using black key, are you testing with similar implementation? For our succeed cases, yes, they are similar. But for our failed case 'P-384 (external plaintext private key)', it is a bit different: the key is from external. Best regards, Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case "Plaintext key → COVER → black key blob Restore black key from black blob ECDSA sign/verify Result: FAIL" For this part, what CAAM error did you observed? Could you provide the error code? The application note "AN12838-Strengthening Public Key Cryptography using CAAM Secure Key" describe a demo for ECDSA signature using black key, are you testing with similar implementation? Thank you.  For the KEY command limitation, it is still under investigation.  Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case For the failed case, are you using "KEY" command and "FIFO STORE" command to generate the black key based on the plaintext private key? Is it possible for you to dump the CAAM descriptors(the hex words) used in failure cases? It would be easier to check the commands and parameters. Thank you. Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case Hi yipingwang, >>For the failed case, >>are you using "KEY" command and "FIFO STORE" command >>to generate the black key based on the plaintext private key? No, we are using the LOAD command instead of the KEY command. The key is 48 bytes (P384) in this case. As mentioned in <https://github.com/nxp-imx-support/imx_sec_apps/blob/master/caam-ecdsa-blackkey/patch/0002-caam-black-key-blob-feature.patch> "KEY commands seems limited to 32 bytes, so we should use the load * command instead which can load up to 64 bytes.". If use the KEY command for 48 bytes key, DECO error is reported: job ring status: 0x40000106, DECO, 06h - Invalid KEY Command So we modifed the code to use LOAD command the same as the patch code above. Thanks and best regards,
View full article
在 S32 Design Studio for Power Architecture v2.1 中,PEmicro GDB 启动失败 您好, 我正在测试的电路板是 MTRCKTSPS5744P(带有 MPC5744P MCU 的三相 PMSM 电机控制开发套件)。 不知何故,下载过程不太顺利。 点击调试按钮后,下载失败,此时会弹出此窗口。 eunwoo_lee_0-1789496057004.png 弹出一个窗口,显示此错误信息。 服务启动序列错误 PEmicro GDB 启动失败:GDB 服务器无法与目标处理器建立连接。请检查您的连接和电源。请确认调试配置中的启动设置是否准确。 控制台面板显示此消息。 来自“127.0.0.1”的连接,通过 127.0.0.1。从端口“53438”到7224的连接 PE错误:警告。部件运行时无法读取寄存器。 PE错误:警告。部件运行时无法读取内存。@0(4 字节) PE错误:警告。部件运行时无法读取内存。@0(4 字节) PE错误:警告。部件运行时无法读取寄存器。 PE错误:警告。部件运行时无法读取内存。@0(4 字节) PE错误:警告。部件运行时无法读取内存。@0(4 字节) PE错误:警告。部件运行时无法写入二进制文件。40001000 - 长度:0 - 值:二进制数据 PE错误:警告。部件运行时无法写入二进制文件。40001000 - 长度:460 - 值:二进制数据 PE错误:警告。部件运行时无法写入二进制文件。40001460 - 长度:460 - 值:二进制数据 PE错误:警告。部件运行时无法写入二进制文件。400018c0 - 长度:460 - 值:二进制数据 PE错误:警告。部件运行时无法写入二进制文件。40001d20 - 长度:2e0 - 值:二进制数据 PE错误:GDB客户端处理:发生异常:程序异常! 异常类:EIDCONNCLOSEDGRACEFULLY 消息:连接已正常关闭。 地址 0X0046EA89 通过 127.0.0.1 与“127.0.0.1”断开连接。通过端口“53438”与7224断开连接 目标设备已断开连接。 你知道有什么办法解决这个问题吗? 谢谢。 Re: PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 你好, 你知道有什么办法解决这个问题吗? 正如消息中所述,您无法在运行时写入/读取寄存器。首先在调试器中停止代码执行,然后才能修改寄存器、内存等…… MPC5744P 正在运行用户代码,P&E 探针无法停止设备,因此所有内存/寄存器访问均失败,下载操作中止。 这看起来不像是一个闪存编程问题,而更像是调试器在下载之前未能停止 MPC5744P 的运行。 例如,微控制器中是否存在启用了 SWT0 的软件? 或者这是一个没有运行任何软件的全新样本? 顺祝商祺! Peter Re: PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 我通过更换扁平电缆解决了这个问题。虽然连接线看起来没问题,但却无法连接调试器。我猜想这条电缆容易受到串扰或线路间噪声的影响。最后我通过缩短电缆解决了这个问题。
View full article