Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
The FS32K144UAT0VLLT and MC9S12P128 sample the same analog signal, but the sampled values are different. Robin_chen: Manager: Hello, may I continue with my questions? The old board used an NXP MC9S12P128, LQFP80 microcontroller. An external analog signal, such as an input of around 4.2V, is used. The circuit diagram is as follows: a 100K resistor is connected to a 5V pull-up resistor, and a 10K resistor is connected in series. The signal is sampled at pin 55 (PAD04) of the NXP MC9S12P128. The voltage value at PAD04 (the connection point of C9 and R9) is measured to be 4.2V, indicating that the sampling is correct. The new board replaces the MC9S12P128 microcontroller with an FS32K144UAT0VLLT and LQFP100. The AD sampling is connected to pin 48, PTB2/ADC0_SE6. However, the voltage value of PAD04 (the connection point between C9 and R9) is only 3.1V. The value is also the same when measured with a multimeter. Why is there such a big difference between the two microcontrollers? The FS32K144UAT0VLLT has already been configured with AD channels, using a total of 9 channels of ADC0. The other channels are working fine. Is there anything else that needs to be configured correctly? Thank you! 微信图片_2026-08-28_171239_788.pngWeChat image_2026-08-28_171239_788.png 回复: FS32K144UAT0VLLT和MC9S12P128对同一个模拟量采样,采样值有偏差。 manager: The cause has been found: the AD pin corresponding to FS32K144UAT0VLLT was set to pull down in the software, which caused the sampling voltage to be too low. The problem has been resolved, thank you!
View full article
FS32K144UAT0VLLT和MC9S12P128对同一个模拟量采样,采样值有偏差。 Robin_chen: 经理:你好,继续请教问题: 旧的板子使用NXP MC9S12P128,LQFP80单片机, 外部一个模拟量,比如输入4.2V左右的模拟量,电路图如下,100K电阻接5V上拉,串接10K电阻,进入NXP MC9S12P128的55脚PAD04采样,测得PAD04(也就是C9和R9连接点)这点电压值4.2V,采样正确。 新板子将单片机MC9S12P128更换为FS32K144UAT0VLLT,LQFP100,AD采样接48脚PTB2/ADC0_SE6,但PAD04(也就是C9和R9连接点)电压值只有3.1V,用万用表测量也是这个值,怎么两个单片机差别这么大? FS32K144UAT0VLLT已经配置AD通道了,共使用了ADC0的9个通道,其它通道没有问题,还有什么没有配置完善吗?谢谢! 微信图片_2026-08-28_171239_788.png微信图片_2026-08-28_171239_788.png 回复: FS32K144UAT0VLLT和MC9S12P128对同一个模拟量采样,采样值有偏差。 经理: 原因找到了,FS32K144UAT0VLLT对应的AD管脚软件设置了下拉,所以出现采样电压偏低。 问题已经解决,谢谢!
View full article
GMAC0 and Linflexd UART0 cannot work stably at the same time Hello everyone, I am developing software on the M7_0 core of the S32G274A using S32DS3.5 and RTD4.0.0, with FreeRTOS, Linflexd_Uart, and Lwip as components. During debugging, I found that GMAC0 and Linflexd UART0 cannot work stably at the same time. I use Linflexd_Uart to output the content of printf. The logs show that initialization completes and, after the application starts up, it can cyclically print the status of each FreeRTOS task. However, I cannot ping the board's IP address. If I comment out the printf calls or disable the UART transmission in _write, the board becomes pingable after power‑on or reset. What could be the issue here? Does printf cause GMAC0 to fail at receiving data? How should I resolve this problem? Thank you in advance for any suggestions. Re: GMAC0 and Linflexd UART0 cannot work stably at the same time any error log can be shared? Re: GMAC0 and Linflexd UART0 cannot work stably at the same time Hello, @williams_ww  Thanks for the post. From my understandign, printf() itself should not make S32G274A GMAC0 hardware stop receiving frames . The more likely issue is that your printf -> _write -> Linflexd_Uart path is disturbing the FreeRTOS/lwIP/GMAC software timing Not sure with your detailed implementation, I suggest checking if block inside _write(), Moving UART output to a low-priority logger task, etc, to narrow the possible range BR Chenyin Re: GMAC0 and Linflexd UART0 cannot work stably at the same time 正常.jpg正常.jpg正常.jpg正常.jpg正常.jpg正常.jpg正常.jpg正常.jpg正常.jpg正常.jpg exception.jpgexception.jpgexception.jpgexception.jpgexception.jpgexception.jpgexception.jpgexception.jpgexception.jpgexception.jpg The diagram on the left shows the program running normally, while the diagram on the right shows the behavior after an exception occurs: the board cannot be pinged, and the log output gets stuck at a fixed position. Re: GMAC0 and Linflexd UART0 cannot work stably at the same time what is ip address 192.168.7.200? Is it part of your setting for GMAC? You may also check for AN14063 S32G2 Hardware Design Guidelines when the GMAC related connection is not stable. Which working mode below is fit for your design ? db16122_0-1788253582320.pngdb16122_0-1788253582320.pngdb16122_0-1788253582320.pngdb16122_0-1788253582320.pngdb16122_0-1788253582320.pngdb16122_0-1788253582320.pngdb16122_0-1788253582320.pngdb16122_0-1788253582320.pngdb16122_0-1788253582320.png db16122_1-1788253600524.pngdb16122_1-1788253600524.pngdb16122_1-1788253600524.pngdb16122_1-1788253600524.pngdb16122_1-1788253600524.pngdb16122_1-1788253600524.pngdb16122_1-1788253600524.pngdb16122_1-1788253600524.pngdb16122_1-1788253600524.png Re: GMAC0 and Linflexd UART0 cannot work stably at the same time “After applying the suggested changes, the problem still persists. Re: GMAC0 and Linflexd UART0 cannot work stably at the same time Following the support team's suggested solution, I modified the original printing logic to write data into a buffer, as shown below: static char buffer[64*1024+1]; volatile char buffer_to_print = 0; void my_printf(const char *format , ...) { va_list args; if(1 == buffer_to_print) { return ; } va_start(args,format); vsnprintf(buffer,sizeof(buffer),format,args); va_end(args); buffer_to_print =1; } I created a task with priority 0, which is lower than all other tasks: void my_printf_flush() { if(buffer_to_print) { Linflexd_Uart_Ip_AbortSendingData(0); Linflexd_Uart_Ip_SyncSend(0,(uint8*)buffer,strlen(buffer),3000000); buffer_to_print =0; } } void PrintfTaskDemo(void *pvParameters) { (void)pvParameters; for(;;) { my_printf_flush(); vTaskDelay(pdMS_TO_TICKS(10)); } } // here is the content of print but why only print the PRINT_HEAP_INFO ,the taskInfo not print everytime ????????????????????? for(;;) { ZRSleep(1000);// sleep 1s PRINT_HEAP_INFO; // print the remains heap size vTaskList(taskInfo); // get the freeRTOS all task state ZRLOG(ZRLOG_USER_INFO,taskInfo); // call my_printf to write buffer ZRSleep(1000); //sleep 1s } The current behavior is: the task PrintfTaskDemo can print content normally(not enable DMA), but the IP address on GMAC0 remains unreachable sometimes ,and network functionality is not working stably. The SRAM size in my linker_ram.ld is 3MB ( on S32G274A M7_0), and both the compilation settings and the FreeRTOS heap size appear to be normal. Let me know if you need further clarification or technical advice on resolving the issue. Re: GMAC0 and Linflexd UART0 cannot work stably at the same time Hello, @williams_ww  Thanks for your reply. Seems you were using the blocking method(Linflexd_Uart_Ip_SyncSend), may I know if you had tried the non-blocking API?(Linflexd_Uart_Ip_AsyncSend) BR Chenyin Re: GMAC0 and Linflexd UART0 cannot work stably at the same time The GMAC configuration is basically carried out according to the official example program. ip.jpgip.jpgip.jpgip.jpgip.jpg code.jpgcode.jpgcode.jpgcode.jpgcode.jpg dev.jpgdev.jpgdev.jpgdev.jpgdev.jpg Re: GMAC0 and Linflexd UART0 cannot work stably at the same time Hello, @williams_ww  Thanks for your reply. I have the following suggestions: 1. Firstly to confirm what kind of settings of your UART driver, polling or interrupt mode used? 2. If it is polling mode, change it to the interrupt mode, and also, check the priority of the interrupts used both for UART/GMAC, set the UART interrupt lower than GMAC to have another trial BR Chenyin Re: GMAC0 and Linflexd UART0 cannot work stably at the same time Using interrupt mode makes it worse. Re: GMAC0 and Linflexd UART0 cannot work stably at the same time A hardware error may have occurred. I reviewed the internal implementation of the UART synchronous send interface. I commented out SuspendAllInterrupts and related code, and added lock protection before calling the synchronous send interface, but the problem still persists. Therefore, I think it is not strongly related to the UART synchronous send logic. I suspect that a hardware error caused both lwip and UART to crash. Re: GMAC0 and Linflexd UART0 cannot work stably at the same time Hello, @williams_ww  Thanks for your reply. From software perspective, the issue you met is likely caused that frequent UART TX/RX interrupts are preempting Ethernet interrupt handling, which increases RX processing latency and causes packet loss. Besides the tips we had discussed, the priority for interrupt of UART/network would also impact, so I suggest trying setting your UART interrupt, put it lower than the priority of network interrupt to have a try. BR Chenyin
View full article
FS32K144UAT0VLLTとMC9S12P128は同じアナログ信号をサンプリングしますが、サンプリングされる値は異なります。 Robin_chen: マネージャー:こんにちは。質問を続けてもよろしいでしょうか? 旧基板にはNXP MC9S12P128、LQFP80マイクロコントローラが使用されていました。 外部アナログ信号(例えば、約4.2Vの入力)を使用します。回路図は以下のとおりです。100KΩの抵抗が5Vのプルアップ抵抗に接続され、さらに10KΩの抵抗が直列に接続されています。信号はNXP MC9S12P128の55番ピン(PAD04)でサンプリングされます。PAD04(C9とR9の接続点)の電圧値は4.2Vと測定され、サンプリングが正しいことが確認されました。 新しい基板では、MC9S12P128マイクロコントローラがFS32K144UAT0VLLTとLQFP100に置き換えられています。ADサンプリングはピン48、PTB2/ADC0_SE6に接続されています。しかし、PAD04(C9とR9の接続点)の電圧値は3.1Vしかありません。マルチメータで測定した場合も同じ値です。なぜ2つのマイクロコントローラ間でこれほど大きな差が生じるのでしょうか? FS32K144UAT0VLLTは既にADチャネルが設定されており、合計9つのADC0チャネルが使用されています。他のチャネルは正常に動作しています。他に正しく設定する必要がある項目はありますか? よろしくお願いいたします。 微信图片_2026-08-28_171239_788.pngWeChat image_2026-08-28_171239_788.png 回复: FS32K144UAT0VLLT和MC9S12P128对同一个模拟量采样,采样值有偏差。 マネージャー: 原因が判明しました。FS32K144UAT0VLLTに対応するADピンがソフトウェアでプルダウンに設定されていたため、サンプリング電圧が低くなりすぎていました。 問題は解決しました。ありがとうございました!
View full article
S9KEAZN64AMLH FIT値の確認 本プロジェクトでは、MCU S9KEAZN64AMLHを選定しました。車両メーカーは、下図に示すようなチップの適合パラメータを必要とします。ご確認の上、ご返信をお願いいたします。サポートありがとうございます。 mengfanpeng_0-1787884740955.pngmengfanpeng_0-1787884740955.pngmengfanpeng_0-1787884740955.png Re: Confirmation of S9KEAZN64AMLH FIT value こんにちは、 @mengfanpeng さん、 投稿ありがとうございます。 この情報は、公共の場で共有するのに適していません。後ほど、プライベートメールでお送りします。 BR セレステ Re: Confirmation of S9KEAZN64AMLH FIT value 自動車用半導体半導体でFIT(Failures In Time)パラメータの要請(例えばNXP S9KEAZN64AMLH(Kinetis EAシリーズ、ARM Cortex-M0+)に対応する場合、NXPのような半導体メーカーは通常、標準部品データシート内で生のFITレートを直接公開しません。代わりに、これらの信頼性指標は業界標準(例えばAEC-Q100)によって管理され、NXP製品品質報告書(PQR)、AEC-Q100資格報告書、特定のお客様品質要求書(PQA)などの公式文書を通じて提供されます。 Re: Confirmation of S9KEAZN64AMLH FIT value FITは一般的なテストデータであり、NXPが社内で所有しています。OEMから関連データのリクエストがあった場合、そのデータはテスト環境に限定されているため、あくまで参考情報としてのみ提供されます。
View full article
LPSPIペリフェラルが95年 i.MX A55からM7に所有権を変更できますか? Re: Can any LPSPI peripheral be change ownership from A55 to M7 on i.MX 95? こんにちは、 はい、これはSystem ManagerファームウェアのTRDC(Trusted Resource Domain マネージャ)設定を通じて行われます。 これはmx95evk.cfg で直接行うこともできますし、システムマネージャーツールの Config Tools i.MX ツールを使うこともできます。 よろしくお願いいたします。
View full article
在 i.MX 95 上,能否将任何 LPSPI 外设的所有权从 A55 更改为 M7? Re: Can any LPSPI peripheral be change ownership from A55 to M7 on i.MX 95? 你好, 是的,这是通过系统管理器固件中的 TRDC(可信资源域控制器)配置来实现的。 您可以直接在mx95evk.cfg中进行此操作,或者您可以使用系统管理器工具中的i.MX 配置工具。 顺祝商祺!
View full article
Can any LPSPI peripheral be change ownership from A55 to M7 on i.MX 95? Re: Can any LPSPI peripheral be change ownership from A55 to M7 on i.MX 95? Hello, Yes, this is done through the TRDC (Trusted Resource Domain Controller) configuration via the System Manager firmware. You can do this directly in mx95evk.cfg or you can use Config Tools for i.MX tool in system manager tool. Best regards.
View full article
Confirmation of S9KEAZN64AMLH FIT value The project has selected MCU  S9KEAZN64AMLH. Now, the vehicle manufacturer requires the chip FIT parameters, as shown in the figure below. Please help confirm and reply. Thank you for your support. mengfanpeng_0-1787884740955.pngmengfanpeng_0-1787884740955.pngmengfanpeng_0-1787884740955.png Re: Confirmation of S9KEAZN64AMLH FIT value Hello @mengfanpeng , Thanks for your post. This information is not suitable for sharing in a public community. I will send it to you via private email shortly. BR Celeste Re: Confirmation of S9KEAZN64AMLH FIT value FIT is general test data and own by NXP internally. If OEM request related data,it is just for reference since the data is limited to test enviroment. Re: Confirmation of S9KEAZN64AMLH FIT value When dealing with automotive semiconductor requests for FIT (Failures In Time) parameters—such as for the NXP S9KEAZN64AMLH (Kinetis EA series, ARM Cortex-M0+)—semiconductor manufacturers like NXP typically do not publish raw FIT rates directly inside standard component datasheets. Instead, these reliability metrics are governed by industry standards (like AEC-Q100) and are provided via official documents such as NXP Product Quality Reports (PQRs), AEC-Q100 qualification reports, or specific customer quality requests (PQAs).
View full article
确认 S9KEAZN64AMLH FIT 值 该项目选择了 MCU S9KEAZN64AMLH。现在,车辆制造商需要芯片的 FIT 参数,如下图所示。请帮忙确认并回复。感谢您的支持。 mengfanpeng_0-1787884740955.pngmengfanpeng_0-1787884740955.pngmengfanpeng_0-1787884740955.png Re: Confirmation of S9KEAZN64AMLH FIT value 你好@mengfanpeng , 感谢你的帖子。 这些信息不适合在公共社区分享。我稍后会通过私人邮件发送给你。 BR 塞莱斯特 Re: Confirmation of S9KEAZN64AMLH FIT value 在处理汽车半导体对 FIT(故障率)参数的要求时——例如 NXP S9KEAZN64AMLH(Kinetis EA 系列,ARM Cortex-M0+)——像 NXP 这样的半导体制造商通常不会在标准元器件数据手册中直接发布原始 FIT 率。相反,这些可靠性指标受行业标准(如 AEC-Q100)的约束,并通过官方文件(如 NXP 产品质量报告 (PQR)、AEC-Q100 认证报告或特定客户质量要求 (PQA))提供。 Re: Confirmation of S9KEAZN64AMLH FIT value FIT 是通用测试数据,归 NXP 内部所有。如果OEM厂商要求提供相关数据,由于数据仅限于测试环境,因此仅供参考。
View full article
BSP 6.18.20_2.0.0ビルドimx8mp uboot-imxが失敗 NXPチームの皆さん、こんにちは。 6.18.20_2.0.0 BSP Yocto build for IMX8MPでuboot-imxエラーが発生しました。添付のビルドログをご覧ください。 Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail $ sudo apt install efitools Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail すみません、私もUbuntu 22.04を使っていました。 フォルダ tmp/work/imx8mp_lpddr4_evk-poky-linux/u-boot-imx/2026.04/build/imx8mp_evk_defconfig-sd にアクセスし、ファイルcapsule_esl_fileが存在するか確認してください。 $ find .-name capsule_esl_file Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail 何も変更なし。 私のビルド環境はUbuntu 22.04です。 Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail 私のUbuntu 24.04 PCでデフォルトのビルド構成を確認しましたが、問題はありませんでした。 Yoctoのビルド環境で何か変更しましたか?例えば、u-boot-imx-2026.04のソースコードなど。 Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail 参考までに Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail ビルドログをアップロードしていただけますか?
View full article
AUTOSAR 网络管理睡眠/唤醒之间的连接 您好,我目前正在调试 EcuM 和网络管理功能。我查阅了一些规格手册,但仍然有些困惑,希望得到指导。 网络管理的睡眠/唤醒是否必须与 EcuM 协调(即 EcuM 验证唤醒原因)? 在网络管理睡眠/唤醒过程中,ECU 是否需要进入睡眠状态(即 EcuM 睡眠)? 如果问题 1 的答案是肯定的,则 EcuM 通过接口获取唤醒事件。 EcuM_SetWakeupEvent 。然而,AUTOSAR EcuM 规范 SWS_EcuM_04318 指出: “与所选睡眠模式无关的唤醒事件将被忽略。” 我应该如何理解这句话? AUTOSAR EcuM 规范中还包含两个关于接口的条目。 EcuM_ValidateWakeupEvent – SWS_EcuM_02790 和 SWS_EcuM_02791。它指出与通信通道关联的唤醒源在任何阶段都应有效。这是否意味着在任何阶段,唤醒事件都可以被挂起(即,成功通过)。 然后进行验证(EcuM_SetWakeupEvent)? Re: The connection between AUTOSAR Network Management sleep/wake-up 您好, 1. NM 睡眠/觉醒是否需要 EcuM 协调? 未必。NM/ComM 管理网络通信,而 EcuM 管理 ECU 电源状态。ECU唤醒验证主要与ECU实际进入ECU睡眠状态有关。 2. NM睡眠是否意味着ECU必须进入ECUM睡眠状态? 不。网络可以进入总线睡眠状态,而 ECU 仍处于运行模式并继续执行本地功能。 3. 如何理解 SWS_EcuM_04318? 这意味着 EcuM 只接受为当前选定的睡眠模式配置的唤醒事件。来自未在该睡眠模式下启用的唤醒源的唤醒事件将被忽略。它可以防止虚假硬件事件意外唤醒 ECU。 4. 在任何 EcuM 阶段,ComM 相关唤醒源是否可以得到验证? 是的。这是一个特例。通用唤醒源仅在睡眠期间被接受,但通信通道关联的源(例如,CAN 唤醒帧)可以通过 EcuM_SetWakeupEvent 挂起,并通过 EcuM_ValidateWakeupEvent 在任何 EcuM 阶段进行验证。这样,唤醒事件就可以中止正在进行的 Go-Sleep 序列——这是将 NM 唤醒与 EcuM 连接起来的关键机制。 简而言之:NM睡眠≠ECU睡眠,并且与ComM连接的唤醒源在ECUM中会得到特殊处理,从而允许在正常的唤醒序列之外进行验证。 BR,彼得 回复: The connection between AUTOSAR Network Management sleep/wake-up 您好,谢谢您的回复。关于您的回复,我还有一些疑问。对于多次打扰您,我深表歉意,并提前感谢您的帮助。 我了解到,网络管理的睡眠/唤醒似乎也需要 EcuM 验证唤醒源,因为在网络管理的被动模式下,需要 EcuM 验证唤醒源。与 ComM 通道关联的唤醒源验证成功后,EcuM 调用 ComM 接口,然后网络即可唤醒。在你的第一个回答中,你提到只有当 ECU 实际进入 EcuM 睡眠状态时,才需要进行 EcuM 唤醒验证。因此,我的理解是,在网络管理休眠/唤醒之后,ECU 也需要进入 EcuM 休眠状态,然后经过 EcuM 唤醒验证过程。然而,这似乎与你的第二个回答有些矛盾。我不确定我的理解是否正确。 在你的第三个和第四个答案中,SWS_EcuM_04318 表示 EcuM 只接受为当前选定的睡眠模式配置的唤醒事件。在第 4 个答案中,您提到与通信相关的唤醒源是一个特例。那么,ComM 相关唤醒源能否简单地忽略 SWS_EcuM_04318 的限制,还是我必须在设计阶段将所有 ComM 相关唤醒源配置为睡眠模式的唤醒事件? 是否需要先启用唤醒源?EcuM 调用 EcuM_EnableWakeupSource 以在睡眠阶段启用唤醒功能。只有启用后才能挂起(成功通过 EcuM_SetWakeupEvent 接口过滤)?如果是这样,关于答案 4 中的声明“ComM 通道关联的源(例如,CAN 唤醒帧)可以通过 EcuM_SetWakeupEvent 挂起”,这种挂起操作是否只在 EcuM 睡眠阶段发生,然后在 EcuM 的任何阶段进行验证?或者,启用步骤是由其他驾驶员自行完成的,还是存在其他情况? 期待您的回复。
View full article
PFE EMAC0 ECUウェイクアップ後の無効なバッファアクセス こんにちは、 EMAC0を2500 Mbpsで設定し、必要なSERDESチャネル設定も行っています。ECUの稼働状態中は、イーサネット通信が正常に動作しています。 Eth通信にアクセスするアプリケーションをシャットダウンした後、ECUMからECUスリープリクエストをトリガーし、MCUモードをSOCスタンバイに設定し、HSE_CM7をメインコアとして選択します。 ウェイクアップ後、ECUは通常の動作に戻り、COM、SOAD、TCPIP、ETHIFのレイヤーは期待通りに動作します。EthのIFレイヤーでは、API呼び出し中の「Provide TX buffer」が「Provide TX buffer」が空いていないというエラーを返し、その後Ethフレームの送信が停止します 問題解決のために試された修正方法のリスト: 1. 「Eth_43_Pfe_Deinit」を使ってPFEドライバをシャットダウンし、「Eth_43_Pfe_Init」を呼んでPFEドライバを起動しようとしましたが、実行後にCPUがロックされてしまいました。 2. EthコントローラをEth_43_Pfe_SetControllerモードで下げてアクティブに戻そうとしたところ、バス障害が発生しました この問題の解決策を教えてください。 追伸> 使用コンフィギュレーター:EB tresos Eth PFE RTDバージョン:1.3.0 SDK:GOLDVIP Re: PFE EMAC0 Invalid Buffer Access Post ECU wakeup こんにちは、Avinash_7373さん ご返信よろしくお願いします。 1.SOCがスタンバイモードに入ると、パーティション2のPFEクロックが無効になります。ウェイクアップ後にパーティション2が再度有効になっているか確認してください。PFE開始前のPCSの状態PRTN2_STATを確認してみてください。PFE開始前のPCS状態。 2. SERDESが正常に機能しているかどうかを確認します。 BR ジョーイ Re: PFE EMAC0 Invalid Buffer Access Post ECU wakeup こんにちは、 @Joey_z 1.PFEはMコアでのみ使用されています 2. 開発ボードを使っています:S32G-VNP-RDB3 よろしくお願いいたします。 アビナシュ・V Re: PFE EMAC0 Invalid Buffer Access Post ECU wakeup こんにちは、Avinash_7373さん お問い合わせいただきありがとうございます。 1. PFEはMコアでのみ使用されますか?Aコアを一緒に使ったことはありますか? 2. お客様のボードを使っていますか、それとも私たちの開発ボードを使っていますか? BR ジョーイ Re: PFE EMAC0 Invalid Buffer Access Post ECU wakeup こんにちは、@Joey_z。 ステータスレジスタのビットフィールドはスリー プ前Partition_2 1のままですが、スリープ中は 0 に更新され、MCUモードが通常に設定された後、ウェイクアップ後には再び 1 に更新されます。 Serdesは正常に動作しています。さらに、ET Phyコネクタ(RJ45)とコントローラー(NXPS32G399A)の間にSERDESが関与しないRGMIIモードでEMAC2を試しましたが、それでも問題は同じままでした。 Partition_2の起動後に再起動シーケンスが必要な場合は、お知らせください。 よろしくお願いいたします。 アビナシュ・V Re: PFE EMAC0 Invalid Buffer Access Post ECU wakeup こんにちは、Avinash_7373さん 問題は、おそらくウェイクアップ後のPFE初期化に関するものと思われます。クロックと関連するPFE構成を確認し、理想的な状態に初期化されていることを確認してください。 1. PFEの初期化がブートローダーに入力され、起動後にアプリケーション内で正しく再初期化されているか確認してください。 2. スタンバイプロセスに従って該当する構成を確認する。RM 32.5.5「実行モードからスタンバイモードへ」を参照してください。 BR ジョーイ Re: PFE EMAC0 Invalid Buffer Access Post ECU wakeup こんにちは、Avinash_7373さん ご返信よろしくお願いします。 スタンバイとウェイクアップシーケンスの操作について教えていただけますか? 1. コアとパーティションはどのように設定しますか? 2.Do アプリケーションでブートローダーとAコアを使っていますか? BR ジョーイ Re: PFE EMAC0 Invalid Buffer Access Post ECU wakeup こんにちは、 @Joey_z さん。 以下に睡眠・覚醒の順序を示します。 1. API 「EcuM_SelectShutdownTarget()」 を使ってECUスリープモードをリクエストしています。これにより、ECUMの実装通りにMCUモードがスタンバイに設定されます。 2. ECUMがスリープモードに入ると、ウェイクアップイベントをポーリングし、CANトランシーバーがバスの活動を検出してEcuM_SetWakeupEvent() APIを使ってウェイクアップイベントを設定し、その後ECUは通常の動作を再開します。 ブートローダーについては、NXPのブートローダー(0x0にフラッシュされる)のフラッシュ位置と、Mコアアプリケーションが0x400000にフラッシュされます。Aコアはどこにも使用されていません。 よろしくお願いいたします。 アビナシュ・V Re: PFE EMAC0 Invalid Buffer Access Post ECU wakeup こんにちは、 Avinash_7373 あなたの問題について何か進展はありましたか?もし継続的なサポートが必要な場合は、以下のリンクからコードをアップロードしていただければ問題をより詳しく分析できます。 https://support.nxp.com BR ジョーイ
View full article
Autosar 网络休眠唤醒与EcuM的联系 你好,我现在在调试EcuM与网络管理,查了一些规范手册,但是仍然有一些困惑,请求指导 网络管理休眠唤醒是不是就得需要EcuM进行配合(EcuM进行验证唤醒原因)? 网络管理休眠唤醒过程中,需要ECU休眠(EcuM休眠)吗? 如果问题1是需要的话,那么EcuM获取唤醒事件就是通过EcuM_SetWakeupEvent这个接口,但是这个接口在Autosar的EcuM手册中SWS_EcuM_04318规范介绍到:应当忽略传入参数中所有与所选休眠模式不关联的唤醒事件;这个我怎么理解。 Autosar的EcuM手册中还有两个关于EcuM_ValidateWakeupEvent接口的规范SWS_EcuM_02790和SWS_EcuM_02791,在任何阶段,关联到ComM通道的唤醒源都要起作用,这个是说明任何阶段唤醒事件都能挂起(成功通过EcuM_SetWakeupEvent这个接口)并进行验证吗 Re: Autosar 网络休眠唤醒与EcuM的联系 您好, 看起来和https://community.nxp.com/t5/S32K/The-connection-between-AUTOSAR-Network-Management-sleep-wake-up/mp/2409039/highlight/false#M60730一样。 BR,彼得
View full article
BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail Hi NXP teams, 6.18.20_2.0.0 bsp yocto build for imx8mp got uboot-imx error. please see attach build log.  Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail $ sudo apt install efitools Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail Sorry, I also used Ubuntu 22.04. Please go to folder tmp/work/imx8mp_lpddr4_evk-poky-linux/u-boot-imx/2026.04/build/imx8mp_evk_defconfig-sd, and check whether file capsule_esl_file exists. $ find . -name capsule_esl_file Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail no any change. my build environment is Ubuntu 22.04 Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail I verified the default build configuration on my Ubuntu 24.04 PC, there is no problem. Did you modify anything in the yocto build environment? for example u-boot-imx-2026.04 source code. Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail FYI Re: BSP 6.18.20_2.0.0 build imx8mp uboot-imx fail Would you please upload your build log.
View full article
How to Store KEK and Use Wrapped DEK using SSS API on SE051 Hello, I am currently evaluating the SE051 using the SSS API tool from the Plug & Trust Middleware, and I would appreciate your guidance on the correct implementation method for my use case. Security Requirement & Goal: To prevent key exposure on host memory, the Plain Data Encryption Key (DEK) must never be handled in plaintext on the Host (i.MX 8M) once it has been wrapped. Therefore, my goal is to ensure that after initial wrapping, all key unwrapping and file encryption/decryption operations are executed entirely inside the SE051 without ever revealing the plain DEK to the host. Target Workflow: [ Phase 1: Key Provisioning & Wrapping ] 1. Store the Key Encryption Key (KEK) into SE051. 2. Import the Plain DEK to SE051, wrap it using KEK inside SE051, and export the Wrapped DEK to Host Storage. 1_Key_Provisioning_and_Wrapping.png [ Phase 2: Runtime File Protection ] 3. Send the Plain File and Wrapped DEK to SE051 -> SE051 unwraps the DEK internally and encrypts the file -> Output Encrypted File to Host. 4. Send the Encrypted File and Wrapped DEK to SE051 -> SE051 unwraps the DEK internally and decrypts the file -> Output Plain File to Host. 2_Runtime_File_Protection.png (Please refer to the attached sequence diagram for details). Questions: Implementation Method & API Guidance: What is the recommended SSS API implementation method to execute this end-to-end workflow without revealing the plain DEK to the host? Key Unwrapping & Transient Objects: What specific SSS APIs and policies are required to import a Wrapped DEK, unwrap it within SE051, and hold it as a transient key object for immediate file encryption/decryption? Reference Code: Are there any code samples in Plug & Trust MW v04.00.00 that demonstrate key wrapping/unwrapping combined with symmetric encryption operations inside SE051? Environment: Board: MCIMX8M-WEVK and OM-SE051ARD Linux version: 5.4.70-2.3.2+g8c73bc625c4d (SE-PLUG-TRUST-SD-CARD-IMAGE-IMX8M-NEW) Plug & Trust MW version: v04.00.00 Any guidance or example code snippets would be greatly appreciated. SE050 Re: How to Store KEK and Use Wrapped DEK using SSS API on SE051 Hi @Fjk , Thanks for the reaching out! Please have my comments as below: Q1: Implementation Method & API Guidance: What is the recommended SSS API implementation method to execute this end-to-end workflow without revealing the plain DEK to the host? The correct approach uses a two-layer API strategy: Key management (KEK store, DEK wrap/unwrap): Use Se05x_API_ExportObject() / Se05x_API_ImportObject() from se05x_APDU_apis.h . These operate entirely inside the SE051 and are the only way to wrap/unwrap a key using another key stored in SE051 without ever revealing plaintext to the host. File encryption/decryption: Use sss_cipher_one_go() (or sss_cipher_init + sss_cipher_update + sss_cipher_finish for large files) against the transient DEK object created by the import step above. The SSS high-level layer ( sss_key_store_set_key ) cannot be used for DEK import-from-wrapped, because it always requires the key in plaintext on the host side. The APDU-level Se05x_API_ImportObject is required for the unwrap step to remain fully inside SE051. Q2 : Key Unwrapping & Transient Objects: What specific SSS APIs and policies are required to import a Wrapped DEK, unwrap it within SE051, and hold it as a transient key object for immediate file encryption/decryption? Phase 1: Key Provisioning & Wrapping Step 1 — Store the KEK as a persistent object: // Policy for KEK: allow ENC/DEC and IMPORT_EXPORT (for use as wrapping key) sss_policy_u kekPolicyList[] = { { .type = KPolicy_Sym_Key, .policy = { .symmkey = { .can_Encrypt = 1, .can_Decrypt = 1, .can_Import_Export = 1 } } } }; sss_policy_t kekPolicy = { .nPolicies = 1, .policies = kekPolicyList }; sss_object_t kekObject = {0}; sss_key_object_init(&kekObject, &pCtx->ks); sss_key_object_allocate_handle(&kekObject, KEK_KEY_ID, kSSS_KeyPart_Default, kSSS_CipherType_AES, AES256_KEY_BYTES, kKeyObject_Mode_Persistent); sss_key_store_set_key(&pCtx->ks, &kekObject, kekData, kekLen, kekLen * 8, &kekPolicy, sizeof(kekPolicy)); Step 2 — Import the plain DEK into SE051 as a transient object: // Policy for DEK: allow ENC/DEC and IMPORT_EXPORT (so it can be wrapped for export) sss_policy_u dekPolicyList[] = { { .type = KPolicy_Sym_Key, .policy = { .symmkey = { .can_Encrypt = 1, .can_Decrypt = 1, .can_Import_Export = 1 } } } }; sss_policy_t dekPolicy = { .nPolicies = 1, .policies = dekPolicyList }; sss_object_t dekObject = {0}; sss_key_object_init(&dekObject, &pCtx->ks); sss_key_object_allocate_handle(&dekObject, DEK_TEMP_ID, kSSS_KeyPart_Default, kSSS_CipherType_AES, AES256_KEY_BYTES, kKeyObject_Mode_Transient); sss_key_store_set_key(&pCtx->ks, &dekObject, plainDEK, dekLen, dekLen * 8, &dekPolicy, sizeof(dekPolicy)); // plainDEK is the ONLY moment the DEK appears on the host — during initial provisioning only Step 3 — Export the DEK wrapped by the KEK (entirely inside SE051): // Se05x_API_ExportObject wraps DEK_TEMP_ID using KEK_KEY_ID — no plaintext leaves SE051 uint8_t wrappedDEK[AES256_KEY_BYTES + 8]; // RFC 3394 adds 8 bytes overhead size_t wrappedDEKLen = sizeof(wrappedDEK); pSe05xSession_t se05xSession = &((sss_se05x_session_t *)&pCtx->session)->s_ctx; Se05x_API_ExportObject(se05xSession, DEK_TEMP_ID, // Object to wrap (the transient DEK) kSE05x_TransientIndicator_TRANSIENT, wrappedDEK, &wrappedDEKLen); // Store wrappedDEK to host persistent storage — safe, never reveals plaintext DEK //Please note The transient DEK_TEMP_ID object is automatically deleted when the session closes. After exporting the wrapped DEK, the plain DEK is gone from SE051. Phase 2: Runtime File Protection: Step 4 — Import wrapped DEK: SE051 unwraps internally using KEK, stores as transient: // Se05x_API_ImportObject unwraps the wrapped DEK using KEK_KEY_ID INSIDE SE051 // The DEK never appears in plaintext on the host — this is the key security guarantee Se05x_API_ImportObject(se05xSession, DEK_RUNTIME_ID, // Target object ID for the unwrapped DEK kSE05x_RSAKeyComponent_NA, // N/A for symmetric keys NULL, // Use default policy 0, wrappedDEK, // Wrapped DEK from host storage wrappedDEKLen, kSE05x_TransientIndicator_TRANSIENT, // Store as transient — clears on session end KEK_KEY_ID); // SE051 uses this key to unwrap internally Step 5 — Encrypt/Decrypt the file using the transient DEK: // Get handle to the now-unwrapped transient DEK sss_object_t dekTransient = {0}; sss_key_object_init(&dekTransient, &pCtx->ks); sss_key_object_get_handle(&dekTransient, DEK_RUNTIME_ID); // Encrypt sss_symmetric_t ctxEncrypt = {0}; sss_symmetric_context_init(&ctxEncrypt, &pCtx->session, &dekTransient, kAlgorithm_SSS_AES_CBC, kMode_SSS_Encrypt); sss_cipher_one_go(&ctxEncrypt, iv, ivLen, plainFileData, encryptedFileData, dataLen); sss_symmetric_context_free(&ctxEncrypt); // Decrypt (same pattern, change mode to kMode_SSS_Decrypt) sss_symmetric_t ctxDecrypt = {0}; sss_symmetric_context_init(&ctxDecrypt, &pCtx->session, &dekTransient, kAlgorithm_SSS_AES_CBC, kMode_SSS_Decrypt); sss_cipher_one_go(&ctxDecrypt, iv, ivLen, encryptedFileData, decryptedFileData, dataLen); sss_symmetric_context_free(&ctxDecrypt); // Explicitly erase transient DEK after use (optional, also cleared on session close) sss_key_store_erase_key(&pCtx->ks, &dekTransient); sss_key_object_free(&dekTransient); Q3: Reference Code: Are there any code samples in Plug & Trust MW v04.00.00 that demonstrate key wrapping/unwrapping combined with symmetric encryption operations inside SE051? There is no single example that combines key wrapping + symmetric encryption end-to-end, but the following examples should be helpful. Purpose Path in simw-top/ AES symmetric encrypt/decrypt sss/ex/symmetric/ex_sss_symmetric.c Using object policies demos/se05x/se05x_policy/ Key export/import at APDU level hostlib/hostLib/se05x/src/se05x_APDU_apis.c Hope that helps, 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. -------------------------------------------------------------------------------
View full article
如何在SE051上使用SSS API存储KEK和使用封装的DEK 你好, 我目前正在使用 Plug & Trust 中间件中的 SSS API 工具评估 SE051,希望您能指导我如何针对我的用例采用正确的实现方法。 网络安全需求与目标: 为防止密钥暴露在主机内存中,一旦明文数据加密密钥 (DEK) 被封装,就绝不能以明文形式在主机 (i.MX 8M) 上处理。 因此,我的目标是确保在初始封装之后,所有密钥解封装和文件加密/解密操作都在 SE051 内部完全执行,而不会向主机泄露明文 DEK。 目标工作流程: 【第一阶段:密钥配置与封装】 1. 将密钥加密密钥 (KEK) 存储到 SE051 中。 2. 将 Plain DEK 导入 SE051,在 SE051 中使用 KEK 对其进行包装,并将包装后的 DEK 导出到主机存储。 1_密钥配置和封装.png 【第二阶段:运行时文件保护】 3. 将明文文件和封装的 DEK 发送到 SE051 -> SE051 在内部解封装 DEK 并对文件进行加密 -> 将加密文件输出到主机。 4. 将加密文件和封装的 DEK 发送到 SE051 -> SE051 在内部解封装 DEK 并解密文件 -> 将明文文件输出到主机。 2_Runtime_File_Protection.png (详情请参考所附的序列图)。 问题: 实现方法及API指南: 为执行此端到端工作流程而不向主机泄露原始 DEK,推荐的 SSS API 实现方法是什么? 关键解包和瞬态对象: 要导入 Wrapped DEK,在 SE051 中解包,并将其作为临时密钥对象保存以进行即时文件加密/解密,需要哪些特定的 SSS API 和策略? 参考代码: Plug & Trust MW v04.00.00 中是否有任何代码示例演示了 SE051 内部的密钥封装/解封装与对称加密操作的结合? 环境: 电路板:MCIMX8M-WEVK 和 OM-SE051ARD Linux 版本:5.4.70-2.3.2+g8c73bc625c4d(SE-PLUG-TRUST-SD-CARD-IMAGE-IMX8M-NEW) Plug & Trust MW 版本:v04.00.00 任何指导或示例代码片段都将不胜感激。 SE050 Re: How to Store KEK and Use Wrapped DEK using SSS API on SE051 嗨@Fjk , 感谢您的联系!我的评论如下: 问题1:实现方法及API指南: 为执行此端到端工作流程而不向主机泄露原始 DEK,推荐的 SSS API 实现方法是什么? 正确的方法是采用双层 API 策略: 密钥管理 (KEK 存储、DEK 包装/解包):使用 se05x_APDU_apis.h 中的 Se05x_API_ExportObject() / Se05x_API_ImportObject() 。这些操作完全在 SE051 内部进行,是唯一一种使用存储在 SE051 中的另一个密钥来包装/解包密钥,而不会向主机泄露明文的方法。 文件加密/解密:对上面导入步骤创建的临时 DEK 对象使用 sss_cipher_one_go() (或对大文件使用 sss_cipher_init + sss_cipher_update + sss_cipher_finish )。 SSS 高级层( sss_key_store_set_key )不能用于 DEK import-from-wrapped,因为它始终要求主机端以明文形式提供密钥。要使解包步骤完全保持在 SE051 内部,需要 APDU 级别的 Se05x_API_ImportObject 。 Q2:密钥解包和瞬态对象: 要导入 Wrapped DEK,在 SE051 中解包,并将其作为临时密钥对象保存以进行即时文件加密/解密,需要哪些特定的 SSS API 和策略? 第一阶段:密钥配置和封装 步骤 1 — 将 KEK 存储为持久对象: // KEK 策略:允许 ENC/DEC 和 IMPORT_EXPORT(用作包装键) sss_policy_ukekPolicyList[] = { { 。类型= KPolicy_Sym_Key, 。政策= { .symmkey= { .can_Encrypt= 1,.can_Decrypt= 1, .can_Import_Export= 1 } } } }; sss_policy_t kekPolicy = { .nPolicies= 1,.policies= kekPolicyList }; sss_object_t kekObject = {0}; sss_key_object_init(&kekObject, &pCtx->ks); sss_key_object_allocate_handle(&kekObject, KEK_KEY_ID, kSSS_KeyPart_Default、kSSS_CipherType_AES、 AES256_KEY_BYTES,kKeyObject_Mode_Persistent); sss_key_store_set_key(&pCtx->ks, &kekObject, kekData、kekLen、kekLen * 8、&kekPolicy、sizeof(kekPolicy)); 步骤 2 — 将普通的 DEK 文件作为瞬态对象导入 SE051: // DEK 策略:允许 ENC/DEC 和 IMPORT_EXPORT(以便可以进行包装导出) sss_policy_udekPolicyList[] = { { 。类型= KPolicy_Sym_Key, 。政策= { .symmkey= { .can_Encrypt= 1,.can_Decrypt= 1, .can_Import_Export= 1 } } } }; sss_policy_t dekPolicy = { .nPolicies= 1,.policies= dekPolicyList }; sss_object_t dekObject = {0}; sss_key_object_init(&dekObject, &pCtx->ks); sss_key_object_allocate_handle(&dekObject, DEK_TEMP_ID, kSSS_KeyPart_Default、kSSS_CipherType_AES、 AES256_KEY_BYTES,kKeyObject_Mode_Transient); sss_key_store_set_key(&pCtx->ks, &dekObject, plainDEK, dekLen, dekLen * 8, &dekPolicy, sizeof(dekPolicy)); // plainDEK 是 DEK 唯一出现在主机上的时刻——仅在初始配置期间。 步骤 3 — 导出由 KEK 包裹的 DEK(完全位于 SE051 内): // Se05x_API_ExportObject 使用 KEK_KEY_ID 封装 DEK_TEMP_ID — 不包含明文,仅保留 SE051 uint8_t wrappedDEK[AES256_KEY_BYTES + 8]; // RFC 3394 增加了 8 字节的开销 size_t wrappedDEKLen = sizeof(wrappedDEK); pSe05xSession_t se05xSession = &((sss_se05x_session_t *)&pCtx->session)->s_ctx; Se05x_API_ExportObject(se05xSession, DEK_TEMP_ID,// 要包装的对象(瞬态 DEK) kSE05x_TransientIndicator_TRANSIENT, wrappedDEK, &wrappedDEKLen); // 将封装后的 DEK 存储到主机持久存储中——安全可靠,绝不会泄露明文 DEK //请注意,瞬态 DEK_TEMP_ID 对象会在会话关闭时自动删除。导出包装好的 DEK 后,SE051 中的普通 DEK 就消失了。 第二阶段:运行时文件保护: 步骤 4 — 导入封装的 DEK:SE051 在内部使用 KEK 解包,并以瞬态形式存储: // Se05x_API_ImportObject 使用 SE051 内部的 KEK_KEY_ID 解包包装的 DEK // DEK 永远不会以明文形式出现在主机上——这是关键的安全保障。 Se05x_API_ImportObject(se05xSession, DEK_RUNTIME_ID,// 解包后的 DEK 的目标对象 ID kSE05x_RSAKeyComponent_NA,// 对于对称密钥,此组件不适用 NULL,// 使用默认策略 0, wrappedDEK,// 来自主机存储的已包装 DEK wrappedDEKLen, kSE05x_TransientIndicator_TRANSIENT, // 存储为瞬态指示器 — 会话结束时清除 KEK_KEY_ID); // SE051 使用此密钥进行内部解包 步骤 5 — 使用临时 DEK 加密/解密文件: // 获取已解包的瞬态 DEK 的句柄 sss_object_t dekTransient = {0}; sss_key_object_init(&dekTransient, &pCtx->ks); sss_key_object_get_handle(&dekTransient, DEK_RUNTIME_ID); // 加密 sss_symmetric_t ctxEncrypt = {0}; sss_symmetric_context_init(&ctxEncrypt, &pCtx->session, &dekTransient, kAlgorithm_SSS_AES_CBC,kMode_SSS_Encrypt); sss_cipher_one_go(&ctxEncrypt, iv, ivLen, 普通文件数据、加密文件数据、数据长度); sss_symmetric_context_free(&ctxEncrypt); // 解密(模式相同,将模式更改为 kMode_SSS_Decrypt) sss_symmetric_t ctxDecrypt = {0}; sss_symmetric_context_init(&ctxDecrypt, &pCtx->session, &dekTransient, kAlgorithm_SSS_AES_CBC,kMode_SSS_Decrypt); sss_cipher_one_go(&ctxDecrypt, iv, ivLen, 加密文件数据、解密文件数据、数据长度); sss_symmetric_context_free(&ctxDecrypt); // 使用后显式擦除瞬态 DEK(可选,会话关闭时也会清除) sss_key_store_erase_key(&pCtx->ks, &dekTransient); sss_key_object_free(&dekTransient); Q3:参考代码: Plug & Trust MW v04.00.00 中是否有任何代码示例演示了 SE051 内部的密钥封装/解封装与对称加密操作的结合? 目前还没有一个示例能够将密钥包装和对称加密端到端地结合起来,但以下示例应该会有所帮助。 目的 simw-top/中的路径 AES对称加密/解密 sss/ex/symmetric/ex_sss_symmetric.c 使用对象策略 demos/se05x/se05x_policy/ APDU级别的关键进出口 hostlib/hostLib/se05x/src/se05x_APDU_apis.c 希望对您有所帮助。 祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 -------------------------------------------------------------------------------
View full article
SE051でSSS APIを使用してKEKを保存し、ラップされたDEKを使用する方法 こんにちは、 現在、Plug & TrustミドルウェアのSSS APIツールを使ってSE051を評価しており、私のユースケースに合った適切な実装方法についてご指導いただけるとありがたいです。 セキュリティ要件と目標: ホストメモリへの鍵の露出を防ぐために、ラップされた後はプレーンデータ暗号化鍵(DEK)をホスト(i.MX 8M)上で平文で扱ってはなりません。 したがって、私の目標は、最初の暗号化処理後、すべての鍵の復号化およびファイルの暗号化/復号化操作がSE051内部で完全に実行され、平文のDEKがホストに一切開示されないようにすることです。 対象となるワークフロー: [フェーズ1:キーのプロビジョニングとラッピング] 1. キー暗号化キー(KEK)をSE051に保存します。 2. プレーンな DEK を SE051 にインポートし、SE051 内で KEK を使用してラップし、ラップされた DEK をホスト ストレージにエクスポートします。 1_Key_Provisioning_and_Wrapping.png [フェーズ2:ランタイムファイル保護] 3. プレーンファイルとラップされた DEK を SE051 に送信します -> SE051 は内部で DEK をアンラップし、ファイルを暗号化します -> 暗号化されたファイルをホストに出力します。 4. 暗号化されたファイルとラップされた DEK を SE051 に送信します -> SE051 は内部で DEK をアンラップしてファイルを復号化します -> 平文ファイルをホストに出力します。 2_Runtime_File_Protection.png (詳細は添付のシーケンス図をご参照ください。) 質問: 実装方法とAPIガイダンス: このエンドツーエンドワークフローを実行するために、ホストに単純なDEKを明かさずに実行するための推奨されるSSS API実装方法は何でしょうか? キーのアンラップと一時オブジェクト: ラップされたDEKをインポートし、SE051内でそれをアンラップして、即時のファイル暗号化/復号化のための一時的なキーオブジェクトとして保持するには、具体的にどのようなSSS APIとポリシーが必要ですか? 参照コード: Plug & Trust MW v04.00.00には、SE051内部での対称暗号化操作とキーのラッピング/アンラッピングを組み合わせたコードサンプルはありますか? 環境: 基板:MCIMX8M-WEVKおよびOM-SE051ARD Linuxバージョン:5.4.70-2.3.2+g8c73bc625c4d(SE-PLUG-TRUST-SD-CARD-IMAGE-IMX8M-NEW) Plug & Trust MW バージョン: v04.00.00 何かアドバイスやコードスニペットがあれば大変ありがたいです。 SE050 Re: How to Store KEK and Use Wrapped DEK using SSS API on SE051 こんにちは、 @Fjk さん。 ご連絡ありがとうございます!私の意見は以下の通りです。 Q1: 実装方法とAPIガイダンス: このエンドツーエンドワークフローを実行するために、ホストに単純なDEKを明かさずに実行するための推奨されるSSS API実装方法は何でしょうか? 正しいアプローチは、2層API戦略を採用することです。 キー管理(KEKストア、DEKラップ/アンラップ): se05x_APDU_apis.h の Se05x_API_ExportObject() / Se05x_API_ImportObject() を使います。これらはSE051内部で完全に動作し、SE051に保存されている別の鍵を使用して鍵をラップ/アンラップする唯一の方法であり、平文をホストに一切開示することはありません。 ファイルの暗号化/復号化: 上記のインポート手順で作成された一時的な DEK オブジェクトに対して、 sss_cipher_one_go() (または、大きなファイルの場合は sss_cipher_init + sss_cipher_update + sss_cipher_finish ) を使用します。 SSSの高レベルレイヤー( sss_key_store_set_key )は、ホスト側で必ず平文キーが必要なため、DEKインポート・フロム・ラップドには使用 できません 。アンラップ手順が完全にSE051内に留まるためには、APDUレベルの Se05x_API_ImportObject が必要です。 Q2 :キーアンラッピングと一時的なオブジェクト: ラップされたDEKをインポートし、SE051内でそれをアンラップして、即時のファイル暗号化/復号化のための一時的なキーオブジェクトとして保持するには、具体的にどのようなSSS APIとポリシーが必要ですか? フェーズ1:キーのプロビジョニングとラッピング ステップ1 — KEKを永続オブジェクトとして保存する: // KEKのポリシー:ENC/DECとIMPORT_EXPORTを許可する(ラッパーキーとして使用するため) sss_policy_u kekPolicyList[] = { { 。タイプ= KPolicy_Sym_Key、 。ポリシー= { .symmkey= { .can_Encrypt= 1、.can_Decrypt= 1、 .can_Import_Export= 1 } } } }; sss_policy_t kekPolicy = { .nPolicies= 1、.ポリシー= kekPolicyList }; sss_object_t kekObject = {0}; sss_key_object_init(&kekObject, &pCtx->ks); sss_key_object_allocate_handle(&kekObject, KEK_KEY_ID, kSSS_KeyPart_Default、kSSS_CipherType_AES、 AES256_KEY_BYTES、kKeyObject_Mode_Persistent); sss_key_store_set_key(&pCtx->ks, &kekObject, kekData、kekLen、kekLen * 8、&kekPolicy、sizeof(kekPolicy)); ステップ2 — プレーンなDEKを一時オブジェクトとしてSE051にインポートします。 DEKの方針:ENC/DECおよびIMPORT_EXPORTを許可(エクスポート用にラップできるようにする) sss_policy_u dekPolicyList[] = { { .type= KPolicy_Sym_Key、 。ポリシー= { .symmkey= { .can_Encrypt= 1、.can_Decrypt= 1、 .can_Import_Export= 1 } } } }; sss_policy_t dekPolicy = { .nPolicies= 1、.ポリシー= dekPolicyList }; sss_object_t dekObject = {0}; sss_key_object_init(&dekObject, &pCtx->ks); sss_key_object_allocate_handle(&dekObject, DEK_TEMP_ID, kSSS_KeyPart_Default、kSSS_CipherType_AES、 AES256_KEY_BYTES、kKeyObject_Mode_Transient); sss_key_store_set_key(&pCtx->ks, &dekObject, plainDEK、dekLen、dekLen * 8、&dekPolicy、sizeof(dekPolicy)); // plainDEK は、DEK がホスト上に表示される唯一の瞬間です。初期プロビジョニング時のみ表示されます。 ステップ3 — KEKでラップされたDEKをエクスポートします(SE051内に完全に収まります)。 // Se05x_API_ExportObject は KEK_KEY_ID を使用して DEK_TEMP_ID をラップします — 平文は SE051 から出力されません uint8_t wrappedDEK[AES256_KEY_BYTES + 8]; // RFC 3394 では 8 バイトのオーバーヘッドが追加されます size_t wrappedDEKLen = sizeof(wrappedDEK); pSe05xSession_t se05xSession = &((sss_se05x_session_t *)&pCtx->session)->s_ctx; Se05x_API_ExportObject(se05xSession、 DEK_TEMP_ID、// ラップするオブジェクト(一時的な DEK) kSE05x_TransientIndicator_TRANSIENT、 wrappedDEK、 &wrappedDEKLen); // wrappedDEKをホストの永続ストレージに保存します。安全で、平文のDEKは決して公開されません。 //注意:一時的な DEK_TEMP_ID オブジェクトは、セッションが終了すると自動的に削除されます。包装されたDEKをエクスポートした後、プレーンなDEKはSE051からなくなります。 フェーズ2:ランタイムファイル保護: ステップ4 — ラップされたDEKをインポートします: SE051はKEKを使用して内部的にアンラップし、一時データとして保存します。 包まれたDEKを包んだDEKを包みSe05x_API_ImportObject KEK_KEY_ID INSIDE SE051を使って解きます DEKはホスト上で平文で表示されることはなく、これが重要なセキュリティ保証です Se05x_API_ImportObject(se05xSession, DEK_RUNTIME_ID、// アンラップされたDEKのターゲットオブジェクトID kSE05x_RSAKeyComponent_NA、// 対称鍵の場合は N/A NULL、// デフォルトポリシーを使用してください 0, wrappedDEK、// ホストストレージからのラップDEK 包まれたDEKLen、 kSE05x_TransientIndicator_TRANSIENT、// 一時的にストア — セッション終了時にクリア KEK_KEY_ID);SE051はこのキーを使って内部でアンラップします ステップ5 — 一時的なDEKを使用してファイルを暗号化/復号化する: // ラップ解除されたトランジェントDEKへのハンドルを取得します sss_object_t dekTransient = {0}; sss_key_object_init(&dekTransient, &pCtx->ks); sss_key_object_get_handle(&dekTransient, DEK_RUNTIME_ID); // 暗号化 sss_symmetric_t ctxEncrypt = {0}; sss_symmetric_context_init(&ctxEncrypt, &pCtx->session, &dekTransient, kAlgorithm_SSS_AES_CBC、kMode_SSS_Encrypt); sss_cipher_one_go(&ctxEncrypt, iv, ivLen, plainFileData、encryptedFileData、dataLen); sss_symmetric_context_free(&ctxEncrypt); // 復号化(同じパターン、モードをkMode_SSS_Decryptに変更) sss_symmetric_t ctxDecrypt = {0}; sss_symmetric_context_init(&ctxDecrypt, &pCtx->session, &dekTransient, kAlgorithm_SSS_AES_CBC、kMode_SSS_Decrypt); sss_cipher_one_go(&ctxDecrypt, iv, ivLen, encryptedFileData、decryptedFileData、dataLen); sss_symmetric_context_free(&ctxDecrypt); // 使用後に一時的な DEK を明示的に消去します (オプション、セッション終了時にも消去されます) sss_key_store_erase_key(&pCtx->ks, &dekTransient); sss_key_object_free(&dekTransient); Q3: 参照コード: Plug & Trust MW v04.00.00には、SE051内部での対称暗号化操作とキーのラッピング/アンラッピングを組み合わせたコードサンプルはありますか? キーラッピングと対称暗号化をエンドツーエンドで組み合わせた単一の例はありませんが、以下の例が参考になるでしょう。 目的 simw-top/ のパス AES対称暗号化/復号 sss/ex/symmetric/ex_sss_symmetric.c オブジェクトポリシーの使用 demos/se05x/se05x_policy/ APDUレベルでのキー輸出入 hostlib/hostLib/se05x/src/se05x_APDU_apis.c お役に立てば幸いです。 すてきな一日を、 カン ------------------------------------------------------------------------------- 注記: この投稿があなたの質問への回答になっている場合は、「正解としてマーク」ボタンをクリックしてください。ありがとうございます! - 前回の投稿から7週間Threadをフォローしており、その後の返信は無視しています もし後で関連する質問があれば、新しいThreadを開き、閉じたThreadを参照してください。 -------------------------------------------------------------------------------
View full article
The connection between AUTOSAR Network Management sleep/wake-up Hello, I am currently debugging EcuM and Network Management. I have consulted some specification manuals, but I still have some confusion and would like to request guidance. Does the sleep/wake-up of Network Management necessarily require coordination with EcuM (i.e., EcuM validates the wake‑up cause)? During the Network Management sleep/wake‑up process, does the ECU need to go to sleep (i.e., EcuM sleep)? If the answer to question 1 is yes, then EcuM obtains wake‑up events through the interface EcuM_SetWakeupEvent. However, the AUTOSAR EcuM specification SWS_EcuM_04318 states: “Wakeup events that are not associated to the selected sleep mode shall be ignored.” How should I understand this? The AUTOSAR EcuM specification also contains two entries regarding the interface EcuM_ValidateWakeupEvent – SWS_EcuM_02790 and SWS_EcuM_02791. It says that wake‑up sources associated with a ComM channel shall be effective in any phase. Does this mean that in any phase, a wake‑up event can be pended (i.e., successfully pass through EcuM_SetWakeupEvent) and then be validated? Re: The connection between AUTOSAR Network Management sleep/wake-up Hi, 1. Does NM sleep/wake-up require EcuM coordination? Not necessarily. NM/ComM manages network communication, while EcuM manages ECU power states. EcuM wakeup validation is mainly relevant when the ECU actually enters an EcuM sleep state.  2. Does NM sleep mean the ECU must enter EcuM sleep? No. The network can enter Bus-Sleep while the ECU remains in RUN mode and continues executing local functions. 3. How to understand SWS_EcuM_04318? It means EcuM only accepts wakeup events that are configured for the currently selected sleep mode. Wakeup events from sources not enabled for that sleep mode are ignored. It prevents spurious hardware events from waking the ECU unintentionally. 4. Can ComM-related wakeup sources be validated in any EcuM phase? Yes. This is a deliberate special case. Generic wakeup sources are only accepted during SLEEP, but ComM-channel-associated sources (e.g., CAN wakeup frame) can be pended via EcuM_SetWakeupEvent and validated via EcuM_ValidateWakeupEvent in any EcuM phase. This allows a wakeup event to abort an ongoing Go-Sleep sequence — which is the key mechanism linking NM wakeup back to EcuM. In short: NM sleep ≠ ECU sleep, and ComM-linked wakeup sources receive special handling in EcuM, allowing validation outside the normal wakeup sequence.  BR, Petr 回复: The connection between AUTOSAR Network Management sleep/wake-up Hello, thank you for your answer. I still have some questions regarding your response. I apologize for bothering you repeatedly, and I would like to thank you in advance. I understand that the sleep/wake-up of Network Management also seems to require EcuM to validate the wake-up source, because in the passive mode of Network Management, EcuM validation of the wake-up source is required. After the wake-up source associated with the ComM channel is successfully validated, EcuM calls the ComM interface, and then the network can wake up. In your first answer, you said that EcuM's wake-up validation is only necessary when the ECU actually enters the EcuM sleep state. So, I interpret this as meaning that after Network Management sleep/wake-up, the ECU also needs to enter the EcuM sleep state, and then go through the EcuM wake-up validation process. However, this seems to conflict somewhat with your second answer. I'm not sure whether my understanding is correct. In your third and fourth answers, SWS_EcuM_04318 states that EcuM only accepts wake-up events configured for the currently selected sleep mode. In answer 4, you said that ComM-related wake-up sources are a special case. So, can ComM-related wake-up sources simply ignore the constraints of SWS_EcuM_04318, or must I, during the design phase, configure all ComM-related wake-up sources as wake-up events for the sleep mode? Does the wake-up source need to be enabled first? EcuM calls EcuM_EnableWakeupSource for enabling during the sleep phase. Only after enabling can it be pended (successfully pass the EcuM_SetWakeupEvent interface filtering)? If so, regarding the statement in answer 4 that "ComM-channel-associated sources (e.g., CAN wakeup frame) can be pended via EcuM_SetWakeupEvent," does this pend operation only occur during the EcuM sleep phase, and then validation occurs in any phase of EcuM? Or is the enabling step done by other drivers themselves, or are there other scenarios? I look forward to your answers.
View full article
Autosarネットワークのスリープ/ウェイクとEcuMの関連性 こんにちは。現在、ECUMとネットワーク管理のデバッグを行っています。仕様書をいくつか参照しましたが、まだいくつか疑問点があります。ご指導いただけますでしょうか? ネットワーク管理のスリープ/ウェイクアップには、EcuMの協力(EcuMによるウェイクアップ理由の検証)が必要ですか? ネットワーク管理の休止/起動プロセス中に、ECUは休止状態(EcuM休止)になる必要がありますか? 質問1が必須の場合、EcuMはEcuM_SetWakeupEventインターフェースを介してウェイクアップイベントを取得します。しかし、Autosar EcuMマニュアルのSWS_EcuM_04318仕様では、選択されたスリープモードに関連付けられていない入力パラメータ内のすべてのウェイクアップイベントは無視する必要があると記載されています。これはどういう意味でしょうか? Autosar EcuM マニュアルには、EcuM_ValidateWakeupEvent インターフェイスの仕様 SWS_EcuM_02790 と SWS_EcuM_02791 の 2 つも記載されています。どの段階においても、ComM チャネルに関連付けられたウェイクアップ ソースはアクティブである必要があります。これは、ウェイクアップ イベントを中断(EcuM_SetWakeupEvent インターフェイスを正常に通過)して、どの段階でも検証できるという意味でしょうか? Re: Autosar 网络休眠唤醒与EcuM的联系 こんにちは、 https://community.nxp.com/t5/S32K/The-connection-between-AUTOSAR-Network-Management-sleep-wake-up/mp/2409039/highlight/false#M60730と同じように見えます。 BR、ペトル
View full article