Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
i.MX RT1170 MCUboot-Custom ECDSA Keys and Direct-XIP OTA Validation i.MX RT1170 MCUboot-Custom ECDSA Keys and Direct-XIP OTA Validation Abstract This article uses the MIMXRT1170-EVKB platform to demonstrate how to generate a custom ECDSA-P256 key pair for MCUboot, replace the default public key in the mcuboot_opensource project, and re-sign application images with the new private key. It then uses the Shell and XMODEM functions provided by ota_mcuboot_basic to transfer a candidate image to the Secondary Slot. MCUboot performs signature verification, image-state checks, and version selection, and uses Flash Remap to support Direct-XIP execution. The results show that an image signed with the old key cannot be verified by the new public key, while a higher-version LED image signed with the new private key can be written to the Secondary Slot and started directly through Flash Remap. Important: The addresses, slot sizes, and commands in this article apply to the RT1170 example project used in this validation. Before porting the procedure to another project, verify the linker script, Flash partitioning, and MCUboot configuration. 1. Why Replace the Default Signing Key? The MCUboot example key included in the NXP MCUXpresso SDK is intended for development and validation only. Because it is publicly available, it is not suitable for production releases. For production, the release owner should securely protect the private key and compile only the corresponding public key into the bootloader. After the public key is replaced, images signed with the old private key should fail signature verification, confirming that the new key has taken effect. Signature verification, version management, and image confirmation serve different purposes—ensuring a trusted source, selecting an upgrade image, and managing runtime state, respectively—and cannot replace one another. 2. Platform Configuration and Scope mayliu1_0-1788425630240.png 3. Flash Layout  mayliu1_1-1788425733701.png Each signed image contains a 0x400-byte MCUboot header that records boot metadata such as the image size and version. At power-on, MCUboot checks the images in both slots, parses the header and TLV area, verifies image integrity and the ECDSA signature, and evaluates image state and version. In the test configuration used here, images are generated with --confirm. Among images that satisfy the signature and state requirements, MCUboot selects the higher version that complies with the upgrade policy. This behavior applies only to this test configuration and does not represent every MCUboot state or upgrade policy. In DIRECT-XIP + FLASH REMAP mode, if the selected image is stored in the non-default mapped slot, MCUboot configures Flash Remap before jumping to the application. This maps the image's physical storage region to the logical execution address expected by the application, allowing in-place execution without copying or swapping images. 4. MCUboot Signature Verification Fundamentals mayliu1_2-1788425782498.png mayliu1_3-1788425834698.png Important: A hash detects content changes; a digital signature verifies image origin and integrity; the version number identifies and compares image releases; and the Confirm state determines whether a test image is retained permanently. 5. Generate an ECDSA-P256 Private Key in the scripts Directory imgtool.py is located in the middleware\mcuboot_opensource\scripts directory of the MCUXpresso SDK. Change to this directory before running the key-generation command. Replace with the actual SDK installation path on your computer: \middleware\mcuboot_opensource\scripts python imgtool.py keygen ^  -k my_priv.pem ^  -t ecdsa-p256 dir my_priv.pem keygen: Generates a new key. -k my_priv.pem: Specifies the output key file. -t ecdsa-p256: Selects the ECDSA-P256 algorithm. After the command completes successfully, the private key is generated as middleware\mcuboot_opensource\scripts\my_priv.pem. Security reminder: In a production project, never compile the private key into the bootloader, program it into the MCU, commit it to a regular Git repository, or distribute it with the SDK project. Store only the public key in the bootloader. 6. Export and Replace the MCUboot Public Key python imgtool.py getpub -k my_priv.pem python imgtool.py getpub -k my_priv.pem > my_pub.c mayliu1_4-1788425906827.png The command outputs a C array that can be compiled by MCUboot. The key symbols are: const unsigned char ecdsa_pub_key[] = {     0x30, 0x59, ... }; const unsigned int ecdsa_pub_key_len = 91; The public-key source file replaced in this article is: evkbmimxrt1170_mcuboot_opensource_cm7\bootutil\nxp_port\keys\sign-ecdsa-p256-pub.c mayliu1_5-1788425939863.png Back up the original public-key file, and do not include the backup copy in the project build. Replace the original public-key array with the output from getpub. Keep the ecdsa_pub_key and ecdsa_pub_key_len symbol names consistent with the project references. Clean and rebuild evkbmimxrt1170_mcuboot_opensource_cm7. Program the new bootloader at 0x30000000. 7. Negative Validation: Images Signed with the Old Key Are Rejected Replace only the signature-verification public key in MCUboot, rebuild and program the updated bootloader, and leave the existing application image in Flash without re-signing it with the new private key. Because the image is still signed with the old private key while MCUboot now verifies it with the new public key, the key pair does not match. The image therefore fails signature verification and is classified as invalid. In the project configuration used here, the bootloader then erases the invalid image. This negative test confirms that the new public key has been compiled into MCUboot correctly and is actively used during boot verification. If the image signed with the old key is classified as invalid, the new public key has been compiled correctly and is being used for MCUboot verification. Successfully parsing the image header and reading the version only proves that the image structure is recognizable; it does not mean signature verification passed. A digital signature generated with the old private key cannot be verified by a nonmatching new public key. The version number is used only for image identification and upgrade selection. It cannot replace signature verification; even an image with a correct or higher version will not boot if signature verification fails. mayliu1_6-1788425987887.png 8. Sign the ota_mcuboot_basic Image with the New Private Key python imgtool.py sign ^  --key my_priv.pem ^  --align 4 ^  --version 1.4.0 ^  --slot-size 0x200000 ^  --header-size 0x400 ^  --pad-header ^  --pad ^  --confirm ^  evkbmimxrt1170_ota_mcuboot_basic_cm7.bin ^  ota_mcuboot_basic_1_4_0_confirmed.SIGNED.bin evkbmimxrt1170_ota_mcuboot_basic_cm7.bin is the raw application image generated by the Basic project. In this example, --confirm is added so that the image is generated with the Confirmed state. Note the following: Notes on --confirm and Production Deployment The README states that an initial image manually programmed together with the bootloader requires the additional --pad and --confirm options. Otherwise, the bootloader may reject the image because the trailer lacks the required state information. mayliu1_15-1788426931903.png --pad pads the image to the size specified by --slot-size and creates the slot trailer required by MCUboot. --confirm presets the image_ok flag in the trailer to the confirmed state while the image is generated. MCUboot therefore treats the initial image as a confirmed valid image at boot. Production recommendation: This usage is intended mainly for the initial image manually programmed together with the bootloader. It is not recommended for production OTA images. Pre-confirming an update image with --confirm bypasses MCUboot's test boot → image confirmation → failure rollback flow. If the new image cannot boot, fails peripheral initialization, or encounters a critical application error, MCUboot cannot use the unconfirmed state to roll back automatically, which may leave the device unrecoverable. The MCUboot bootloader primarily reads the image_ok flag in the trailer and uses it for image-state evaluation, version selection, and rollback handling. It does not proactively write the confirmation flag on behalf of the application. The running application should explicitly confirm the image at an appropriate time. For example, after the candidate application completes its startup self-test, peripheral initialization, and critical functional checks, it can call boot_set_confirmed(). An application with Shell support, such as ota_mcuboot_basic, can also be confirmed manually with the image accept command. This preserves MCUboot's test-boot and failure-rollback capabilities and prevents a faulty image from being marked permanently valid too early. python imgtool.py dumpinfo ota_mcuboot_basic_1_4_0_confirmed.SIGNED.bin Check the magic, hdr_size, img_size, version, and TLV information in the output. The TLV area should contain SHA256, KEYHASH, and ECDSASIG, which represent the image digest, public-key identifier, and ECDSA signature respectively. mayliu1_7-1788426037161.png mayliu1_8-1788426047750.png 9. Program the Signed ota_mcuboot_basic Image into the Primary Slot This article uses ota_mcuboot_basic_1_4_0_confirmed.SIGNED.bin, generated in the previous section, as the initial image in the Primary Slot. ota_mcuboot_basic provides the Shell and XMODEM image-receive functions. After it starts, the application can transfer subsequent candidate images to the Secondary Slot. Program the signed image containing the complete MCUboot header, application payload, and signature TLV—not the raw BIN generated directly by the application project. File to program: ota_mcuboot_basic_1_4_0_confirmed.SIGNED.bin Programming address: 0x30040000 Program the complete signed image at the Primary Slot start address, 0x30040000. Reset the device and inspect the MCUboot log to confirm that signature verification succeeds and the version is read correctly. Confirm that the device enters the ota_mcuboot_basic Shell and that image info reports the image state. mayliu1_9-1788426071107.png mayliu1_10-1788426078668.png 10. Generate a Candidate Signed Image for the Secondary Slot This article creates an LED application project and uses it as the candidate image for the Secondary Slot. The image is signed with the newly generated private key, my_priv.pem, and assigned a version later than the currently running image. In DIRECT-XIP + FLASH REMAP mode, both the LED and ota_mcuboot_basic projects are linked to the same logical addresses: the signed image begins logically at 0x30040000, and the application vector table is at 0x30040400. The signed LED image is physically written to the Secondary Slot at 0x30240000, with its vector table physically located at 0x30240400. When MCUboot selects this image, Flash Remap maps the Secondary Slot to the logical execution address expected by the application. Therefore, the Secondary Slot identifies the image's physical storage location, while the application still executes using the logical addresses associated with the Primary Slot. mayliu1_11-1788426129177.png python imgtool.py sign ^  --key my_priv.pem ^  --align 4 ^  --version 1.5.0 ^  --slot-size 0x200000 ^  --header-size 0x400 ^  --pad-header ^  --pad ^  --confirm ^  evkbmimxrt1170_igpio_led_output_cm7_second_app.bin ^  ota_led_output_second_app_1_5_0_confirmed.SIGNED.bin --key my_priv.pem: Uses the private key paired with the public key currently trusted by MCUboot. --version 1.5.0: Sets the candidate image version, which must be later than the currently running version 1.4.0. --slot-size 0x200000: Matches the slot size in the current Flash partition layout. --header-size 0x400 and --pad-header: Reserve and populate the 0x400-byte MCUboot header area at the beginning of the image. --pad: Pads the output to the full size specified by --slot-size and reserves the image trailer area. Whether the image is pre-confirmed is controlled by --confirm. --confirm: Generates the candidate image in the Confirmed state. python imgtool.py dumpinfo ota_led_output_second_app_1_5_0_confirmed.SIGNED.bin Before transfer, verify that the output reports valid magic, hdr_size, img_size, version, and TLV information. In particular, confirm that the version is 1.5.0+0 and that the TLV area contains SHA256, KEYHASH, and ECDSASIG. After the checks pass, use the complete ota_led_output_second_app_1_5_0_confirmed.SIGNED.bin file in the next section. The ota_mcuboot_basic application transfers it to the Secondary Slot through XMODEM. 11. Transfer the Signed Image to the Secondary Slot Using XMODEM Start the development board, enter the Basic Shell, and run the xmodem command. In the serial terminal, select File → Transfer → XMODEM, select ota_led_output_second_app_1_5_0_confirmed.SIGNED.bin, and start the transfer. After the transfer completes, run image info and verify the version and image state in the Secondary Slot. mayliu1_12-1788426170015.png 12. Inspect the Candidate Image and Validate Version Switching image info reboot After reboot, inspect the MCUboot log for the Primary and Secondary versions, confirmation states, and selected boot slot. In the test configuration used here, the candidate image is pre-confirmed with --confirm. It must pass signature verification, satisfy the Confirmed-state requirements, and have a later version that complies with the upgrade policy. A valid signature means only that the image source is trusted and the content is intact; it does not guarantee that the image will be selected. Once all conditions are met, MCUboot boots the candidate image. In Direct-XIP + Flash Remap mode, the image can execute in place from the Secondary Slot without being copied or swapped. mayliu1_13-1788426200879.png mayliu1_14-1788426207996.png 13. Summary Generate and securely store a project-specific ECDSA-P256 private key, and compile the corresponding public key into the MCUboot project. Confirm that key replacement is effective by verifying that images signed with the old key fail while images signed with the new private key pass. Use the signed ota_mcuboot_basic image as the initial Primary Slot image and the later-version signed LED image as the Secondary Slot update image. Transfer the complete signed image to the Secondary Slot through XMODEM and validate the MCUboot flow that starts the update image through Flash Remap. For production OTA, remove --confirm and have the application write image_ok by calling boot_set_confirmed() after successful self-tests, preserving MCUboot's automatic rollback capability.
View full article
Question regarding the DTM API Hello, I would like to use the Hci_LeEnhancedReceiverTest and Hci_LeEnhancedTransmitterTest functions declared in SDK_26_03_00_KW47-EVK\mcuxsdk\middleware\wireless\bluetooth\host\interface\hci_interface.h from MCUXpresso SDK v26.03.00 on a KW47 MCU. Are these commands supported? Additional information: The declarations for these two functions are guarded by: #if defined(gHciCompleteHciCmdSupport_d) && (gHciCompleteHciCmdSupport_d == TRUE) When I enabled that macro, the project failed to build with errors. I searched the SDK for Hci_LeEnhancedReceiverTest and Hci_LeEnhancedTransmitterTest and only found the declarations in hci_interface.h; I could not find any implementation or other references. Could someone please confirm whether these DTM commands are supported for KW47 in this SDK release, and advise how to enable or obtain the required implementation (or point me to any necessary firmware/library/configuration)? Any guidance would be greatly appreciated. Thank you. Re: Question regarding the DTM API Hello, hope you are doing well. Both Hci_LeEnhancedReceiverTest and Hci_LeEnhancedTransmitterTest are supported in the SDK. These functions are gated behind the gHciCompleteHciCmdSupport_d guard and need to be enabled in the app_preinclude.h file from your project: #define gHciCompleteHciCmdSupport_d  TRUE I would recommend using the hci_bb_bm_cm33_core0 project for testing, this example runs on the main CM33 core and acts as a transparent HCI bridge. Are you currently testing with any example from the SDK? How were you enabling the gHciCompleteHciCmdSupport_d macro previously? Once the hci_bb example is flashed with the macro enabled, you can use NXP Test Tool 12 to send HCI commands to the device. To access the full set of HCI DTM commands, load the latest BLE HCI command set file (BLE HCI 5.0 x.x.x.xml). Also, these posts could be helpful for navigating the NXP Test Tool and DTM commands: BLE HCI Application to set transmitter/receiver test commands This article provides the steps to show how user could send serial commands to the device. Bluetooth LE HCI Black Box Quick Start Guide This article describes a simple process for enabling the user controls the radio through serial commands. Best regards, Sofia. Re: Question regarding the DTM API Hi @Takuya_Tanaka , this sometimes happens when the board is already connected when Test Tool 12 opens, or if another application is holding the COM port. Could you try closing any serial terminals or debuggers and unplugging the board before reopening the tool? Best regards, Sofia. Re: Question regarding the DTM API Hello, When I open NXP Test Tool 12 while the KW47-LOC is connected to the PC via USB, the following error occurs and the application crashes. Could you please advise on the cause? Takuya_Tanaka_0-1789016520286.png Thank you.
View full article
关于 DTM API 的问题 你好, 我想在 KW47 MCU 上使用 MCUXpresso SDK v26.03.00 中的 SDK_26_03_00_KW47-EVK\mcuxsdk\中间件\wireless\bluetooth\host\interface\hci_interface.h 中声明的 Hci_LeEnhancedReceiverTest 和 Hci_LeEnhancedTransmitterTest 函数。这些命令是否受支持? 其他信息: 这两个函数的声明由以下语句保护:#if defined(gHciCompleteHciCmdSupport_d) && (gHciCompleteHciCmdSupport_d == TRUE) 当我启用该宏时,项目构建失败并出现错误。 我在 SDK 中搜索了 Hci_LeEnhancedReceiverTest 和 Hci_LeEnhancedTransmitterTest,只在 hci_interface.h 中找到了它们的声明;我找不到任何实现或其他参考资料。 请问有人可以确认此 SDK 版本是否支持 KW47 的这些 DTM 命令吗?以及如何启用或获取所需的实现(或者指出任何必要的固件/库/配置)?任何指导都将不胜感激。 谢谢! Re: Question regarding the DTM API 你好,希望你一切都好。 SDK 同时支持 Hci_LeEnhancedReceiverTest 和 Hci_LeEnhancedTransmitterTest。这些功能受 gHciCompleteHciCmdSupport_d 保护机制的限制,需要在 app_preinclude.h 中启用。项目文件: #define gHciCompleteHciCmdSupport_d  TRUE 我建议使用 hci_bb_bm_cm33_core0 项目进行测试,该示例在主 CM33 内核上运行,并充当透明 HCI 桥接器。 您目前是否正在使用 SDK 中的任何示例进行测试?之前您是如何启用 gHciCompleteHciCmdSupport_d 宏的? 将 hci_bb 示例烧录到设备并启用宏后,即可使用NXP Test Tool 12向设备发送 HCI 命令。要访问完整的 HCI DTM 命令集,请加载最新的 BLE HCI 命令集文件(BLE HCI 5.0 x.x.x.xml)。 此外,以下帖子可能有助于您了解 NXP 测试工具和 DTM 命令: 用于设置发射器/接收器测试命令的 BLE HCI 应用程序 本文提供了用户如何向设备发送串口命令的步骤。 蓝牙低功耗人机交互黑盒快速入门指南 本文介绍了一种使用户能够通过串行命令控制收音机的简单方法。 此致, 索菲亚。 Re: Question regarding the DTM API 嗨@Takuya_Tanaka , 当测试工具 12 打开时,如果电路板已经连接,或者另一个应用程序占用 COM 端口,有时会发生这种情况。请尝试关闭所有串口终端或调试器,并拔下开发板,然后再重新打开该工具? 此致, 索菲亚。 Re: Question regarding the DTM API 你好, 当 KW47-LOC 通过 USB 连接到 PC 时,打开 NXP Test Tool 12 会出现以下错误,应用程序崩溃。请问您能否告知一下原因? 拓也_田中_0-1789016520286.png 谢谢!
View full article
DTM APIに関する質問 こんにちは、 MCUXpresso SDK v26.03.00の SDK_26_03_00_KW47-EVK\mcuxsdk\middleware\wireless\bluetooth\host\interface\hci_interface.h で宣言されたHci_LeEnhancedReceiverTestとHci_LeEnhancedTransmitterTest関数を KW47 MCU で使いたいです。これらのコマンドはサポートされていますか? 追加情報: これら 2 つの関数の宣言は、#if defined(gHciCompleteHciCmdSupport_d) && (gHciCompleteHciCmdSupport_d == TRUE) によって保護されています。このマクロを有効にすると、プロジェクトはエラーでビルドに失敗しました。 SDKでHci_LeEnhancedReceiverTestとHci_LeEnhancedTransmitterTestを探しましたが、宣言はhci_interface.hでしか見つかりませんでした。実装や他の参考文献は見つかりませんでした。 どなたか、これらのDTMコマンドがこのSDKリリースでKW47に対応しているか、また必要な実装の有効化や入手方法(または必要なファームウェア・ライブラリ・設定の場所)を教えていただけませんか?何かご助言いただければ大変ありがたいです。 よろしくお願いします。 Re: Question regarding the DTM API こんにちは、お元気でお過ごしでしょうか。 SDKではHci_LeEnhancedReceiverTestとHci_LeEnhancedTransmitterTestの両方がサポートされています。これらの関数はgHciCompleteHciCmdSupport_dガードによって制御されており、app_preinclude.hで有効にする必要があります。プロジェクトからのファイル: #define gHciCompleteHciCmdSupport_d  TRUE テストにはhci_bb_bm_cm33_core0プロジェクトを使用することをお勧めします。このサンプルはメインのCM33コア上で動作し、透過的なHCIブリッジとして機能します。 現在、SDKのサンプルを使ってテストしていますか?以前は、gHciCompleteHciCmdSupport_d マクロをどのように有効にしていましたか? hci_bb例をマクロを有効にしてフラッシュした後、 NXP Test Tool 12 を使ってHCIコマンドをデバイスに送信できます。HCI DTMコマンドの全セットにアクセスするには、最新のBLE HCIコマンドセットファイル(BLE HCI 5.0 x.x.x.xml)を読み込みます。 また、これらの投稿はNXPテストツールやDTMコマンドの使い方にも役立つかもしれません: トランスミッタ/レシーバテストコマンドを設定するBLE HCIアプリケーション この記事では、ユーザーがデバイスにシリアルコマンドを送信する方法を示す手順を紹介します。 Bluetooth LE HCI ブラックボックスクイックスタートガイド この記事では、ユーザーがシリアルコマンドを通じて無線機を制御できるようにする簡単なプロセスを説明しています。 よろしくお願いします、 ソフィア。 Re: Question regarding the DTM API こんにちは@Takuya_Tanakaさん これは、Test Tool 12が起動したときにすでに基板が接続されている場合や、他のアプリケーションがCOMポートを保持している場合に発生することがあります。ツールを再起動する前に、シリアル端末やデバッガを閉じて基板の電源を抜いてみることはできますか? よろしくお願いします、 ソフィア。 Re: Question regarding the DTM API こんにちは、 KW47-LOCをUSB経由でPCにコネクテッド状態でNXP Test Tool 12を開くと、以下のエラーが発生し、アプリケーションがクラッシュします。原因についてアドバイスいただけますか? タクヤ_タナカ_0-1789016520286.png よろしくお願いします。
View full article
S32DS License expiring in 2 day(s). Hi NXP Support, I need to extend my evaluation license of S32 Design Studio for S32 Platform 3.4. I cannot find the "Request License" button in IDE licensing window. License information as below: Product: S32 Design Studio for S32 Platform Version: 3.4 ActivationId: 60D2-8F18-EC11-211F Evaluation Days Remaining: 2 Feature Version: 3.4 Feature Status: Evaluation (2 days) Please help extend this evaluation license. Thanks & Best regards Re: S32DS License expiring in 2 day(s). Hi,  your S32DS license has been extended. Please activate S32DS again with your old code. Re: S32DS License expiring in 2 day(s). Hello, I have requested the extension for you. Best regards, Peter
View full article
Multiple Face detection with MCXN947 - Error on image Hi, I’m trying to run the “Multiple Face Detection on MCXN947” application from NXP Application Code Hub. The application is running, but the camera image is not being captured correctly. I can see some pixels and a faint outline of my face, but the image is highly distorted and not clear enough for proper recognition. Could this be caused by an issue with the camera rework/soldering or the camera signal connections? I have already followed the recommended camera rework procedure (SJ16, SJ26, and SJ27). MCXN Re: Multiple Face detection with MCXN947 - Error on image Thank you, I re soldered and It works now. Re: Multiple Face detection with MCXN947 - Error on image Thank you. It works now, resoldered. Re: Multiple Face detection with MCXN947 - Error on image Hello @Gayathriii , Thanks for your post. You may find some helpful tips in Vision ML with the FRDM-MCXN947, which could be useful for addressing this issue.  1. After POR there may be some glitching on the camera due to the fact the camera is expecting 2.8V but the board is at 3.3V and the initial HSYNC signal was missed. Press the reset button (SW1) and it should fix any camera issue. 2. Please confirm the OV7670 camera is plugged into J11 (not J9) and the LCD-PAR-S035 is connected to J12 Celeste_Liu_0-1788406926113.png 3. Confirm correct solder jumper orientation for SJ16, SJ26, and SJ27 Hope it helps. Please let me know if you still have problem on this. BR Celeste Re: Multiple Face detection with MCXN947 - Error on image Hello, Yes, a distorted image with missing pixels or a faint outline can definitely still be caused by hardware soldering, connection issues, or partial contact, even if you have correctly flipped solder jumpers SJ16, SJ26, and SJ27 from side A to side B. Best Regards
View full article
rt1186 debug issues After enabling OEM_CLOSE on the FRDM-IMXRT1186 development board, I can no longer debug the device. I saw in the reference manual that nxpdebugmbox can be used to re-enable debugging, but I tried it and was not successful. yanyanwang_0-1788347257012.pngyanyanwang_0-1788347257012.pngyanyanwang_0-1788347257012.png Development Board MCXC Security(Edgelock | secure boot | OTP) Re: rt1186 debug issues I have reviewed the links you provided and followed the recommended procedure, but I am still experiencing the same issue. I only signed the image and did not encrypt it. I also set OEM_CLOSE. I am using nxpdebugmbox only to re-enable the debug functionality. I have uploaded the SEC project as an attachment, along with the relevant logs. Could you please help analyze the project and logs and identify the cause of the issue? Re: rt1186 debug issues Hello @yanyanwang  In SEC tool documentation, you can find troubleshooting for debug authentication: https://docs.mcuxpresso.nxp.com/secure/latest/09_troubleshooting.html#debug-authentication Some useful tips can be also found in  https://docs.mcuxpresso.nxp.com/secure/latest/07_generic_workflows.html#debug-authentication-workflow If this does not help, can you provide details about configuration? Could you share the SEC tool workspace settings? Re: rt1186 debug issues @yanyanwang  It seems this problem is related to SEC 26.03. We recommend updating to SEC 26.06.  We are sorry for inconvenience. Note: SEC 26.06 also contains fix for the SPARSE image format Re: rt1186 debug issues Yes, thank you. The authentication was successful, but I still cannot debug the device. The procedure is as follows: 1. Use the SEC tool to perform the authentication. 2. The authentication is successful. 3. Then click the Debug button to start debugging. 4. However, the debugging attempt fails.
View full article
88W9098 能量检测 (ed_mac) 调谐 你好, 我们正在使用 u-blox M2-JODY-W377 中的 88W9098,通过 SDIO 以 SDR50 运行。我们有来自 GitHub 的驱动程序/固件版本 lf-6.18.20_2.0.0。我们将其用作 2.4GHz 信道 6 的接入点。 我们遇到一个问题,启用 ed_mac(在 wifi_mod_para.conf 中使用“init_hostcmd_cfg=nxp/ed_mac.bin”,或使用 mlanutl 和 ed_mac_ctrl_V3_909x.conf)会导致我们内部应用程序测试的稳定性/延迟大幅下降: ed_mac_test.pnged_mac_test.pnged_mac_test.pnged_mac_test.pnged_mac_test.pnged_mac_test.pnged_mac_test.pnged_mac_test.png 我无法在这里详细介绍测试内容,但它是对特定内部步骤进行端到端延迟测量,使用了多台机器,中间连接了一个 88W9098 接入点。使用 ed_mac 后,某些曲线的平均延迟不仅比不使用时高出 200-250 毫秒,而且总体而言,它们的延迟波动也更大,并且往往会出现随机的“突发性”延迟增加。 我们尝试调整偏移量“ed_ctrl_2g.offset”并将“ed_ctrl_5g.offset”设置为与默认值 0x8 不同的值,但我们尝试的任何值对测试都没有影响。唯一能产生影响的方法是将 enable (2g/5g) 都设置为 0,或者在启动时不加载该文件。 还有其他方法可以尝试吗? Re: 88W9098 Energy Detect (ed_mac) tuning 亲爱的@mjourdan , 感谢您提供的详细描述和测试数据。鉴于 ed_mac(能量检测 MAC)功能的设计方式,您看到的这种行为实际上是预期的,但有几件事值得检查和澄清。 为什么 ed_mac 会导致 AP 模式下延迟更高 ed_mac 功能是专门为欧盟 ETSI EN 300 328 适应性合规性测试而设计的。其核心机制是当固件检测到信道上的能量超过阈值时,主动抑制传输。在接入点场景中,每当无线电检测到环境能量时,这都会直接延迟缓冲的下行链路数据包,从而导致您正在测量的延迟尖峰和“突发”。调整偏移参数会改变阈值灵敏度(无线电触发的难易程度),但不会消除抑制行为本身——这就是为什么任何偏移值对端到端延迟测试都没有可测量的影响。 配置文件不匹配 我注意到您正在使用 ed_mac_ctrl_V3_909x.conf。根据我们的应用笔记 AN13756,88W9098 的正确配置文件是ed_mac_ctrl_V2_909x.conf (默认值为 ed_ctrl_2g.offset = 0x08 和 ed_ctrl_5g.offset = 0x08)。V3 版本使用了不同的 ed_ctrl_txq_lock 字段值,并且不是此设备的验证配置。请尝试使用 ed_mac_ctrl_V2_909x.conf 并测试延迟影响是否有所改善。 关键问题:您的部署是否需要符合欧盟适应性要求? ETSI EN 300 328 自适应要求仅适用于在欧盟/欧洲经济区市场运营且声明的最大射频输出功率为 10 dBm EIRP 或以上的设备。请您确认: 该设备是否已在欧盟部署并获得 ETSI EN 300 328 认证? 您的模块(u-blox M2-JODY-W377)的标称射频输出功率是多少? 如果您的使用场景不需要符合欧盟标准,那么正确的解决方案就是不加载 ed_mac 配置——您已经确认这样做可以完全解决延迟问题。 如果需要合规性,我们建议首先切换到 ed_mac_ctrl_V2_909x.conf,如果延迟问题仍然存在,我们可以探讨是否有更新的固件版本可以改善 AP 模式的行为。 请与我们联系以上问题的答案,我们将据此进行后续跟进。 顺祝商祺! 卫东 Re: 88W9098 Energy Detect (ed_mac) tuning 谢谢卫东。是的,该产品的输出功率绝对超过 10dBm EIRP,需要符合 EN 300 328 标准。 我尝试过使用 ed_mac_ctrl_V2_909x.conf( https://github.com/u-blox/u-blox-sho-host-based/blob/main/JODY-W3/txpower_config/ed_mac_ctrl_V2_909x.conf ),但行为没有任何改变。 我们不明白的是,如果我们用 DoodleLabs 的模块(基于 QCA988X)替换该模块,并在相同的环境下进行相同的测试,它也能满足 EN 300 328 标准,但我们却没有遇到任何延迟问题。所以我想知道为什么 88W9098 的 ed_mac 实现会引发这样的问题,而其他芯片制造商的实现却不会。 除了 lf-6.18.20_2.0.0 版本之外,我们也尝试了 hotfix/lf-6.12.49_2.2.0_hotfix 版本,但问题仍然存在。 更多信息: * 与 JODY 接入点关联的站点共有 2 个。 * 测试期间,站点与 JODY 之间使用的带宽非常低(~6KiB/s),但由许多小数据包组成,主要在 STA > AP 方向上。 Re: 88W9098 Energy Detect (ed_mac) tuning 亲爱的@mjourdan ,   我已经将您的问题上报给我们的内部团队。让我们一起等待专家的回复——一旦有任何最新消息,我会立即与您分享。   顺祝商祺! 卫东 Re: 88W9098 Energy Detect (ed_mac) tuning 亲爱的@mjourdan , 内部团队正在分析该问题,请您提供以下信息?我从内部团队得到了以下反馈。 ====================================================== 驱动程序加载参数,以及用于重现问题的完整驱动程序加载/卸载命令序列。 ed_mac_ctrl_V2_909x.conf 配置文件。 日志 为进一步调查,在重现问题时捕获了屏幕截图。 房东详情,包括: 主机平台 内核版本 驱动程序版本 使用的接口(PCIe/SDIO)   这些细节将有助于我们将客户的设置与我们的内部测试进行关联,并加快分析速度。 ====================================================== 谢谢! 顺祝商祺! 卫东 Re: 88W9098 Energy Detect (ed_mac) tuning 你好 weidong,我目前正在和 u-blox 一起排查问题,为了避免冲突(万一问题升级到 NXP 也会出现),我暂时只会和他们沟通。感谢您的帮助。 Re: 88W9098 Energy Detect (ed_mac) tuning 亲爱的@mjourdan , 有任何进展吗? 谢谢您! 此致, 卫东 Re: 88W9098 Energy Detect (ed_mac) tuning 亲爱的@mjourdan , 好的,明白了。 谢谢你的更新。 顺祝商祺! 卫东 Re: 88W9098 Energy Detect (ed_mac) tuning 亲爱的@mjourdan , 我们的内部团队已针对您报告的问题进行了额外的测试。我们想与您分享测试结果,希望这些结果能为您的调查提供有用的见解。 ================================================ 我们使用版本 SD9098---17.92.1.p149.159-MM6X17552.p22 (FP92) 在 QA 环境中验证了该问题,但该问题无法重现。 观察到的 ping 延迟约为1 到 2 秒。 测试步骤: 加载了构建版本,并使用发布配置文件夹中提供的默认 ed_mac_ctrl_V2_909x.conf 启用了 EDMAC。 在第6频道提出了APUT问题。 连接了两个前STA。 从 Ex-STA 到 APUT 执行 ping 测试。 测试场景: auto_ds=1,ps_mode=1 auto_ds=2,ps_mode=2 APUT 配置了 HT20 和 HT40 网络安全模式:开放和 WPA3 前STA电源管理功能:启用和禁用 为了帮助我们分析和重现客户遇到的问题,能否请您提供以下信息: 加载客户使用的文件/版本详细信息 完整的配置和测试环境详情 客户设置中观察到的噪声/干扰水平 来自客户方的相关日志 一旦我们掌握了这些信息,我们就可以进行更深入的分析并尝试重现该问题。 ================================================ 谢谢。 顺祝商祺! 卫东
View full article
S32k344 MBIST LBIST 我正在 Green Hills 的一个项目中实施 S32k344 BIST。由于我不使用 Tresos 或 NXP DS,所以我使用的是源代码形式的 SW32K3_SPD_1.0.6_D2512。我能够导入大部分 bist 函数,但有一些我不确定的定义(到处都找不到它们)。请问有人能回答以下问题吗? 1. 当 S32k344 处于锁定步进模式时,我可以运行 LBIST MBIST 吗? 2. 我通过检查代码猜测以下定义是否正确? #define BIST_MBIST_0 1U #define BIST_MBIST_1 2U #define BIST_MBIST_2 3U #define BIST_MBIST_3 4U #define BIST_MBIST_4 5U #define BIST_MBIST_5 6U #define BIST_MBIST_6 7U #define BIST_MBIST_7 8U #define BIST_MBIST_8 9U #define BIST_MBIST_9 10U #define BIST_MBIST_10 11U #define BIST_LBIST_0 0U 我使用的配置数据如下: static const BIST_CHANNEL_CONFIG_TYPE BistConfig[BIST_SAFETYBOOTCFG_NB] = { { (BIST_CHANNEL_TYPE)BIST_MBIST_0, (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_1)) }, { (BIST_CHANNEL_TYPE)BIST_MBIST_1, (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_2)) }, { (BIST_CHANNEL_TYPE)BIST_MBIST_2, (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_3)) }, { (BIST_CHANNEL_TYPE)BIST_MBIST_3, (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_4)) }, { (BIST_CHANNEL_TYPE)BIST_MBIST_4, (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_5)) }, { (BIST_CHANNEL_TYPE)BIST_MBIST_5, (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_6)) }, { (BIST_CHANNEL_TYPE)BIST_MBIST_6, (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_7)) }, { (BIST_CHANNEL_TYPE)BIST_MBIST_7, (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_8)) }, { (BIST_CHANNEL_TYPE)BIST_MBIST_8, (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_9)) }, //#endif { (BIST_CHANNEL_TYPE)BIST_MBIST_9, (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_10)) }, { (BIST_CHANNEL_TYPE)BIST_MBIST_10, (BIST_CONTROL_TYPE)(0x00100000U) }, { (BIST_CHANNEL_TYPE)BIST_LBIST_0, (BIST_CONTROL_TYPE)((0x00001108U) | BIST_LBIST_PTR_VAL(BIST_NIL)) } }; Re: S32k344 MBIST LBIST 你好, 1. 当 S32k344 处于锁定步进模式时,我可以运行 LBIST MBIST 吗? 是的。S32K344 锁步架构不会阻止 STCU2 LBIST/MBIST 的执行。BIST 机制是设备功能安全基础设施的一部分,旨在测试由 STCU2 管理的逻辑和存储器。The S32K3 功能安全 Manual explicitly lists both lockstep and STCU2 LBIST/MBIST as safety mechanisms of the 设备. 2. 我通过检查代码猜测以下定义是否正确? 对于 S32K344 来说,这些数值基本正确,但从功能安全角度来看,在功能安全启动配置中包含 MBIST_10 (HSE_ROM) 并非必需,建议直接使用经过验证的 SPD 配置。 顺祝商祺! Peter Re: S32k344 MBIST LBIST 彼得 非常感谢您的回复。我这几天一直被BIST测试问题困扰着。我正在使用 S32k344 白板进行测试,代码是用 Green Hills Multi IDE rev 8.1 版本 的。安全靴自检未通过。我确信核心和外设都满足最大时钟频率要求。我的核心时钟频率为 160MHz,来自外部晶振 16MHz 和 PLL,AIPS_PLAT_CLK 为 80MHz,AIPS_SLOW_CLK 为 40MHz,DCM_CLK 为 40MHz,LBIST_CLK 为 40MHz,QSPI_MEM_CLK 为 160MHz。当设备从 BIST 运行复位时,出现以下错误:DES 寄存器为 0x00408175,一些保留位被设置,FES 寄存器为 0x2000(这没有意义)。请问您能否回答以下问题? 1. 对于上面提到的所有时钟信号,是否应该通过 MC_CGM->MUX_0_DC_x 寄存器启用它们?我正在获得 信息相互矛盾,目前这些功能已启用。 2. 在参考手册的 STCU2 章节中,有这样一段话:“在 EMAC 时间戳存储器上运行 MBIST 时,应适当配置 MC_CGM.MUX_9_DC_0[DIV],以确保 EMAC_CLK_TS 至少是 AIPS_SLOW_CLK 频率的 1.5 倍。”那是不是意味着我必须配置时钟并在 MC_CGM->MUX_9_DC_0 寄存器中启用它? 3. 如果我想查看 SW32K3_SPD_1.0.6_D2512 软件包中的示例代码 S32_SPD_Demo,我猜我需要安装最新的 NXP Design Studio,将 spd zip 文件作为更新站点导入,还需要 RTD 软件包,是这样吗? 4. 我认为 MBIST 10 是 HSE_RAMS,MBIST 11 是 HSE_ROMS,请参阅 SPD 文档文件夹中的下表。 MBIST BIST ID BIST实例名称 RESET 功能域 安全靴 功能安全诊断 0 SYS0_RAMS 主要 ü ü 1 SYS1_RAMS 主要 ü ü 2 DMA_TCD_RAM 主要 ü ü 3 CM7_0_TOP 主要 ü ü 4 CM7_1_TOP 主要 ü ü 5 FLEX_CAN_RAMS 主要 ü ü 6 QSPI_PERI_RAMS 主要 ü ü 7 EMAC_TSN_RAM 主要 ü ü 8 EMAC_RAMS 主要 ü ü 9 b03_ETF_RAMS 主要 ü ü 10 HSE_RAMS 主要 ü ü 11 HSE_ROMS 主要   ü Re: S32k344 MBIST LBIST 我的问题有了新的进展,在我启用 STCU_RUNSW_REG 中的第 8 位和第 9 位以使用 PLL 之后,我一直看到 DES 寄存器为 0x11,FES 寄存器为 0x10。bist_get_exec_status(BIST_SAFETYBOOT_CFG) 返回值为 NOT RUN (0x03)。BIST ERR_STAT 寄存器中没有任何内容,END 标志也没有设置。FCCU NCF_S0 寄存器中的第 2 位已设置。BIST 似乎没有启动,但我确实看到了 RESET。我通过写入另一侧银行的闪存来捕获寄存器设置。 Re: S32k344 MBIST LBIST 我检查了所有可能的时钟,我相信它们是正确的。我还将寄存器中的配置数据与 NXP studio spd 示例项目中的值进行了比较,它们也是正确的。一条新信息。系统从 BIST RESET 后,我在 DCMROD3 寄存器中看到值 0x18。我该如何解决这个错误?谢谢。 XRen_Parker_0-1788544110794.pngXRen_Parker_0-1788544110794.pngXRen_Parker_0-1788544110794.pngXRen_Parker_0-1788544110794.pngXRen_Parker_0-1788544110794.png Re: S32k344 MBIST LBIST 你好, STCU 自检序列正在进入并到达 ST_DONE RESET 阶段。但是,STCU 还报告了一个不可恢复的故障 (STCU_URF),这就解释了为什么 SAF BIST 驱动程序随后报告 BIST_NORUN。因此,问题似乎是 STCU 执行/配置失败,而不是 BIST 从未触发信号的情况。 在 S32K3 上,同时看到破坏性复位和功能性复位指示通常表明您正在查看复位历史记录,而不是当前的复位源。 既然你在移植软件,我建议先从仅进行 MBIST 测试开始,看看它是否能从 PLL 源通过。 另外,我建议你再检查一下测试的时钟设置。 顺祝商祺! Peter Re: S32k344 MBIST LBIST 你好, 在 S32K344 上,RCCU 报告锁步不匹配,并且当连接到调试器时,经常会出现与 RCCU 相关的故障,而这些故障在独立执行中永远不会发生。 如果您按照示例中的设置进行操作,您将看到完整的 BIST(内置自测试)。 示例已测试,默认情况下完全可用。 但是您的端口报告 URF 故障,这说明并非所有部件都相同。 查阅STCU文档,用户可以设置指向测试的指针。 54.9.4 STCU2 配置 (CFG) petervlna_0-1788766597312.pngpetervlna_0-1788766597312.pngpetervlna_0-1788766597312.png 您可以先尝试减少测试用例,然后慢慢添加更多测试用例。 在 MBIST 和 LBIST 控制寄存器中,您可以设置哪个测试将是最后一个: petervlna_1-1788766735386.pngpetervlna_1-1788766735386.pngpetervlna_1-1788766735386.png 例如,通过指向 CFG 寄存器中的某个位置,您可以执行单个 MBIST 分区: petervlna_2-1788766853581.pngpetervlna_2-1788766853581.pngpetervlna_2-1788766853581.png petervlna_3-1788766973925.pngpetervlna_3-1788766973925.pngpetervlna_3-1788766973925.png 顺祝商祺! Peter Re: S32k344 MBIST LBIST 我尝试按顺序运行 mbist,也尝试过单独运行 mbist 测试 ID。结果相同,未观察到新的状态。能否在触发之前确认以下用于安全启动的 SCU2 寄存器设置?谢谢。 XRen_Parker_0-1788899133217.pngXRen_Parker_0-1788899133217.png Re: S32k344 MBIST LBIST 这是为社区中在 S32k344 微控制器中实现 LBIST/MBIST 时遇到困难的人们准备的。经过数日毫无进展后,我终于看到测试通过了。我通过对 SPD 驱动程序 1.06 进行自定义移植实现了这一点。驱动程序代码运行正常,只是需要将故障配置为不可恢复故障。以下是需要配置的时钟,如果其中任何一个没有正确设置,测试将失败,状态为 BIST_NORUN(0x03),因为测试序列是并发运行的,看不到其他状态,也没有设置完成位。 1. 配置 FXOSC 模块 CTRL 寄存器以使用外部振荡器或晶体,这是获得 160MHz(S32k344 的最大频率)的唯一方法。 2. 配置 PLL 电路的 PLLDIG 模块,通过配置 PLLDV 寄存器中的 rdiv、mfi 和 odiv2 位,确保输出最大频率。 3. 按照参考手册中的步骤,设置 MC_CGM_MUX_x 寄存器,为 core_clk 和 emac_clk 切换 PLL 时钟。 4. 配置 MC_CGM-MUX_0 和 MC_CGM-MUX_9 寄存器以获取以下时钟信号。 AIPS_PLAT_CLK 设置为 80 MHz AIPS_SLOW_CLK 设置为 40 MHz HSE_CLK 设置为 80 MHz DCM_CLK 设置为 40 MHz LBIST_CLK 设置为 40MHz QSPI_MEM_CLK 设置为 160MHz EMAC_CLK 设置为 80MHz 注意:不要设置 RUNSW 寄存器中的第 8 位和第 9 位,如果设置了它们,测试将失败。SPD驱动程序代码中没有实现这一点。我之所以提到这一点,是因为参考手册中存在相互矛盾的信息。
View full article
S32K142 PWM信号入力読み取り こんにちは、チームの皆さん、 S32K142でFTM入力キャプチャを使用してPWMを読み取るためのサンプルコードはありますか? はいの場合、例を共有してください。 Re: S32K142 PWM Signal input reading こんにちは、 @Julián_AragónM さん、 迅速なご返信、本当にありがとうございます。 一つ小さな疑問ですが、単一のCHを使ってデューティサイクルと周期の両方を測定できますか? 入力キャプチャモードを「両エッジを検出」に設定した場合。IC_GetMeasurementからどのような測定値が得られますか? Re: S32K142 PWM Signal input reading こんにちは、 @nirmal_masilamani さん、 参照できるのは: 例4。AN5303より:S32K上のFlexTimerモジュールの特徴と動作モード – アプリケーションノート。 AN5413の例2.5 時限I/O(FTM):S32K1xxシリーズクックブック – アプリケーションノート Ftm_Icu_Ip_BlinkLed_S32K144 RTDパッケージの例(Ftm_Icu_Ip_EnableEdgeDetection API使用) SDK からの ic_pal & ftm_signal_measurement examlpes また、いくつかのコミュニティ投稿も参照できます: s32k1:同じFTMチャネルでのPWM周波数とデューティサイクルの測定方法 S32K入力キャプチャ S32K1-FTMに基づいてモーターの速度を計算する これがお役に立てば幸いです。 よろしくお願いします、 ジュリアン   Re: S32K142 PWM Signal input reading こんにちは、 @nirmal_masilamani さん、 入力キャプチャは3つのモードをサポートしています: 立ち上がりエッジのみキャプチャ -> 期間のみ 立ち下がりエッジのみキャプチャ -> ピリオドのみ 立ち上がりエッジまたは立ち下がりエッジでのキャプチャ -> 高レベルパルス幅または低レベルパルス幅を知るには、GPIO または CnSC [CHIS] ビットを介してレベル状態を読み取る必要があります。 注意: チャネル(n)が入力モードでない場合はCHISビットは無視すべきです。 注意: ペアチャネルがデュアルエッジモードの場合、チャネル(n+1)のCHISビットはチャネル(n+1)の入力値であり、チャネル(n)入力値ではありません(この信号はデュアルエッジモードで使用される入力信号です)。 PWMデューティサイクルのキャプチャには、デュアルエッジキャプチャを使用する必要があります。そうしないと、高水準の期間か低水準の期間しか得られません。デュアルエッジキャプチャモードでは、チャネル(n)入力のみを使用し、チャネル(n+1)入力は無視されます。 Julin_AragnM_0-1788457862022.pngJulin_AragnM_0-1788457862022.png IC_GetMeasurementはティック単位のパルス幅を返し、それを使って信号周波数を計算できます: /* Get the latest value */ inputCaptureMeas = IC_GetMeasurement(&ic_pal_1_instanceConfig, channel); /* Calculate the signal frequency using recorded data*/ inputCaptureMeas = frequency / (inputCaptureMeas); よろしくお願いします、 ジュリアン Re: S32K142 PWM Signal input reading こんにちは、 @Julián_AragónM さん、 ご返信ありがとうございます。 まだ少し混乱しています。 PWM信号を測定するには、何本のピンが必要ですか? 測定にはIC_PALを使用しています。しかし、信号ピンとシングルチャンネルを使用してPWMを測定することはできません。 RTDはV4.0.0を使用しました
View full article
88W9098 Energy Detect (ed_mac) tuning Hello, We are using the 88W9098 in a u-blox M2-JODY-W377 over SDIO running at SDR50. We have driver/firmware versions lf-6.18.20_2.0.0 from github. We are using it as an Access Point in 2.4ghz channel 6. We are encountering an issue where enabling ed_mac (with "init_hostcmd_cfg=nxp/ed_mac.bin" in wifi_mod_para.conf, or using mlanutl with ed_mac_ctrl_V3_909x.conf) leads to much worse stability/latency of our in-house applicative tests : ed_mac_test.pnged_mac_test.pnged_mac_test.pnged_mac_test.pnged_mac_test.pnged_mac_test.pnged_mac_test.pnged_mac_test.png I can't go too much into detail about the test here, but it is end-to-end latency measurement of specific in-house steps, using multiple machines with a 88W9098 Access Point in the middle. Not only are some curves 200-250ms higher in average with ed_mac than without, but overall they are also more spiky and tend to have random "bursts" of added latency. We have tried tuning the offsets "ed_ctrl_2g.offset" and "ed_ctrl_5g.offset" to values different than the default 0x8, but no value that we tried had any effect on the test. The only way to have an impact is to set both enable (2g/5g) to 0, or to not load the file at boot. Is there anything else we can try? Re: 88W9098 Energy Detect (ed_mac) tuning Dear @mjourdan , Thank you for the detailed description and test data. The behavior you are seeing is actually expected given how the ed_mac (Energy Detect MAC) feature is designed, but there are several things worth checking and clarifying. Why ed_mac causes higher latency in AP mode The ed_mac feature is designed specifically for the EU ETSI EN 300 328 adaptivity compliance test. Its core mechanism is to actively suppress transmissions when the firmware detects energy on the channel above a threshold. In an Access Point scenario, this directly delays buffered downlink packets whenever the radio detects ambient energy, resulting in the latency spikes and "bursts" you are measuring. Adjusting the offset parameter changes the threshold sensitivity (how easily the radio is triggered), but it does not remove the suppression behavior itself — which is why no offset value had any measurable effect on your end-to-end latency test. Configuration file mismatch I notice you are using ed_mac_ctrl_V3_909x.conf. According to our application note AN13756, the correct configuration file for 88W9098 is ed_mac_ctrl_V2_909x.conf (with default ed_ctrl_2g.offset = 0x08 and ed_ctrl_5g.offset = 0x08). The V3 variant uses a different ed_ctrl_txq_lock field value and is not the validated configuration for this device. Please try using ed_mac_ctrl_V2_909x.conf and test whether the latency impact improves. Key question: Is EU adaptivity compliance required for your deployment? The ETSI EN 300 328 adaptivity requirement only applies to devices operating in EU/EEA markets and with a declared maximum RF output power of 10 dBm EIRP or above. Could you confirm: Is this device deployed in the EU and subject to ETSI EN 300 328 certification? What is the declared RF output power of your module (u-blox M2-JODY-W377)? If EU compliance is not required for your use case, the correct solution is simply to not load the ed_mac configuration — which you have already confirmed resolves the latency issue completely. If compliance is required, we recommend switching to ed_mac_ctrl_V2_909x.conf first, and if the latency issue persists, we can explore whether there is a newer firmware version that may improve the AP-mode behavior. Please let us know the answers to the above and we will follow up accordingly. Best Regards, Weidong Re: 88W9098 Energy Detect (ed_mac) tuning Thanks weidong. Yes the product definitely outputs more than 10dBm EIRP and needs to be EN 300 328 compliant. I have tried with ed_mac_ctrl_V2_909x.conf (https://github.com/u-blox/u-blox-sho-host-based/blob/main/JODY-W3/txpower_config/ed_mac_ctrl_V2_909x.conf) but there was no change in behavior. What we don't understand is that if we swap the module with one from DoodleLabs (QCA988X based) and perform the same test in the same environment, it also honors EN 300 328 but we have zero latency issues with it. So I am wondering why the 88W9098's implementation of ed_mac specifically would trigger such issues but not one from another chip maker. Besides version lf-6.18.20_2.0.0, we have also tried hotfix/lf-6.12.49_2.2.0_hotfix but the issue is still present. Some more information: * There are 2 stations associated to the JODY's access point.  * The bandwidth used during the test between a station and the JODY is very low (~6KiB/s) but consists of many small packets, mostly in STA->AP direction. Re: 88W9098 Energy Detect (ed_mac) tuning Dear @mjourdan ,   I have escalated your issue to our internal team. Let's wait for the expert's response together — I will share any updates with you as soon as I have them.   Best regards, Weidong Re: 88W9098 Energy Detect (ed_mac) tuning Dear @mjourdan , Internal team is analyzing the issue, could you please provide the following information? I got the following feedback from internal team. ====================================================== Driver loading parameters, along with the complete driver load/unload command sequence used to reproduce the issue. ed_mac_ctrl_V2_909x.conf configuration file. Logs captured while reproducing the issue for further investigation. Host details, including: Host platform Kernel version Driver version Interface being used (PCIe/SDIO)   These details will help us correlate the customer's setup with our internal testing and expedite the analysis. ====================================================== Thanks, Best Regards, Weidong Re: 88W9098 Energy Detect (ed_mac) tuning Hi weidong, I am currently troubleshooting the issue with u-blox so in order to prevent a collision in case it also gets escalated to NXP, I will be seeing with them only for now. Thank you for your help. Re: 88W9098 Energy Detect (ed_mac) tuning Dear @mjourdan , Any update? Thanks! Regards, Weidong Re: 88W9098 Energy Detect (ed_mac) tuning Dear @mjourdan , OK, got it. Thanks for your update. Best Regards, Weidong Re: 88W9098 Energy Detect (ed_mac) tuning Dear @mjourdan , Our internal team has conducted additional testing related to the issue you reported. We would like to share the test results with you and hope they can provide useful insights for your investigation. ================================================ We verified the issue on the QA setup using release SD9098---17.92.1.p149.159-MM6X17552.p22 (FP92), and the issue was not reproducible. The observed ping latency was around 1 to 2 seconds. Test Steps: Loaded the build and enabled EDMAC using the default ed_mac_ctrl_V2_909x.conf available in the release config folder. Brought up APUT in CH6. Connected two Ex-STAs. Performed ping tests from the Ex-STAs to the APUT. Scenarios Tested: auto_ds=1, ps_mode=1 auto_ds=2, ps_mode=2 APUT configured with HT20 and HT40 Security modes: OPEN and WPA3 Ex-STA power save: Enabled and Disabled To help us analyze and reproduce the customer-observed issue, could you also please provide: Load file/build details used by the customer Complete configuration and test environment details Noise/interference level observed in the customer setup Relevant logs from the customer side Once we have this information, we can perform a deeper analysis and attempt to reproduce the issue. ================================================ Thanks. Best Regards, Weidong
View full article
通过 tpl3 将 MC33665ATS4AE 与 MC33774AtP1e 菊花链式连接到非 NXP MCU 您好,我正在构建一个 36s 系统,其中我计划使用 MC33774ATP1E 通过 TPL3 以菊花链方式进行电池监控。要与单片机通信,我需要一个 MC33665ATS4AE。对于微控制器(MCU),我打算使用STM32芯片。 我需要司机和沟通方面的帮助。签署保密协议后提供的AutoSAR驱动程序SDK会有帮助吗? Re: Interfacing the MC33665ATS4AE to the MC33774AtP1e daisy chain via tpl3 to a non-nxp MCU 你好 sahilHastin 再会! 是的,但由于这涉及到安全文档,我建议您在我们的官方网站上提交一个案例,这样我们可以更私密地为您提供帮助。 祝你今天过得愉快,一切顺利。
View full article
如何在 VSC 扩展中未列出板或设备编号的情况下创建项目 如果设备/板未列在库中,我们如何在 VSCode MCUXpresso 扩展中创建新项目? VSCode 版本为 1.135.0,MCUXpresso 扩展版本为 26.06.123。MCUXpresso SDK 开发版已安装至 26.06 版本,Arm GNU 工具链已安装至 14.2.1 版本。 我们重新构建了 LPC1768 的代码仓库。如果零件编号不在列表中,我们就无法创建项目……(附图中,“创建项目”按钮呈灰色。) 请指教。 # VSCode #MCUXpress LPC1768FBD100 回复: How to create a project without a board or device number listed in the VSC extension 您好@Microsystemca 新建项目向导只能为导入的 MCUXpresso SDK 存储库(或 SDK 构建器包)中包含的设备或板创建项目。如果目标设备在 SDK 包中不可用,向导将无法找到所需的设备或板定义,因此无法直接创建新项目。 新建项目向导 — MCUXpresso for VS Code 26.08 文档 作为一种变通方法,您可以使用 MCUXpresso IDE 安装相应的设备支持包,并在其中为目标设备创建一个项目。项目在 MCUXpresso IDE 中成功创建和构建后,您可以使用 MCUXpresso for VS Code 中的“导入项目”功能导入现有项目,并在 VS Code 环境中继续开发。 BR 哈里 回复: How to create a project without a board or device number listed in the VSC extension 谢谢你提供的解决方法。我们照做了,而且似乎效果不错。需要注意的是,MCUXpresso IDE 与某些公司采用的**网络安全**标准并不完全兼容,安装后会触发对计算机的全面扫描。安全散列算法(SHA)/MCX 哈希值来自未知发布者。由于获得了微软认证,VSCode MCUXpresso 可以直接安装。这就是为什么用户更希望 VSCode MCUXpresso 仓库中列出所有部件的原因。
View full article
S32DSライセンスの有効期限が2日後に切れます。 NXPサポートの皆さん、こんにちは。 S32 Design Studioの評価ライセンスをS32プラットフォーム3.4向けに延長する必要があります。 IDEのライセンスウィンドウで「ライセンスをリクエスト」ボタンが見つかりません。 ライセンス情報は以下の通りです: 製品:S32プラットフォーム向けS32 Design Studio バージョン:3.4 アクティベーションID: 60D2-8F18-EC11-211F 評価残り日数:2日 フィーチャーバージョン:3.4 機能状況:評価(2日) この評価ライセンスの延長にご協力ください。 ありがとうございます。よろしくお願いいたします。 Re: S32DS License expiring in 2 day(s). こんにちは、 お客様のS32DSライセンスが延長されました。以前使用していたコードを使って、S32DSを再度有効化してください。 Re: S32DS License expiring in 2 day(s). こんにちは、 あなたのために延長を申請しました。 よろしくお願いいたします。 ピーター
View full article
S32K312 安全启动认证后更改 FBL 您好,NXP, 我之前就同一问题联系过您,但我需要更多帮助,所以再次联系您。我们正在使用 S32K312 MCU,HSE 版本为 2.6.0。 问题:启用安全启动后,在 FBL(闪存引导加载程序)更改后,ECU 无法正常启动(无法执行应用程序)。 使用 hseImportKeySrv_t (HSE_SRV_ID_IMPORT_KEY) 进行检查时,返回的结果是 KEY_EMPTY。此外,在 Fota_S32k3_SecureBootProcess 中,hseRequestResult 值也返回为 KEY_EMPTY,导致 retVal 为 1(NOT_OK)。由于此身份验证失败,SMR 验证失败。 我们尝试使用 CMAC、RSA 或 ECDSA 通过 SU(超级用户)权限认证执行 SMR 验证所需的密钥注入,但我们了解到获得此类权限需要认证密钥,而我们一直未能找到该密钥。我们也尝试擦除 IVT 扇区,但这也不可能,因为生命周期设置为 IN_FIELD。 问题: 1. 是否有办法授予SU权限?(即,是否可以查找/检索身份验证密钥?) 2. 鉴于刷入之前的引导加载程序后程序可以正常执行,这是否意味着旧的 META 值仍然保留在 HSE 中? 3. 当我们执行 Crypto_Hse_GetKeyInfo(FOTA_HSE_MU0_INSTANCE, Crypto_aKeyElementList[ElementIndex].u32HseKeyHandle) 时,Crypto_aKeyElementList[ElementIndex].u32HseKeyHandle 的值返回为 66305。这是否表明 HSE 内存/插槽/句柄不匹配,导致 SMR 验证失败?(即,HSE 内存/插槽/句柄不匹配是否是根本原因?) 4. 如果我们无法获取 SU 认证密钥,并且在此状态下也不支持格式化密钥目录,请问是否有官方的 NXP 恢复程序(例如,通过安全调试认证、RMA 或其他供应商配置程序进行特殊访问)可以用来正确恢复此设备(该设备目前处于 IN_FIELD 生命周期状态,且密钥目录部分丢失)? 感谢您提前给予的支持。 Re: S32K312 Change FBL after Secureboot authentication 卢卡斯目前正在休假,所以我会在此期间尽量回答您的问题。 Q1:在 IN_FIELD 中,可以通过质询-响应(HSE_SRV_ID_SYS_AUTH_REQ / HSE_SRV_ID_SYS_AUTH_RESP)获得 SU 权限,但前提是 CUST/OEM 授权密钥在进入 IN_FIELD 之前已配置。如果未进行配置,或者私钥未保存在外部,则无法获得 SU 权限,也无法检索密钥。 Q2:基于旧 FBL 正常工作的事实,HMAC 密钥和原始认证标签很可能仍然完好无损地保存在 HSE SYS-IMG 中。如果真是这样,新的 FBL 将会失败,因为认证标签是根据旧的二进制文件计算的,不再与新的二进制文件匹配。使用新的 FBL 内容重新运行 HSE_SRV_ID_SMR_ENTRY_INSTALL 可以解决此问题,但需要 SU 权限。请问这是否与您的配置相符? Q3:句柄 66305 (0x10301) 解码为 NVM 目录,组 3,槽 1 — 似乎是空的。这表明 HMAC 密钥可能配置在不同的插槽中,并且新的 FBL 的 FOTA 代码引用了错误的硬编码句柄。首先,请将原始 HSE_SRV_ID_SMR_ENTRY_INSTALL 调用中的 authKeyHandle 与新的 FBL 的 FOTA 代码中引用的 authKeyHandle 进行比较——它们很可能不同。但是,在没有看到您的完整配置之前,我们无法确定这一点。 Q4:两种选择:(1)如果已配置客户/OEM授权密钥——使用质询-响应来获取SU权限。(2)如果已配置 ADKP — 安全调试身份验证仅解锁 JTAG 以进行诊断,而不是 HSE NVM 写入。
View full article
MCXN947による複数顔検出 - 画像にエラーあり こんにちは、NXP Application Code Hubの「Multiple Face Detection on MCXN947」アプリケーションを実行しようとしています。アプリケーションは動作していますが、カメラの画像が正しく撮影されていません。ピクセルや顔の薄い輪郭は見えますが、画像は非常に歪んでいて、正しく認識するには鮮明ではありません。これはカメラの再作業やはんだ付けの問題、あるいはカメラ信号の接続の問題が原因でしょうか?私は既に推奨されているカメラの再調整手順(SJ16、SJ26、SJ27)を実行しました。 MCX N Re: Multiple Face detection with MCXN947 - Error on image ありがとうございます。はんだ付けし直したら、今は正常に動作しています。 Re: Multiple Face detection with MCXN947 - Error on image ありがとう。再はんだ付けしたら、今は正常に動作するようになりました。 Re: Multiple Face detection with MCXN947 - Error on image こんにちは、 @Gayathriii さん。 投稿ありがとうございます。FRDM-MCXN947のビジョン MLで役立つヒントが見つかるかもしれません。この問題に対処するのに役立つかもしれません。 1.PORの後、カメラは2.8Vを想定しているのにボードは3.3Vで動作しており、初期のHSYNC信号が欠落しているため、カメラに不具合が発生する可能性があります。リセットボタン(SW1)を押すと、カメラの問題は解決するはずです。 2. OV7670カメラがJ11に接続されていること(J9ではなく)、LCD-PAR-S035がJ12に接続されていることを確認してください。 Celeste_Liu_0-1788406926113.png 3. SJ16、SJ26、およびSJ27のハンダジャンパーの向きが正しいことを確認します。 お役に立てば幸いです。もしこの件に関してまだ問題がある場合は、お知らせください。 BR セレステ Re: Multiple Face detection with MCXN947 - Error on image こんにちは、 はい、ピクセルが欠けていたり、かすかな輪郭が残る画像は、ハードウェアのはんだ付けや接続不良、部分的な接触が原因で十分に起こり得ます。SJ16、SJ26、SJ27のサンダージャンパーを正しくA側からB側に反転させていてもです。 敬具
View full article
LX2160ARDB: DDR検証 こんにちは、 LSDKからRCWファイル(rcw_2200_750_2900_19_5_2.bin)をSDカードにロードし、DDR構成パネルでRead SPDを実行すると、 「サポートされていない生カードリビジョンです。CLKをDQSスキュー値に手動で設定してください。」というメッセージが表示されます。 QCVSツールでLX2160ARDBのDDR検証を実行する方法 Priyaa_0-1788337942087.pngPriyaa_0-1788337942087.pngPriyaa_0-1788337942087.pngPriyaa_0-1788337942087.pngPriyaa_0-1788337942087.pngPriyaa_0-1788337942087.pngPriyaa_0-1788337942087.pngPriyaa_0-1788337942087.pngPriyaa_0-1788337942087.png Re: LX2160ARDB: DDR validation こんにちは、ジューン・ルーさん サポートありがとうございます USBの場合、コマンドの結果は (ビン)51% findcc cwtaps 0 (ビン)51% イーサネット接続用 (bin) 51% findcc cwtaps FSL07E3D5 (10.1.66.150):CodeWarrior TAP v2 Cortex-10 プローブチップ ブートローダー v1.0.1 オペレーティングシステム v1.0.5 1 今のところ、DDR検証のためにイーサネット接続を使ってさらに進めてもいいでしょうか? Re: LX2160ARDB: DDR validation (バイナリ)52%表示cc 0: USB接続の失敗 コマンドコンバーターは構成されていません これは、CWTAPがUSB接続から検出できないことを示しています。 USBケーブルの接続を確認し、CWTAPがホストPCに正しく認識されていることを確認してください。 また、以下のコマンドを実行して結果を共有してください。 (bin) 6% findcc cwtaps ありがとうございます。 Re: LX2160ARDB: DDR validation こんにちは、ジューン・ルーさん CodeWarrior バージョン- Priyaa_0-1788417354430.pngPriyaa_0-1788417354430.pngPriyaa_0-1788417354430.pngPriyaa_0-1788417354430.pngPriyaa_0-1788417354430.pngPriyaa_0-1788417354430.pngPriyaa_0-1788417354430.pngPriyaa_0-1788417354430.pngPriyaa_0-1788417354430.png (ビン)49% log v CCS Linuxリリースビルド 503.0.0.220812-p0 詳細ログ記録 (ビン)50%全て削除 (ビン)51%構成CCのCWTAPです。 (ビン)52%、CCを表示 0: USBオープン失敗 コマンドコンバーターは構成されていません (ビン)53% (bin) 53% source IDcode.tcl(bin) USB接続で利用可能なTAPをスキャンしています..... USB接続のTAPは見つかりませんでした ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + + 利用可能なリモート接続 + + 1 - CodeWarriorTAP - + 2 - GigabitTAP - + + x - 変更せずにスクリプトを終了 + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 接続を指定してください: 「CONNECTION()」を読み取れません:配列にそのような要素はありません (ビン)54% (ビン)54% イーサネット経由で接続し、ターゲットにpingを送ることができます。CodeWarriorをv11.5.12にアップデートした後でも、SPDの読み取り時に「サポートされていない生カードリビジョンです。CLKをDQSスキュー値に手動で設定してください。」という同じメッセージが表示されます。 よろしくお願い申し上げます。 Re: LX2160ARDB: DDR validation CodeWarrior版は、QorIQ LSシリーズ(ARM v8 ISA)向けCodeWarrior開発スタジオについてHelp →から確認してください。 接続状態を確認するには、「CCS Windows Release Build 503.0.0.220812-p0.txt」に記載されている手順に従ってください。 まずUSB接続をテストし、その後イーサネット接続を試すことをおすすめします。 IPアドレスが変更されたようです。ターゲットに正常にpingが届くかどうか確認いただけますか? Re: LX2160ARDB: DDR validation こんにちは、ジューン・ルーさん CodeWarrior 11.5.0を使用しており、DIMMはLX2160ARDBに付属していた純正モジュールです。 CodeWarriorをアーカイブcom.freescale.armv8.11.5.12.GA.Lin.updatesite.221209.zipで更新バージョン11.5.12の場合 JTAGを検出できなくなりました Priyaa_0-1788412965825.pngPriyaa_0-1788412965825.pngPriyaa_0-1788412965825.pngPriyaa_0-1788412965825.pngPriyaa_0-1788412965825.pngPriyaa_0-1788412965825.pngPriyaa_0-1788412965825.pngPriyaa_0-1788412965825.pngPriyaa_0-1788412965825.png よろしくお願い申し上げます。 Re: LX2160ARDB: DDR validation あなたの指示通りに操作したところ、SPDを正常に読み取ることができました。 どのバージョンのCodeWarriorを使っているのか確認していただけますか?CodeWarrior 11.5.12ですか? また、そのDIMMは純正品ですか? ありがとうございます。 Re: LX2160ARDB: DDR validation こんにちは、ジューン・ルーさん FlexSPI経由で起動した後、u-bootでtftpboot経由でRCWファイルをロードし、以下のmmc書き込みコマンドを実行しました。 => tftpboot 0x90000000 rcw_2200_750_2900_19_5_2.bin => mmc dev 0; mmc write 0x90000000 8 1 => qixis_reset sd (このコマンドの実行中にD19の電源がオン/オフされました) また、DDR構成の場合、SPDから読み取ると「サポートされていない生カードリビジョンです。CLKをDQSスキュー値に手動で設定してください。」というエラーが表示されます。 Re: LX2160ARDB: DDR validation LSDKからRCWファイル(rcw_2200_750_2900_19_5_2.bin)をSDカードにロードするにはどうすればよいですか? D19は電源のオンオフを繰り返しましたか? QCVSツールでのDDRのLX2160ARDB検証については、以下を参照できます: QCVS_DDR_ユーザーガイド よろしくお願いします。 Re: LX2160ARDB: DDR validation こんにちは、ジューン・ルーさん イーサネット経由で接続し、テキストファイルに記載されている通りLX2160Aを見つけることができます Priyaa_0-1788427814124.pngPriyaa_0-1788427814124.pngPriyaa_0-1788427814124.pngPriyaa_0-1788427814124.pngPriyaa_0-1788427814124.pngPriyaa_0-1788427814124.pngPriyaa_0-1788427814124.pngPriyaa_0-1788427814124.png しかし、DDR設定ウィンドウでSPDを読み取ると、「サポートされていない生カードリビジョンです。CLKをDQSスキュー値に手動で設定してください。」と表示されます。 SPD値が正常に読み取られたことを確認するにはどうすればよいでしょうか? Re: LX2160ARDB: DDR validation (bin) 50%すべて削除 (bin) 51 % config cc cwtap:10.1.66.150 (バイナリ)52%表示cc (bin) 53% ソース IDcode.tcl もし「CCS Windows Release Build 503.0.0.220812-p0.txt」と同じものが見つかればLX2160A。 DDRの検証にはIPアドレス10.1.66.150のイーサネット接続を使うことができます。 よろしくお願いします。 Re: LX2160ARDB: DDR validation これが成功時のスクリーンショットです。 June_Lu_0-1788429917395.pngJune_Lu_0-1788429917395.pngJune_Lu_0-1788429917395.pngJune_Lu_0-1788429917395.pngJune_Lu_0-1788429917395.pngJune_Lu_0-1788429917395.png USBを使ってCWTAPに接続しました。プローブに正しいIPアドレスを設定する必要があります。 「接続診断」を成功裏に実行できましたか? June_Lu_1-1788430165643.pngJune_Lu_1-1788430165643.pngJune_Lu_1-1788430165643.pngJune_Lu_1-1788430165643.pngJune_Lu_1-1788430165643.pngJune_Lu_1-1788430165643.png Re: LX2160ARDB: DDR validation 接続診断が正常に完了しました Priyaa_0-1788431456696.pngPriyaa_0-1788431456696.pngPriyaa_0-1788431456696.pngPriyaa_0-1788431456696.pngPriyaa_0-1788431456696.png SPD読み取り後のDDR構成は以下のとおりです。 Priyaa_1-1788432417841.pngPriyaa_1-1788432417841.pngPriyaa_1-1788432417841.pngPriyaa_1-1788432417841.pngPriyaa_1-1788432417841.png DDRの検証が順調に開始されているか確認していただけますか? というのも、検証開始ボタンが有効になっているにもかかわらず、検証開始直後にキャンセルされてしまうという問題が発生しているからです。 Re: LX2160ARDB: DDR validation こんにちは、ジューン・ルーさん ユーザーガイドに従い、再びDDRの設定とSPDの読みのためのプロジェクトを作成しました。以下の通りです Priyaa_0-1788498272408.pngPriyaa_0-1788498272408.pngPriyaa_0-1788498272408.pngPriyaa_0-1788498272408.png DIMMモジュールはRDBのJ14、J17コネクタに挿入されます。 Re: LX2160ARDB: DDR validation あなたのスクリーンショットは私のものと同じではないようです。「戻る」ボタンと「キャンセル」ボタンがありません。 QCVS_DDR_User_Guide 1.1.1 に従いましたか?DDR設定ツールを使用していますか? よろしくお願いします。 Re: LX2160ARDB: DDR validation こんにちは、ジューン・ルーさん スイッチ(SW1)をRCWソースが存在するSDカードモードに変更した後、検証を行うことができました。 サポートありがとうございます... Re: LX2160ARDB: DDR validation SPDの読み取りは正常に完了したようですが、スクリーンショットは私の画面で表示されるものと若干異なっています。 DDR検証用にRCWソースが構成されているeMMCから起動するには、SW1[1:4]を1001に設定してください。 また、「ターゲット接続」がコネクテッドと表示されているか、スクリーンショットをご覧ください。 確認が完了したら、DDRの検証を進めることができます。 June_Lu_0-1788504721222.png Re: LX2160ARDB: DDR validation こんにちは、ジューン・ルーさん LX2160ARDBをSDカードから起動するには、u-bootソース内のDDRレジスタ値を変更する必要がありますか、それともDIMMのSPDから読み取りますか? ご説明いただけますでしょうか…ありがとうございます。 Re: LX2160ARDB: DDR validation DIMMスロットを備えた標準のLX2160ARDBでは、DDRレジスタは、インストールされているDIMMからSPDを読み取ることで自動的に構成されます。これはU-Bootではなく、TF-A BL2ステージ(ddr_init.c)によって処理されます。LX2160ARDBでカスタムDIMMを使用する場合にのみ、ATFソースを変更する必要があります。 もし新しい質問があれば、適切に追跡できるよう新しいスレッドを作成してください。このケースはかなりの間活動が停止しています。 ありがとうございます。
View full article
rt1186 デバッグの問題 FRDM-IMXRT1186開発ボードでOEM_CLOSEを有効にした後、デバイスのデバッグができなくなりました。リファレンス・マニュアルでnxpdebugmboxを使ってデバッグを再有効にできると見ましたが、試してみてうまくいきませんでした。 yanyanwang_0-1788347257012.pngyanyanwang_0-1788347257012.pngyanyanwang_0-1788347257012.png 開発ボード MCX C セキュリティ(EdgeLock | セキュアブート | OTP) Re: rt1186 debug issues ご提供いただいたリンクを確認し、推奨された手順に従いましたが、依然として同じ問題が発生しています。 私は画像に署名しただけで、暗号化はしていません。OEM_CLOSEも設定しました。 nxpdebugmboxは、デバッグ機能を再度有効にするためだけに使用しています。 SECプロジェクトと関連ログを添付ファイルとしてアップロードしました。プロジェクトとログの分析を手伝って、問題の原因を特定していただけませんか? Re: rt1186 debug issues こんにちは、 @yanyanwangさん SECツールのドキュメントには、デバッグ認証のトラブルシューティングが掲載されています: https://docs.mcuxpresso.nxp.com/secure/latest/09_troubleshooting.html#debug-authentication 役立つヒントも以下に掲載されています https://docs.mcuxpresso.nxp.com/secure/latest/07_generic_workflows.html#debug-authentication-workflow もしこれで役に立たなければ、設定の詳細を教えてもらえますか?SECツールのワークスペース設定を共有してもらえますか? Re: rt1186 debug issues @yanyanwang この問題はSEC 26.03に関連しているようです。SEC 26.06へのアップデートをお勧めします。 ご迷惑をおかけして申し訳ございません。 注:SEC 26.06には、SPARSEイメージフォーマットの修正も含まれています。 Re: rt1186 debug issues はい、ありがとうございます。認証は成功しましたが、それでもデバイスのデバッグはできません。 手順は以下の通りです。 1. 認証を行うためにSECツールを使用します。 2. 認証が成功した。 3. 次に「Debug」ボタンをクリックしてデバッグを開始します。 4.しかし、デバッグは失敗に終わった。
View full article
S32k344 MBIST LBIST 私は現在、グリーンヒルズプロジェクトにおいてS32k344 BISTの実装を進めているところです。私はTresosやNXP DSを使用していないため、ソースコード形式のSW32K3_SPD_1.0.6_D2512を使用しています。ほとんどのbist関数はインポートできましたが、いくつかの定義だけはどこにも分かりません(どこにも見つかりません)。以下の質問に誰か答えてもらえますか? 1. S32k344がロックステップモードの状態でLBIST MBISTを動かしてもいいですか? 2. コードを調べて推測した以下の定義は正しいでしょうか? #define BIST_MBIST_0 1U #define BIST_MBIST_1 2U #define BIST_MBIST_2 3U #define BIST_MBIST_3 4U #define BIST_MBIST_4 5U #define BIST_MBIST_5 6U #define BIST_MBIST_6 7U #define BIST_MBIST_7 8U #define BIST_MBIST_8 9U #define BIST_MBIST_9 10U #define BIST_MBIST_10 11U #define BIST_LBIST_0 0U 私が使用した設定データは以下のとおりです。 static const BIST_CHANNEL_CONFIG_TYPE BistConfig[BIST_SAFETYBOOTCFG_NB] = ヤージュ ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_0、 (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_1)) }、 ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_1、 (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_2)) }、 ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_2、 (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_3)) }、 ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_3、 (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_4)) }、 ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_4、 (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_5)) }、 ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_5、 (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_6)) }、 ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_6、 (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_7)) }、 ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_7、 (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_8)) }、 ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_8、 (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_9)) }、 //#endif ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_9、 (BIST_CONTROL_TYPE)((0x80100000U) | BIST_MBIST_PTR_VAL(BIST_MBIST_10)) }、 ヤージュ (BIST_CHANNEL_TYPE)BIST_MBIST_10、 (BIST_CONTROL_TYPE)(0x00100000U) }、 ヤージュ (BIST_CHANNEL_TYPE)BIST_LBIST_0、 (BIST_CONTROL_TYPE)((0x00001108U) | BIST_LBIST_PTR_VAL(BIST_NIL)) } }; Re: S32k344 MBIST LBIST こんにちは、 1. S32k344がロックステップモードの状態でLBIST MBISTを動かしてもいいですか? はい。S32K344のロックステップアーキテクチャは、STCU2 LBIST/MBISTの実行を妨げません。BIST機構はデバイスセーフティインフラストラクチャの一部であり、STCU2で管理される論理とメモリをテストするために設計されています。S32K3セーフティマニュアルには、ロックステップとSTCU2 LBIST/MBISTの両方が装置のセーフティ機構として明示されています。 2. コードを調べて推測した以下の定義は正しいでしょうか? 数値値は基本的にS32K344に正確ですが、セーフティ上の観点からセーフティブート構成にMBIST_10(HSE_ROMs)を含める必要はなく、推奨されるパスは検証済みのSPD構成を直接利用することです。 よろしくお願いいたします。 ピーター Re: S32k344 MBIST LBIST ピーター、 ご返信いただき、誠にありがとうございます。ここ数日間、BISTテストの問題で行き詰まっています。私はS32k344ホワイトボードでテストしており、コードはGreen HillsのマルチIDE rev 8.1で構築しています。セーフティブーツのBISTが通っていません。コアやペリフェラルの最大クロック要件は満たされていると思います。外部水晶発振器16MHzとPLLからcore_clkを160MHzに設定し、AIPS_PLAT_CLKは80MHz、AIPS_SLOW_CLKは40MHz、DCM_CLKは40MHz、LBIST_CLKは40MHz、QSPI_MEM_CLKは160MHzに設定しています。bist 実行からユニットをリセットすると、DES レジスタが 0x00408175 になり、いくつかの予約ビットが設定され、FES レジスタが 0x2000 になります (意味がわかりません)。以下の質問にお答えいただけますでしょうか? 1. 上記のすべてのクロック信号は、MC_CGM->MUX_0_DC_x レジスタを介して有効化する必要がありますか?私は手に入れている 情報が矛盾していますが、現在有効になっています。 2. リファレンス・マニュアルのSTCU2章には、「EMACタイムスタンプメモリ上でMBISTを実行する際、MC_CGM MUX_9_9_DC_0[DIV]はEMAC_CLK_TS AIPS_SLOW_CLK周波数の少なくとも1.5倍であるべきであるように適切に設定されるべきである。」つまり、クロックを設定して、MC_CGM->MUX_9_DC_0レジスタで有効にする必要があるということですか? 3. SW32K3_SPD_1.0.6_D2512パッケージでS32_SPD_Demo例コードを見たい場合は、最新のNXP Design Studioをインストールし、spd zipファイルを更新サイトとしてインポートし、RTDパッケージも同時にインポートする必要があると思います。それで合っていますか? 4. MBIST 10はHSE_RAMS、MBIST 11はHSE_ROMSだと思います。SPDドキュメントフォルダにある以下の表を参照してください。 MBIST BIST ID BISTインスタンス名 ドメインのリセット セーフティブーツ セーフティ診断 0 SYS0_RAMS 主要 ü ü 1 SYS1_RAMS 主要 ü ü 2 DMA_TCD_RAM 主要 ü ü 3 CM7_0_TOP 主要 ü ü 4 CM7_1_TOP 主要 ü ü 5 フレックス・キャン・ラムズ 主要 ü ü 6 QSPI_PERI_RAMS 主要 ü ü 7 EMAC_TSN_RAM 主要 ü ü 8 EMAC_RAMS 主要 ü ü 9 b03_ETF_RAMS 主要 ü ü 10 HSE_RAMS 主要 ü ü 11 HSE_ROMS 主要   ü Re: S32k344 MBIST LBIST 私の問題に関する最新情報です。STCU_RUNSW_REGのビット8と9を有効にしてPLLを使用するようにした後、DESレジスタが常に0x11、FESレジスタが0x10になっていることが確認されています。bist_get_exec_status(BIST_SAFETYBOOT_CFG) の戻り値は NOT RUN (0x03) です。BIST ERR_STATレジスタには何も格納されておらず、ENDフラグも設定されていません。FCCU NCF_S0レジスタでは、ビット2がセットされています。BISTは開始されなかったようですが、リセットは確認できました。私は、別のバンクのフラッシュメモリに書き込むことで、レジスタ設定を取得しました。 Re: S32k344 MBIST LBIST 考えられるすべての時計を確認しましたが、どれも正確だと思います。レジスタ内の設定データをNXP Studio SPDのサンプルプロジェクトの値と比較してみましたが、それらも正しかったです。新しい情報が1つあります。システムがBISTリセットから復帰した後、DCMROD3レジスタに値0x18が記録されているのを確認しました。このエラーを解決するにはどうすればよいですか?ありがとう。 XRen_Parker_0-1788544110794.pngXRen_Parker_0-1788544110794.pngXRen_Parker_0-1788544110794.pngXRen_Parker_0-1788544110794.pngXRen_Parker_0-1788544110794.png Re: S32k344 MBIST LBIST こんにちは、 STCUの自己診断シーケンスが開始され、ST_DONEリセットフェーズに到達しました。しかし、STCUは回復不能な故障(STCU_URF)も報告しており、これがSAFのBISTドライバがその後BIST_NORUNを報告する理由を説明しています。したがって、この問題はBISTが一度もトリガーされなかったCASEではなく、STCUの実行・設定失敗であるようです。 S32K3では、破壊リセットと機能リセットの両方の表示が同時に見られる場合、それはリセット履歴を表示している可能性が高く、必ずしも直接のリセット元を表示しているとは限りません。 ソフトウェアを移植するとのことですので、まずはPLLから取得したデータでMBISTテストのみを実行して、合格するかどうかを確認してみることをお勧めします。 また、テスト時の時計設定を再度確認してください。 よろしくお願いいたします。 ピーター Re: S32k344 MBIST LBIST こんにちは、 S32K344では、RCCUがロックステップの不一致を報告し、デバッガと接続すると、単独実行では決して起こらないRCCU関連の故障が発生することも珍しくありません。 例の設定に従うなら、フルBISTです。 この例はテスト済みで、デフォルト設定で完全に動作します。 しかし、あなたのポートはURFエラーを報告しているので、すべてが同じではないことがわかります。 STCUのドキュメントを見ると、ユーザーはテストへのポインタを設定できます。 54.9.4 STCU2 設定 (CFG) petervlna_0-1788766597312.pngpetervlna_0-1788766597312.pngpetervlna_0-1788766597312.png まずは検査を縮小してから、徐々に検査を増やす方法もあります。 MBISTおよびLBIST制御レジスタでは、どのテストが最後に行われるかを設定できます: petervlna_1-1788766735386.pngpetervlna_1-1788766735386.pngpetervlna_1-1788766735386.png 例えばCFGレジスタで を指し示すことで、単一のMBISTパーティションを実行できます: petervlna_2-1788766853581.pngpetervlna_2-1788766853581.pngpetervlna_2-1788766853581.png petervlna_3-1788766973925.pngpetervlna_3-1788766973925.pngpetervlna_3-1788766973925.png よろしくお願いいたします。 ピーター Re: S32k344 MBIST LBIST mbistを順番に実行してみたり、個別のmbistテストIDを使って実行してみたりしました。結果は同じで、新たな状態は観察されなかった。トリガー設定直前のセーフティブート用の以下のSCU2レジスタ設定を確認できますか?ありがとう。 XRen_Parker_0-1788899133217.pngXRen_Parker_0-1788899133217.png Re: S32k344 MBIST LBIST これは、S32k344マイクロコントローラでLBIST/MBISTの実装に苦労しているコミュニティの方々のためのものです。何日も進展がなかった後、ようやく試験に合格することができました。SPDドライバー1.06のカスタム移植でそうしました。ドライバーコードは動作しますが、故障を回復不能な障害に設定する必要があります。以下は設定が必要なクロックです。これらのいずれかが正しく設定されていない場合、テストシーケンスが同時に実行され、他のステータスが表示されず、完了ビットが設定されないため、テストは BIST_NORUN(0x03) ステータスで失敗します。 1. FXOSCモジュールのCTRLレジスタを設定して外部オシレーターまたは水晶発振器を使用するようにします。これがS32k344で最大160MHzを得る唯一の方法です。 2. PLL回路用にPLLDIGモジュールを設定し、PLLDVレジスタのrdiv、mfi、およびodiv2ビットを設定して、最大周波数が出力されるようにします。 3. PLLクロックをcore_clkとemac_clkのリファレンス・マニュアルの手順に従って切り替え、MC_CGM_MUX_xレジスタ設定を行います。 4. MC_CGM->MUX_0 レジスタと MC_CGM->MUX_9 レジスタを設定して、以下のクロック信号を取得します。 AIPS_PLAT_CLKを80MHzに設定 AIPS_SLOW_CLKを40MHzに設定 HSE_CLKを80MHzに設定 DCM_CLKを40MHzに設定 LBIST_CLKは40MHz QSPI_MEM_CLKを160MHzに設定 EMAC_CLKは80MHz     注: RUNSW レジスタのビット 8 と 9 を設定しないでください。設定するとテストが失敗します。これはSPDドライバーコードには記載されていません。リファレンス・マニュアルには矛盾した情報があるため、これを言及します。
View full article
使用 MCXN947 进行多人脸检测 - 图像错误 您好,我正在尝试从 NXP 应用代码中心运行“MCXN947 上的多人脸检测”应用程序。应用程序正在运行,但摄像头图像无法正确捕获。我可以看到一些像素点和我脸部的模糊轮廓,但图像严重失真,不够清晰,无法正确识别。这会不会是相机返工/焊接或相机信号连接出现问题导致的?我已经按照推荐的相机返修程序(SJ16、SJ26 和 SJ27)进行了操作。 MCX N Re: Multiple Face detection with MCXN947 - Error on image 谢谢,我重新焊接了一下,现在可以用了。 Re: Multiple Face detection with MCXN947 - Error on image 谢谢。重新焊接后现在可以用了。 Re: Multiple Face detection with MCXN947 - Error on image 你好@Gayathriii , 感谢你的帖子。您可以在FRDM-MCXN947 的 Vision ML中找到一些有用的技巧,这些技巧可能有助于解决此问题。 1.POR 后,由于相机期望电压为 2.8V,但电路板电压为 3.3V,并且初始 HSYNC 信号丢失,因此相机可能会出现一些故障。按下RESET按钮(SW1)应该可以解决任何相机问题。 2. 请确认OV7670摄像机已插入J11(而非J9),并且LCD-PAR-S035已连接到J12。 Celeste_Liu_0-1788406926113.png 3. 确认 SJ16、SJ26 和 SJ27 的焊接跳线方向是否正确 希望对您有所帮助。如果您还有问题,请告诉我。 BR 塞莱斯特 Re: Multiple Face detection with MCXN947 - Error on image 你好, 是的,即使您已将焊接跳线 SJ16、SJ26 和 SJ27 从 A 面正确地翻转到 B 面,硬件焊接、连接问题或部分接触仍然可能导致图像失真,出现像素缺失或轮廓模糊的情况。 此致
View full article