Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
MC34PF3000A7EのCCOを知りたいです 工場出荷時のラベルにはPHで組み立てられたと記載されていますが、チップの国名は知りません。 ラベル情報から調べる方法を教えてもらえますか?どうもありがとう
View full article
bootloader需要fs26安装包 目前我在使用unified_bootloader_demo_v2.1,进行基于s32k344的bootloader工程移植开发,rtd使用2.0,我的控制器使用fs26芯片,fs26 sbc驱动包最低匹配rtd3.0,能提供给我匹配rtd2.0的 sbc包或者手写实现代码?如果能提供rtd3.0以上bootloader工程更好了? 十分感谢! 回复: bootloader需要fs26安装包 你好,图片1是需要修改startup_cm7.s启动文件中,关于ram初始化的启动,我为了尽量少的改动,可以bootloader v2.1中只修改extern void Boot_PowerONClearAllFlag(void);这样可以吗? 回复: bootloader需要fs26安装包 你好, 我现在使用bootloader的 v2.1进行修改,说是ecc校验4字节出现错误,此函数 Boot_PowerONClearAllFlag需要修改,直接进行8字节校验,发现启动函数只有ExchangeInfo区域没有初始化,我这样修改可以吗? /*when power on, clear all flag in RAM for ECC.*/ void Boot_PowerONClearAllFlag(void) {     uint16 infoCrc = 0u;     uint8 index = 0u;     /*clear RAM with 8 bytes for ECC*/     for(index = 0u; index < (gs_stBootInfo.infoDataLen >> 3u); index++)     {         *((uint64 *)gs_stBootInfo.infoStartAddr + index) = 0u;     }         infoCrc = Boot_CalculateInfoCRC();     SetInforCRC(infoCrc);   } 回复: bootloader需要fs26安装包 Hi 很抱歉,社区分享的Unified bootloader Demo按“原样”提供,没有更高S32K3 RTD版本例程。由此造成的不便,我们深表歉意。 FS26 SBC Autosar 4.4 version 1.0.0 是搭配S32K3 RTD 2.0.0的,我已经向内部团队帮你申请这个旧版本驱动,请等待他们为你账号添加该版本软件下载权限。 顺便提一句,需要注意例程里一个错误。S32K3常见问题检查列表(Check list)分享的 "3.4.3 需要使用8字节写的方式对RAM进行ECC初始化"有提到: 检查RAM(特别注意Standby RAM)进行ECC初始化时是否按照8字节写的方式。 例如:*(uint64 *)0x20400000 = 0; 不遵守可能ECC错误。 在NXP做的BOOTLOADER示例工程中使用了4字节清零的ECC初始化方式, *(uint32 *)0x20400000 = 0; 是错误的,不要参照。 S32K3 sharing data between Bootloader and Application里也有关于此的讨论。 Best Regards, Robin 回复: bootloader需要fs26安装包 把 Boot_PowerONClearAllFlag() 从 4 字节写改成 8 字节/64-bit 写,是解决 S32K3 RAM ECC 初始化问题的关键。你这么改看起来是可以的。 ExchangeInfo的问题请参考s32k312Will the data in the SRAM area not be reset during the reset process?里的讨论。 1.0 0 FS26 SBC Autosar 4.4 version 1.0.0 应该已经添加到你的账号里了。
View full article
iMX8M Plus CC Controller Hii, We are developing the custom som based on the iMX8M plus processors with custom carrier board. In this, We have a requirement for USB1 OTG supported with ID pin. We have taken ID pin from GPIO1_IO4. Due to board space constraint and ID Pin requirement we are planning to use HD3SS3220IRNH - TI (CC Controller with diff mux) in our design. Please confirm whether i.mx8m plus supports HD3SS3220IRNH as OTG. Specifically for Flashing purpose whether this controller is supported? Re: iMX8M Plus CC Controller Hi @govind18  The i.MX 8M Plus can be configured in system designs to work with the TI HD3SS3220 to implement a dual-role USB Type-C port; however, this device is not a Type-C controller that has been officially verified or supported by NXP‘s EVK. GPIO1_IO4 can be used as USB ID in Uboot/Linux and does not affect UUU programming. It is recommended that the HD3SS3220 be configured to UFP/Sink by default at power-on. Best Regards, Zhiming Re: iMX8M Plus CC Controller Hi @Zhiming_Liu  Could you please suggest any other tested CC controller that has ID pin Supported? Re: iMX8M Plus CC Controller Hi  On EVK board, the i.MX8MP is using  PTN5110NHQZ  as CC controller. Please refer the EVK design here. Zhiming_Liu_0-1789018946469.pngZhiming_Liu_0-1789018946469.png https://www.nxp.com/design/design-center/development-boards-and-designs/8MPLUSLPD4-EVK Best Regards, Zhiming Re: iMX8M Plus CC Controller Hi @Zhiming_Liu Could you please suggest CC controller?
View full article
iMX8M Plus CC 控制器 嗨, 我们正在基于 iMX8M plus 处理器和定制载板开发定制的 SOM。为此,我们需要支持带 ID 引脚的 USB1 OTG 功能。我们从 GPIO1_IO4 获取了 ID 引脚。 由于电路板空间限制和 ID 引脚要求,我们计划在我们的设计中使用HD3SS3220IRNH - TI(带差分多路复用的 CC 控制器) 。 请确认 i.mx8m plus 是否支持 HD3SS3220IRNH 作为 OTG 设备。具体来说,就刷机而言,这个控制器是否受支持? Re: iMX8M Plus CC Controller 嗨@Zhiming_Liu 请问您能否推荐其他经过测试且支持 ID 引脚的 CC 控制器? Re: iMX8M Plus CC Controller 你好@govind18 i.MX 8M Plus 可以配置到系统设计中,与 TI HD3SS3220 配合使用,实现双角色 USB Type-C 端口;但是,该设备并非 NXP 的 EVK 官方验证或支持的 Type-C 控制器。GPIO1_IO4 可用作 Uboot/Linux 中的 USB ID,并且不影响 UUU 编程。建议将 HD3SS3220 在开机时默认配置为 UFP/Sink。 此致, 志明 Re: iMX8M Plus CC Controller 您好@Zhiming_Liu,请问您能推荐一款CC控制器吗? Re: iMX8M Plus CC Controller 你好 在 EVK 板上,i.MX8MP 使用PTN5110NHQZ作为 CC 控制器。请参考此处的EVK设计。 志明_刘_0-1789018946469.png https://www.nxp.com/design/design-center/development-boards-and-designs/8MPLUSLPD4-EVK 此致, 志明
View full article
The bootloader requires the fs26 installation package. I am currently using unified_bootloader_demo_v2.1 to port and develop a bootloader project based on S32K344. The RTD is version 2.0, and my controller uses the FS26 chip.The SBC driver package is at least compatible with RTD 3.0; could you provide one compatible with RTD 2.0?SBC package or handwritten implementation code? Even better if you could provide a bootloader project for RTD 3.0 or higher? Thank you so much! 回复: bootloader需要fs26安装包 Hello, I'm currently modifying bootloader v2.1, and it says there's an error in the ECC checksum of 4 bytes. This function... Boot_PowerONClearAllFlag needs to be modified. Directly performing an 8-byte check reveals that only the ExchangeInfo area in the startup function is not initialized. Is this modification acceptable? /*when power on, clear all flag in RAM for ECC.*/ void Boot_PowerONClearAllFlag(void) { uint16 infoCrc = 0u; uint8 index = 0u; /*clear RAM with 8 bytes for ECC*/ for(index = 0u; index < (gs_stBootInfo.infoDataLen >> 3u); index++) { *((uint64 *)gs_stBootInfo.infoStartAddr + index) = 0u; } infoCrc = Boot_CalculateInfoCRC(); SetInforCRC(infoCrc); } 回复: bootloader需要fs26安装包 Hi We apologize that the Unified bootloader demo shared by the community is provided "as is," without examples of higher S32K3 RTD versions. We sincerely apologize for any inconvenience this may cause. The FS26 SBC Autosar 4.4 version 1.0.0 is designed for use with the S32K3 RTD 2.0.0 . I have already requested this older version driver from the internal team for you. Please wait for them to add download permissions for this version of the software to your account. Incidentally, there's an error in the example code that needs attention. The S32K3 common problem checklist, specifically section 3.4.3 , mentions the need to use 8- byte writes for ECC initialization of RAM. Check whether the RAM (pay special attention to the standby RAM) is written in 8-byte format during ECC initialization. For example: *(uint64 *)0x20400000 = 0; Failure to comply may result in an ECC error. The NXP bootloader sample project uses a 4-byte zeroing ECC initialization method. *(uint32 *)0x20400000 = 0; That's incorrect; don't refer to it. There is also a discussion about this in the section on S32K3 sharing data between Bootloader and Application . Best Regards, Robin 回复: bootloader需要fs26安装包 Hello, in image 1, I need to modify the startup_cm7.s startup file regarding RAM initialization. To minimize changes, can I simply modify `extern void Boot_PowerONClearAllFlag ( void );` in bootloader v2.1? 回复: bootloader需要fs26安装包 Changing Boot_PowerONClearAllFlag() from a 4-byte write to an 8-byte/64-bit write is key to resolving the S32K3 RAM ECC initialization issue. Your change seems to work. For issues related to ExchangeInfo , please refer to the discussion in s32k312Will the data in the SRAM area not be reset during the reset process? 1.0 0 FS26 SBC Autosar 4.4 version 1.0.0 should already be added to your account.
View full article
[Urgent]S32N55 GrayVIP HSE MAC service returns KEY_EMPTY (0xA5AA5317) when called from SEM task Hello. Could you please check for this issue? Environment: SW32N5_GRAYVIP_1.0.25.0 Trying to re-install SMRs at runtime (for OTA) via a custom SEM task job What I did: Added a custom SEM command that triggers SMR re-installation from Fss_Sem_PerformHSERequests (SEM task context) SMR signing uses AES-256 CMAC via HSE_SRV_ID_MAC (GenerateMAC), key installed in an AES NvmKeyGroup (MuMask = MU_0) The HSE request is sent via Fss_Sem_SendServiceRequest(FSS_SEM_CSSI_MU0, ...), same path as PublishSysImage Problem: The MAC service request is accepted (send returns OK), but the HSE response is 0xA5AA5317 (HSE_SRV_RSP_KEY_EMPTY) The same CMAC key and key slot work correctly during the initial boot-time SMR installation Only when called from the SEM task (runtime) does it return KEY_EMPTY PublishSysImage (read-only, no key) from the same SEM task works fine Question: Is runtime SMR re-installation (after initial provisioning) a supported workflow? If so, what is the recommended approach? Why would the same key slot report KEY_EMPTY only in the SEM task context, when it works at boot time? Is there a MU/partition or key-catalog access restriction after secure boot is enabled? Re: [Urgent]S32N55 GrayVIP HSE MAC service returns KEY_EMPTY (0xA5AA5317) when called from SEM task Hello, @EddiePark  Thanks for your post and glad to support again. From my understanding, the keys linked with a SMR entry will become unavailable after successful installation of the SMR entry. Which may be the reason that the same key could not be used correctly during run time. BR Chenyin
View full article
关于“智能能源”太阳能的观点 今天有几个来自 Smart Energy 的推销员上门推销太阳能电池板。我对太阳能很感兴趣,但没有足够的资金进行前期投资,他们提到有一个政府资助的计划,无需预付任何费用。 我自然非常怀疑。很想听听和他们打过交道的人的意见。 Re: Opinions on "Smart Energy" solar 你好, 有时,“0 美元预付款”的推销实际上意味着第三方公司免费将太阳能电池板安装在你的屋顶上,但系统的所有权归他们所有。你无法获得清洁能源权益,反而会被锁定在一份长期合同(通常是 20 到 25 年)中,购买他们生产的电力。这些都可能使日后卖房变得复杂。 此致
View full article
SSEGold: Aniimo Release Date, Gameplay Guide, and How to Get More Currency Fast The creature-collecting RPG genre is getting a fresh new competitor with Aniimo, a free-to-play open-world adventure that combines monster collecting, exploration, battles, and multiplayer features. If you enjoy games where you discover new creatures, build a powerful team, and explore a huge fantasy world, Aniimo is definitely a title worth watching. Developed by Pawprint Studio, Aniimo takes players into the world of Idyll, where mysterious creatures called Aniimo live across different environments. Instead of simply collecting companions, players can also connect with Aniimo and experience the world from their perspective through the unique “Twine” system. When Will Aniimo Release? Aniimo is scheduled to officially launch worldwide on September 16, 2026 for PC and consoles, including PlayStation 5 and Xbox platforms. The mobile version will arrive shortly after on September 23, 2026. The game will follow a free-to-play model, allowing players to download and experience the core gameplay without purchasing the base game. Optional in-game purchases and special packs will be available. What Kind of Game Is Aniimo? Aniimo is an open-world creature-catching RPG. Players take the role of a Pathfinder and explore the continent of Idyll while searching for unique Aniimo companions. The main gameplay loop includes: Exploring different areas and discovering hidden creatures Capturing Aniimo using special tools Training and evolving collected companions Fighting enemies through real-time combat Completing challenges with other players Customizing your personal space and interacting with your Aniimo Unlike traditional creature-collection games, Aniimo focuses heavily on exploration. Different creatures can appear depending on the environment, weather conditions, and time of day, making exploration an important part of progression. Aniimo Twine System Explained One of the biggest features that makes Aniimo different is the Twine mechanic. Instead of only controlling your human character, players can connect with their Aniimo and experience the world through them. This allows you to use different creature abilities for exploration, such as: Flying across areas Diving underwater Digging underground paths Solving puzzles Fighting battles from a new perspective This system gives each Aniimo more value because they are not just combat companions — they also help you explore the world. How Does Combat Work in Aniimo? Combat in Aniimo focuses on real-time battles rather than traditional turn-based systems. Players can: Build a team of different Aniimo Take advantage of creature abilities Fight PvE enemies and bosses Participate in PvP challenges Join multiplayer activities The game also includes competitive modes where players can team up or compete against others. One example is the PvEVP mode Egg Heist, where teams search, fight, and compete for rewards. Aniimo Currency and Why Players Need More Resources Like many free-to-play RPGs, currency and resources will play an important role in Aniimo. Players will likely need in-game currency for: Upgrading Aniimo abilities Unlocking evolution materials Improving equipment Purchasing useful items Preparing stronger teams for battles At the beginning, earning resources through quests and exploration may be enough. However, as players progress into harder content, farming materials and currency can become time-consuming. Having enough currency can help players spend more time enjoying exploration and battles instead of repeating the same farming activities. How to Get Aniimo Currency Faster? There are several ways players can build their resources: 1. Complete Daily Activities Daily missions and limited-time events are usually some of the most reliable ways to collect rewards. 2. Explore and Collect Resources Since Aniimo is built around an open world, exploration will likely reward players with valuable materials and items. 3. Participate in Multiplayer Content Co-op activities and competitive challenges may provide additional rewards while also making progression more enjoyable. 4. Buy Aniimo Currency from Trusted Sellers For players who want to save grinding time, purchasing currency from a reliable third-party marketplace can be a convenient option. SSEGold provides Aniimo currency and game-related services, helping players get the resources they need faster and spend more time enjoying the actual gameplay. Whether you are preparing for stronger Aniimo teams, upgrading your companions, or catching up with friends, having extra currency can make progression smoother. Is Aniimo Worth Playing? Aniimo has a lot of features that appeal to fans of creature-collection games. Its open-world design, unique Twine system, evolving companions, and multiplayer activities give it more depth than a simple monster-catching game. For players who enjoy exploration, collecting rare creatures, and building powerful teams, Aniimo could become one of the interesting RPG releases of 2026. The best way to experience the game will be to explore Idyll, discover new Aniimo, and build your own adventure. And if progression becomes too slow, having additional currency through trusted services like SSEGold can help you focus on the fun parts of the game instead of endless farming.
View full article
i.MX8M Plus – MIPI CSI-2 Embedded Data(DT 0x12)とRAW画像の両方にアクセスする方法はありますか? こんにちは、NXPコミュニティの皆さん、 現在、MIPI CSI-2 RAW画像センサーを i.MX8M Plus と統合しており、センサーの CSI-2組み込みデータ(データタイプ0x12) をターゲット上のソフトウェアに提供できる、または技術的に可能な方法があるかどうかを明確にしたいと思います。 当社のカメラ映像は、典型的なCSI-2構造になっています。 Frame Start Embedded Data DT = 0x12 RAW image data DT = 0x2A / 0x2B / 0x2C Frame End 画像データは MIPI CSI-2レシーバ→ガスケット→ISI→メモリ/V4L2 経路を通じて取得され、この部分は正しく動作しています。 問題は、各フレームに属する埋め込みデータも必要となる点です。メタデータにはフレームに関連するセンサ情報が含まれているため、対応するキャプチャ画像と関連付けることが重要です。 i.MX 8M Plus Applications Processor Reference Manualによると、MIPI CSI-2レシーバーはCSI-2レシーバーレジスタを通じて、特にMIPI_CSIx_ISP_CONFIG0/DATAFORMAT構成において設定可能なデータ型処理を提供します。関連するMIPI CSI-2 Rx / CSISレジスタの記述は第 13.5章(MIPI CSI-2)にあり、リファレンスマニュアルの古い改訂版では、サポートされる画像データ型は セクション13.5.6.13あたりで説明されています。 また、NXPアプリケーションノート AN13857 – i.MX 8MシリーズMIPIキャプチャシステム、特に セクション7「組み込みデータサポート」も見つけました。 AN13857では、DT=0x12の埋め込みデータと別のデータ型の画像データを含むストリームは データ型インターリーブとみなされ、i.MX 8Mシリーズキャプチャシステムはこのモードをサポートしていないと述べています。提案されている回避策としては、センサを画像データと同じデータ型で埋め込みデータを送信するように設定することです。 残念ながら、この回避策は私たちのセンサではできません。センサーは DT 0x12を用いた標準CSI-2組み込みデータを送信し、画像データは対応するRAWデータ型を使用します。埋め込みデータ型はRAW画像データ型に変更できません。 しかし、i.MX8MPに関する古いNXPコミュニティの議論を見つけました。そこではNXP TechSupportがCSIハードウェアはDT=0x12をサポートするべきだと述べていましたが、BSPは当時メタデータをサポートしていませんでした。 https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-capture-MIPI-embedded-data/td-p/1383845 また、i.MX8Mデバイス上でCSI-2組み込みデータにアクセスすることについての古い議論もあります: https://community.nxp.com/t5/i-MX-Processors/Does-iMX8M-CSI-support-metadata-embedded-data/m-p/977554 したがって、AN13857に記載されている制限事項が、ハードウェアパス全体に適用されるのか、それとも主に現在サポートされているISI/V4L2キャプチャアーキテクチャに適用されるのかを明確にしたいと思います。 私たちの主な疑問は次のとおりです。 i.MX8M Plusで、データタイプ0x12のCSI-2パケットのペイロードを受信またはアクセスしながら、同時にRAW画像ストリームをキャプチャできる方法はありますか?たとえLinuxドライバーの変更が必要であっても。 例えば、以下のいずれかのアプローチは技術的に可能でしょうか? DT=0x12およびRAW画像データを異なるCSI/ISI経路やチャネル経由でルーティングします。 MIPI CSI-2レシーバからISIより先に組み込みデータにアクセスできます。 DT=0x12用の追加のCSI-2レシーバ チャネル/インターフェースを設定してください。 組み込みデータには、別のDMAまたはメモリパスを使用してください。 NXP Linux CSI/ISIドライバーを拡張して、組み込みデータをV4L2メタデータノードまたは別の/dev/videoXデバイスとして公開します。 DT=0x12ペイロードがメモリに到達できるCSI-2レシーバの未公開または現在サポートされていないハードウェア機能を利用すること。 必ずしも公式にサポートされているV4L2メタデータの実装を必要としているわけではありません。もしi.MX8M PlusハードウェアがDT=0x12ペイロードをメモリに転送できるなら、私たち自身も必要なカーネル/ドライバの変更を実装したいと考えています。 NXPは、AN13857で説明されている制限が以下のものかどうかを明確にしていただけますか: これは i.MX8M Plus CSI-2 → Gasket → ISIアーキテクチャの根本的なハードウェア制限であり、RAW画像データが取得されている間はDT=0x12ペイロードをメモリに転送できないことを意味します。 または ソフトウェア やドライバの制限であり、カスタムドライバ実装で組み込みデータへのアクセスが可能になるのでしょうか? ハードウェアの制限によるものであれば、i.MX8M PlusでカメラのCSI-2出力フォーマットを変更せずに組み込みデータペイロードを取得するための代替手段はありますか? ご説明や実装に関するヒントをいただければ幸いです。 よろしくお願いします、 ピーター Re: i.MX8M Plus – Is there any way to access MIPI CSI-2 Embedded Data (DT 0x12) together with RAW im こんにちは、 アプリケーションノートの制限は、i.MX8M Plus CSIのハードウェアアーキテクチャの制限です。下流側のISIブロックには、DT=0x12ペイロードをRAWストリームから分離するメカニズムがありません。 残念ながら、アプリケーションノートに記載されているサポートや公式な回避策はありません。 よろしくお願いいたします。 Re: i.MX8M Plus – Is there any way to access MIPI CSI-2 Embedded Data (DT 0x12) together with RAW im ISIの代わりに統合ISPを使用した場合、答えは変わりますか? RAWのBayerストリームは、MIPI CSI-2受信機から統合ISPへルーティングすることも可能です。ISPのキャプチャパスには、CSI-2埋め込みデータパケット(DT=0x12)を受信または保存するためのメカニズムはありますか? 特に、ISPやその入力インターフェースはRAW画像データと組み込みデータを分離したり、ISPの統計/メタデータバッファを通じてソフトウェアに組み込みデータを提供したりできるのでしょうか? もしそうでなければ、DT=0x12パケットはCSIからISPへのピクセルインターフェースによって単純に破棄されるのでしょうか?
View full article
Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr? Hello, We want to use the two LPSPI ports on the FRDM-MCXW71 in a Zephyr application. However when I check in Zephyr 4.4.0, under zephyrproject/zephyr/boards/nxp/frdm_mcxw71 I find the following files: frdm_mcxw_71.dts file. It only has an entry for &lpspi1. (used in the spi flash demo) The entry for &lpspi0 is not present? frdm_mcxw71-pinctrl.dtsi Also only an entry for &lpspi1 Is there an example on how to use lpspi0 as well? Which files outside of the regular zephyr project files (.overlay and prj.conf) need to be modified? Thanks. Re: Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr? I noticed a specific driver in zephyrproject/zephyr/drivers/spi/spi_nxp_lpspi. Not sure how this can be used for addressing both lpspi ports though. Re: Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr? Hello, hope you are doing well. Both lpspi0 and lpspi1 are already declared at the SoC level in zephyr/dts/arm/nxp/mcx/nxp_mcxw7x_common.dtsi with all required hardware properties (registers, interrupts, clocks, FIFO sizes), but set to status = "disabled" by default. The board file frdm_mcxw71.dts only enables lpspi1 but lpspi0 can be enabled in the same way through your application overlay file. You can take the existing lpspi1 configuration as reference. The basic overlay would look something like this, which you can then extend with your custom device implementation: &pinctrl { pinmux_lpspi0: pinmux_lpspi0 { group0 { pinmux = , , , ; slew-rate = "fast"; drive-strength = "low"; }; }; }; &lpspi0 { status = "okay"; pinctrl-0 = <&pinmux_lpspi0>; pinctrl-names = "default"; }; Best regards, Sofia. Re: Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr? Hi Sofia, I have created a minimal application with the overlay additions as suggested. The application compiled, but binding the spi devices still failed. Only when a label is added in the overlay sections, the binding works. In overlay: &lpspi0 { ... label = "LPSPI_0"; } &lpspi1 { ... label = "LPSPI_1"; } In main.c: const struct device *lpspi0_dev; lpspi0_dev = device_get_binding("LPSPI_0"); printk("%p\n,lpspi0_dev); Doing this for both lpspi0 and lpspi1 seems to work now. Is it expected to create those labels with each application?  Thanks, Geert
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コマンドを使うようにコードを変更しました。 ありがとうございます。よろしくお願いいたします。 Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case ECC P-384キーはKEYコマンドでPKHA-Eメモリにロードでき、その後ECDSA署名や検証に使用できることを検証しました。 KEYコマンドで「クラス1」レジスタを使用しているかどうか確認してください。MX8DXLのクラス1キーレジスタは32バイトです。ですので、代わりにPKHA-Eメモリをご利用ください。 参考までに、CAAM 記述子を以下に示します。平文の秘密鍵をブラックキーに変換するには、CAAM コマンドは「KEY」+「FIFO STORE」です。 b0800005 02010030    // キー 60220030 ....0....t.0."` // FIFO SOTRE 質問に対する回答をご確認ください。 CAAM COVER操作において、32バイトを超えるECC秘密鍵に対する既知の制限事項はありますか? KEYコマンドはKEYレジスタへのデータロードに有効ですが、それぞれの最大サイズまでしかロードできません。したがって、クラス1キーレジスタ、クラス2キーレジスタ、PKHA EレジスタはすべてKEYコマンドでロード可能ですが、それぞれ異なるサイズを持ちます。一般的に、クラス2キーレジスタはクラス1キーレジスタよりも大きく(128バイト)、このプロセスでECCキー(1028バイトを超えない)の使用に代わることができます。より一般的には、KEYコマンドを使ってECCキーをPKHA Eに入れ、そこからブラックキーとして保存する方法もあります。 COVER経由で外部のP-384平文秘密鍵をインポートし、それをECDSAのブラックキーとして使うことはサポートされているユースケースでしょうか? はい、ECDSAの署名業務では、署名にブラックキーを使用できます。 観測された動作は、CAAMハードウェアの制限によるものなのでしょうか? はい。 レジスタのサイズを超えてLOAD(またはSTORE)するとデッドスペースが発生し、デッドエリアへのLOADバイトは失われ、STOREバイトはゼロの値になります。MX8DXLのクラス1キーレジスタは32バイト(256ビット)で、AESのような対称暗号エンジンの鍵を処理するのに十分な大きさです。 外部生成されたP-384平文秘密鍵をインポートし、それをECDSA操作のブラックキーとして使う推奨されるCAAM方法はありますか? はい。それをPKE(PKHA Eレジスタ)にロードし、クラス1キーの場合と同様にそこからFIFOストアを実行します(ただし、レジスタソースは別のものを使用します)。
View full article
FRDM-MCXW71の2つのLPSPIポートをZephyrで使うのはどうですか? こんにちは、 FRDM-MCXW71の2つのLPSPIポートをZephyrアプリケーションで使いたいと考えています。 しかし、Zephyr 4.4.0で確認すると、下 Zephyrproject/Zephyr/ボード/NXP/frdm_mcxw71 以下のファイルが見つかりました。 frdm_mcxw_71.dts ファイル。 そこには&lpspi1のエントリしかありません。(SPIフラッシュデモで使用) &lpspi0 のエントリが存在しません。 frdm_mcxw71-pinctrl.dtsi また、&lpspi1 のエントリのみ lpspi0の使い方に関する例はありますか? 通常のZephyrプロジェクトファイル(.overlayやprj.conf)以外で、どのファイルを変更する必要がありますか? ありがとうございます。 Re: Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr? zephyrproject/zephyr/drivers/spi/spi_nxp_lpspiで特定のドライバーを見つけました。 ただ、両方のLPSPIポートにどう使えるのかはよくわかりません。 Re: Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr? こんにちは、お元気でお過ごしでしょうか。 lpspi0とlpspi1は、すでにzephyr/dts/arm/nxp/mcx/nxp_mcxw7x_common.dtsiでSoCレベルで宣言されており、必要なハードウェアプロパティ(レジスタ、割り込み、クロック、FIFOサイズ)がすべて含まれていますが、デフォルトではstatus = "disabled"に設定されています。ボードファイルfrdm_mcxw71.dtsはlpspi1だけを有効にしますが、lpspi0もアプリケーションのオーバーレイファイルを通じて同様に有効化できます。 既存のLPPspy1構成を参考にしてください。基本的なオーバーレイはこんな感じで、カスタムデバイス実装で拡張できます: &pinctrl { pinmux_lpspi0: pinmux_lpspi0 { group0 { pinmux = , , , ; slew-rate = "fast"; drive-strength = "low"; }; }; }; &lpspi0 { status = "okay"; pinctrl-0 = <&pinmux_lpspi0>; pinctrl-names = "default"; }; よろしくお願いします、 ソフィア。 Re: Using the two LPSPI ports on the FRDM-MCXW71 with Zephyr? こんにちは、ソフィアさん。 提案通り、オーバーレイの追加を加えた最小限のアプリケーションを作成しました。 アプリケーションはコンパイルされましたが、spiデバイスのバインドは依然として失敗しました。 オーバーレイ部分にラベルが加わった場合にのみ、製本は機能します。 重ねて表示: &lpspi0 { ... label = "LPSPI_0"; } &lpspi1 { ... label = "LPSPI_1"; } main.c 内: const struct device *lpspi0_dev; lpspi0_dev = device_get_binding("LPSPI_0"); printk("%p\n,lpspi0_dev); lpspi0とlpspi1の両方でこの操作を行うと、現在は正常に動作するようです。 各アプリケーションごとにラベルを作成することが期待されているのでしょうか? よろしくお願いします。 ヘールト
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, Re: i.MX8DXL CAAM COVER limitation for P-384 private key / black blob use case I have validated that an ECC P-384 key can be loaded to PKHA-E memory using the KEY command, and it can subsequently be used for ECDSA sign and verify.  Please check if you are using the "Class 1" register in KEY command, the Class 1 Key register on MX8DXL is 32 bytes. So please use PKHA-E memory instead. Here is the CAAM descriptor for your reference: Covert the plaintext private key to black key, the CAAM command is "KEY" + "FIFO STORE". b0800005 02010030    // KEY 60220030  ....0.....t.0."`    // FIFO SOTRE Please check the reply per the questions: Is there any known limitation of the CAAM COVER operation for ECC private keys larger than 32 bytes? The KEY command is effective at loading the KEY registers, but only to their respective max sizes.  So, the Class 1 Key register, the Class 2 Key register, and PKHA E register can all be loaded by the KEY command, but they will all have different sizes.  In general, the Class 2 Key Register is larger (128 bytes) than the Class 1 Key register, and could be substituted in this process for the use of ECC keys (which will not be larger than 1028 bytes).  More generally, you could always use the KEY command to put the ECC key into PKHA E and then store it from there as a black key. Is importing an external P-384 plaintext private key through COVER and then using it as an ECDSA black key a supported use case? Yes, the ECDSA Sign operation will accept a black key for signing. Is the observed behavior expected due to a CAAM hardware limitation? Yes.  If you LOAD (or STORE) beyond a register’s size, you will be dealing with dead space – so the LOAD bytes to the dead area are lost, and the STORE bytes will have a zero value.  The Class 1 Key register on MX8DXL is 32 bytes (256 bits),  big enough to handle a key for the available symmetric cipher engines, like AES. 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? Yes.  Load it into PKE (PKHA E register) and do the FIFO STORE from there like you would for a Class 1 Key (just use a different register source).
View full article
How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? Hello NXP Community, I am working with the SE051 secure element and would like to ask how to properly revert the Platform SCP03 keys back to their default values using the Plug and Trust Middleware. What I have done so far: I modified demos/se05x/se05x_RotatePlatformSCP03Keys/se05x_TP_PlatformSCP03keys.c by commenting out the key reversion section (between doc:start:revert-scp03-keys and doc:end:revert-scp03-keys). I built and executed the application on my setup. The execution was successful, showing the message: "Congratulations !!! Key Rotation Successful!!!!" To verify the key change, I updated /tmp/SE05X/plain_scp.txt with the new key value (0x4041... for ENC, MAC, and DEK) and successfully connected via ssscli connect. Subsequent operations (ssscli generate rsa, ssscli set aes, and ssscli se05x readidlist) were all completed successfully, confirming that keys were written and IDs were retrieved without issues. Now, I would like to restore the Platform SCP03 keys back to the default keys (defined in sss/ex/inc/ex_sss_tp_scp03_keys.h). Could anyone guide me on how to modify se05x_TP_PlatformSCP03keys.c or what the correct process is to perform this key reversion? Environment: Board: MCIMX8M-WEVK with OM-SE051ARD Plug and Trust MW Version: v04.07.01 OP-TEE OS Version: 3.19.0 Linux Kernel: 6.1.151 OEF ID: A8FA Any advice or code pointers would be greatly appreciated. SE050 Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? Hi @Uc_S , If you just need to rotate the keys back to the default, the nano-package example is the recommended simpler path — only the three scp03_* arrays (current keys for auth) and the three NEW_scp03_* arrays (default keys as target) need to be updated, and the revert call within ex_se05x_rotate_scp03_keys() needs to be commented out. Please refer to the following for details. Change 1 — Set the current keys (used to open the SCP03 session) Lines 38–43 are the auth keys passed to ex_set_scp03_keys() . Replace the placeholder 0xABCD... values with your current keys ( 0x4041... 😞 uint8_t scp03_enc_key[AES_KEY_LEN_nBYTE] = { 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F }; uint8_t scp03_mac_key[AES_KEY_LEN_nBYTE] = { 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F }; uint8_t scp03_dek_key[AES_KEY_LEN_nBYTE] = { 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F }; c   Change 2 — Set the NEW target keys (the default SE051C A8FA keys) Lines 45–50 are the keys that will be written into the SE051 via PutKey . Replace the 0x4041... placeholder with the SE051C OEF A8FA default values: uint8_t NEW_scp03_enc_key[AES_KEY_LEN_nBYTE] = { 0xbf, 0xc2, 0xdb, 0xe1, 0x82, 0x8e, 0x03, 0x5d, 0x3e, 0x7f, 0xa3, 0x6b, 0x90, 0x2a, 0x05, 0xc6 }; uint8_t NEW_scp03_mac_key[AES_KEY_LEN_nBYTE] = { 0xbe, 0xf8, 0x5b, 0xd7, 0xba, 0x04, 0x97, 0xd6, 0x28, 0x78, 0x1c, 0xe4, 0x7b, 0x18, 0x8c, 0x96 }; uint8_t NEW_scp03_dek_key[AES_KEY_LEN_nBYTE] = { 0xd8, 0x73, 0xf3, 0x16, 0xbe, 0x29, 0x7f, 0x2f, 0xc9, 0xc0, 0xe4, 0x5f, 0x54, 0x71, 0x06, 0x99 }; c   Change 3 — Comment out the revert block In ex_se05x_rotate_scp03_keys() , comment out lines 85–90 so the code does a single rotation only (current → default) and does not try to rotate back again: /* -- Comment out the revert block below -- */ // SMLOG_I("Reverting SCP03 keys(version - %02x) to OLD KEYS \n", KEY_VERSION); // ret = ex_se05x_change_keys(&se05x_session, &scp03_enc_key[0], &scp03_mac_key[0], &scp03_dek_key[0]); // if (ret != 0) { // SMLOG_E("Error in ex_se05x_change_keys \n"); // return 1; // } c     Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? @Kan_Li  Thank you for the clarification. In my case, the current keys are known (0x4041... for ENC, MAC, and DEK), and I can successfully establish an SCP03 session using these keys via ssscli. Since I have the current keys available to authenticate, could you please provide details on how to modify se05x_TP_PlatformSCP03keys.c to perform the key rotation back to the default values? Specifically, I would like to know: Which variables or macros should be updated with the current keys (0x4041...) for authentication during session setup. Which variables or structures should hold the target default key values (ex_sss_tp_scp03_keys.h) for the PutKey operation. Any code snippets or specific line references in se05x_TP_PlatformSCP03keys.c (or related boot/auth headers) would be greatly appreciated. Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? Hi @Uc_S , Rotating the Platform SCP03 keys back to the default values is only possible when the current keys are known, as a successfully authenticated SCP03 session is required before any key update ( PutKey ) command can be issued to the SE051. If the current keys have been lost or forgotten, it is not possible to authenticate to the SE051 and perform the key rotation. There is no backdoor or override mechanism — this is by design to preserve the security model of the device. Additionally, a factory reset does not help, as Platform SCP03 keys are explicitly unaffected by the factory reset procedure. In this situation, the only option is to replace the SE051 with a new device that still carries the default NXP-provisioned keys.   Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? @Kan_Li  Thank you for providing the detailed guidance. Following your instructions, I updated the keys, commented out the revert block, and successfully built and executed the nano-package example. However, during execution, the SCP03 key update operation failed with a SW status code 6A80 during the PUT KEY APDU command. Here is the summary of the execution log: Plug and Trust nano package - version: 1.6.1 ... Establish Secure Channel to SE05x ! Sending GP Initialize Update Command !!! ... CardCryptogram verified successfully...Calculate HostCryptogram Sending GP External Authenticate Command !!! APDU Tx> :84 82 33 00 10 ... APDU Rx< :69 82 Authentication Successful!!! Created scp03 Session Changing SCP03 keys(version - 0b) to NEW KEYS APDU Tx> :84 d8 0b 81 58 ... APDU Rx< :6a 80 Error in DoAPDUTxRx Error in ex_se05x_change_keys SE05x Rotate SCP03 keys Example Failed ! Regarding potential root causes, I suspect that either the OpenSSL version (OpenSSL 3.x is used on both the build PC and the target evaluation board) is affecting key derivation/formatting during PutKey, or the DEK value in particular might have been mismatched/rewritten previously. At this moment, I do not have sufficient bandwidth to investigate or address these possibilities further. I will look into them separately if time permits later. Thank you again for your assistance. Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? Hi @Uc_S , Thank you for the detailed execution log — it provides exactly what is needed to pinpoint the issue. Your two suspects are both valid and well-reasoned. Here is a breakdown of what is most likely happening. What the 6A80 Error Tells Us SW 6A80 ( SW_WRONG_DATA ) means the SE051 rejected the data field of the PUT KEY APDU as cryptographically invalid. Since your log shows that authentication completed successfully (CardCryptogram verified + External Authenticate passed), the ENC and MAC keys are confirmed correct. The failure is isolated specifically to the PUT KEY step, which points directly to an issue with the DEK key or the AES encryption used to wrap the new key material. Suspect 1: DEK Key Mismatch — Most Likely Primary Cause Inside the PUT KEY command, each new key is encrypted under the current DEK before being sent to the SE. If the DEK value in the host code does not exactly match the DEK stored on the device, the SE decrypts garbage and returns 6A80. A near-identical case from a prior SE051C1 customer concluded: "If the minimal example works with PlatformSCP, then ENC and MAC keys are correct. As key rotation still fails, this means the DEK key needs to be wrong... the DEK key may have been set wrongly in the past." This is the most probable root cause given your history — a prior incomplete or incorrect rotation may have left the SE051's DEK in a state that no longer matches 0x4041... . Confirmation step: Test the same code on a brand-new, factory-fresh SE051 sample. If it succeeds immediately, this confirms that the current device's DEK state is corrupted/unknown, and the chip should be replaced — there is no recovery path without the correct DEK. Suspect 2: OpenSSL 3.x Compatibility — Real Risk, Secondary Cause The nano-package's SCP03 crypto path uses the legacy low-level OpenSSL API: AES_set_encrypt_key((uint8_t *)key, keylen * 8, &AESKey); AES_ecb_encrypt(srcData, destData, &AESKey, AES_ENCRYPT); The nano-package was designed and tested with OpenSSL 1.1.1 only. In OpenSSL 3.x, these APIs are deprecated and require the legacy provider to be explicitly loaded at runtime. If it is not loaded, these calls can silently produce incorrect output — which would corrupt the DEK-encrypted payload and also trigger 6A80. Recommended fix: Switch the nano-package to use mbedTLS as the host crypto backend ( -DEX_SE05X_USE_MBEDTLS=1 ), which does not rely on deprecated OpenSSL APIs and is fully supported for this use case. Alternatively, rebuild against OpenSSL 1.1.1 to test the OpenSSL version hypothesis in isolation. Recommended Action Sequence Test on a fresh SE051 first — this is the fastest way to confirm whether the current device's DEK is the root cause. Switch to mbedTLS for the host crypto backend to eliminate any OpenSSL 3.x risk going forward. If the fresh device also fails with mbedTLS, please share the build environment details (OS, compiler, mbedTLS version) for further investigation. Please note: if the current device's DEK is confirmed to be in an unknown state, there is no way to recover it — a replacement chip with factory-default keys will be required. Please let us know the result of the fresh sample test and we will be happy to assist further. Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? @Kan_Li  Thank you very much for the detailed explanation and analysis regarding the 6A80 error. The breakdown of the DEK key mismatch and the OpenSSL 3.x compatibility risks (along with the suggestion to use mbedTLS) is helpful and clarifies the exact mechanisms at play. I will keep these suggested options -- such as testing on a fresh sample and considering mbedTLS for the crypto backend -- in mind for future troubleshooting when resources and bandwidth allow.
View full article
S32DSのアクティベーションコードの有効期限が切れました こんにちは: 私の S32 Design Studio for S32 プラットフォーム v.3.4のライセンスが もうすぐ切れます。 確認して延長してもらえますか? アクティベーションコード:533B-878B-88A9-C68F ありがとうございます。 Re: S32DS activation code expired こんにちは、 お客様のS32DSライセンスが延長されました。
View full article
SSEGold:Animo发布日期、游戏玩法指南以及如何快速获得更多货币 Aniimo 的出现为生物收集角色扮演游戏类型带来了一位全新的竞争者。这是一款免费的开放世界冒险游戏,融合了怪物收集、探索、战斗和多人游戏功能。如果你喜欢在游戏中发现新生物、组建强大的队伍并探索广阔的奇幻世界,那么 Aniimo 绝对是一款值得一看的游戏。 由 Pawprint Studio 开发的 Aniimo 将玩家带入 Idyll 的世界,在那里,被称为 Aniimo 的神秘生物生活在不同的环境中。除了收集伙伴之外,玩家还可以通过独特的“Twine”系统与 Aniimo 建立联系,并从 Aniimo 的视角体验这个世界。 Aniimo何时发布? Aniimo 计划于 2026 年 9 月 16 日在全球范围内正式上线,支持 PC 和游戏主机平台,包括 PlayStation 5 和 Xbox 平台。移动版将于 2026 年 9 月 23 日紧随其后推出。 该游戏将采用免费游玩模式,玩家无需购买基础游戏即可下载并体验核心玩法。游戏内将提供可选的付费项目和特殊礼包。 Aniimo 是什么类型的游戏? Aniimo 是一款开放世界生物捕捉角色扮演游戏。玩家扮演探路者的角色,探索伊迪尔大陆,寻找独特的阿尼莫伙伴。 主要游戏循环包括: 探索不同区域,发现隐藏的生物 使用特殊工具捕捉 Aniimo 训练和进化收集到的伙伴 通过实时战斗与敌人作战 与其他玩家一起完成挑战 定制您的个人空间并与您的 Aniimo 互动 与传统的生物收集游戏不同,《Animimo》非常注重探索。根据环境、天气状况和时间的不同,可能会出现不同的生物,因此探索是游戏进程中重要的一部分。 Aniimo Twine系统详解 Aniimo 的最大特色之一就是 Twine 机制。 玩家不仅可以控制人类角色,还可以与他们的 Aniimo 建立联系,并通过 Aniimo 体验世界。这样你就可以利用不同的生物能力进行探索,例如: 飞越区域 潜水 挖掘地下通道 解谜 以全新的视角进行战斗 这个系统赋予了每个阿尼莫更大的价值,因为它们不仅是战斗伙伴,还能帮助你探索世界。 Aniimo中的战斗机制是怎样的? Aniimo 的战斗侧重于实时战斗,而不是传统的回合制系统。 玩家可以: 组建一支由不同 Aniimo 组成的团队 充分利用生物的能力 与PvE敌人和首领战斗 参与 PvP 挑战 加入多人游戏活动 游戏还包含竞技模式,玩家可以组队或与其他玩家对抗。例如,PvEVP 模式“蛋壳劫案”中,团队需要搜索、战斗并争夺奖励。 Aniimo货币以及玩家为何需要更多资源 与许多免费角色扮演游戏一样,货币和资源在 Aniimo 中将发挥重要作用。 玩家可能需要游戏内货币来购买: 升级 Aniimo 能力 解锁进化材料 改进设备 购买实用物品 为战斗打造更强大的队伍 游戏初期,通过任务和探索获取资源可能就足够了。然而,随着玩家进入更高难度的游戏内容,收集材料和货币可能会变得非常耗时。 拥有足够的货币可以帮助玩家将更多的时间用于探索和战斗,而不是重复相同的刷怪活动。 如何更快地获得Animo货币? 玩家可以通过多种方式积累资源: 1. 完成每日活动 每日任务和限时活动通常是获得奖励最可靠的途径之一。 2. 探索和收集资源 由于 Aniimo 采用开放世界设计,探索可能会让玩家获得宝贵的材料和物品。 3. 参与多人游戏内容 合作活动和竞争挑战可能会带来额外的奖励,同时也会让游戏进程更加有趣。 4. 从信誉良好的卖家处购买 Aniimo 货币 对于想要节省刷怪时间的玩家来说,从可靠的第三方市场购买游戏货币可能是一个方便的选择。 SSEGold提供 Aniimo 货币和游戏相关服务,帮助玩家更快地获得所需的资源,并花更多时间享受实际的游戏体验。无论你是准备组建更强大的 Aniimo 队伍、升级你的伙伴,还是追赶朋友的进度,拥有额外的货币都能让你的进度更加顺利。 Aniimo值得玩吗? Aniimo 拥有许多吸引生物收集游戏爱好者的功能。它的开放世界设计、独特的 Twine 系统、不断进化的伙伴以及多人游戏活动,使其比简单的怪物捕捉游戏更具深度。 对于喜欢探索、收集稀有生物和组建强大队伍的玩家来说,《Animimo》可能会成为 2026 年最有趣的 RPG 版本之一。 体验这款游戏的最佳方式是探索伊甸园,发现新的阿尼莫,并打造你自己的冒险之旅。如果游戏进度变得太慢,通过 SSEGold 等值得信赖的服务获得额外的货币可以帮助你专注于游戏中有趣的部分,而不是无休止地刷资源。
View full article
如何使用 se05x_TP_PlatformSCP03keys.c 将平台 SCP03 密钥恢复为默认值? NXP社区的各位朋友,大家好! 我正在使用 SE051 安全元件,想请教如何使用 Plug and Trust 中间件将平台 SCP03 密钥正确地恢复到其默认值。 我目前已完成的工作: 我修改了 demos/se05x/se05x_RotatePlatformSCP03Keys/se05x_TP_PlatformSCP03keys.c,注释掉了密钥还原部分(在 doc:start:revert-scp03-keys 和 doc:end:revert-scp03-keys 之间)。 我在自己的电脑上构建并运行了该应用程序。 执行成功,显示信息:“恭喜!!!密钥轮换成功!!!!” 为了验证密钥更改,我使用新的密钥值(ENC、MAC 和 DEK 的密钥值为 0x4041...)更新了 /tmp/SE05X/plain_scp.txt,并通过 ssscli connect 成功连接。 后续操作(ssscli generate rsa、ssscli set aes 和 ssscli se05x readidlist)均已成功完成,证实密钥已写入且 ID 已检索,没有出现任何问题。 现在,我想将平台 SCP03 密钥恢复为默认密钥(在 sss/ex/inc/ex_sss_tp_scp03_keys.h 中定义)。 请问有人可以指导我如何修改 se05x_TP_PlatformSCP03keys.c 文件,或者执行此密钥还原的正确步骤是什么吗? 环境: 板:MCIMX8M-WEVK,带OM-SE051ARD芯片 Plug and Trust MW 版本:v04.07.01 OP-TEE 操作系统版本:3.19.0 Linux 内核:6.1.151 OEF ID:A8FA 任何建议或代码方面的指导都将不胜感激。 SE050 Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? 嗨@Uc_S , 如果您只需要将密钥轮换回默认值,那么 nano 包示例是推荐的更简单的方法——只需要更新三个 scp03_* 数组(当前身份验证密钥)和三个 NEW_scp03_* 数组(目标默认密钥),并且需要注释掉 ex_se05x_rotate_scp03_keys() 中的 revert 调用。详情请见下文。 更改 1 — 设置当前密钥(用于打开 SCP03 会话) 第 38-43 行是传递给 ex_set_scp03_keys() 的身份验证密钥。请将占位符 0xABCD... 值替换为您当前的密钥( 0x4041... 😞 uint8_t scp03_enc_key[AES_KEY_LEN_nBYTE] = { 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F }; uint8_t scp03_mac_key[AES_KEY_LEN_nBYTE] = { 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F }; uint8_t scp03_dek_key[AES_KEY_LEN_nBYTE] = { 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F }; c   更改 2 — 设置新的目标密钥(默认 SE051C A8FA 密钥) 第 45-50 行是将通过 PutKey 写入 SE051 的 密钥。将 0x4041... 占位符替换为 SE051C OEF A8FA 默认值: uint8_t NEW_scp03_enc_key[AES_KEY_LEN_nBYTE] = { 0xbf, 0xc2, 0xdb, 0xe1, 0x82, 0x8e, 0x03, 0x5d, 0x3e, 0x7f, 0xa3, 0x6b, 0x90, 0x2a, 0x05, 0xc6 }; uint8_t NEW_scp03_mac_key[AES_KEY_LEN_nBYTE] = { 0xbe, 0xf8, 0x5b, 0xd7, 0xba, 0x04, 0x97, 0xd6, 0x28, 0x78, 0x1c, 0xe4, 0x7b, 0x18, 0x8c, 0x96 }; uint8_t NEW_scp03_dek_key[AES_KEY_LEN_nBYTE] = { 0xd8, 0x73, 0xf3, 0x16, 0xbe, 0x29, 0x7f, 0x2f, 0xc9, 0xc0, 0xe4, 0x5f, 0x54, 0x71, 0x06, 0x99 }; c   更改 3 — 注释掉还原块 在 ex_se05x_rotate_scp03_keys() 中,注释掉第 85-90 行,这样代码就只会进行一次旋转(当前键 → 默认值),而不会尝试再次旋转回来: /* -- Comment out the revert block below -- */ // SMLOG_I("Reverting SCP03 keys(version - %02x) to OLD KEYS \n", KEY_VERSION); // ret = ex_se05x_change_keys(&se05x_session, &scp03_enc_key[0], &scp03_mac_key[0], &scp03_dek_key[0]); // if (ret != 0) { // SMLOG_E("Error in ex_se05x_change_keys \n"); // return 1; // } c     祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 ------------------------------------------------------------------------------- Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? @Kan_Li 谢谢你的解释。 就我而言,当前密钥是已知的(ENC、MAC 和 DEK 的密钥为 0x4041...),我可以通过 ssscli 使用这些密钥成功建立 SCP03 会话。 由于我目前拥有可用于身份验证的密钥,请问您能否详细说明如何修改 se05x_TP_PlatformSCP03keys.c 文件,以将密钥轮换回默认值? 具体来说,我想知道: 在会话建立期间,哪些变量或宏应该使用当前密钥(0x4041...)进行身份验证更新? 哪些变量或结构应该保存目标默认键值(例如 ex_sss_tp_scp03_keys.h)用于 PutKey 操作。 se05x_TP_PlatformSCP03keys.c 中的任何代码片段或特定行引用(或相关的启动/认证标头)将不胜感激。 Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? 嗨@Uc_S , 只有在知道当前密钥的情况下,才能将平台 SCP03 密钥轮换回默认值,因为在向 SE051 发出任何密钥更新 ( PutKey ) 命令之前,需要成功验证 SCP03 会话。 如果当前密钥丢失或遗忘,则无法对 SE051 进行身份验证并执行密钥轮换。没有后门或绕过机制——这是为了维护设备的安全模型而设计的。 此外,恢复出厂设置也无济于事,因为平台 SCP03 密钥明确不受恢复出厂设置程序的影响。 在这种情况下,唯一的选择是用一个仍然带有 NXP 默认配置密钥的新设备替换 SE051 。   祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 ------------------------------------------------------------------------------- Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? @Kan_Li 感谢您提供详细指导。 按照您的指示,我更新了密钥,注释掉了还原块,并成功构建和执行了 nano-package 示例。 然而,在执行过程中,SCP03 密钥更新操作在 PUT KEY APDU 命令期间失败,SW 状态代码为 6A80。以下是执行日志的摘要: Plug and Trust nano package - version: 1.6.1 ... Establish Secure Channel to SE05x ! Sending GP Initialize Update Command !!! ... CardCryptogram verified successfully...Calculate HostCryptogram Sending GP External Authenticate Command !!! APDU Tx> :84 82 33 00 10 ... APDU Rx< :69 82 Authentication Successful!!! Created scp03 Session Changing SCP03 keys(version - 0b) to NEW KEYS APDU Tx> :84 d8 0b 81 58 ... APDU Rx< :6a 80 Error in DoAPDUTxRx Error in ex_se05x_change_keys SE05x Rotate SCP03 keys Example Failed ! 关于潜在的根本原因,我怀疑要么是 OpenSSL 版本(构建 PC 和目标评估板上都使用了 OpenSSL 3.x)影响了 PutKey 期间的密钥派生/格式化,要么是 DEK 值之前可能不匹配/被重写。 目前,我没有足够的精力进一步调查或探讨这些可能性。如果时间允许,我会稍后单独调查这些问题。 再次感谢您的帮助。 Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? 嗨@Uc_S , 感谢您提供的详细执行日志——它提供了准确定位问题所需的所有信息。你的两个嫌疑人都合理且有理有据。以下是对最有可能发生的情况的分析。 6A80错误告诉我们什么 SW 6A80 ( SW_WRONG_DATA )表示 SE051 拒绝了 PUT KEY APDU 的数据字段,认为其在加密上无效。由于您的日志显示身份验证已成功完成(CardCryptogram 已验证 + 外部身份验证已通过),因此确认 ENC 和 MAC 密钥正确。故障仅限于 PUT KEY 步骤,这直接指向DEK 密钥或用于封装新密钥材料的 AES 加密存在问题。 嫌疑人 1:DEK 密钥不匹配——最可能的主要原因 在 PUT KEY 命令中,每个新密钥在发送到 SE 之前都会根据当前的 DEK 进行加密。如果主机代码中的 DEK 值与设备上存储的 DEK 值不完全匹配,则 SE 解密垃圾数据并返回 6A80。 之前一位 SE051C1 客户提出的一个几乎完全相同的案例得出了以下结论: “如果最小示例能够使用 PlatformSCP,那么 ENC 和 MAC 密钥就是正确的。”由于钥匙旋转仍然失败,这意味着DEK钥匙肯定有问题……DEK钥匙可能以前设置错误过。 鉴于您的历史记录,这是最可能的根本原因——先前不完整或不正确的旋转可能导致 SE051 的 DEK 处于不再与 0x4041... 匹配的状态。 确认步骤:在全新的、出厂时就准备的 SE051 样品上测试相同的代码。如果立即成功,则确认当前设备的 DEK 状态已损坏/未知,芯片应该更换——没有正确的 DEK,就没有恢复路径。 嫌疑对象 2:OpenSSL 3.x 兼容性——真实风险,次要原因 该纳米软件包的 SCP03 加密路径使用传统的底层 OpenSSL API: AES_set_encrypt_key((uint8_t *)key, keylen * 8, &AESKey); AES_ecb_encrypt(srcData, destData, &AESKey, AES_ENCRYPT); 该纳米软件包仅使用 OpenSSL 1.1.1进行设计和测试。在 OpenSSL 3.x 中,这些 API 已被弃用,需要在运行时显式加载旧版提供程序。如果未加载,这些调用可能会静默地产生不正确的输出——这将破坏 DEK 加密的有效载荷,并触发信号 6A80。 建议的修复方法:将 nano 包切换为使用mbedTLS作为主机加密后端( -DEX_SE05X_USE_MBEDTLS=1 ),它不依赖于已弃用的 OpenSSL API,并且完全支持此用例。或者,针对 OpenSSL 1.1.1 重新构建,以单独测试 OpenSSL 版本假设。 建议的操作顺序 首先在新 SE051 上进行测试——这是确认当前设备的 DEK 是否是根本原因的最快方法。 将主机加密后端切换为 mbedTLS,以消除未来任何 OpenSSL 3.x 风险。 如果新设备使用 mbedTLS 也出现故障,请分享构建环境详情(操作系统、编译器、mbedTLS 版本)以便进一步调查。 请注意:如果确认当前设备的 DEK 处于未知状态,则无法恢复——需要更换带有出厂默认密钥的芯片。 请与我们联系新样品的检测结果,我们将很乐意提供进一步的帮助。 祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 ------------------------------------------------------------------------------- Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? @Kan_Li 非常感谢您对 6A80 错误的详细解释和分析。 对 DEK 密钥不匹配和 OpenSSL 3.x 兼容性风险的分析(以及使用 mbedTLS 的建议)很有帮助,并阐明了正在发挥作用的确切机制。 我会记住这些建议选项——例如在新样本上进行测试,以及考虑使用 mbedTLS 作为加密后端——以便在资源和带宽允许的情况下进行未来的故障排除。
View full article
S32DS激活码已过期 您好: 我的S32 Design Studio for S32 Platform v.3.4许可证即将到期。 您能帮我检查并延长一下吗? 激活码:533B-878B-88A9-C68F 谢谢。 Re: S32DS activation code expired 你好, 您的S32DS许可证已延期。
View full article
S32DS activation code expired Hi: My license of S32 Design Studio for S32 Platform v.3.4 is about to expire. Could you help check and extend it for me?  Activation code: 533B-878B-88A9-C68F Thanks. Re: S32DS activation code expired Hi,  your S32DS license has been extended. 
View full article
se05x_TP_PlatformSCP03keys.cを使ってプラットフォームSCP03キーをデフォルトに戻す方法は? こんにちは、NXPコミュニティの皆さん、 SE051のセキュア要素を扱っており、Plug and Trustミドルウェアを使ってプラットフォーム SCP03キーをデフォルト値に正しく戻す方法についてお尋ねしたいです。 これまでにやったこと: demos/se05x/se05x_RotatePlatformSCP03Keys/se05x_TP_PlatformSCP03keys.c を修正し、キーのリバートセクション (doc:start:revert-scp03-keys と doc:end:revert-scp03-keys の間) をコメントアウトしました。 私は自分のセットアップでアプリケーションをビルドし実行しました。 実行は成功し、「おめでとうございます!!! キーローテーション成功!!!!」というメッセージが表示されました。 キー変更を確認するために、/tmp/SE05X/plain_scp.txtを新しいキー値(0x4041...ENC、MAC、DEK用)で更新し、SSSCLI Connectで正常に接続できました。 その後の操作(ssscli generate rsa、ssscli set aes、ssscli se05x readidlist)はすべて正常に完了し、鍵が書き込まれIDが問題なく取得されたことが確認されました。 今、プラットフォームSCP03キーをデフォルトのキー(sss/ex/inc/ex_sss_tp_scp03_keys.hで定義)に戻したいと考えています。 どなたかse05x_TP_PlatformSCP03keys.cの修正方法や、このキーリバートを行う正しい手順について教えてもらえますか? 環境: ボード:MCIMX8M-WEVK(OM-SE051ARD搭載) Plug and Trust MW バージョン: v04.07.01 OP-TEE OSバージョン:3.19.0 Linuxカーネル:6.1.151 OEF ID: A8FA アドバイスやコードに関するヒントをいただければ大変ありがたいです。 SE050 Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? こんにちは、 @Uc_S さん。 キーをデフォルトに戻すだけなら、nanoパッケージの例が 推奨されるよりシンプルな経路 です。更新すれば3つの scp03_* 配列(認証用現在のキー)と3つの NEW_scp03_* 配列(デフォルトキーをターゲットに)だけを更新し、ex_se05x_rotate_scp03_keys()内のリバートコールはコメントアウトすればよいのです。詳細については、以下をご参照ください。 変更点1 — 現在のキー(SCP03セッションを開くために使用)を設定します。 38~43行目は、 ex_set_scp03_keys() に渡される認証キーです。プレースホルダー 0xABCD... の値を現在のキー( 0x4041... に置き換えてください。😞 uint8_t scp03_enc_key[AES_KEY_LEN_nBYTE] = { 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F }; uint8_t scp03_mac_key[AES_KEY_LEN_nBYTE] = { 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F }; uint8_t scp03_dek_key[AES_KEY_LEN_nBYTE] = { 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F }; c   変更点2 — 新しいターゲットキー(デフォルトのSE051C A8FAキー)を設定します。 45~50行目は、 PutKey を介して SE051 に書き込ま れるキーです。 0x4041... のプレースホルダーをSE051C OEF A8FAのデフォルト値に置き換えてください。 uint8_t NEW_scp03_enc_key[AES_KEY_LEN_nBYTE] = { 0xbf, 0xc2, 0xdb, 0xe1, 0x82, 0x8e, 0x03, 0x5d, 0x3e, 0x7f, 0xa3, 0x6b, 0x90, 0x2a, 0x05, 0xc6 }; uint8_t NEW_scp03_mac_key[AES_KEY_LEN_nBYTE] = { 0xbe, 0xf8, 0x5b, 0xd7, 0xba, 0x04, 0x97, 0xd6, 0x28, 0x78, 0x1c, 0xe4, 0x7b, 0x18, 0x8c, 0x96 }; uint8_t NEW_scp03_dek_key[AES_KEY_LEN_nBYTE] = { 0xd8, 0x73, 0xf3, 0x16, 0xbe, 0x29, 0x7f, 0x2f, 0xc9, 0xc0, 0xe4, 0x5f, 0x54, 0x71, 0x06, 0x99 }; c   変更点3 — リバートブロックをコメントアウトする ex_se05x_rotate_scp03_keys() では、85行目から90行目までコメントアウトして、コードが1回だけ回転(→現在のデフォルト)を行い、再び回転しようとしないようにします。 /* -- Comment out the revert block below -- */ // SMLOG_I("Reverting SCP03 keys(version - %02x) to OLD KEYS \n", KEY_VERSION); // ret = ex_se05x_change_keys(&se05x_session, &scp03_enc_key[0], &scp03_mac_key[0], &scp03_dek_key[0]); // if (ret != 0) { // SMLOG_E("Error in ex_se05x_change_keys \n"); // return 1; // } c     すてきな一日を、 カン ------------------------------------------------------------------------------- 注記: この投稿があなたの質問への回答になっている場合は、「正解としてマーク」ボタンをクリックしてください。ありがとうございます! - 前回の投稿から7週間Threadをフォローしており、その後の返信は無視しています もし後で関連する質問があれば、新しいThreadを開き、閉じたThreadを参照してください。 ------------------------------------------------------------------------------- Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? @Kan_Li ご説明いただきありがとうございます。 私の場合、現在のキーは既知です(0x4041...ENC、MAC、DEK)で、これらのキーを使ってSSSCLIを通じてSCP03セッションを正常に確立できます。 現在の認証キーが使えるので、se05x_TP_PlatformSCP03keys.cをデフォルトに戻すためにキー回転を修正する方法について詳しく教えていただけますか? 具体的には、以下の点について知りたいです。 セッション設定時に認証のために、現在のキー(0x4041...)で更新すべき変数やマクロはどれでしょうか。 ターゲットのデフォルトキー値を保持する変数または構造体はどれですか(例:sss_tp_scp03_keys.h)PutKey操作の場合。 se05x_TP_PlatformSCP03keys.cのコードスニペットや特定の行参照などは(または関連するブート/認証ヘッダー)を提供していただけると大変ありがたいです。 Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? こんにちは、 @Uc_S さん。 プラットフォームSCP03キーをデフォルト値に戻すのは、 現在のキーが既知である場合にのみ可能であり、SE051に対してキー更新( PutKey )コマンドを出す前に、SCP03セッションが成功裏に認証されている必要があります。 現在の鍵を紛失または忘れてしまった場合、SE051への認証および鍵のローテーションを実行することはできません。バックドアやオーバーライド機構は存在せず、これはデバイスのセキュリティモデルを維持するための設計上のものです。 さらに、工場出荷時リセットは効果 がなく 、プラットフォームSCP03キーは工場出荷時リセット手順の影響を受けません。 このような状況では、 SE051を、NXPがデフォルトで提供するキーを搭載した新しいデバイスに交換する以外に選択肢はありません。   すてきな一日を、 カン ------------------------------------------------------------------------------- 注記: この投稿があなたの質問への回答になっている場合は、「正解としてマーク」ボタンをクリックしてください。ありがとうございます! - 前回の投稿から7週間Threadをフォローしており、その後の返信は無視しています もし後で関連する質問があれば、新しいThreadを開き、閉じたThreadを参照してください。 ------------------------------------------------------------------------------- Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? @Kan_Li 詳細なご指導をいただき、ありがとうございます。 あなたの指示に従い、キーを更新し、リバートブロックをコメントアウトし、ナノパッケージの例を無事に構築・実行しました。 しかし、実行中に、PUT KEY APDUコマンドの実行中に、SCP03キー更新操作がSWステータスコード6A80で失敗しました。実行ログの概要は以下のとおりです。 Plug and Trust nano package - version: 1.6.1 ... Establish Secure Channel to SE05x ! Sending GP Initialize Update Command !!! ... CardCryptogram verified successfully...Calculate HostCryptogram Sending GP External Authenticate Command !!! APDU Tx> :84 82 33 00 10 ... APDU Rx< :69 82 Authentication Successful!!! Created scp03 Session Changing SCP03 keys(version - 0b) to NEW KEYS APDU Tx> :84 d8 0b 81 58 ... APDU Rx< :6a 80 Error in DoAPDUTxRx Error in ex_se05x_change_keys SE05x Rotate SCP03 keys Example Failed ! 根本的な原因としては、OpenSSLバージョン(ビルドPCとターゲット評価ボードの両方でOpenSSL 3.xが使用)がPutKey時のキーの派生やフォーマットに影響を与えているか、特にDEKの値が以前に不一致または書き換えられた可能性があります。 現時点では、これらの可能性をさらに調査したり対処したりするだけの十分な時間的余裕がありません。後日、時間があれば個別に調べてみます。 ご協力いただき、改めて感謝申し上げます。 Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? こんにちは、 @Uc_S さん、 詳細な実行ログをありがとうございます。問題の特定に必要な情報がまさに揃っています。あなたが挙げた2人の容疑者は、どちらも正当で、論理的にも妥当です。以下に、最も可能性の高い状況をまとめました。 6A80エラーが教えてくれること SW 6A80 ( SW_WRONG_DATA )は、SE051がPUT KEY APDUのデータフィールドを暗号学的に無効として拒否したことを意味します。ログで認証が成功裏に完了した(CardCryptogram認証+外部認証成功)を示しているので、 ENCキーとMACキーは正しいことが確認されています。この失敗はPUT KEYステップに限定されており、これは DEKキー または 新しい鍵素材をラップするAES暗号化の問題を直接示しています。 容疑者1:DEKキーの不一致 ― 最も可能性の高い主な原因 PUT KEYコマンド内では、新しいキーはそれぞれ現在のDEKで暗号化されてからSEに送信されます。ホストコード内のDEK値がデバイスに保存されているDEK値と完全に一致しない場合、SEはガベージを復号して6A80を返します。 ほぼ同じケースで、以前のSE051C1顧客からの結論は以下の通りです。 「最小限のサンプルがPlatformSCPで動作するなら、ENCキーとMACキーは正しい。」キーの回転が依然として失敗するということは、DEKキーが間違っていることを意味します...過去にDEKキーが誤って設定された可能性があります。 これまでの経緯から考えると、これが最も可能性の高い根本原因です。以前の不完全または誤った回転により、SE051のDEKが 0x4041... と一致しない状態になっている可能性があります。 確認手順:新品の工場出荷時のSE051サンプルで同じコードをテストします。即座に成功した場合、現在のデバイスのDEKの状態が破損しているか不明であることが確認され、チップを交換する必要があります。正しいDEKがなければ復旧手段はありません。 容疑者2:OpenSSL 3.x互換性 ― 実際のリスク、二次的原因 ナノパッケージのSCP03暗号パスは、レガシーの低レベルOpenSSL APIを使用しています。 AES_set_encrypt_key((uint8_t *)key, keylen * 8, &AESKey); AES_ecb_encrypt(srcData, destData, &AESKey, AES_ENCRYPT); ナノパッケージは OpenSSL 1.1.1のみで設計・テストされました。OpenSSL 3.xではこれらのAPIは非推奨化されており、レガシープロバイダーを実行時に明示的にロードする必要があります。もし読み込まれていなければ、これらの呼び出しは静かに誤った出力を生み出し、DEKで暗号化されたペイロードが破損し、6A80もトリガーされます。 推奨される修正方法: nanoパッケージを mbedTLS をホストの暗号バックエンド( -DEX_SE05X_USE_MBEDTLS=1 )に切り替えてください。これは廃止されたOpenSSL APIに依存しず、このユースケースで完全にサポートされています。あるいは、OpenSSL 1.1.1に対して再構築してOpenSSLバージョン仮説を単独で検証する方法もあります。 推奨される手順 まずは新品のSE051でテストしてください。これが、現在使用しているデバイスのDEKが根本原因かどうかを確認する最も迅速な方法です。 今後OpenSSL 3.xのリスクを排除するために、ホストの暗号バックエンドはmbedTLSに切り替えましょう。 新しいデバイスでもmbedTLSが動作しない場合は、詳細な調査のために、ビルド環境の詳細(OS、コンパイラ、mbedTLSのバージョン)をお知らせください。 ご注意ください:現在お使いのデバイスのDEKが不明な状態であることが確認された場合、それを復旧する方法はありません。工場出荷時のキーが設定された交換用チップが必要になります。 新たなサンプル検査の結果をお知らせください。喜んでさらにサポートさせていただきます。 すてきな一日を、 カン ------------------------------------------------------------------------------- 注記: この投稿があなたの質問への回答になっている場合は、「正解としてマーク」ボタンをクリックしてください。ありがとうございます! - 前回の投稿から7週間Threadをフォローしており、その後の返信は無視しています もし後で関連する質問があれば、新しいThreadを開き、閉じたThreadを参照してください。 ------------------------------------------------------------------------------- Re: How to revert Platform SCP03 keys back to default using se05x_TP_PlatformSCP03keys.c? @Kan_Li 6A80エラーに関する詳細な説明と分析をいただき、誠にありがとうございました。 DEKキーの不一致とOpenSSL 3.xとの互換性リスクに関する詳細な説明(およびmbedTLSの使用に関する提案)は有益であり、実際に作用しているメカニズムを明確にする。 これらの提案案――新しいサンプルでのテストや暗号バックエンドのmbedTLSの検討など――は、資源や帯域幅が許す将来のトラブルシューティングのために心に留めておきます。
View full article