Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
[MPC5777C] 了解 e200z759n3 内核的指令流水线 您好! 在研究 e200z759n3 内核的指令执行路径时,我想到了以下问题: 看来e200z7核心参考手册在管道执行单元的内容上并不十分一致。在图 17 中,整数执行单元和乘法单元是分开的。不过,"4.2.1 整数执行单元 "部分涵盖了整数乘法和除法。4.6 并发指令执行 "一节提到了 "双标量整数单元 "的存在,但没有提到任何乘法单元。我认为内核有两个整数执行单元,可以执行任何整数运算(如和、乘、除)。我的结论正确吗?双发行流水线能否同时执行两个乘法运算? 我画了下图来说明管道执行流程,并根据参考手册更好地理解它。我误解了什么概念吗? 顺祝商祺! 马特乌斯 Re: [MPC5777C] Understanding the instruction pipeline of the e200z759n3 core 1) 当然是的,这张图片与 e200z4 有关,也是双重问题 2) 这取决于管道内容本身。您可以从上一个答案的图片中看到。第一条指令很短,不会对另一条指令造成任何停滞。第二条指令较长,会导致停滞,因为第三条指令取决于第二条指令的结果。 3) 还得再等等。 4) 基本上是的。在此,编译器优化也会对其产生影响,编译器可能会改变指令顺序,以更好地利用双发架构(即:"......")。指令调度),以实现最高级别的优化。 Re: [MPC5777C] Understanding the instruction pipeline of the e200z759n3 core 感谢您的回复,大卫! 还有几个问题: 由于流水线具有双发功能,而执行单元有两个整数单元,那么它能否在同一时钟周期内启动两个独立的整数乘法或整数除法指令的取数阶段? 在执行加法这样的简单指令时,手册上说它在一个时钟周期内完成执行阶段。WB 级是紧随 E0 级之后进入时钟周期,还是必须再等待三个空闲时钟周期,就像必须增加一个空闲填充,才能使用流水线的所有 10 级完成从 IF0 到 WB 的整个周期? 当两条指令之间存在数据依赖关系时,目标指令是在与源指令最后执行阶段相同的时钟周期内开始执行阶段,还是必须等待下一个时钟周期?我不清楚馈送器是如何工作的。 既然是解码阶段检查指令之间的数据依赖性,那么所有流水线停滞都发生在 D1 和 E0 流水线阶段之间的结论是否正确? 顺祝商祺! 马特乌斯 Re: [MPC5777C] Understanding the instruction pipeline of the e200z759n3 core 1) 我认为它无论如何都不会与执行单元分离,它只是执行单元的一部分: 2) 我无法确认您的草图是否准确,但从原则上讲,这肯定是正确的,而且符合流水线的各个阶段。原则上,这肯定是正确的,也符合管道阶段的要求: 我可以推荐以下演示文稿,它可能比 e200 手册更容易阅读: https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/e200-Core-Training-relevant-to-MPC55xx-and-MPC56xx-device-family/ta-p/1115124 Re: [MPC5777C] Understanding the instruction pipeline of the e200z759n3 core 你好,戴维 为了了解指令流水线中的内存依赖性,我为以下代码片段构建了时序图,其中包含与 r6 相关的依赖关系: mtctr r5 .loop: e_addi r6, r6, 1 e_mulli r6, r6, 1 e_bdnz .loop 不过,在绘制图表(附在本回复后)时,我注意到,虽然吞吐量保持不变,但指令执行延迟每次迭代都会增加两个周期,而且似乎没有上限。我错过了什么吗?流水线是否规定了滞留指令的最大数量? 欢迎指出我图表中的其他错误。 致以最诚挚的问候, Matheus Re: [MPC5777C] Understanding the instruction pipeline of the e200z759n3 core FF 的意思是前锋,与 STALL 不同。我建议大家也看看 e200z6 RM,因为它是较早的核心变体,有些主题的描述方式有些不同,可能更容易理解。 https://www.nxp.com/webapp/Download?colCode=E200Z6RMAD&location=null 是的,演示可能会简化,但我觉得差别不大。 Re: [MPC5777C] Understanding the instruction pipeline of the e200z759n3 core 你好 似乎每迭代一次循环,滞留指令的数量就会增加两条。 流水线对停滞指令的数量有限制吗? 它们被储存在某个缓冲器中吗? 如果是,该缓冲区有多少条目? 这是否与缓冲区的问题有关? 如果停滞的指令被保存在某个缓冲区中,那么当缓冲区满了,又有一条指令停滞时,会发生什么情况? 顺祝商祺! 马特乌斯 Re: [MPC5777C] Understanding the instruction pipeline of the e200z759n3 core 我认为这可能是正确的,乘法运算的延迟指定为 3 或 4 个周期(每 4 个周期有一个结果)。这种情况是最糟糕的极端情况,即所有操作都依赖于前一个操作的结果,此外还在循环中运行,这基本上导致管道的完全消除。 它的工作原理与完全无管道的情况基本相同。 Re: [MPC5777C] Understanding the instruction pipeline of the e200z759n3 core 您好! 回到管道填充问题上来。如果没有像您发送的图像所示的那样填充所有四个执行阶段的填充,那么为什么参考手册中的图表显示 " FF " 边距? 没有填充物的演示图不是简化版吗? 带填充的参考手册图: 顺祝商祺! 马特乌斯 Re: [MPC5777C] Understanding the instruction pipeline of the e200z759n3 core 我认为你的图表中的错误在于,你总是从左侧开始。我不知道我是否能够解释清楚。 使用 e200z6 手册中的图片,在指令缓冲器之后是指令寄存器(标记),然后是解码级。当执行单元出现停滞时,意味着指令缓冲区中的指令在无法进入后续阶段时也无法解码。 理想情况下,您可以考虑每个单位在某些点的确切状态。总之,在图表中将停滞点置于何处并不重要,因为其结果总是导致相同的性能。 性能受限于流水线的瓶颈,这里指的是欧盟单元的停滞,影响整个系统。 我不确定这是否有帮助。 总之,你为什么要知道这么确切的细节呢? 无论如何都无法以这种方式分析真实代码,为此目的,有性能监测器、调试跟踪等工具。 Re: [MPC5777C] Understanding the instruction pipeline of the e200z759n3 core 你好,戴维 我正在研究通过共享硬件进行的内核间交互如何影响执行时间和资源消耗。我使用性能监测进行了一些验证,但我无法理解我的结果,现在我明白了。非常感谢你的澄清! 最良好的祝愿, Matheus
View full article
imx8mp gpu内存分配内核崩溃(6.1.22)和 6.1.55 在基于 imx8mp 的主板上运行 AI 模型时,我们遇到了内存转储内核恐慌,类似于p1739413和p1753940中描述的情况。当进程使用大量系统内存时,似乎会发生恐慌,而我启动了一个需要 GPU 内存的进程。 我可以通过在设备上首先启动 VSCODE 服务器(使用相当多的系统内存),然后运行以下 gstreamer 管道来非常可靠地触发错误: gst-launch-1.0 videotestsrc ! video/x-raw,format=YUY2,width=1920,height=1080 ! vpuenc_h264 ! vpudec ! queue ! imxvideoconvert_g2d rotation=2 ! video/x-raw,width=800,height=480 ! videoconvert ! perf ! fakesink 我发现,根据系统负载,我甚至会在运行 g2d_basic_test 时感到恐慌。 请注意,当此错误触发时,仍然有足够的系统内存可用。往往是800M>。我猜它只是无法获得足够大的连续区域...... 我们的主板基于 Karp QSXP 模块,但我们运行标准 NXP 内核。该模块具有2GB LPDDR4。 从帖子来看,该问题似乎与 CMA 和 GPU 保留内存有关。我查看了 imx8mp-evk 和我们的设备树之间的变化,它们很小: // OURS // memory@40000000 { device_type = "memory"; reg = <0x0 0x40000000 0 0x40000000>, <0x1 0x00000000 0 0x40000000>; }; &resmem { /* overwrite freescale cma setting since it's not allocatable on qsxp */ linux,cma { size = <0 0x1e000000>; /delete-property/ alloc-ranges; }; gpu_reserved: gpu_reserved@100000000 { no-map; reg = <0x1 0x00000000 0 0x10000000>; }; }; // EVK // memory@40000000 { device_type = "memory"; reg = <0x0 0x40000000 0 0xc0000000>, <0x1 0x00000000 0 0xc0000000>; }; resmem: reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; /* global autoconfigured region for contiguous allocations */ linux,cma { compatible = "shared-dma-pool"; reusable; size = <0 0x3c000000>; alloc-ranges = <0 0x40000000 0 0xC0000000>; linux,cma-default; }; gpu_reserved: gpu_reserved@100000000 { no-map; reg = <0x1 0x00000000 0 0x10000000>; }; }; 我尝试过的方法: - 向 cma 添加alloc-ranges 。(没有变化) - 将ldb_phy = Okay 添加到设备树。(无变化) - 增加/减少 CMA 大小。 -只会使其更加脆弱,或者使 VPU 操作无法分配内存。 - 从 devictree 中删除 CMA 并使用内核参数指定 cma 大小。 - 无论大小,这总是会破坏 VPU。 - 将内存@40000000条目替换为单个 2G 条目,而不是 2 个 1G 条目。 - 使gpu_reserved更大。(没有变化) 任何帮助都将不胜感激。当 cma 无法腾出空间时,这是预期的行为吗?可以为 gpu_reserved 分配专用内存吗?即不共享空间? 分配范围可以吗?内核配置中还有其他我需要启用的东西吗?或者图像中是否有我需要的 GPU 服务? 回复:imx8mp gpu内存分配内核崩溃(6.1.22)和 6.1.55 好的,经过数周的搜索,我发现 5.15 和 6.1 图像之间的区别在于 gpu_reserved@100000000 部分。 https://github.com/nxp-imx/linux-imx/commit/2d5c743aef9613a209b8256e54730ed5a3066a47 https://github.com/nxp-imx/linux-imx/commit/af10b4943109e588c82dc0aa5dfb58b2e620b551 我可以验证(在 6.6 和 6.1 Linux 上),如果排除以下情况,内存问题就消失了: &mix_gpu_ml{ /删除属性/内存区域; }; /删除节点/&gpu_reserved; 现在我可以以这种方式使用它,无需 gpu 内存区域。 此时我怀疑问题出在 uboot 上。我注意到内核设备树中指定的内存地址范围未被使用,它似乎是根据检测到的/当前正在使用的内容推断出来的: /* 设备树 */ 内存@40000000 { 设备类型=“内存”; 寄存器 = <0x00 0x40000000 0x00 0x40000000 0x01 0x00 0x00 0x40000000>; }; /* /proc/设备树 */ 内存@40000000 { 设备类型=“内存”; 寄存器=<0x00 0x40000000 0x00 0x80000000>; }; 所以我猜测内核只是从 uboot 检测内存设置,而不是重新配置它。如果是这样,那么 NXP 很可能在内核中引入这一变化的同时更改了他们的 uboot 内存配置。 回复:imx8mp gpu内存分配内核崩溃(6.1.22)和 6.1.55 @Bio_TICFSL我尝试重置为默认的 imx8mp-evk 内核配置,但没有任何变化。 您还有什么其他建议我可以尝试吗? 回复:imx8mp gpu内存分配内核崩溃(6.1.22)和 6.1.55 谢谢您的回复。我正在使用受支持的内核, Linux 6.1.55_2.2.1 版本。 我假设你的意思是 CONFIG_MXC_GPU_VIV=m 而不是 =y?我检查了 arch/arm64/configs/imx_v8_defconfig 文件,它使用 CONFIG_MXC_GPU_VIV=y
View full article
CLRC66301B Power-Down Mode Still Consumes 2 mA Instead of nA Hello NXP Community  I’m using the CLRC66301B NFC reader IC and trying to activate Power-down mode by driving the PDOWN pin high (3.3 V), as specified in the datasheet. However, the current draw remains at 2 mA, while the datasheet indicates it should be between 8 nA and 40 nA in power-down. Setup Details: PDOWN pin: 3.3 V (constant high) VDDs: VDD(TX), VDD(AUX), VDD(MCU) all at 3.3 V Interface: I²C (idle during test) XTAL: 27.12 MHz crystal connected No communication or activity during current measurement Measured current: ~2 mA Questions: 1. Are any register configurations required before asserting PDOWN? 2. Could IRQ, XTAL, IFSEL, or other GPIOs prevent entry into true power-down mode? 3. Does PDOWN require additional timing or sequencing with VDD or reset? Any insights or suggestions would be appreciated. Thanks, Umasankar NFC Controller Solutions Re: CLRC66301B Power-Down Mode Still Consumes 2 mA Instead of nA Hi, When you mention that current consumption is reduced when SDA and SCL are physically disconnected, does it mean that you are removing all connections on this pin (removing both Host MCU and pull-up resistors), or is it that those lines are only disconnected from the Host MCU? Also, could you please describe the method, equipment and test point you are using for the measurement? Regards, Eduardo. Re: CLRC66301B Power-Down Mode Still Consumes 2 mA Instead of nA Dear NXP Team, I conducted power-down current testing using the official CLEV6630ARD board with the CLRC66303B chip. The current reaches ~40 nA only when SDA and SCL are physically disconnected before any I²C communication. If I²C is used even once, current remains above 2 mA, even after asserting PDOWN high. Could you please clarify what should be done with the I²C lines before entering PDOWN? Specifically: Should the MCU set SDA and SCL to high-impedance (input, no pull) before asserting PDOWN? Does any prior I²C communication prevent the chip from entering true hard power-down? Thank you. Follow-Up: CLRC66303 – High Current in Hard Power-Down Mode (CLEV6630ARD-Based Design) Dear NXP Team, I previously raised a query regarding hard power-down current with the CLRC66301HN, and your response recommended migrating to the CLRC663 Plus family (CLRC66303). I have since switched to CLRC66303B, using a custom board based on the CLEV6630ARD reference design, and I would like to follow up with updated test results. Your earlier reply focused on LPCD behavior and AN11783, but this issue concerns only hard power-down via the PDOWN pin, with no RF field or LPCD active. Power-Down Current Measurements (CLRC66303B): >When PDOWN is LOW (chip active, RF field on): ~100 mA >When PDOWN is HIGH and I²C pull-ups are present: ~1.2 mA >When PDOWN is HIGH and I²C lines are driven LOW: ~6.6 mA >When PDOWN is HIGH and I²C lines are physically disconnected before any use: ~40 nA  Only when SDA and SCL are physically disconnected before any I²C communication does the chip draw ~40 nA in PDOWN. If I²C is used even once, current remains high even after PDOWN is asserted HIGH. Hardware Setup Summary: Chip: CLRC66303B, I²C mode. MCU: TI CC2652R7, 100 kHz I²C Voltage: 3.3 V regulated Pull-ups: 4.7 kΩ to 3.3 V on SDA/SCL Unused pins: Pulled as per datasheet No RF or LPCD features enabled Schematic design: Based on CLEV6630ARD (attached) Questions for Clarification: 1. Are SDA/SCL internally biased during PDOWN mode? 2. Does any prior I²C activity prevent true power-down, even if PDOWN is later set HIGH? 3. Is it necessary to set MCU I²C pins to Hi-Z (input, no pull) before asserting PDOWN? 4. Is there an NXP-recommended method to reliably achieve <100 nA in hard PDOWN mode without physically disconnecting I²C lines? We aim to ensure battery longevity and must achieve the datasheet-stated low-power behavior. Any guidance or documentation specifically about PDOWN behavior and I²C leakage would be greatly appreciated. Schematic is attached for reference. Best regards, Umasankar C Re: CLRC66301B Power-Down Mode Still Consumes 2 mA Instead of nA Hello @Umasankarc Hope you are doing well.  I understand you are using a custom board based on CLRC66301HN (non-plus), is this correct? If so, please consider that we recommend using the CLRC663 plus family (CLRC66303) instead. HIGH level on pin PDOWN should enable a hard power-down. Power-down current (Ipd) stated in the Data Sheet corresponds to the sum of all supply currents in CLRC663 chip; however, additional power might be consumed by external components embedded in the board. Some recommendations for a low power design are described in AN11783 CLRC663 plus Low Power Card Detection, Section 3.4. Regards, Eduardo.
View full article
PF5030はすべての出力が失われた状態でI2Cを読み取ります こんにちは。致命的なエラーが発生すると、入力電源は維持されますが、PF5030 のすべての出力が失われます。I2C 経由で詳細な障害情報を取得する方法はありますか? VDDIO は出力の 1 つから供給されます。この状況では、VDDIO が失われ、I2C インターフェースが機能しない可能性があります。しかし、致命的なエラーが発生した後に外部 VDDIO を提供するとどうなるでしょうか? エラー メッセージは保持されたままになりますか、それともすでに失われていますか?エラーが発生した後に外部 VDDIO を供給し、I2C 通信を試行することで、エラーの原因をCANますか? Re: PF5030 read I2C while all output lost こんにちは、ポニーさん 致命的なエラー (ウォッチドッグ障害、監視対象レールの過電圧、障害カウンタのオーバーフローなど) が発生すると、PF5030 は DEEP-FS 状態に移行します。 DEEP-FS では、すべてのレギュレータがオフになります。 フェイルセーフロジックはVINから内部的に電源供給されている I²C インターフェースはフェイルセーフ ドメインにあり、VDDIO (1.71 V ~ 5.25 V の範囲) が存在すると再び機能するようになります。 VIN が POR しきい値を上回っており、デバイスの電源がオフ/オンされていない限り、フェイルセーフ レジスタ (例: FS_GRL_FLAGS 、 FS_OVUVREG_STATUS1 、 FS_DIAG_SAFETY 、 FS_STATES ) には次の内容が含まれます。 どの電圧モニターがトリガーされたか(OV/UVフラグ) ウォッチドッグエラーフラグ 障害カウンターとステートマシンのステータス これらのレジスタはPORまたは明示的な書き込みによってのみクリアされ、DEEP-FSに入ることによってはクリアされません。 FS_GRL_FLAGS (一般的な障害の概要) FS_OVUVREG_STATUS1 (VMONがトリガー) FS_DIAG_SAFETY (ウォッチドッグ、CRC、BIST ステータス) FS_STATES (現在のフェイルセーフ状態) VIN が失われていない限り、VDDIO に外部電源を供給して致命的なエラーが発生した後に詳細な障害情報を回復 CAN。VIN が POR を下回ると、すべての揮発性レジスタがクリアされます。 敬具、 ヨゼフ
View full article
复制: 手动输入"Os Isr 处理程序" on Ipcf 本帖复制自 此处 你好我有一个关于在 Vector Davinci 配置器上设置 IPCF 的问题。 环境 我使用的环境如下。 ・Microcontroller : S32K358 ・Vector Davinci configurator classic : 5.30.30 SP1 ・RTD : SW32K3_S32M27x_RTD_R21-11_5.0.0 ・IPCF : SW32K3_IPCF_4.2.0_D2412 背景& 问题 我正试图使用 Vector Davinci configurator classic 为 AUTOSAR 项目配置 "IpcfInstance "的 "Os Isr Handler"。 Os Isr 处理程序 "的 [...] 显示的窗口需要手动输入。 要求是否正确? 如果要求正确,请告诉我需要什么样的路径。 如果要求不正确,我们是否需要其他插件或其他设置? 顺祝商祺! IPCF 优先级:中等 Re: Copy: Manual input of "Os Isr Handler" on Ipcf 嗨,拉杜、 请查看原始主题,因为我们在那里得出了最终结论。 https://community.nxp.com/t5/S32K/Manual-input-of-quot-Os-Isr-Handler-quot-on-Ipcf/td-p/2168682 如果您还有问题,请告诉我。 顺祝商祺! 丹尼尔 Re: Copy: Manual input of "Os Isr Handler" on Ipcf 你好 您可以在下面找到新问题的答案: 问:根据您的回答,在申请 IPCF 时,IPCF 的 OsISR 是否必要? 答:只有当你想在 I nterrupt 模式下使用 osiSR 时,才需要将其添加到 IPCF 中(一个内核触发信号 MU 中断,另一个内核接收它并在回调函数中处理消息)。IPCF 可以在轮询模式下使用,无需配置 IPCF 中断,无需从 IPCF 配置中配置 Os ISR 处理器。在这种情况下,Inter Core Rx IRQ 参数应设置为IPC_IRQ_NONE。 问:用 IPCF 的 osiSR 路径填写上面 " Os Isr " 的 " 参考路径 " 是对的吗? 答:如果图片中出现的这四个IRQ中的一个应用于IPCF,则使用中断来通知另一个内核有数据,然后使用所需的 OSISR 路径手动填充参考路径,如下图所示。 如果配置的中断不适用于 IPCF,则可以使用轮询模式(IPCF 不需要中断),或者在 Os 中为 IPCF 添加专用的中断,并在 IPCF 配置中的 Os ISR 处理程序中进行参考。 另请查阅IPCF_S32K3_4.2.0_User_Manual.pdf第2.2.1章与 NXP RTOS 的集成。 问:如果 IPCF 需要 OsISR,我们对 IPCF 的 OsISR 有参考吗? 答:我想上面的回答也包括这一点,如果不包括,请提供更多细节,因为不清楚。 问:例如,IPCF 设置的 osiSR 的 " Isr 资源参考 " 需要哪种参考资料? 答:"Isr Resource Ref" 不使用 OsISR,您不需要为 IPC 配置任何东西。 如果还有其他问题或不清楚的地方,我们可以召开会议,为您提供 IPCF 配置方面的支持。 顺祝商祺! 丹尼尔 Re: Copy: Manual input of "Os Isr Handler" on Ipcf 来自 Daniel Hermenczi 的意见: " 你好 、 我们有几点需要澄清: 您是否使用 Vector 提供的 AUTOSAR Os? 因为在您分享的图片中,我们看不到操作系统的配置,问题是是否配置了一个或多个 OsISR? 如果你已经配置了它们,那么这可能是一个问题,你需要使用手动选项来选择对已配置的 OsiSR for IPCF 参数 Os Isr Handler 的参考。 以手动配置为例,您需要将高亮显示的路径与您的特定 OsISR 路径一起使用 如果需要更多信息,请告诉我。 顺祝商祺! Daniel" 客户回复: "1.您是否使用 Vector 提供的 AUTOSAR Os? 是的,我使用 AUTOSAR Os。 2.因为在你分享的图片中,我们看不到操作系统的配置,问题是是否配置了一个或多个 OsISR? 是的,我的项目中有以下四种 OsISR 配置。 它们是用于 CAN 通信的 OsISR。 补充问题 根据您的回答,在申请 IPCF 时,IPCF 的 OsISR 是否必要? 用 IPC@@ F 的 osiSR 路径填写上面 " Os Isr Handler " 的 " 引用路径 " 是对的 吗? 如果需要用于 IPCF 的 osiSR,我们对 IPCF 的 osiSR 有参考吗? 例如,OsiSR 的 " Isr 资源参考 " 需要什么样的参考才能进行 IPC F 设置? 谢谢,并致以最崇高的敬意。"
View full article
GD3162 新しい回路図デザインで GD3162 ゲート ドライバを使用する予定です。NXP のサイトで短いデータシートを見つけました。完全なデータシートはありますか? Re: GD3162 この製品に関して要求されたドキュメントは管理リリース下にあり、NDA (秘密保持契約) に基づいてセキュア ファイル経由でアクセスできます。 アクセスをリクエストするには、こちらをクリックしてください: https://www.nxp.com/webapp-signup/docstoreReg  フォームの送信時に、有効な NDA のコピーをアップロードするよう求められることにご注意ください。NXPについてにまだNDAがない場合は、まずNDAのフォームにご記入ください。 https://www.nxp.com/webapp-signup/ndaReqForm NDA の準備ができたら、安全なファイルへのアクセスをリクエストできます。 プロセスを理解するには、以下のリンク/FAQを確認してください。 https://www.nxp.com/support/support/secure-access-rights:SEC-ACCESS https://www.nxp.com/support/support/secure-access-rights/secure-access-rights-faqs:SEC-ACCESS-FAQS
View full article
PEでファームウェアをダウンロードしながらD-Flashをフォーマットする方法 こんにちは、 私たちのプロジェクトでは、D-flash の消去に関する問題が発生しました。.elfをフラッシュするときまたは PE を使用して .S19 ファイルを作成した場合、D フラッシュはフラッシュ プロセス後も消去されず、残留値が保持されていることがわかりました。PE 経由でフラッシュするたびに、D フラッシュを消去します。さらに、このプロジェクトでは S32K314 チップを使用します。この理由は何でしょうか?ありがとう! Re: How to format D-flash while downloading firmware with PE こんにちは@gumu 、 PE Micro デバッガーは NXP 製品ではありません。 S32DS IDE は、Eclipse ベースの Arm IDEs 用の GDB サーバー プラグインを統合しており、これは PE Micro 製品です。 https://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320151 プラグインにはこのオプションがあります: PE Microのサポートに お問い合わせて、独自のアルゴリズムの詳細を入手してください。 ありがとうございました。 よろしくお願いいたします。 ダニエル
View full article
S32K396s ブートラウダー S32K396sブートローダープロジェクトでは、ldファイルをどのように変更すればよいでしょうか?K396用のブートローダーの例はありますか? Re: S32K396s bootlouder こんにちは、 1. S32K3シリーズ用統合ブートローダデモ NXP は、S32K396 を含む S32K3 ファミリをサポートする統合ブートローダ デモを提供しています。このデモには以下が含まれます: ブートローダーとアプリケーションプロジェクト フラッシュ・メモリ・コンフィグレーション 起動とアプリケーションへのジャンプロジック 公式投稿とダウンロード リンクは、こちらにあります: NXPコミュニティの統合ブートローダー デモ。 https://community.nxp.com/t5/S32K-Knowledge-Base/Unified-bootloader-Demo/ta-p/1423099 2. S32 Design Studio(S32DS)とRTD ブートローダの例を使用するには、次のものが必要です。 S32 Design Studio (S32DS) S32K3 リアルタイム ドライバ (RTD) パッケージ S32K396開発パッケージ これらは、S32DS の拡張機能と更新メニューからCANインストールできます。インストールしたら、次のようなサンプル テンプレートから新しいプロジェクトを作成 CAN。 ポート_例_S32K396 Bootloader_Example (RTD バージョンで利用可能な場合) セットアップの詳細については、S32K396-BGA-DC1のスタートガイドをご覧ください。 https://www.nxp.com/document/guide/getting-started-with-s32k396-bga-dc1-evaluation-board:GS-S32K396-BGA-DC1?section=get-software よろしくお願いいたします。 ピーター
View full article
i.MX93 RGMII connection PHY and MAC to MAC connection tips This article describe i.M93 RGMII to PHY connection, delay adding tips. i.MX93 don't support delay in both FEC and QOS port in i.MX93 side. It also provide solution on i.MX93 how to connect MAC to MAC in HW & SW. Thanks! 
View full article
フリースケール・カップ2015 EMEAチーム一覧 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 2014年11月17日現在、159チームがThe Freescale Cup 2015 EMEA に登録しています( 添付資料を参照) INNOVで始まるチーム名は、イノベーションチャレンジチームです フリースケール・カップ予選イベントが開催されていない国のチームは、選択した場所に自由に参加できます。Flavio Stiffanに連絡して、選択が記録されることを確認してください。
View full article
SCFW: Enable PMIC external watchdog for iMX8QXP MEK Attachched is the reference patch to enable the PMIC external watchdog in SCFW, it is based on SCFW porting kit v1.1.2 from NXP website: https://www.nxp.com/webapp/Download?colCode=L4.14.78_1.0.0_SCFWKIT&appType=license&location=null Please apply the patches to "imx-scfw-porting-kit-1.1.2/src/scfw_export_mx8qx_b0" On iMX8QXP MEK board, the patches will enable the PF8100 watchdog by macro "#define ENABLE_PMIC_EXTERNAL_WDOG", and it will refresh the watchdog timer by I2C interface. The default timeout value is 0xD for 8192ms (#define PMIC_EXTERNAL_WDOG_TIMEOUT  0xD), and SCFW will refresh it with 1000ms period (board_pmic_wdog_refresh_period_ms = 1000U). When the iMX8 system goto low power mode, it will pull SCU_PMIC_STANDBY to notify the PMIC, then PMIC will switch to suspend mode too, during PMIC suspend mode, this watchdog timer is off too. It will restart after PMIC resume to normal mode. Without PMIC OTP burning for WDOG, the current setting of patch will trigger hard reset after PMIC WDOG is timeout. 0001-scfw-add-board-board-tick.patch This patch is used to added polling ticket in board.c, after SCFW running, it will call board_tick() with 10ms period. In future SCFW release, this patch is not needed to apply, it is in default code, only when SCFW porting kit version is 1.1.2 and early version, you need apply this patch. 0002-scfw-enable-pmic-external-wdog.patch This is the reference patch to enable the PF8100 watchdog timer and refresh code. iMX8QXP MEK is used as the example. Note: In default SCFW, it had already used internel watchdog to make sure SCFW is always running, if SCFW is built as no debug version (M=0 D=0), all SCFW halt will cause SOC reset. And if hardware had connected the SCU_WDOG_OUT pin from iMX8QXP to PMIC's WDI pin, then during SOC reset, the PMIC will also do hard reset to make a POR reboot for the whole system. i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus
View full article
Example S32K14x SRAM ECC Injection ******************************************************************************** Detailed Description: This example shows SRAM ECC injection. By default, a double-bit ECC error is injected on read access of a location in SRAM_U region. This can be changed with the SRAM_U and DOUBLE_BIT macros. The errors can be detected by both the ERM and MCM modules and the corresponding interrupts can be called. Although only ERM is needed, for demonstration purposes, the MCM interrupt is enabled as well with a lower priority than the ERM interrupts. The ERM interrupts that are called first disable the injection mechanism so that subsequent errors can not be detected during a stack read access. The default S32 Design Studio start_up file copies the vector table to the SRAM_L region. To be able to inject ECC errors in this SRAM region and call the interrupts, the copying is disabled by __flash_vector_table__ symbol  declared in the start_up.h file and defined in the S32K144_64_flash linker file. -------------------------------------------------------------------------------------------- Test HW: S32K144EVB-Q100 MCU: S32K144 0N57U Debugger: S32DSR1 Target: internal_FLASH ********************************************************************************
View full article
机器视觉课程#2:CNN概述 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 单层感知器 在介绍硬件具体细节之前,本课程将介绍一些有关 CNN 如何工作以及其用途的信息。CNN 广泛应用于图像和视频识别应用,因此它们无疑引起了汽车界的兴趣。CNN 与神经网络类似,由具有可学习权重和偏差的神经元组成。每个神经元接收几个输入,对它们进行加权和,将其传递给激活函数并以输出做出响应。 神经网络的基本结构是感知器。感知器如下图所示: 感知器由权重(包括称为偏差的特殊权重)、求和处理器和激活函数组成 还有一个额外的输入节点,称为偏差,它有点像 所有输入都单独加权,相加并传递到激活函数。 每个激活函数(或非线性函数)都采用单个数字并对其执行某种固定的数学运算。实际中会遇到几种激活函数: Sigmoid:接受实值输入并将其压缩到 0 到 1 之间的范围内 σ(x)= 1 /(1 + exp(−x)) tanh:接受实值输入并将其压缩到 [-1, 1] 范围内 tanh(x) = 2σ(2x) − 1 ReLU:ReLU 代表整流线性单元。它采用实值输入并将其阈值设为零(用零替换负值) f(x)= 最大值(0,x) Bias 的主要功能是为每个节点提供一个可训练的常数值(除了节点接收的正常输入之外)。 多层感知器 多层感知器 (MLP) 包含一个或多个隐藏层(除了一个输入层和一个输出层)。单层感知器只能学习线性函数,而多层感知器还可以学习非线性函数。     所有连接都有与之相关的权重,每一层都有自己的偏差。多层感知器学习的过程称为反向传播算法。最初,所有边权重都是随机分配的。对于训练数据集中的每个输入,神经网络都会被激活并观察其输出。将此输出与我们已经知道的期望输出进行比较,并将错误“传播”回上一层。我们会注意到这个错误,并相应地“调整”权重。重复此过程,直到输出误差低于预定阈值。“调整”权重的过程利用梯度下降算法来最小化误差函数,我们不会对此进行详细介绍。 卷积神经网络 热修复
View full article
SMI-N2078 SECO-从制造到制造-缺失的环节 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 得益于新的创客运动,如今的新企业家和创新者可以快速制作原型。然而,这个看似无限可能的世界在大规模生产产品时却遇到了很大的限制,因为在概念验证和制造之间缺少一个步骤或环节。本次演讲将展示 SECO 如何通过其社区运动和委员会 UDOO 将其嵌入式专业知识与新获得的创客运动经验融合在一起,弥补创客与工业之间的差距。 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 得益于新的创客运动,如今的新企业家和创新者可以快速制作原型。然而,这个看似无限可能的世界在大规模生产产品时却遇到了很大的限制,因为在概念验证和制造之间缺少一个步骤或环节。本次演讲将展示 SECO 如何通过其社区运动和委员会 UDOO 将其嵌入式专业知识与新获得的创客运动经验融合在一起,弥补创客与工业之间的差距。 智能机械和工业自动化
View full article
FAQ 全ボード GPIOテスト <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> カーネル空間内でGPIOを制御するための独自のドライバを開発することも可能ですが、ユーザー空間からGPIOにアクセスするためのより簡単な方法があります。タイミング要件が問題にならない場合は、GPIO-SYSFSを使用できます。 SYSFSは、カーネル内部フレームワークの一部の機能をユーザー空間にエクスポートする仮想ファイル・システムであり、GPIOはSYSFSを通じて機能をエクスポートできるフレームワークの1つです。 GPIO-SYSFS機能は2.6.27以降のすべてのメインライン・カーネルで使用可能です。 SYSFS経由でGPIOをエクスポートするためのカーネルの構成 SYSFSでGPIOを有効にするには、次のカーネル・オプションを選択してください: デバイスドライバー --->       --- GPIOサポート             [*] /sys/class/gpio/...(sysfsインターフェース) i.MX233またはi.MX28を使用している場合、カーネルを再コンパイルした後、ltibでも自動的に実行されないため、ブート・ストリームを再度生成することを忘れないでください。 使用するピンが本当に GPIO ピンとしてアクセス可能であり、カーネルによって要求されていない(gpio_request)ことを確認してください。ピンが gpio_request された場合、SYSFS 経由でアクセスできるようにするには、カーネル内で同じピンを gpio_export する必要があります。ピンがデフォルトで GPIO として設定されていない場合、 /arch/arm/mach-XXX 内の適切なファイルで IO MUX を設定する必要があります。 ユーザー空間でのGPIOへのアクセス GPIO-SYSFS 機能を有効にした後、新しいカーネルでデバイスを起動してテストを行うことができます。 まず、テストするGPIOをユーザー空間にエクスポートする必要があります: echo XX > /sys/class/gpio/export XXは、次のアルゴリズムによって特定されます: GPIOA_[B]はエクスポートしたいGPIOです。ここで、「A」はGPIOバンク、「B」はバンク内のピンのオフセットです。 最初の利用可能なGPIOバンクが0の場合//(たとえばiMX.28)    XX = A×32 + B; それ以外の場合//最初のGPIOバンクは1    XX =(A-1)×32 + B; GPIOピンをエクスポートした後、次の場所にエクスポートされたGPIOインターフェースを確認できるようになります: /sys/class/gpio/gpioXX このインターフェースを通じて、次のようなことができるようになります: #ピンの値を読みます cat /sys/class/gpio/gpioXX/value #ピンの向きを変える > /sys/class/gpio/gpioXX/directionにエコーイン エコーアウト> /sys/class/gpio/gpioXX/direction # GPIO出力レベルの切り替え echo 0 > /sys/class/gpio/gpioXX/value echo 1 > /sys/class/gpio/gpioXX/value GPIO仮想ファイル・システムでは、一度に1つのGPIOピンしか処理できないことに注意することが重要です(コマンドごと)。 Re:FAQすべてのボードGPIOテスト <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> これは愚かな質問かもしれませんが、どのピンがgpioXXに物理的にリンクされているかを知るにはどうすればよいでしょうか?
View full article
Trap to host not working on SJA1110 Rev. D I've been working on the SJA1110-EVM board and created software to read certain frames on the host processor (Cortex-M7). For that I used the "hello world" example provided with the board and build the application from there.  I was using S32DS with Autosar-RTD. Now I switched to another board also using the SJA1110. However it is using a different revision of said switch (Rev. D). I made sure to adapt the configuration. However I can't receive any frames that should be trapped to host on the host processor there. I am trapping the frames via L2 entry with trap flag set. I made sure the L2 entry is actually used for the frames I am trying to trap. In addition I made sure that promiscuous is activated. I am also able to send frames from the host. According to the stat registers the frames, that should be received, are not dropped but still vanish after entering the switch (so the L2 rule works but they never reach the host port??). I am unsure how to narrow down the problem further and how to confirm or rule out any hardware problems. Re: Trap to host not working on SJA1110 Rev. D Hello @flxwly , Could you please clarify whether you are using SJA1110D on the SJA1110-MGS-EVM or on your own custom board? The original SJA1110-EVM was based on SJA1110A, while the newer SJA1110-MGS-EVM uses SJA1110D. At the same time, the SJA1110 family is described as pin-compatible and software-compatible, so I would not expect the trap-to-host concept itself to differ between revisions. This makes a board-specific configuration mismatch more likely than a generic Rev. D limitation. Please ensure that the EthTrcv_43_PHY configuration has been adapted accordingly and that the PHY instances are mapped correctly in EthSwt_43_SJA11XX. Please also verify that the MACConfigurationTable in EthSwt_43_SJA11XX has been updated to match your actual board topology. Unused ports should be disabled. If possible, please also share your .mex file so we can review the configuration. Best regards, Pavel Re: Trap to host not working on SJA1110 Rev. D Hello @PavelL , thank you for your quick response. I've seem to fixed it. It appears I missed to correctly configure the default VLAN 0. However I am still curious to why I could use the L2 entry to route my frames to other ports but not the host. My own custom board is using the SJA1110D.  I've attached the .mex. I am using S32SDK_SJA1110_RTM_1.0.0. Best regards, Nepomuk Re: Trap to host not working on SJA1110 Rev. D Hello @flxwly , Yes, this behavior is consistent with VLAN membership filtering. The L2 entry may still match and select the forwarding destination, but the frame will only be delivered to ports that are members of the corresponding VLAN. If default VLAN 0 was not configured correctly, it is possible that forwarding to other ports still worked while the host port could not receive the frame because it was not included in VMEMB_PORT. I have reviewed your .mex file and in addition to the VLAN 0 correction, you may also consider disabling all unused ports in the MACConfigurationTable as well as in the L2 Forwarding Table, so that the configuration matches your actual board topology as closely as possible. Best regards, Pavel Re: Trap to host not working on SJA1110 Rev. D Hello @PavelL, thank you very much. It is working as intended now. Still I have one more question regarding the in-band control extensions. Is the host port (0) included in the trailer for host-to-switch frames with trailer? The documentation in UM11107 under 5.8.2.1 does not state how exactly the ports should be set. I assumed its one bit per port. Also it seems the trailer information is not stripped completly. Best regards, Nepomuk Re: Trap to host not working on SJA1110 Rev. D Hello @flxwly , Please note: Once an answer is marked as a solution, the original query is no longer actively tracked in our system. I only receive subscription emails for updates and those can occasionally be missed. If you need further assistance, the best approach is to create a new query. Best regards, Pavel
View full article
imx93 lpddr4x の JSL4BAG16 設定が不安定です こんにちは、専門家の皆様: JSL4BAG16 の lpddr4x 設定に関して問題があります。設定後、「機能」テストはパスしますが、「最適化->CA 最適化の Vref」で失敗することがあります。常に失敗するわけではなく、時々失敗します。 「vTSA -> CA eye」のテストを実行すると、合格と表示されますが、同時に「エラーログ」も表示されます。 「Vref DQ config」と「Vref CA config」の調整方法について質問があります。JSL4BAG16のVref値は「EVKで使用されているミクロン値」と異なりますが、範囲0または範囲1を設定する必要がありますか? 私の知る限り、Vref DQは「アイダイアグラム」テストの結果に基づいて設定されますが、「読み取りダイアグラム」と「書き込みダイアグラム」のどちらを使用すればよいのでしょうか? JSL4BAGのデータシートと、「CA eye」テストログおよびmexファイルを添付しました。     よろしくお願いします。 Re: imx93 lpddr4x config for JSL4BAG16 unstable こんにちは、 LPDDR4Xは、 https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-93-Memory-Compatibility-Guide/ta-p/1725656の一部です。 Vref DQ チューニングには、JSL4BAG16 のレンジ 1 (デフォルト) を使用し、読み取りではなく書き込みアイ ダイアグラムを使用してください。   Micron/EVKの設定を再利用しないでください。必ずJSL4BAG16に合わせてVrefを再調整してください。 Re: imx93 lpddr4x config for JSL4BAG16 unstable こんにちは、オズワラグさん。 ご返信ありがとうございます。私は「i.MX config tool」でテストに合格し、「最適化」テスト結果でDQとCAの「Vref」を使用しました。 しかし、まだ2つの問題があります。 1.あるボードでは「CA Charts」が表示されず、「CA Eye」テストには誤差がありますが、合格と表示されます 2.lpddr4x_timing.cを更新した後すべての合格ボードで「i.MX config tool」によって生成されたものをシステムで「memtest」を実行すると、「Stuck Address」で失敗します。常にではありませんが、時々発生します。 よろしくお願いします。 Re: imx93 lpddr4x config for JSL4BAG16 unstable 私のFRDM-IMX93ボードにも同じチップが搭載されていますが、市販のイメージファイルでは正常に起動しません。どうすれば解決できますか? Re: imx93 lpddr4x config for JSL4BAG16 unstable いいえ、していません。弊社では、flex-installerが提供する市販のイメージファイルを使用して、市販のfrdm-imx93ボードを使用しています。 入門マニュアルには「i.Mx設定ツール」についての記載はありません。 手順はどうなりますか?マニュアルはありますか?また、使い始めるにあたって、どのような手順で部品を交換する必要がありますか? これはまた、すべてのFRDM-IMX93ボードに対して1つの標準イメージを使うことはできず、各ボードを確認するか、搭載DDRによって2〜3つのイメージバージョンを持つ必要があるということですか? ご注意ください。私たちは(共有の)お客様に対して既製の動作を期待しています。 Re: imx93 lpddr4x config for JSL4BAG16 unstable こんにちは、SynchronicITさん。 「i.MX config tool」を使用してDDRテストに合格しましたか?まずそれを通過させてから、lpddr4x_timging.c を使用する必要があります。「i.MX設定ツール」によって生成されました。 Re: imx93 lpddr4x config for JSL4BAG16 unstable こんにちは: NXP公式の「FRDM i.MX 93開発ボード」と公式リリースを使っているようですね。大丈夫でしょう。「DDRテスト」を行う必要はありません。私は「FRDMボード」を持っていません。NXPのボードの使い方に関するドキュメントを参照できるかもしれません。
View full article
使用 Lauterbasch JTAG(QSPI 启动)恢复 LS2088ARD HI -> 通过更改跳线和开关设置,我能够在 LS2088ARDB 上从 QSPI Flash 启动。 -> 启动后,我不小心删除了 QSPI 闪存的启动区域(bl2、rcw、uboot 都被抹掉了。)。目标无法启动。 -> 我正在尝试使用 ls2088a_sieve_sram_failsave.cmm 使用 Lauterbasch JTAG 进行启动,这是一种故障安全方法。在此处"覆盖了 RCW" ,如下所示 Data.Set EDBG:0x42001080%Long 0x9b ; RCW_src=HARDCODED -> 有了这个,目标将使用 JTAG 提供的 RCW(ls2088a_sieve_sram_failsave.cmm)启动。 -> 但请注意,QSPI 无法正常工作,因为 RCW_SRC 不是 QSPI_boot。 ->如果 QSPI 引脚多路复用和时钟未初始化,QSPI 将如何工作? 问题:能否提供一些建议或新的 .cmm 文件?当QSPI闪存为空或已被擦除时,可用于通过JTAG恢复目标设备的脚本。 谢谢并致以诚挚的问候 Re: Recover LS2088ARD using Lauterbasch JTAG (QSPI Boot) 你好 通常需要的文件包括: 有关 RCW 源代码行为和 QSPI 初始化的 LS2088A 参考手册/启动流程文档, LS2088ARDB 板恢复或编程程序, 以及任何针对 ls2088a_sieve_sram_failsave.cmm 的 Lauterbach 恢复脚本注释。 由于检索到的源代码中没有任何可用内容,因此最安全的答案是:我无法验证现有的故障保护脚本是否可以在删除启动区域后重新启用 QSPI 访问,而且我无法生成值得信赖的替代品 .cmm 根据现有文档编写的脚本。请联系恩智浦(NXP)技术支持获取 LS2088ARDB 的恢复流程,或者提供您希望分析的具体 LS2088A/Lauterbach 文档集,我将协助您解读相关内容。   此致
View full article
LS1046A FEC support Hello, I'm interested is it FEC (Firecode FEC used in 10GBASE-KR) supported on LS1046A platform and how to enable it? I saw that in Linux kernel 6.12.49 there is 10GBASE-KR support, but only for Auto Negotiation and Link Training. Also I wanted to use USDPAA device tree to be able to use DPDK + VPP, so are there some blockers to make FEC work in that setup? Is it possible also to avoid running Auto negotiation and Link training and to run FEC only? Thanks in advance, Nenad Re: LS1046A FEC support Auto-negotiation is a necessary step in the current driver flow. If auto-negotiation fails, the process will not proceed further. So  the current backplane driver does not support FEC, and auto-negotiation is an integral part of the workflow. If you want to remove auto-negotiation, you will need to modify the driver by yourselves, and we do not recommend doing so. If link training itself has issues, there is no point in proceeding with other configurations. To enable FEC, an additional PMD register needs to be programmed. Re: LS1046A FEC support FEC is not supported in current backplane driver. Auto-negitation is necessary step in the backplane driver, I suggest customer modify backplane driver to set XFI_10GR_FEC_CTL[FEC_ENAB] to enable FEC Re: LS1046A FEC support I successfully enabled FEC and I am not using AN/LT (its disabled). I am basically including "-kr.dtsi" files for mac9 and mac10 to be able to access registers to write FEC_ENAB. When I say throughput in the next lines for example 4gbps I mean on 2x 4gbps is generated from network tester to board. BERT test is running (L2 traffic test termination). And when I start VPP so that mac9 and mac10 are bridged I see that errors are smaller, on one port there is 0 errors and on other port there is no errors when throughput is smaller (<4gbps) and when there is throughput >4gbps errors are around BER ratio 2E-08 and smaller (E-09). But those measurements are when the system is idle (not using console at all). But when I do something, for example start top program, press Enter multiple times, errors are increasing (BER ratio E-07, E-06). So I made a script that is doing memcpy fast (to put pressure on ddr) and I saw that I got a lot of bit errors (BER ratio is going up to E-04 for throughputs bigger than 7gbps) on MTS5800 network tester. My setup is like this: DPDK + VPP (main core 1, workers 2 and 3), isolcpus=1-3, nohz_full=1-3, rcu_nocbs=1-3, iommu_passthrough=1, hugepagessz=2m, number of hugepages 512. Is there maybe DDR bandwidth bottleneck in higher network throughputs?
View full article
如何使用安全元件 SE05x:在树莓派上设置即插即用中间件(日文博客) 介绍 许多人对安全元件感兴趣,但或许他们觉得这些元件“使用起来有些困难”。 NXP 的安全元件SE05x附带名为 Plug and Trust Middleware 的中间件。该中间件包含一个专用于 SE05x 的 API,以及 OpenSSL 和 mbed-TLS 等常用库的插件。因此,使用这些库的应用程序(例如 Eclipse Mosquitto ™等)几乎无需修改即可利用安全元件的功能。 该中间件的参考操作系统环境支持“Windows PC”和“各种 NXP MCU/MPU(Linux)”,但也支持现成的“Raspberry Pi”。 Windows 和 Linux 环境下都提供了命令行工具,使得验证各种操作变得容易。 本文介绍了如何在树莓派上设置 Plug and Trust 中间件。 本文撰写过程中使用的硬件、软件及其版本 硬件: 树莓派 3 B+ 型 EdgeLock ® SE050 开发套件( OM-SE050ARD-E ) 五根跳线(公对母或母对母)或一个 Arduino 转 Raspberry Pi 适配器板( OM-SE050RPI ) 软件: 树莓派操作系统 12 64 位 SE-PLUG-TRUST-MW_04.07.01 *访问文档的方法如下所述。 下载 Plug and Trust 中间件软件包。 首先,请从这里下载Plug and Trust 中间件软件包 (SE05x-PLUG-TRUST-MW) 。 * 下载需要 MyNXP账户 。注册免费且简单。 * 解压缩后,您可以从 simw-top/doc/index.html 访问文档(以下,“文档”指的是此 HTML 文件)。 有关将 Plug and Trust 中间件与 Raspberry Pi 一起使用的信息,另请参阅AN12570 。 硬件准备 使用跳线连接 Raspberry Pi 和 OM-SE050ARD-E(或 OM-SE050RPI)。 对于使用跳线进行的连接,请参阅文档中的第 4.5 节。请参考下图了解树莓派的组装方法。 然而,截至撰写本文时,由于树莓派操作系统的 GPIO 控制规范发生了变化,按照上述方式连接的 GPIO22 无法正常工作。 虽然原因和解决方法已经明确,但目前本文将介绍如何通过更改跳线设置来禁用 GPIO22 控制。 要不使用 GPIO22 进行操作,请更改 OM-SE050ARD-E 上的以下两个跳线设置。 J13:1-2 J14:1-2 将 J13 设置为 1-2 可将 SE050 的 ENA 连接到 GND,将 J14 设置为 1-2 可将 SE050 的 VCC 连接到 VIN。 ENA 是 DPD(深度掉电)模式的控制引脚。使用 DPD 模式时,连接 VOUT 和 VCC,并使用 ENA 通过 VOUT 控制电源,以降低电流消耗。 由于本次 ENA 控制功能出现故障,我们将暂时禁用 DPD 设置。 如果不使用 DPD,请保持 VOUT 开路并将 VCC 连接到 VIN,以确保持续供电。 虽然从评估的角度来看,将 ENA 连接到 GND 似乎是可以接受的,但数据手册建议,如果 ENA 未使用,则将其连接到 VCC。 施工前准备 使用 Raspberry Pi Imager 刷写 Raspberry Pi OS 并启动后,打开终端。 启用 I2C 如果运行以下命令后未显示 i2c-1,则表示 I2C 未启用,请启用它。 ls /sys/bus/i2c/devices 执行以下命令后,转到接口选项 -> I2C 并启用 I2C。 sudo raspi-config - 安装其他构建工具 执行以下操作: sudo apt-get install cmake cmake-curses-gui cmake-gui libssl-dev libsystemd-dev 中间件设置和运行示例应用程序 将下载的 Plug and Trust 中间件软件包复制到您的 Raspberry Pi 中。 导航到您复制 Plug and Trust 中间件的目录,然后执行以下操作: cd simw-top python scripts/create_cmake_projects.py cd ../simw-top_build/raspberrypi_native_se050_t1oi2c cmake --build . sudo make install sudo ldconfig /usr/local/lib 构建好的应用程序位于 simw-top_build/raspbian_native_se050_t1oi2c/bin 中。 由于在前面描述的安装过程中,文件被复制到了 /usr/local/bin/ 目录,因此您可以运行该程序而无需指定该位置的文件。 运行 se05x_GetInfo 以验证操作,将显示设备信息。 shinji@raspberrypi:~/SE-PLUG-TRUST-MW_04.07.01/simw-top_build/raspbian_native_se050_t1oi2c $ se05x_GetInfo Failed to export Enable pin : Invalid argument Failed to open GPIO value file : No such file or directory Failed to unexport GPIO : Invalid argument App :INFO :Running se05x_GetInfo App :INFO :If you want to over-ride the selection, use ENV=EX_SSS_BOOT_SSS_PORT or pass in command line arguments. App :INFO :PlugAndTrust_v04.07.01_20250519 sss :INFO :atr (Len=35) 01 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 00 01 00 00 00 00 64 13 88 0A 00 65 53 45 30 35 31 00 00 00 App :WARN :No SemsLite Applet Available. App :INFO :Running se05x_GetInfo App :INFO :If you want to over-ride the selection, use ENV=EX_SSS_BOOT_SSS_PORT or pass in command line arguments. sss :INFO :atr (Len=35) 01 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 00 01 00 00 00 00 64 13 88 0A 00 65 53 45 30 35 31 00 00 00 sss :WARN :Communication channel is Plain. sss :WARN :!!!Not recommended for production use.!!! App :WARN :##################################################### App :INFO :uid (Len=18) 04 00 50 01 6A 17 2A E0 43 2E 7C 04 27 6A D2 9C 1D 90 App :WARN :##################################################### App :INFO :Applet Major = 7 App :INFO :Applet Minor = 2 App :INFO :Applet patch = 0 App :INFO :AppletConfig = 3F9F App :INFO :With ECDSA_ECDH_ECDHE App :INFO :With EDDSA App :INFO :With DH_MONT App :INFO :With HMAC App :INFO :WithOut RSA_PLAIN App :INFO :WithOut RSA_CRT App :INFO :With AES App :INFO :With DES App :INFO :With PBKDF App :INFO :With TLS App :INFO :With MIFARE App :INFO :With I2CM App :INFO :Internal = FFFF App :WARN :##################################################### App :INFO :Tag value - proprietary data 0xFE = 0xFE App :INFO :Length of following data 0x45 = 0x45 App :INFO :Tag card identification data (Len=2) DF 28 App :INFO :Length of card identification data = 0x42 App :INFO :Tag configuration ID (Must be 0x01) = 0x01 App :INFO :Configuration ID (Len=12) 00 01 A9 21 89 0A 6F 56 4A 23 9C 41 App :INFO :OEF ID (Len=2) A9 21 App :INFO :Tag patch ID (Must be 0x02) = 0x02 App :INFO :Patch ID (Len=8) 00 00 00 00 00 00 00 01 App :INFO :Tag platform build ID1 (Must be 0x03) = 0x03 App :INFO :Platform build ID (Len=24) 4A 33 52 33 35 31 30 32 39 42 34 31 31 31 30 30 1A 08 FA 50 67 B5 F2 56 App :INFO :JCOP Platform ID = J3R351029B411100 App :INFO :Tag FIPS mode (Must be 0x05) = 0x05 App :INFO :FIPS mode var = 0x00 App :INFO :Tag pre-perso state (Must be 0x07) = 0x07 App :INFO :Bit mask of pre-perso state var = 0x00 App :INFO :Tag ROM ID (Must be 0x08) = 0x08 App :INFO :ROM ID (Len=8) 2E 5A D8 84 09 C9 BA DB App :INFO :Status Word (SW) (Len=2) 90 00 App :INFO :se05x_GetInfoPlainApplet Example Success !!!... App :WARN :##################################################### App :INFO :cplc_data.IC_fabricator (Len=2) 47 90 App :INFO :cplc_data.IC_type1 (Len=2) D3 21 App :INFO :cplc_data.Operating_system_identifier (Len=2) 47 00 App :INFO :cplc_data.Operating_system_release_date (Len=2) 00 00 App :INFO :cplc_data.Operating_system_release_level (Len=2) 00 00 App :INFO :cplc_data.IC_fabrication_date (Len=2) 41 50 App :INFO :cplc_data.IC_Serial_number (Len=4) 13 93 77 21 App :INFO :cplc_data.IC_Batch_identifier (Len=2) 05 57 App :INFO :cplc_data.IC_module_fabricator (Len=2) 00 00 App :INFO :cplc_data.IC_module_packaging_date (Len=2) 00 00 App :INFO :cplc_data.ICC_manufacturer (Len=2) 00 00 App :INFO :cplc_data.IC_embedding_date (Len=2) 00 00 App :INFO :cplc_data.IC_OS_initializer (Len=2) 07 27 App :INFO :cplc_data.IC_OS_initialization_date (Len=2) 6A 33 App :INFO :cplc_data.IC_OS_initialization_equipment (Len=4) 39 33 37 37 App :INFO :cplc_data.IC_personalizer (Len=2) 00 00 App :INFO :cplc_data.IC_personalization_date (Len=2) 00 00 App :INFO :cplc_data.IC_personalization_equipment_ID (Len=4) 00 00 00 00 App :INFO :cplc_data.SW (Len=2) 90 00 App :INFO :ex_sss Finished Failed to open GPIO value file : No such file or directory Failed to unexport GPIO : Invalid argument Failed to unexport GPIO : Invalid argument 如前所述,GPIO 控制存在问题,因此消息的开头和结尾将显示与 GPIO 相关的错误,但这不会影响操作。 如果您看到如下所示的读取 uid(唯一标识符)的部分,则说明它工作正常。由于每个设备的 uid 值都不同,因此应根据所使用的开发板读取不同的值。 App :INFO :uid (Len=18) 04 00 50 01 6A 17 2A E0 43 2E 7C 04 27 6A D2 9C 1D 90 还会显示以下消息,表明主机与 SE050 之间的通信保护(消息认证和加密)未启用。 在批量生产期间,我们强烈建议更改中间件构建设置以启用保护功能。 sss :WARN :Communication channel is Plain. sss :WARN :!!!Not recommended for production use.!!! 设置命令行工具 (ssscli) ssscli 是一个基于 Python 的命令行工具,用于控制 SE05X。 文件 9.3.1.3。我们将按照树莓派的说明书进行设置。 以下说明将在 simw-top/pycli 中创建一个虚拟环境,但您可以根据自己的喜好进行更改。 cd simw-top/pycli sudo apt-get install python3-pip python3-dev libffi-dev sudo apt install python3-virtualenv virtualenv venv source venv/bin/activate pip install -r requirements.txt cd src pip install --editable . 完成上述步骤后,尝试使用 ssscli 获取 uid。 (venv) shinji@raspberrypi:~/SE-PLUG-TRUST-MW_04.07.01/simw-top/pycli $ ssscli connect se05x t1oi2c none (venv) shinji@raspberrypi:~/SE-PLUG-TRUST-MW_04.07.01/simw-top/pycli $ ssscli se05x uid sss :INFO :atr (Len=35) 01 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 00 01 00 00 00 00 64 13 88 0A 00 65 53 45 30 35 31 00 00 00 sss :WARN :Communication channel is Plain. sss :WARN :!!!Not recommended for production use.!!! 040050016a172ae0432e7c04276ad29c1d90 Unique ID: 040050016a172ae0432e7c04276ad29c1d90 (venv) shinji@raspberrypi:~/SE-PLUG-TRUST-MW_04.07.01/simw-top/pycli $ ssscli disconnect 得到的 ID 与之前执行 se05x_GetInfo 时得到的 ID 相同,表明该函数运行正常。 至此,Plug and Trust 中间件的设置完成。 具体使用示例将在另一篇文章中介绍。 ========================= 我们目前无法 回复 此帖子“ 评论”部分留下的评论。 对于由此造成的不便,我们深表歉意,但 在进行咨询时, 请 参考“ NXP 技术问题 - 如何联系我们 ( 日语博客 ) ” 。 (如果您已经是 恩智浦的 分销商或 与 恩智浦 有合作关系 ,您可以直接咨询您的代表。) 许多人对安全元件感兴趣,但或许他们觉得这些元件“使用起来有些困难”。 NXP 的安全元件SE05x附带名为 Plug and Trust Middleware 的中间件。该中间件包含一个专用于 SE05x 的 API,以及适用于 OpenSSL 和 mbed-TLS 等常用库的插件。因此,使用这些库的应用程序(例如 Eclipse Mosquitto ™等)几乎无需修改即可利用安全元件的功能。 该中间件的参考操作系统环境支持 Windows PC 和各种 NXP MCU/MPU(Linux),但也支持现成的 Raspberry Pi。 Windows 和 Linux 环境下均有命令行工具可用,使得验证各种操作变得容易。 本文介绍了如何在树莓派上设置 Plug and Trust 中间件。 (操作时间:20分钟) 安全 技术聚焦 日本博客
View full article