Multi Source Translation Content

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Multi Source Translation Content

ディスカッション

ソート順:
如何访问和测试 S32E288 上的 32 MB 嵌入式 NVM 您好,NXP团队, 我正在使用 S32E288 设备,该设备运行在 S32E288-975EVB 上。 在RTU0 Cortex-R52上应用。 S32E2产品简介如下: - 0/16/32/64 MB 嵌入式非易失性存储器 - 512 KB 数据闪存,带 ECC 纠错功能 - QuadSPI NOR 闪存接口 我们的团队想用棋盘格图案测试NVM区域,但找不到关于s32e27RM的任何信息,请问在哪里可以找到这些信息?我们使用的是s32E288板,如何访问嵌入式NVM? 我需要的是针对32MB嵌入式NVM的具体说明,而不是…… 512 KB C55 数据闪存,而不是 EVB 上安装的外部 或非 闪存。 请问您能否澄清以下问题? 1. 32MB嵌入式NVM是集成在内部的串行闪存芯片吗? S32E288 封装/SiP? 2. 哪个控制器和控制器实例提供软件访问 到这个嵌入式非易失性存储器? 它是通过 QuadSPI0、QuadSPI1、HSE 固件还是其他方式访问的 专用的接口? 3. 32 MB 嵌入式 NVM 的 RTU0 CPU 可见地址范围是什么? 是否存在内存映射读取孔径,还是必须执行所有读取操作? 使用 QuadSPI IP 命令吗? 4. 0x00000000 到 0x01FFFFFF 仅仅是闪存设备偏移量吗?还是它们 嵌入式非易失性存储器(NVM)的有效Cortex-R52系统地址是什么? 5. 哪个 QuadSPI 片选或闪存地址分配条目对应 到嵌入式非易失性存储器?它如何与外部NOR区分开来 S32E288-975EVB 的闪光灯功能是什么? 6. 应该使用哪个RTD驱动程序和示例来读取、擦除、编程? 并验证RTU0中的嵌入式NVM? 请提供确切的驱动程序/元器件名称以及合适的示例。 7. RTU0 是否有权限直接擦除/编程嵌入式 NVM? 或者这些操作必须通过 HSE/系统管理器固件来请求? 8. 功能安全手册指出 SiP 串行闪存不支持 XIP。 这是否意味着内存映射读取也无法使用,还是仅此而已 不支持指令执行? 9. 对于非破坏性读写测试,推荐的方法是什么? 这个嵌入式非易失性存储器(NVM)有一个未使用的扇区? 是否存在用于启动映像、IVT、HSE 或 OTA 的受保护/保留区域 哪些元数据不能删除? 我的目标是做到: 读取、写入和验证 NVM 区域 请分享S32E2参考手册的相关章节,即地址映射部分。 RTD 示例及所需的访问/保护配置。 设备:S32E288 板:S32E288-975EVB 核心:RTU0 Cortex-R52 / RTU1 参考手册:S32E2 RM Rev. 5 RTD:S32ZE AUTOSAR R21-11 RTD Re: How to access and test the 32 MB embedded NVM on S32E288 你好, @NeelimaRagipindi 感谢您的帖子。 我刚刚注意到您通过我们的支持门户网站提出了类似的问题,我将在那里一并回复您。 BR 陈银
記事全体を表示
GPIO 简介:如何读取微控制器 (MCX A153) 的引脚并控制 LED(日语博客) 目录 介绍 了解MCX A153微控制器的引脚配置 GPIO 使用设置 检查引脚与电路板(FRDM-MCXA153)之间的关系。 演示:执行 GPIO 设置并体验 LED 控制。 额外知识点:了解LED灯的“开/关”原理 附加题——如果将两个LED并联会发生什么?   介绍 作为嵌入式系统开发的初学者,我是在接到撰写一篇关于GPIO文章的邀请后开始学习它的。本文记录了我尝试点亮单个LED灯的过程中,通过反复试验所学到的知识和心得体会。 本文解释了如何使用 GPIO(通用输入/输出),它是微控制器开发中最基本的外部设备之一。 GPIO 是嵌入式系统的基础,用于将微控制器连接到外部电路,实现诸如打开 LED、读取开关状态和接收来自传感器的信号等功能。 另一方面,在实际的微控制器开发中,“使用GPIO”并不仅仅意味着编写程序。微控制器有许多引脚,每个引脚除了GPIO之外还被分配了其他功能,例如定时器和通信接口。 所以, 要使用 GPIO,您需要了解数据手册中的引脚分配和功能。 PinMUX(引脚复用)设置,用于将GPIO分配给引脚 输入/输出方向设置 这件事必须妥善处理。 这次,我们将以FRDM-MCXA153为例,研究 MCX A153 的引脚配置和 PinMUX 机制,使用 Pins Tool 配置 GPIO 设置,最后演示连接到面包板上的 LED 闪烁。   了解MCX A153微控制器的引脚配置 FRDM-MCXA153搭载了一颗型号为 MCXA153VLH 的微控制器。该微控制器采用 LQFP 64 封装,共有 64 个引脚。其中 52 个引脚可用作 GPIO。其余引脚包括电源引脚 (VDD/VSS)、USB 引脚和模拟输入引脚,这些引脚不能用作 GPIO。 然而,即使它标有“52个GPIO”,这并不意味着这52个引脚都专用于GPIO。许多可用于GPIO的引脚也与其他外设功能(例如UART、SPI、I²C和定时器)共享。因此,要真正将它们用作GPIO,您需要使用PinMUX函数将这些引脚配置为GPIO。 让我们从数据手册中查看MCX A153的引脚配置。从第54页开始列出了每个引脚可以分配的功能。 例如,查看引脚名称为 P1_8 的“引脚复用分配”信息,可以看到有六种可能的功能。GPIO 被分配到“ALT0 - P1_8”。其他分配包括“ALT2 - LPUART1_RXD”,表示它将被用作 UART 接收端 (RXD);以及“ALT3 - LPI2C0_SDA”,表示它将被用作 I²C 数据线 (SDA)。 如您所见,一个引脚可以分配给多个功能,不仅包括 GPIO,还包括 UART、I²C 和定时器。   GPIO 使用设置 1. 选择引脚功能(PinMUX) 如前文所述,P1_8 引脚有多种潜在功能,包括 GPIO、UART 和 I²C。但是,同一个引脚不能同时用作 GPIO 和 UART。 因此,典型的微控制器都配备了一种称为 PinMUX 的机制。 PinMUX 就像一个拨动开关,用于将单个物理引脚连接到内部外设。 例如,P1_8 有六个潜在的连接目标。通过使用 PinMUX 选择 GPIO,P1_8 即可用作 GPIO 引脚。 2. 设置引脚的电气特性。 引脚不仅可以配置其功能,还可以配置其电气特性。典型设置包括: • 引体向上 • 下拉 驱动力 明渠 以下是一些示例。例如,开关输入通常会启用上拉电阻,驱动 LED 或高速信号时可以调整驱动强度。即使用作 GPIO,也必须根据应用进行适当的电气设置。 本文将省略对这些电气特性的详细解释。 3. 设置 GPIO 的输入/输出方向。 最后一步是确定信号流的方向。GPIO 有两种主要的工作模式。 • 输入 – 接收来自外部的信号 • 输出 – 向外部发送信号 微控制器内部在输入输出方面究竟发生了什么? MCX A153 是一款工作电压为 3.3V 的微控制器。因此,其 GPIO 引脚基本上处理两种状态:低电平(约 0V)和高电平(约 3.3V)。A153 的工作电压范围为 1.71V 至 3.6V,FRDM 板使用 3.3V。 GPIO输出值 引脚电压 低(0) 大约 0V 高(1) 约3.3伏 例如,如果您将某个 GPIO 引脚设置为输出并连接一个外部 LED,将其设置为高电平(约 3.3V)会在 GPIO 引脚和 GND 之间产生电位差,从而允许电流流过 LED。将其设置为低电平(约 0V)会消除与 GND 之间的电位差,因此没有电流流过。换句话说,LED 的“闪烁”是由于 GPIO 引脚的电压在高电平 (1) 和低电平 (0) 之间反复切换,从而导致 LED 闪烁和熄灭交替发生。 另一方面,在输入模式下,微控制器会监控GPIO引脚的状态。例如,如果从外部电路输入约3.3V电压,则识别为高电平(1);如果输入约0V电压,则识别为低电平(0)。 上述引脚功能选择、电气特性设置和输入/输出设置均可通过 GUI 使用引脚工具(NXP 的免费配置工具中包含)进行配置。   检查引脚与电路板(FRDM-MCXA153)之间的关系。 到目前为止,我们已经了解到,要使用 GPIO,需要配置 PinMUX 设置和输入/输出方向设置。 接下来,让我们确认 FRDM-MCXA153 板上 MCU 引脚的连接位置,同时牢记我们将要进行的演示。 检查原理图,确认上一章中作为示例使用的引脚“P1_8”的布线位置。 查看电路图第 8 页,我们可以看到 P1_8 连接到 FRDM-MCXA153 上的Arduino 接头 J2 的 D18 。 FRDM-MCXA153原理图 那么,Arduino 接头 J2 上的 D18 在哪里呢? 接下来,我们来查阅一下电路板用户手册。 FRDM-MCXA153 开发板用户手册 第 6 页包含板上安装的连接器的示意图,这使我能够确定 Arduino 接头 J2 上的 D18 的位置。 在本练习中,我们将使用面包板上的 D18 引脚连接一个外部 LED。但是,如果您没有面包板或 LED,也可以使用 FRDM-MCXA153 开发板上自带的 RGB LED。 然而,有一点需要注意。当使用板载 RGB LED 时,LED 的阳极 (+) 连接到 VDD_BOARD (3.3V),阴极 (-) 连接到 GPIO。因此,与前面提到的外接 LED 不同,将 GPIO 设置为高电平 (1) 也会使 GPIO 电压达到约 3.3V,LED 两端的电位差几乎消失,导致 LED 熄灭。 另一方面,将 GPIO 设置为低电平 (0) 会在 LED 两端产生电位差,从而导致电流流动并使 LED 点亮。 当你检查电路图中的每个引脚时…… P3_12 是一个红色 LED P3_13 是一个绿色 LED P3_0 是一个蓝色 LED 它支持这些功能。通过配置引脚复用器 (PinMUX) 设置和输入/输出设置,您还可以使用板上的 LED 指示灯来验证其运行情况。 这样,您就可以使用电路图和电路板用户手册来检查微控制器内部的物理引脚在电路板上的连接位置。   演示:执行 GPIO 设置并体验 LED 控制。 在本章中,我们将使用 MCUXpresso 配置工具中的引脚工具来配置 GPIO 并控制面包板上外部连接的 LED。 演示中使用的设备: FRDM-MCXA153 面包板 LED • 电阻器和跳线 本演示将假设您已在 VS Code 环境中安装了 MCUXpresso SDK 和配置工具。 *如果您尚未安装 MCUXpresso SDK 和配置工具,请参阅此博客文章。 MCUXpresso 配置工具:引脚工具的使用方法(日语博客) 注意:虽然博客文章描述了 FRDM-MCXN947 的 SDK 安装,但本文中请安装 FRDM-MCXA153 的 SDK。 我手头有一个红色LED和一个绿色LED,但我不知道它们的型号,所以我先尝试点亮红色LED。我有一个390Ω的电阻。红色LED的正向电压(Vf)通常在1.8~2.2V之间,所以我假设它是2.0V,并计算流过LED的电流。 微控制器的工作电压为3.3V。Vf使用 2.0V 电压和 390Ω 电阻,可以根据欧姆定律计算电流值,如下所示。请注意,LED 具有规定的最大正向电流 (Ifmax),许多通用 LED 的 Ifmax 为 20mA。务必谨慎选择电阻值,因为超过 20mA 的电流可能会损坏 LED。 此外,GPIO引脚的输出电流也有限制。根据数据手册,MCX A153在正常工作状态下的电气特性是基于4mA电流(高驱动引脚为6mA)设定的。因此,当使用GPIO引脚直接点亮LED时,需要选择一个合适的电阻值,该电阻值不仅要考虑LED的电流限制,还要考虑GPIO引脚的电流限制。 电路板和面包板接线 首先,我们要进行线路连接。 在 FRDM 板上,我们将使用之前确定的 Arduino 接头 J2 上的“D18”和“14 GND” 。 下图是根据电路板用户手册绘制的。 FRDM-MCXA153 开发板用户手册 请参考以下视频了解接线说明。 (function() { var wrapper = document.getElementById('lia-vid-6405195304112w960h540r888'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (显示我的视频) 导入示例代码 接下来,我们将从 FRDM-MCXA153 SDK 导入示例代码。 点击左侧面板中的“从存储库导入示例”。 在右侧显示的选项卡中,选择“存储库”下的导入的 FRDM-MCXA153 SDK,然后选择“板”下的 FRDM-MCXA153。 使用的模板是“driver_examples/gpio/gpio_led_output”。 选择所需的工具链,然后单击“导入”。 导入完成后,它将被添加到左侧面板的“项目”部分。 查看源代码 gpio_led_output.c。 这次,我们要使用引脚工具配置 GPIO 输入/输出设置,因此我们将从源代码中删除红色方框内包含的 GPIO 输出设置代码。 使用引脚工具配置GPIO设置。 接下来,打开配置工具。右键单击项目,然后选择“使用 MCUXpresso 配置工具打开”。稍等片刻,配置工具将启动。 打开配置工具后,首先在右侧面板的“概览”中选择“引脚”。 图钉工具现已打开。 启用引脚 P1_8。 点击 P1_8 将打开另一个窗口,如下图所示。在此窗口中找到“GPIO1:GPIO,8(P1_8)”,并勾选其旁边的复选框。 选中该复选框后,将出现以下窗口,但您可以单击“否”将其关闭。 完成这些步骤后,P1_8 将添加到引脚工具底部的布线详细信息中。 接下来,按如下方式更改 GPIO 输入/输出设置。 将输出端的引脚 #38 (P3_12) 连接到未指定端,将未指定端的引脚 #2 (P1_8) 连接到输出端。 GPIO #38 的初始状态将出现错误,请将其从逻辑 0 更改为 n/a。 完成这些步骤后,您就可以重写示例代码了。首先,点击“配置工具”屏幕左上角的“更新代码”。 此时会弹出一个窗口。您可以在这里根据需要查看代码更改。已修改的文件旁边会显示“更改”字样。 返回 VS Code 后,您会在屏幕顶部看到三个复选框。请确保选中它们,然后单击“确定”。 不久之后,源代码的修改就会完成。 接下来,我们将修改源代码 gpio_led_output.c 中的 GPIO 控制目标。 打开 gpio_led_output.c 文件时, 内容如下:   while (1) { delay(); GPIO_PortToggle(BOARD_LED_GPIO, 1u << BOARD_LED_GPIO_PIN); } 按如下方式修改 GPIO_PinInit() 和 GPIO_PortToggle() 的内容: 这里,P1_8 被指定为控制目标,每次调用该函数时,P1_8 的状态都会在高 (1) 和低 (0) 之间切换。 while (1) { delay(); GPIO_PortToggle(GPIO1, 1u << 8); } 更多详情:GPIO 引脚以 Px_y 格式表示,其中x为 GPIO 端口号, y为该端口内的位位置。例如, P1_8表示“GPIO 端口 1 的第 8 位”。 在代码中 GPIO_PortToggle(GPIO1, 1U << 8); 在, GPIO1 1U << 8 表示 GPIO 端口 1, 是一个位掩码,其中只有第 8 位设置为 1。 1U << 8 ↓ 0000 0001 0000 0000 (2進数) 这样就可以只反转(在高电平和低电平之间切换)GPIO 端口 1 中的第 8 位。 将 PC 连接到 FRDM-MCXA153。 调试(构建、编写和运行应用程序)。 调试过程完成后,程序将在断点处停止,因此请点击屏幕顶部的“|▶”图标。 LED灯将开始闪烁。 (function() { var wrapper = document.getElementById('lia-vid-6404528566112w304h540r105'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (显示我的视频) 额外知识——了解 LED 的“开/关”状态 顺便问一下,这个LED灯何时亮起,取决于GPIO输出是高电平(1)还是低电平(0)?我之前提到过,当输出高电平(1)时它会亮起,但我们来验证一下是否正确。 以下是我们之前使用的代码。 `while(1)` 语句表示一个无限循环,重复执行花括号 {} 内的代码。 此外,delay() 函数用于等待特定时间段。GPIO_PortToggle() 是一个 GPIO 控制函数,用于反转高电平 (1) 和低电平 (0)。 while (1) { delay(); GPIO_PortToggle(GPIO1, 1u<<8); } } 但是,这段代码并没有告诉我们,当 LED 为高电平 (1) 或低电平 (0) 时,LED 是亮起还是熄灭。 因此,我们使用不同的函数 GPIO_PinWrite() 来显式控制 GPIO 的状态。 具体来说,代码将修改为在高电平 (1) 状态下等待一次 delay() 调用,然后在低电平 (0) 状态下等待五次 delay() 调用。这样应该能让 LED 保持熄灭状态更长时间。 while (1) { GPIO_PinWrite (GPIO1,8U ,1); delay(); GPIO_PinWrite(GPIO1,8U ,0); delay(); delay(); delay(); delay(); delay(); } 运行调试程序,然后点击屏幕顶部的“|▶”图标。 (function() { var wrapper = document.getElementById('lia-vid-6404528052112w304h540r114'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (显示我的视频) 正如预期的那样,LED灯关闭了更长时间。 这使我们能够验证 LED 在点亮时输出高电平 (1),在熄灭时输出低电平 (0)。 总结一下,当 GPIO 为高电平 (1) 时,设置为 GPIO 引脚的 P1_8 处的电压约为 3.3V。该电压与 GND 之间形成电位差,导致电流流过电阻和 LED。此时,LED 两端施加正向电压(约 2.0V),剩余的约 1.3V 电压施加在电阻两端。因此,LED 点亮。 另一方面,当 GPIO 为低电平 (0) 时,P1_8 端的电压接近 0V。由于 GPIO 引脚与 GND 之间没有电位差,因此没有电流流过,LED 熄灭。 如果你觉得使用大量的 `delay()` 函数看起来很丑陋,你也可以使用循环函数。 while (1) { GPIO_PinWrite(GPIO1, 8U, 1); delay(); GPIO_PinWrite(GPIO1, 8U, 0); for (int i = 0; i < 5; i++) { delay(); } } 附加题——如果将两个LED并联会发生什么? 我尝试将手边的一个绿色LED与一个红色LED并联起来。 由于绿色 LED 的正向电压 (Vf) 一般为 2.0 至 2.2V,我假设它与红色 LED 类似,为 2.0V,并搭建了以下电路。 由于无需更改引脚设置,我使用之前的代码进行调试,红色 LED 闪烁,但绿色 LED 没有闪烁。这是为什么呢? (function() { var wrapper = document.getElementById('lia-vid-6404530194112w304h540r514'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (显示我的视频) LED的特性是,当正向电压(Vf)超过其值时,电流会迅速增加。因此,如果将一个红色LED和一个绿色LED简单地并联,电流会集中在Vf较低的LED上,而另一个LED可能几乎不会发光。在这种情况下,红色LED的Vf低于绿色LED,因此电流集中在红色LED上。 当我用测试仪实际测量 LED 两端的电压时,红色 LED 的电压为 1.765V,绿色 LED 的电压为 1.766V。 在这个电压下,红色LED可以点亮,但绿色LED接收到的电压不足以产生足够的电流。因此,红色LED会亮,而绿色LED不会亮,因为几乎没有电流流过它。 如上图所示,简单地将不同类型的LED并联,即使正向电压(Vf)存在微小差异,也会导致电流出现显著偏差。因此,并联LED时,通常的做法是为每个LED串联一个限流电阻。 添加电阻时,需要考虑 GPIO 的电流限制。如果我们像之前那样直接添加一个 390Ω 的电阻并计算电流,那么施加到 GPIO 上的电流将超过 6mA。因此,为了确保总电流不超过 4mA,我们连接了两个 680Ω 的电阻,并搭建了以下电路。 当我再次调试同一段代码时,红色和绿色 LED 都亮了起来。 (function() { var wrapper = document.getElementById('lia-vid-6405719291112w304h540r698'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (显示我的视频) 测量LED两端的电压时,红色LED的电压为1.750V,绿色LED的电压为1.906V。通过在每个LED上串联一个电阻,可以使合适的电流流过每个LED。 本文解释了嵌入式开发初学者会遇到的“问题”和“障碍”,内容涵盖如何解读各种文档、使用配置工具以及LED的工作原理等。我们希望本文能对那些首次尝试使用NXP微控制器实现LED闪烁的用户有所帮助。 =========================​ 我们目前无法 回复 此帖子“ 评论”部分留下的评论。 对于由此造成的不便,我们深表歉意,但 在进行咨询时, 请 参考“ NXP 技术问题 - 如何联系我们 ( 日语博客 ) ” 。 (如果您已经是 恩智浦的 分销商或 与 恩智浦 有合作关系 ,您可以直接咨询您的代表。) 本文以 LED 闪烁为例,解释了如何使用 GPIO(通用输入/输出),这是微控制器开发中最基本的外部设备之一。 GPIO 是许多微控制器开发人员最先接触的外设之一。很多人想用 GPIO 来点亮 LED,但他们可能不知道如何阅读数据手册或如何配置引脚。本文以 FRDM-MCXA153 为例,讲解 GPIO 的基础知识,面向微控制器开发初学者。我们将学习如何从数据手册和电路图中读取引脚信息,如何使用引脚工具配置设置,并最终体验如何控制外部 LED。 (预计时间:15 分钟)*假设开发环境已安装。 MCUXpresso MCUXpresso 配置工具 MCUXpresso IDE MCUXpresso SDK MCX 日本博客
記事全体を表示
Example S32K344 LPSPI LCD-PAR-S035 FRDM S32DS 3.6.6 RTD 7.0.1 * Detailed Description: * * This project provides a minimal bring-up and reference example for the LCD-PAR-S035 * display and GT911 capacitive touchscreen on the S32K344. It includes standalone LCD * and touchscreen diagnostic modes, together with an LVGL demonstration mode. * * The display is controlled through the LPSPI interface using the ST7796S * display controller driver. The touchscreen is controlled through the LPI2C * interface and uses GPIO signals for interrupt and reset control. * * The original LCD, DBI and touchscreen drivers were obtained from an NXP * App Code Hub MCUXpresso SDK example and adapted to the S32K3 RTD * environment. The project also integrates LVGL 9.4 as the graphical user * interface library. * * The application mode is selected at compile time using the APP_MODE macro * defined in this file. It allows the user to select a standalone display * test, a standalone touchscreen test or the complete LVGL demonstration. * Only one application mode shall be selected for each build. * * A graphical application can be designed using NXP GUI Guider 2.0.1. * GUI Guider is configured for LVGL 9.4.0. The contents of the GUI Guider * "generated" and "custom" output directories can be copied directly into * the corresponding gui_guider directories in this project. After replacing * the generated output, the project shall be rebuilt to include the updated * screens, widgets, events and custom callbacks. * * Installed packages for S32 Design Studio 3.6.6: * * SW32K3_S32M27x_RTD_R23-11_7.0.1_D2603_DesignStudio_updatesite.zip * * Software Sources: * * NXP App Code Hub demo: * https://github.com/nxp-appcodehub/dm-https-lcd-led-demo * * LVGL release/v9.4: * https://github.com/lvgl/lvgl/tree/release/v9.4 * * NXP GUI Guider 2.0.1: * https://www.nxp.com/webapp/Download?colCode=GUI-GUIDER-INSTALLER-2.0.1-WIN&appType=license * * Hardware: * * FRDM-A-S32K344: * Remove jumper JP11 when using an external debugger. * * LCD-PAR-S035: * Set SW1 to 111. * * Board Connections: * * +------------------+----------------------+-----------------+-------------------+------------------------------+ * | FRDM-A-S32K344 | MCU Signal | LCD-PAR-S035 | LCD-PAR-S035 | Function | * | Connector | | Signal | Connector | | * +------------------+----------------------+-----------------+-------------------+------------------------------+ * | J2-20 | PTC27 / GPIO | TP_INT | J5-12 | Touch interrupt, active low | * | J2-19 | PTC7 / LPI2C1_SCL | TP_SCL | J5-8 | Touchscreen I2C clock | * | J2-17 | PTC6 / LPI2C1_SDA | TP_SDA | J5-6 | Touchscreen I2C data | * | J2-13 | GND | GND | J5-4 | Signal ground | * | J2-11 | PTB14 / LPSPI1_SCK | LCD_WR | J5-5 | LCD SPI clock | * | J2-9 | PTB15 / LPSPI1_SIN | LCD_RD | Not connected | SPI data from LCD | * | J2-7 | PTB16 / LPSPI1_SOUT | LCD_MOSI | J5-9 | SPI data to LCD | * | J2-5 | PTB17 / GPIO | LCD_CS | J5-11 | LCD chip select, active low | * | J2-3 | PTC10 / GPIO | LCD_D_C | J5-7 | Command low, data high | * | J2-1 | PTC11 / GPIO | LCD_RST | J5-10 | LCD reset, active low | * | JA3-3 | VDD_HV_A | VCC | J5-1 or J5-2 | 3.3 V supply | * | JA3-13 or JA3-15 | GND | GND | J5-3 | Power ground | * +------------------+----------------------+-----------------+-------------------+------------------------------+ * * Project Files: * * Format: * File or directory - Description - Source - License * * | lvgl_app.c/.h * | LVGL application layer * | Created for this project * | NXP proprietary license * | * | lv_conf.h * | Project-specific LVGL configuration * | Derived from the LVGL v9.4.0 configuration template * | MIT License * | * | lv_port.c/.h * | LVGL initialization and S32K3 port layer * | Created for this project * | NXP proprietary license * | * | main.c * | Application entry point and compile-time mode selection * | Created for this project * | NXP proprietary license * | * +---gui_guider * | +---custom * | | User callbacks and custom GUI logic * | | GUI Guider 2.0.1 output * | | NXP proprietary license * | | * | \---generated * | Generated screens, widgets and events * | GUI Guider 2.0.1 output * | NXP proprietary license * | * +---lcdc * | fsl_st7796s.c/.h * | ST7796S LCD controller driver * | NXP App Code Hub demo * | BSD-3-Clause License * | * +---lcd_par_s035 * | lcd_par_s035.c/.h * | LCD-PAR-S035 board and display integration * | Created for this project * | NXP proprietary license * | * | lcd_par_s035_config.h * | LCD-PAR-S035 project configuration * | Created for this project * | NXP proprietary license * | * +---lvgl * | \---src * | LVGL 9.4 graphics library * | LVGL release/v9.4 * | MIT License * | * +---platform * | display_compat.h * | MCUXpresso SDK and S32K3 RTD compatibility definitions * | Created for this project * | NXP proprietary license * | * | fsl_dbi.c/.h * | Generic display bus interface implementation * | NXP App Code Hub demo * | BSD-3-Clause License * | * | lcd_dbi_s32k3.c/.h * | S32K3 DBI transport implementation using LPSPI * | Created for this project * | NXP proprietary license * | * | lcd_platform.c/.h * | S32K344 board and platform abstraction * | Created for this project * | NXP proprietary license * | * \---touchpanel * fsl_gt911.c/.h * GT911 touchscreen controller driver * NXP App Code Hub demo * BSD-3-Clause License * * gt911_s32k3.c/.h * S32K3 adaptation using LPI2C and GPIO * Created for this project * NXP proprietary license * * ---------------------------------------------------------------------------- * Test Hardware: FRDM-A-S32K344, schematic revision B * MCU: S32K344 * Display: LCD-PAR-S035 with ST7796S controller * Touchscreen: GT911 capacitive touchscreen controller * Debugger: Lauterbach TRACE32 * Build Target: internal_FLASH
記事全体を表示
S32K344 EVB HDQFP172 的 ADC 配置 您好, 我想执行连接到板载电位器的 ADC 通道ADC0_P7 ,并将转换后的值用于调暗板载 LED( GPIO29 )。 配置完成后,显示如下内容: 错误: platform.driver.pins 此外,在配置完成后构建项目时,我们遇到了以下编译错误:image(error_Adc) 我还附上了下面的配置设置。 注:我已添加了示例中的项目。 请解决此问题。 谢谢! 拉基 Re: ADC Configuration for S32K344 EVB HDQFP172 您好, 请尝试按照提示解决“问题”窗口中显示的错误。 大部分个人驱动程序可能不会添加到工具链中。在较新的 S32DS 中,通常在通过配置工具更新代码后,此功能就会消失。或者您需要通过“管理 SDK 元器件”手动添加它。 请确保已选择使用的元器件,然后再次更新代码。 对于 Siul2_Port 元器件,可能出现 2 个错误。 - Pin 工具配置了 2 个引脚,而 Siul2_port 只配置了 1 个引脚,两者设置不匹配。 对于 ADC 输入,无需进行引脚设置,模拟路径始终启用,您可以从引脚工具中删除它。 - 另一个可能是引脚工具中的功能组命名。 如果遇到问题,请分享您的完整项目。 BR,彼得 Re: ADC Configuration for S32K344 EVB HDQFP172 您好, 添加 Siul2_Port 后出现此错误。 我的引脚配置如下: 非常感谢您抽出时间回复。 BR, 拉基 Re: ADC Configuration for S32K344 EVB HDQFP172 您好, 添加 Siul2_Port 元器件,更新代码,并构建。 BR,彼得 Re: ADC Configuration for S32K344 EVB HDQFP172 嗨@PetrS , 谢谢你的关注。 附件如下。 Br, 拉基 Re: ADC Configuration for S32K344 EVB HDQFP172 您好, 您没有上传任何文件或截图。 您可以参考以下使用电位器进行ADC采样的示例: 示例 S32K312 ADC IP 连续扫描 DMA (S32DS 3.6, RTD 6.0.0) RTD400 LLD K344 ADC 软件/硬件触发示例 BR,Petr Re: ADC Configuration for S32K344 EVB HDQFP172 嗨,Petrs, 感谢您的支持。 您能否提供一些关于AUTOSAR版本的资源供我尝试? 我尝试了示例中的项目。但却不起作用。 请帮忙。 BR, 拉基
記事全体を表示
MCUXpresso for VS Code: Combine MCUXpresso or Zephyr projects using AI Introduction This tutorial shows how GitHub Copilot AI, along with the MCUXpresso Combine Projects agent, delivered in the MCUXpresso for VS Code extension, can drive the creation of new projects based on selected examples. MCUXpresso SDK and Zephyr examples from NXP provide a great starting point for learning, but often developers want to combine these examples to rapidly develop prototypes. Instead of manually merging files and resolving build conflicts by hand, an engineer describes the intended combined application in plain language and the agent orchestrates every step.   In this scenario, the engineer asks the agent to accomplish an end-to-end task: Target the FRDM-iMXRT1186 (CM33) board with Zephyr 4.4. Combine the blinky, shell_module, and hello_world examples, all imported fresh from the repository as Freestanding. Add shell commands to turn LED blinking on/off and control the blink rate from the UART console. Clean up the source examples after a successful build. The agent decomposes this request into a sequence of ordered phases – verifying tool availability, selecting and importing examples, enforcing constraints, detecting conflicts, scaffolding a combined project, merging configuration and source, building, and cleaning up. The sections below follow that same order.   The agent supports both Zephyr (prj.conf + devicetree overlays, Zephyr ARM toolchain) and MCUXpresso SDK (SDK components + linker scripts, Arm GNU Toolchain) project types. The scenario shown here uses Zephyr; MCUXpresso SDK projects follow the same flow with the appropriate SDK repository and toolchain.   The agent only performs actions through the extension's own tools, so every step it takes maps directly to functionality you could also trigger manually from the MCUXpresso for VS Code UI. For all structured choices – SDK type, board confirmation, appType , conflict resolution, and cleanup options – the agent uses the #askQuestion tool to surface clickable buttons in the chat UI to reduce the need to type a letter or number by hand. System Architecture   MCUXpresso Combine PROJECTS Agent End-to-End Workflow Overview 📄 Source Projects blinky, shell_module, hello_world (imported or in workspace)     Merge 🤖 Combine Agent MCUXpresso Skills Copilot chat agent     Build 📦 Combined Project combined_ _ single built applicatione   Component Description Source Projects Two or more MCUXpresso Zephyr or MCUXpresso SDK projects targeting the same board. May already be in the workspace or imported fresh by the agent using importExampleFromRepo . Combine Agent The MCUXpresso skill files allow the Copilot agent to orchestrate the full workflow: tool verification, example selection and import (Zephyr or MCUXpresso SDK), constraint enforcement, conflict detection,  project scaffolding, configuration application, source merge, build with DTS regression check(Zephyr only), and cleanup. Uses #askQuestion for all structured choices. Combined Project A new project named combined_ _ , scaffolded from a fresh hello_world example for the same board. The agent merges configuration and source so both functionalities run in the combined app. Getting started   The engineer describes the combined application in a single natural-language prompt, and the agent carries out the ordered phases below – starting the agent, selecting examples, enforcing constraints, resolving conflicts, scaffolding, merging, building, and cleaning up. Prerequisites   Before starting you should have: Visual Studio Code with the MCUXpresso for VS Code extension installed and activated, and GitHub Copilot Chat available. The MCUXpresso tool set enabled in Copilot Chat – click Configure Tools in the bottom-left corner of the chat input window and make sure MCUXpresso is toggled on. At least one SDK or Zephyr repository registered in the extension. A Zephyr / Zephyr NXP repository requires a Zephyr ARM toolchain; an MCUXpresso SDK repository requires an Arm GNU Toolchain. A compatible toolchain installed and reachable from the project's MCUXpresso integrated terminal (installed via the MCUXpresso Installer or the extension's toolchain management). Examples do not need to be imported beforehand – the agent can import them for you during the flow.   Step 1 – Start the agent Open Copilot Chat, select the MCUXpresso Combine Projects agent from the agent picker, or type /mcuxpresso-combine-projects in the chat input. The agent immediately verifies that the MCUXpresso extension tools are accessible in this session by calling listProjectsFromWorkspace . Select the Combine Projects agent or run the /mcuxpresso-combine-projects prompt to start the flow. Phase 0 passes and the agent asks for the SDK type.Select the Combine Projects agent or run the /mcuxpresso-combine-projects prompt to start the flow. Phase 0 passes and the agent asks for the SDK type. Select the Combine Projects agent or run the /mcuxpresso-combine-projects prompt to start the flow. Phase 0 passes and the agent asks for the SDK type.   Alternatively, you can include all required details in the opening prompt and the agent will proceed without asking for them one by one: Providing board, SDK version, example names, appType, and cleanup preference in one prompt lets the agent skip the individual selection questions and go straight to board confirmation.   If the tool call succeeds, the agent proceeds to example selection. If it fails – because the MCUXpresso tool set is not enabled – it stops and tells the user how to enable it via Configure Tools.   Throughout the flow the agent uses the #askQuestion tool to present structured choices (SDK type, board confirmation, appType , conflict resolution, cleanup options) as clickable buttons in the chat UI. You never need to type a letter or number by hand. Plain text is accepted as a fallback when #askQuestion is unavailable.   Constraint: the agent will not advance past this point until the MCUXpresso tools are confirmed available in the current chat session.   Step 2 – Select examples The agent asks for the SDK type (Zephyr or MCUXpresso SDK), then lists the projects currently in the workspace. The engineer chooses which examples to combine – by picking from the workspace list, by naming examples to import fresh, or by mixing both approaches. When more than one matching repository is installed, the agent asks which one to use, then collects the example names and target board.   For any example not yet in the workspace, the agent runs the full import discovery chain: listRepositories → filter to the chosen SDK type → repository selection (if more than one matching repository is found, the agent presents them as a numbered list and asks which one to use for all imports in this session) → listSupportedBoards → explicit board confirmation → listSupportedExamples → user chooses appType → importExampleFromRepo . After each import, listProjectsFromWorkspace is called to confirm the project is registered. If the project files exist on disk but do not appear in the workspace list, the agent automatically falls back to importProject to register the on-disk folder. The agent always asks the user to explicitly confirm the resolved board before listing or importing any examples.   The agent resolves the exact template IDs for each requested example and asks for confirmation before importing.   The agent imports all confirmed source examples into the workspace.   Constraints: the SDK type must be chosen explicitly; appType must be chosen by the user for every import – the agent never assumes a default. The board is always confirmed with the user before any example is listed or imported. The chosen repository is reused consistently for every import in the session, including the hello_world scaffold.   Step 3 – Verify constraints Before any merging begins, the agent enforces three hard constraints across all selected examples: At least two examples must be in the confirmed set. Same SDK type – all examples must use the SDK type chosen in the previous step (Zephyr or MCUXpresso SDK). Same board and core – the BOARD id and variant/core qualifier must be identical across all examples. Different cores of the same SoC do not match.   Constraint: if any gate check fails, the agent stops immediately, reports exactly what is wrong, and waits for the user to correct the problem. It will not fabricate a board match or SDK-type match.   Step 4 – Detect conflicts The agent scans all selected examples for devicetree, Kconfig, and memory-layout conflicts – pin or pinctrl reuse for different functions, chosen nodes pointing at different UARTs, the same CONFIG_* symbol set to incompatible values, and overlapping flash partitions or memory regions.   Non-conflicting settings – distinct peripheral enables, independent Kconfig flags, additional aliases, non-overlapping memory regions – are auto-merged into the combined project without asking. They appear in an Auto-merged summary. The conflict report lists auto-merged settings and presents any true conflicts as numbered options for the user to choose from.   Conflicting settings are presented as a numbered list: option A keeps the value from example X, option B keeps the value from example Y, and option C provides a safe combined value where one genuinely exists. The agent records every decision before continuing.   When no true conflicts are found, the agent says so explicitly, lists the full auto-merged configuration union, and continues straight to scaffolding the combined project without asking for any resolution choices.   Constraint: the agent never resolves a conflict silently – every conflict requires an explicit user choice. Non-conflicting settings are always auto-merged without prompting. Step 5 – Create the combined project The agent imports a fresh hello_world example for the same board – following the same import discovery chain and asking the user for appType – and uses it as the scaffold for the combined application. The default name is combined_ _ ; the user can accept the default or provide a custom name. The agent asks for both the project name and the appType for the scaffold before importing it. The agent confirms the combined project name and appType, then imports the fresh hello_world scaffold as the base for the merge.   The agent then applies the conflict resolutions chosen in the previous phase and auto-includes all non-conflicting configuration from every source example – every peripheral enable, Kconfig flag, alias, and memory region that was listed as auto-merged is added without further prompting.   Constraint: the agent never silently drops a setting a source example needed, and never adds settings that were not present in at least one source example. Step 6 – Merge sources The agent merges the application source from every example into the combined project so both functionalities run. It inventories each example's source files and CMakeLists.txt entries, then: Copies source and header files into the combined project, renaming collisions (e.g. main.c → app_blinky.c ) and prefixing any clashing symbols. Refactors each example's main() into a callable init/run function. Writes a combined main() that runs both workloads – using separate Zephyr threads if either example blocks or loops forever, cooperative calls if both are short. Merges CMakeLists.txt source lists, component dependencies, include directories, and linked libraries, removing duplicates. The merged main.c combines both workloads; prj.conf reflects the union of all required Kconfig settings.   Shared resources – console, GPIO, timers – are reconciled according to the conflict-resolution decisions from the previous phase. Both examples' output is routed to the single chosen console.   Step 7 – Build and verify The agent builds the combined project using the MCUXpresso for VS Code extension build tools ( buildProject / rebuildProject ). It monitors compile and link errors, iterates on fixes, and reports the final FLASH and RAM usage from the build output.   Build restriction: the agent never invokes cmake , ninja , make , or west build directly in a terminal. All builds, cleans, and rebuilds go exclusively through the MCUXpresso extension tools ( #buildProject , #cleanProject , #rebuildProject ). Running build commands in a raw terminal bypasses the extension's environment and toolchain configuration and will produce incorrect results.   After a successful build the agent provides a full summary: what was combined, the conflicts and their resolutions, the new project name and location, and how to flash the firmware to the target board.   Step 8 – Clean up Once the build succeeds, the agent asks what to do with the source examples used for combining. It never touches the combined project itself: A. Keep all source examples in the workspace. B. Remove all source examples from the workspace (with a separate confirmation for disk deletion). C. Choose per example – the agent asks about each one individually. The agent offers three cleanup options for the source examples and asks for explicit confirmation before any disk deletion.   For any removal the agent calls removeProject , asks a follow-up question confirming whether the files should also be deleted from disk, and then re-checks the workspace list to confirm the cleanup is complete.   Constraint: the agent never deletes files from disk without explicit user confirmation. The combined project is never offered for removal. Verifying the Result   The workflow is successful when all of the following hold: The verification gate passed: at least two examples, all sharing the same SDK type and the same board and core. All conflicts were resolved by explicit user choice; all non-conflicting settings were auto-merged. The combined project (e.g. combined_blinky_shell_module_hello_world ) appears in the workspace (confirm with listProjectsFromWorkspace ). The build completed without errors and produced a firmware artifact. The build summary reports the expected FLASH and RAM usage for both combined workloads. Source examples were handled per your chosen cleanup option Troubleshooting   Most issues fall into one of the categories below.   Symptom Likely cause Suggested action MCUXpresso tools not available The MCUXpresso tool set is not enabled in Copilot Chat Click Configure Tools in the bottom-left corner of the chat input, enable the MCUXpresso tool set, then restart the conversation. Verification gate fails – board mismatch Selected examples target different boards or core variants Re-import the mismatched example targeting the correct board, or replace it with a compatible one. Import did not register in workspace importExampleFromRepo succeeded but the project is not listed by listProjectsFromWorkspace The agent automatically falls back to importProject to register the on-disk folder. If this also fails, manually add the project folder via the MCUXpresso Projects view. Configure fails after import Board revision in CMakePresets.json uses the wrong case (e.g. @b instead of @B ) The agent detects and corrects the board revision in CMakePresets.json , cleans the build directory, and re-runs configure and build automatically. Build fails with stale CMake cache A previous failed configure left a partial build directory The agent cleans the build/ directory and re-runs configure before rebuilding. You can also delete the build/ folder manually and run configure again from the MCUXpresso terminal.   Examples
記事全体を表示
i.MX RT1176 – FlexIO2 并行接收:可实现的最大时钟移位是多少?仅达到约 48 MSPS iMXR1176 SDK 25.09.00 清单 3.15.0 目标 我正在从 i.MX RT1176 上的 LTC2164 16 位 ADC 获取数据。数据路径为: LTC2164(全速率CMOS输出)→ FlexIO2(并行接收)→ eDMA → 外部同步动态随机存取存储器(SDRAM) 硬件设置 LTC2164 配置为全速率 CMOS 输出模式,由外部 100 MHz 振荡器提供时钟信号(即 100 MSPS,16 位并行)。 ADC 数据输出 D0–D15 连接到 GPIO_AD_00 … GPIO_AD_15。 ADC CLKOUT+ 连接到 GPIO_AD_30,用作 FlexIO 定时器时钟(外部引脚时钟源)。 软件设置 FlexIO2 配置为并行接收器,数据锁存到移位器 7;移位器 7->0 串联起来,以便在 DMA 请求钳位之前缓冲 32 字节。 eDMA 由 kDmaRequestMuxFlexIO2Request0Request1 触发,使用两个 TCD 以乒乓(分散/聚集)模式运行。每次主循环完成时都会引发中断,即每 16384 个样本一次。 FlexIO2 功能时钟:120 MHz。 总线时钟(eDMA / SEMC 侧):240 MHz。 问题 在 100 MSPS 下,采集 16384 个样本需要163.84 µs 。通过测量两个连续 DMA 中断之间的时间(GPIO 切换 + 示波器),我始终得到338 µs ,即 ~2.06 倍。 这相当于大约48 MSPS的有效持续速率,这表明瓶颈在于 FlexIO 端,而不是 ADC 或 SDRAM。 问题 RT1176 上 FlexIO 在并行接收模式下是否有记录在案的最大移位时钟频率?我在参考手册或数据表中都找不到这样的数据。 当定时器时钟源为外部引脚时,FlexIO 功能时钟与外部移位时钟之间所需的比率是多少?我的 FlexIO 时钟 (120 MHz) 只是输入 100 MHz 时钟的 1.2 倍——这足够吗?还是输入同步逻辑需要 2 倍或 4 倍? 鉴于我观察到的几乎精确的 ×2 比率,这是否可能是由于 FlexIO 定时器在时钟的两个边沿递减(TIMCMP 约定)造成的,这意味着我的定时器比较值实际上将吞吐量减半? 任何关于 FlexIO + eDMA 在此部分上的最大实际持续吞吐量的指导都将非常有帮助,因为这决定了我是否需要迁移到不同的外设或外部 FIFO。 先行致谢。 通信与控制(I3C | I2C | SPI | FlexCAN | 以太网 | FlexIO) Re: i.MX RT1176 – FlexIO2 parallel receive: maximum achievable shift clock? Only ~48 MSPS reached 您好,谢谢您的回复。我确实达到了预期的性能,但这仅仅是通过超过 Flexio 外设的最大推荐时钟频率来实现的;具体来说,要达到 100 MSps 的采集速率,需要将时钟频率配置为 200 MHz 以上,而不是 120 MHz,而 120 MHz 的配置会导致时钟边沿丢失。问题是,即使它在 200 MHz 下工作(尽管参考手册规定最大频率为 120 MHz),我也无法保证在不同的温度条件下或不同生产批次之间可靠运行。 Re: i.MX RT1176 – FlexIO2 parallel receive: maximum achievable shift clock? Only ~48 MSPS reached 你好@azed38 , 请注意,当使用外部引脚作为时钟源时,会引入较小的同步延迟。根据 RM 第 67.3.3.2 节,此延迟范围为 0.5 至 1.5 个 FlexIO 时钟周期: Habib_MS_1-1788818202534.pngHabib_MS_1-1788818202534.pngHabib_MS_1-1788818202534.png 关于 FlexIO 和 DMA 可达到的最大吞吐量,目前还没有针对 FlexIO 和 DMA 的性能测试。不过,您可能会发现AN12686很有用,因为它演示了使用 FlexIO 和 DMA 的并行通信实现,这可能会为您的用例提供相关指导。 BR 哈比卜 Re: i.MX RT1176 – FlexIO2 parallel receive: maximum achievable shift clock? Only ~48 MSPS reached 你好@azed38 , 我注意到您已经通过其他渠道获得了关于此主题的支持,因此我们将继续通过该渠道提供支持,以保持所有沟通的集中化。我只想补充一点,如果 FlexIO 的运行频率超过其最大规格,可能会导致意外行为,从而影响您的最终应用程序。根据 RM 表 15-4“时钟根”中提供的信息,我建议使用最大频率 120 MHz。 BR 哈比卜 Re: i.MX RT1176 – FlexIO2 parallel receive: maximum achievable shift clock? Only ~48 MSPS reached 您好, 这个问题很可能是由于第 67.3.3.2 节中描述的引脚同步延迟造成的。参考手册中的“引脚同步”部分。 考虑到前面提到的设置,问题的根本原因是输入数据频率与 FlexIO 上的工作时钟频率之间的比率,这是由于该模块前面提到的引脚同步延迟造成的。 例如,由于存在引脚同步延迟,FlexIO 模拟外设(如 SPI 主控)只能以 FlexIO 工作时钟频率的四分之一的最大波特率运行。如 RM 第 67.4.3 节所述:“由于同步延迟,串行输入数据的建立时间为 1.5 个 FlexIO 时钟周期,因此最大波特率除以 FlexIO 时钟频率的 4。” 在这种情况下,吞吐量预计会降低,而且由于引脚同步延迟是 FlexIO 模块固有的特性,因此没有解决办法。 因此,为了确保正常运行,FlexIO 模块的最大工作频率为 120MHz,RT1170 无法达到预期的 100MSPS。 BR 哈比卜 Re: i.MX RT1176 – FlexIO2 parallel receive: maximum achievable shift clock? Only ~48 MSPS reached 鉴于我观察到的几乎精确的 ×2 比率,这是否可能是由于 FlexIO 定时器在时钟的两个边沿递减(TIMCMP 约定)造成的,这意味着我的定时器比较值实际上使吞吐量减半? 我只是想提一下,是的,FlexIO 定时器在由引脚或触发信号驱动时,对双边沿敏感。因此,如果你的外部信号包含一个上升沿和一个下降沿,你的定时器就会对其比较值进行两次计数。 另外,根据我目前使用 FlexIO 的经验,我猜测你只能处理频率不超过 FlexIO 时钟频率一半的外部信号。除此之外,它还能如何感知双面边缘?为了检测边沿,它需要在每个时钟周期内对外部引脚进行两次采样。
記事全体を表示
i.MX8M Plus – Is there any way to access MIPI CSI-2 Embedded Data (DT 0x12) together with RAW image Hello NXP Community, we are currently integrating a MIPI CSI-2 RAW image sensor with an i.MX8M Plus and would like to clarify whether there is any supported or technically possible way to make the sensor's CSI-2 Embedded Data (Data Type 0x12) available to software on the target. Our camera stream has the typical CSI-2 structure: Frame Start Embedded Data DT = 0x12 RAW image data DT = 0x2A / 0x2B / 0x2C Frame End The image data is captured through the MIPI CSI-2 receiver → Gasket → ISI → memory/V4L2 path and this part is working correctly. The problem is that we additionally need the Embedded Data belonging to each frame. The metadata contains frame-related sensor information, and therefore it is important that the metadata can be associated with the corresponding captured image. According to the i.MX 8M Plus Applications Processor Reference Manual, the MIPI CSI-2 receiver provides configurable data-type handling through the CSI-2 receiver registers, in particular the MIPI_CSIx_ISP_CONFIG0 / DATAFORMAT configuration. The relevant MIPI CSI-2 Rx / CSIS register descriptions are in Chapter 13.5, MIPI CSI-2, and in older revisions of the Reference Manual the supported image data types are described around Section 13.5.6.13. We also found NXP Application Note AN13857 – i.MX 8M Series MIPI Capture System, especially Section 7, "Embedded data support". AN13857 states that a stream containing Embedded Data with DT=0x12 and image data with another data type is considered data type interleaving, and that the i.MX 8M series capture system does not support this mode. The suggested workaround is to configure the sensor to transmit the embedded data using the same data type as the image data. Unfortunately, this workaround is not possible with our sensor. The sensor transmits standard CSI-2 Embedded Data using DT 0x12, while the image data uses the corresponding RAW data type. The Embedded Data data type cannot be changed to the RAW image data type. However, we found an older NXP Community discussion specifically concerning the i.MX8MP where NXP TechSupport stated that the CSI hardware should support DT=0x12, while the BSP did not support metadata at that time: https://community.nxp.com/t5/i-MX-Processors/I-MX8MP-capture-MIPI-embedded-data/td-p/1383845 There is also an older discussion about accessing CSI-2 Embedded Data on i.MX8M devices: https://community.nxp.com/t5/i-MX-Processors/Does-iMX8M-CSI-support-metadata-embedded-data/m-p/977554 Therefore, we would like to clarify whether the limitation described in AN13857 applies to the complete hardware path, or mainly to the currently supported ISI/V4L2 capture architecture. Our main question is: Is there any way on the i.MX8M Plus to receive or access the payload of CSI-2 packets with Data Type 0x12 while simultaneously capturing the RAW image stream, even if this requires modifications to the Linux driver? For example, would any of the following approaches be technically possible? Route DT=0x12 and the RAW image data through different CSI/ISI paths or channels. Access the Embedded Data before the ISI, directly from the MIPI CSI-2 receiver. Configure an additional CSI-2 receiver channel/interface for DT=0x12. Use another DMA or memory path for the Embedded Data. Extend the NXP Linux CSI/ISI driver to expose the Embedded Data as a V4L2 metadata node or separate /dev/videoX device. Use any undocumented or currently unsupported hardware functionality of the CSI-2 receiver that would allow the DT=0x12 payload to reach memory. We do not necessarily require an officially supported V4L2 metadata implementation. If the i.MX8M Plus hardware is capable of transferring the DT=0x12 payload to memory, we would also be interested in implementing the necessary kernel/driver changes ourselves. Could NXP please clarify whether the restriction described in AN13857 is: a fundamental hardware limitation of the i.MX8M Plus CSI-2 → Gasket → ISI architecture, meaning that the DT=0x12 payload cannot be transferred to memory while RAW image data is being captured, or a software/driver limitation, for which a custom driver implementation could provide access to the Embedded Data? If it is a hardware limitation, is there any alternative mechanism on the i.MX8M Plus to obtain the Embedded Data payload without changing the camera's CSI-2 output format? Thank you for any clarification or implementation hints. Best regards, Peter Re: i.MX8M Plus – Is there any way to access MIPI CSI-2 Embedded Data (DT 0x12) together with RAW im Hello, The limitation in application note is a hardware architecture limitation of the i.MX8M Plus CSI. The downstream ISI block has no mechanism to separate DT=0x12 payload from the RAW stream. Unfortunately, there is no supported or officially workaround that mentioned in application note. Best regards. Re: i.MX8M Plus – Is there any way to access MIPI CSI-2 Embedded Data (DT 0x12) together with RAW im Does the answer change when using the integrated ISP instead of the ISI? Our RAW Bayer stream can alternatively be routed from the MIPI CSI-2 receiver to the integrated ISP. Is there any mechanism in the ISP capture path to receive or preserve CSI-2 Embedded Data packets (DT=0x12)? In particular, can the ISP or its input interface separate the RAW image data and Embedded Data, or provide the Embedded Data to software through an ISP statistics/metadata buffer? If not, are the DT=0x12 packets simply discarded by the CSI-to-ISP pixel interface?
記事全体を表示
定时器触发DMA传输 你好, 我目前正在使用MCXN947微控制器。 我尝试通过 CTIMER 匹配中断触发 DMA 数据传输到采样缓冲区。 其思路是通过 DMA 每隔 x 个定时器间隔(具体来说是每隔 10 微秒)将 GPIO 寄存器的状态(具体来说是某些引脚的输入值)写入采样缓冲区。 我可以确认我的GPIO引脚已正确配置为输入。 我可以确认我的计时器工作正常,每 10 微秒触发一次比赛。 我可以确认我的 DMA 传输工作正常,因为缓冲区会被值填满。 我可以确认源地址(GPIO PDIR 寄存器)在 DMA 配置中已正确设置。 我可以确认我的目标地址在 DMA 配置中也设置正确,因为它始终位于缓冲区起始地址和结束地址之间(这意味着它可以正确递增和循环)。 但不知何故,错误的值被复制到了缓冲区中。我在调试器中看到,我尝试传输的寄存器的值为0x00020000 (引脚 17 为高电平,其余引脚为低电平)。但是,我的缓冲区只填充了0秒。这是一个 uint32_t 类型的缓冲区,包含 512 个元素,全部初始化为0xFF 。随着 DMA 传输的增加,整个缓冲区逐渐被0x0填充,而不是预期的0x00020000值(该值永远不会改变 - 引脚 17 始终为高电平)。 你知道这是什么原因造成的吗?或者我可能遗漏了什么? 以下是我的驱动程序配置: 计时器: CTIMER0 kCTIMER_Match_1 CTIMER0_IRQn(中断触发回调是可选的,但我为了调试目的在我的代码中使用它) DMA: DMA0 kDma0RequestMuxCtimer0M1 kINPUTMUX_Ctimer0M1ToDma0Ch8Ena EDMA_0_CH8_IRQn(中断触发回调是可选的,但我为了调试目的在我的代码中使用它) GPIO: GPIO3 端口3 引脚 17 以下是开始采样之前寄存器的状态。 reg_gpio3.pngreg_gpio3.pngreg_gpio3.pngreg_gpio3.png reg_port3.pngreg_port3.pngreg_port3.pngreg_port3.png reg_edma0_ch8.pngreg_edma0_ch8.pngreg_edma0_ch8.pngreg_edma0_ch8.png reg_inputmux0_dma.pngreg_inputmux0_dma.pngreg_inputmux0_dma.pngreg_inputmux0_dma.png reg_inputmux0_timer.pngreg_inputmux0_timer.pngreg_inputmux0_timer.pngreg_inputmux0_timer.png reg_ctimer0.pngreg_ctimer0.pngreg_ctimer0.pngreg_ctimer0.png             MCX N Re: Timer triggers DMA transfer 你好, 由于IP限制,我无法将我的整个项目发送给您。不过,我可以给你一个包含我的设置的小应用程序的 c 文件。GPIO、DMA 和定时器配置与我这边的相同。文件已附上。 Re: Timer triggers DMA transfer 你好@jabitbe2_jcplc 您能否与我们分享一下您的项目?我想尝试重现这个问题,并在我这边进行调查。 谢谢! 此致, 爱丽丝 Re: Timer triggers DMA transfer 你好@jabitbe2_jcplc MCXN947 支持 TrustZone 和网络安全归因控制。 如果访问源自与引脚安全配置不匹配的安全域,则对相应 GPIO 寄存器的读写操作可能无效。 请您确认 GPIO3 引脚 17 对应的位是否配置为允许非安全访问,并再次进行测试? 如果该位当前配置为仅安全,则意外的 GPIO 行为可能与 TrustZone 安全设置有关。 谢谢! BR 爱丽丝
記事全体を表示
[i.MX8MM] DDR PHY 训练固件日志级别:“最大调试”值并集成到 U-Boot 中 尊敬的恩智浦技术支持团队: 我们目前正在使用 MSC DDR 工具/DDR 测试工具调试我们定制的 i.MX 8M Mini 平台上的 DDR 训练问题,并希望澄清 PHY 日志级别配置。 1. 关于配置值 在 DDR 工具 GUI 中, “PHY 日志级别”下拉菜单包含以下选项: 固件已完成 断言消息 阶段完成 粗略调试 详细调试 最大调试 我们检查生成的 .ds 文件。我们注意到脚本中包含一些关于 TrainInfo 设置的注释: # 以下内容仅供工厂内部使用,强烈建议不要更改。 ddrparam 设置 TrainInfo 0x04 # 0x05 = 详细调试(例如眼部延迟) # 0x0A = 粗略调试信息(例如排名信息) # 0xC8 = 阶段完成 # 0xC9 = 断言消息 # 0xFF = 固件完成 # 其他 = 已预留 我们希望直接在 U-Boot SPL 中配置此 PHY 日志详细程度,以便在启动初期通过 UART 捕获完整的训练日志。 2. 将 PHY 日志级别移植到 U-Boot / SPL (lpddr4_timing.c) TrainInfo 日志详细程度参数能否在 DDR 时序结构中定义(例如,在 lpddr4_timing.c 或 SPL 中的 DDR PHY 初始化序列中)? 如果可以,能否请您指导我们如何将 `ddrparam set TrainInfo 0x04` 正确地集成到我们的 U-Boot 代码库中?如果您能指出 lpddr4_timing.c (或 PHY 消息块)中应该映射此参数的具体结构或寄存器,我们将不胜感激。 谢谢你的帮助。 Re: [i.MX8MM] DDR PHY Training Firmware Log Level: Value for "Maximal Debug" and Integrati 你好, Train Info 是一个 PHY 固件参数,通常不是 LPDDR4 时序结构的一部分。我不会直接添加 0x04。 Re: [i.MX8MM] DDR PHY Training Firmware Log Level: Value for "Maximal Debug" and Integrati 你好, 感谢您的回复。 在最近的测试中,我们需要使用以下PHY固件参数启用DDR训练调试信息: ddrparam 设置 TrainInfo 0x04 能否指导我们如何将此命令转换为 U-Boot SDK 中的 C 代码或将其集成到 U-Boot SDK 中(例如,特定的驱动程序结构、API 或配置定义)? 多谢。
記事全体を表示
配备 IMX93 芯片组的 Bytesatwork Devboard 1.0 已损坏 大家好,我尝试在配备 IMX93 芯片组的 Bytesatwork Devboard ver 1.0 的 EMMC 上运行 SD-yocto 镜像,但在修改 U-Boot 变量以强制其从 EMMC 启动时,导致开发板变砖了。该镜像为官方 Yocto 镜像(版本 1.0)。5.0.15) 适用于 byteDevkit。 由于无论我在开机前、开机期间还是开机后尝试进行控制台输入,板不再接受 UART 输入,因此在尝试从 SD 卡启动时,我无法执行任何操作。 尝试通过 uuu 和 USB 连接将映像直接刷入 EMMC 也未能成功。uuu 可以使用 -lsusb 命令识别 USB 连接,但是当我尝试刷写镜像时,总是会收到“pipeline -9 broken”的错误提示。我已经用 zadig 将驱动程序更改为 WinUSB,并使用 USB 3.0,因为我的笔记本电脑没有 USB 2.0 端口。 由于我既没有足够的技能也没有足够的知识来尝试构建一个修改过的镜像来解决这个问题,我真的束手无策了,希望你们中的一些人能够帮帮我。 在我对启动环境进行以下更改后,系统彻底崩溃了: -> setenv bootcmd 'mmc dev 0; ext4load mmc 0:1 ${kernel_addr_r} /boot/Image; ext4load mmc 0:1 ${fdt_addr_r} /boot/imx93-bytedevkit.dtb; booti ${kernel_addr_r} - ${fdt_addr_r}' => saveenv 如果我尝试从 EMMC 启动系统(启动模式 0100),系统冻结前会输出以下信息: U-Boot SPL 2024.04-lf_v2024.04_6.6.52_2.2.x-r2+g82d4220bc6b+p0 (2025年7月11日 - 05:04:16 +0000) SOC:0xa1009300 LC:0x2040010 PMIC:PCA9451A PMIC:过驱动电压模式 DDR:3733MTS M33 准备就绪 正常启动 尝试从 BOOTROM 启动 启动阶段:主启动映像偏移量 0x8000,页面大小 0x200,ivt 偏移量 0x0 通过 ROM_API 从 0x58000 加载镜像 注意:TRDC 初始化完成 通知:BL31:v2.10.0(版本):lf-6.6.52-2.2.1 通知:BL31:构建时间:2025年7月7日 06:40:36 如果我尝试从 SD 卡启动(启动模式 1100),在系统冻结之前会看到以下输出: U-Boot 2024.04-lf_v2024.04_6.6.52_2.2.x-r2+g82d4220bc6b+p0 (2025年7月11日 - 05:04:16 +0000) 重置状态:POR CPU:NXP i.MX93(52) Rev1.1 A55,频率 1700 MHz CPU:工业级耐温等级(-40℃至105℃),工作温度39℃ 型号:bytesatwork byteDEVKIT 上的 i.MX93 动态随机存取存储器(DRAM):992 MiB 核心:203 个设备,29 个微类,设备树:独立 MMC:FSL_SDHC:0,FSL_SDHC:1 从MMC加载环境... 成功 视频链接设置失败 输入:串行 输出:串口 错误:串行 构建信息: - ELE固件版本2.0.2-c4131933 UID:401ce440f1124110bd234b09e4709d88 闪存目标是 MMC:0 网: 警告:以太网@428a0000 (eth1) 使用随机 MAC 地址 - 9e:a6:f6:dc:09:91 警告:以太网@42890000 (eth0) 使用随机 MAC 地址 - ce:8f:b2:02:6b:f5 eth0:以太网@42890000,eth1:以太网@428a0000 [PRIME] Fastboot:正常 普通启动 1 秒内自动启动 切换到分区 #0,确定 mmc0(第 0 部分)是当前设备 读取了 35777024 字节,耗时 109 毫秒 (313 MiB/s) 2毫秒内读取了42568字节(20.3 MiB/s) ## 位于 83000000 的扁平化设备树 blob 使用位于 0x83000000 的 fdt blob 启动 工作 FDT 设置为 83000000 正在加载设备树至 000000008fff2000,结束于 000000008ffff647 ... 成功 工作 FDT 设置为 8fff2000 正在启动内核... [ 0.000000] 在物理 CPU 0x0000000000 上启动 Linux [0x412fd050] [ 0.000000] Linux 版本 6.6.52-r2-g472e64a0fc2c(oe-user@oe-host)(aarch64-poky-linux-gcc(GCC)13.4.0,GNU ld (GNU Binutils) 2.42.0.20240723) #1 SMP PREEMPT UTC 2025 年 7 月 8 日星期二 12:00:06 [ 0.000000] 由于缺少种子,KASLR 已禁用 [ 0.000000] 机器型号:bytesatwork byteDEVKIT OSM i.MX93 [ 0.000000] efi:未找到 UEFI。 [ 0.000000] OF: 保留内存: 0x0000000096000000..0x0000000097dfffff (30720 KiB) nomap 不可重用 optee_core@96000000 [ 0.000000] OF: 保留内存: 0x0000000097e00000..0x0000000097ffffff (2048 KiB) nomap 不可重用 optee_shm@97e00000 [ 0.000000] 保留内存:在 0x00000000a4120000 创建了大小为 1 MiB 的 DMA 内存池 [ 0.000000] OF: 保留内存:已初始化节点 ele-reserved@a4120000,兼容 ID shared-dma-pool [ 0.000000] OF: 保留内存: 0x00000000a4120000..0x00000000a421ffff (1024 KiB) nomap non-reusable ele-reserved@a4120000 [ 0.000000] NUMA:未找到 NUMA 配置 [ 0.000000] NUMA:在 [mem 0x0000000080000000-0x00000000bfffffff] 处伪造一个节点 [ 0.000000] NUMA: NODE_DATA [内存 0xbfddb6c0-0xbfdddfff] [ 0.000000] 区域范围: [ 0.000000] DMA [内存 0x0000000080000000-0x00000000bfffffff] [ 0.000000] DMA32 为空 [ 0.000000] 正常空 [ 0.000000] 每个节点的可移动区域起始位置 [ 0.000000] 早期内存节点范围 [ 0.000000] 节点 0: [内存 0x0000000080000000-0x0000000095ffffff] [ 0.000000] 节点 0: [内存 0x0000000098000000-0x00000000a411ffff] [ 0.000000] 节点 0: [内存 0x00000000a4120000-0x00000000a421ffff] [ 0.000000] 节点 0: [内存 0x00000000a4220000-0x00000000bfffffff] [ 0.000000] 初始化内存设置节点 0 [内存 0x0000000080000000-0x00000000bfffffff] [ 0.000000] 在节点 0 上,区域 DMA:8192 页处于不可用范围 [ 0.000000] cma:在节点 -1 的 0x00000000bcc00000 处保留 32 MiB 空间 [ 0.000000] psci:从 DT 探测管道方法。 [ 0.000000] psci: 固件中检测到 PSCIv1.1。 [ 0.000000] psci:使用标准 PSCI v0.2 函数 ID [ 0.000000] psci:无需进行可信操作系统迁移 [ 0.000000] psci:SMC 调用约定 v1.4 [ 0.000000] percpu:嵌入式 22 页/CPU s50856 r8192 d31064 u90112 [ 0.000000] 在 CPU0 上检测到 VIPT 指令缓存 [ 0.000000] CPU 特性:检测到:GIC 系统寄存器 CPU 接口 [ 0.000000] CPU 功能:已检测到:虚拟化主机扩展 [ 0.000000] CPU 特性:检测到:高通勘误表 1009,或 ARM 勘误表 1286807、2441009 [ 0.000000] CPU 特性:检测到:ARM 勘误表 1165522、1319367 或 1530923 [ 0.000000] 替代方案:应用启动替代方案 [ 0.000000] 内核命令行: [ 0.000000] 目录项缓存哈希表条目:131072(阶数:8,1048576 字节,线性) [ 0.000000] Inode 缓存哈希表条目:65536(阶数:7,524288 字节,线性) [ 0.000000] 节点 0 的回退顺序:0 [ 0.000000] 已构建 1 个区域列表,移动性分组已启用。总页数:249856 [ 0.000000] 政策区域:DMA [ 0.000000] 内存自动初始化:栈:全部为零,堆分配:关闭,堆释放:关闭 [ 0.000000] 软件 IO TLB:区域编号 2。 [ 0.000000] 软件 IO TLB:已映射 [内存 0x00000000b8c00000-0x00000000bcc00000] (64MB) [ 0.000000] 内存:可用 859732K/1015808K(内核代码 21248K,读写数据 1658K,只读数据 7848K,初始化 4032K,BSS 641K,保留 123308K,CMA 保留 32768K) [ 0.000000] SLUB:硬件对齐=64,顺序=0-3,最小对象数=0,CPU数=2,节点数=1 [ 0.000000] rcu:可抢占式分层 RCU 实现。 [ 0.000000] rcu: RCU 事件跟踪已启用。 [ 0.000000] rcu: RCU 将 CPU 数量从 NR_CPUS=256 限制为 nr_cpu_ids=2。 [ 0.000000] 已启用 Tasks RCU 的 Trampoline 变体。 [ 0.000000] 任务 RCU 的跟踪变体已启用。 [ 0.000000] rcu: RCU 计算出的调度程序注册延迟值为 25 jiffies。 [ 0.000000] rcu:正在调整 rcu_fanout_leaf=16、nr_cpu_ids=2 的几何结构 [ 0.000000] NR_IRQS:64,nr_irqs:64,预分配中断:0 [ 0.000000] GICv3:GIC:使用分离式 EOI/停用模式 [ 0.000000] GICv3:实施了 960 个 SPI [ 0.000000] GICv3:已实现 0 个扩展 SPI [ 0.000000] 根中断处理程序:gic_handle_irq [ 0.000000] GICv3:GICv3 特征:16 PPI [ 0.000000] GICv3: CPU0: 找到分发器 0 区域 0:0x0000000048040000 [ 0.000000] rcu: srcu_init: 根据争用情况设置 srcu_struct 大小。 [ 0.000000] arch_timer: cp15 定时器以 24.00MHz (phys) 运行。 [ 0.000000] 时钟源:arch_sys_counter:掩码:0xffffffffffffff 最大周期数:0x588fe9dc0,最大空闲时间(纳秒):440795202592 纳秒 [ 0.000000] 调度时钟:56 位,频率 24MHz,分辨率 41ns,每 4398046511097ns 溢出 [ 0.000309] 控制台:彩色虚拟设备 80x25 [ 0.000317] printk: 控制台 [tty0] 已启用 [ 0.000688] 校准延迟循环(已跳过),该值使用定时器频率计算得出。48.00 BogoMIPS (lpj=96000) [ 0.000706] pid_max:默认值:32768 最小值:301 [ 0.000759] LSM:初始化 lsm=能力、完整性 [ 0.000843] 挂载缓存哈希表条目:2048(阶数:2,16384 字节,线性) [ 0.000859] 挂载点缓存哈希表条目:2048(阶数:2,16384 字节,线性) [ 0.001572] cacheinfo:无法检测到 CPU 0 的缓存层次结构 [ 0.002201] RCU 任务:将 shift 设置为 1,将 lim 设置为 1 rcu_task_cb_adjust=1。 [ 0.002289] RCU 任务跟踪:将 shift 设置为 1,将 lim 设置为 1 rcu_task_cb_adjust=1。 [0.002458] rcu:分层SRCU实现。 [ 0.002468] rcu:最大相位无延迟实例数为 1000。 [ 0.003234] EFI 服务将不可用。 [ 0.003397] smp:正在启动辅助 CPU... [ 0.003815] 在 CPU1 上检测到 VIPT 指令缓存 [ 0.003871] GICv3:CPU1:找到重新分发器 100 区域 0:0x0000000048060000 [ 0.003907] CPU1:已启动辅助处理器 0x0000000100 [0x412fd050] [ 0.004022] smp:已启动 1 个节点,2 个 CPU [ 0.004033] SMP:共激活了 2 个处理器。 [ 0.004041] CPU 特性:检测到:32 位 EL0 支持 [ 0.004048] CPU 特性:检测到:32 位 EL1 支持 [ 0.004056] CPU 特性:已检测到:无需将数据缓存清理到 PoU 即可实现 I/D 一致性 [ 0.004066] CPU 特性:检测到:通用翻译而非私有翻译 [ 0.004073] CPU 特性:检测到:CRC32 指令 [ 0.004083] CPU 功能:检测到:RCpc 加载获取 (LDAPR) [ 0.004090] CPU 特性:检测到:LSE 原子指令 [ 0.004098] CPU 特性:检测到:特权访问从不 [ 0.004104] CPU 功能:检测到:RAS 扩展支持 [ 0.004114] CPU 特性:检测到:推测性存储绕过安全机制 (SSBS) [ 0.004176] CPU:所有 CPU 均已在 EL2 级别启动 [ 0.004185] 替代方案:应用系统性替代方案 [ 0.008278] devtmpfs:已初始化 [ 0.012419] 时钟源:jiffies:掩码:0xffffffff 最大周期数:0xffffffff,最大空闲时间(纳秒):7645041785100000 纳秒 [ 0.012459] futex 哈希表条目:512(阶数:3,32768 字节,线性) [ 0.013204] pinctrl 核心:已初始化 pinctrl 子系统 [ 0.014406] DMI 不存在或无效。 [ 0.014867] NET:已注册 PF_NETLINK/PF_ROUTE 协议族 [ 0.016071] DMA:已预分配 128 KiB GFP_KERNEL 池用于原子分配 [ 0.016510] DMA:已为原子分配预分配 128 KiB GFP_KERNEL|GFP_DMA 池 [ 0.016929] DMA:已为原子分配预分配 128 KiB GFP_KERNEL|GFP_DMA32 池 [ 0.017406] thermal_sys:已注册热调速器“step_wise” [ 0.017414] thermal_sys:已注册热调节器“power_allocator” [ 0.017465] cpuidle:使用调速器菜单 [ 0.017560] 硬件断点:找到 6 个断点寄存器和 4 个监视点寄存器。 [ 0.017622] ASID 分配器已初始化,包含 65536 个条目 [ 0.018232] 串口:AMBA PL011 UART 驱动程序 [ 0.018290] imx mu 驱动程序已注册。 [ 0.018309] imx rpmsg 驱动程序已注册。 [ 0.023068] imx93-pinctrl 443c0000.pinctrl:初始化 IMX pinctrl 驱动程序 [ 0.028173] 平台 4ae10000.dsi:修复了与 /soc@0/dsi@4ae10000/panel@0 的依赖循环 [ 0.028214] 平台 4ae10000.dsi:修复了与 /soc@0/lcd-controller@4ae30000 的依赖循环 [ 0.028435] 平台 4ae10000.dsi:修复了与 /soc@0/lcd-controller@4ae30000 的依赖循环 [ 0.028493] 平台 4ae30000.lcd-controller:修复了与 /soc@0/dsi@4ae10000 的依赖循环 [ 0.030703] 模块:23856 页符合非 PLT 使用范围 [ 0.030713] 模块:PLT 使用范围内的模块有 515376 个。 [ 0.031348] HugeTLB:已注册 1.00 GiB 页面大小,预分配 0 个页面 [ 0.031378] HugeTLB:可释放 0 KiB 虚拟内存映射,用于 1.00 GiB 的页面 [ 0.031387] HugeTLB:已注册 32.0 MiB 页面大小,预分配 0 页 [ 0.031394] HugeTLB:可释放 0 KiB vmemmap 以处理 32.0 MiB 的页面 [ 0.031402] HugeTLB:已注册 2.00 MiB 页面大小,预分配 0 个页面 [ 0.031410] HugeTLB:可释放 0 KiB vmemmap 以用于 2.00 MiB 的页面 [ 0.031418] HugeTLB:已注册 64.0 KiB 页面大小,预分配 0 页 [ 0.031425] HugeTLB:可释放 0 KiB 虚拟内存映射,用于 64.0 KiB 的页面 [ 0.032968] ACPI:解释器已禁用。 [ 0.033767] iommu:默认功能域类型:已翻译 [ 0.033793] iommu:DMA 功能域 TLB 失效策略:严格模式 [ 0.034028] SCSI 子系统已初始化 [ 0.034330] usbcore:已注册新的接口驱动程序 usbfs [ 0.034361] usbcore:已注册新的接口驱动程序集线器 [ 0.034386] usbcore:已注册新的设备驱动程序 usb [ 0.035004] mc:Linux 媒体接口:v0.10 [ 0.035046] videodev:Linux 视频捕获接口:v2.00 [ 0.035092] pps_core:LinuxPPS API 版本 1 已注册 [ 0.035101] pps_core:软件版本。5.3.6 - 版权所有 2005-2007 Rodolfo Giometti [email protected] [ 0.035116] 已注册 PTP 时钟支持 [ 0.035269] EDAC MC:版本:3.0.0 [ 0.035732] scmi_core:SCMI 协议总线已注册 [ 0.036098] FPGA 管理器框架 [ 0.036218] 高级 Linux 音频架构驱动程序已初始化。 [ 0.036772] 蓝牙:核心版本 2.22 [ 0.036809] NET:已注册 PF_BLUETOOTH 协议族 [ 0.036817] 蓝牙:HCI 设备和连接管理器已初始化 [ 0.036829] 蓝牙:HCI 套接字层已初始化 [ 0.036838] 蓝牙:L2CAP 套接字层已初始化 [ 0.036856] 蓝牙:SCO套接字层已初始化 [ 0.037251] vgaarb:已加载 [ 0.037658] 时钟源:已切换到时钟源 arch_sys_counter [ 0.037857] VFS:磁盘配额 dquot_6.6.0 [ 0.037885] VFS:Dquot缓存哈希表条目:512(0阶,4096字节) [ 0.038012] pnp:PnP ACPI:已禁用 [ 0.043050] NET:已注册 PF_INET 协议族 [ 0.043208] IP 标识符哈希表条目:16384(阶数:5,131072 字节,线性) [ 0.044113] tcp_listen_portaddr_hash 哈希表条目:512(阶数:1,8192 字节,线性) [ 0.044150] 表扰动哈希表条目:65536(阶数:6,262144 字节,线性) [ 0.044165] TCP 已建立哈希表条目:8192(阶数:4,65536 字节,线性) [ 0.044211] TCP 绑定哈希表条目:8192(阶数:6,262144 字节,线性) [ 0.044493] TCP:哈希表已配置(已建立 8192 端口,绑定 8192 端口) [ 0.044609] UDP 哈希表条目:512(阶数:2,16384 字节,线性) [ 0.044643] UDP-Lite 哈希表条目:512(阶数:2,16384 字节,线性) [ 0.044762] NET:已注册 PF_UNIX/PF_LOCAL 协议族 [ 0.045174] RPC:已注册命名的 UNIX 套接字传输模块。 [ 0.045191] RPC:已注册 UDP 传输模块。 [ 0.045198] RPC:已注册 TCP 传输模块。 [ 0.045204] RPC:已注册 tcp-with-tls 传输模块。 [ 0.045211] RPC:已注册 tcp NFSv4.1 反向通道传输模块。 [ 0.046048] PCI:CLS 0 字节,默认值 64 [ 0.046345] kvm [1]: IPA 大小限制:40 位 [ 0.046372] kvm [1]: GICv3: 没有 GICV 资源条目 [ 0.046381] kvm [1]: 禁用 GICv2 仿真 [ 0.046401] kvm [1]: GIC 系统寄存器 CPU 接口已启用 [ 0.046427] kvm [1]: vgic 中断 IRQ9 [ 0.046455] kvm [1]: VHE 模式初始化成功 [ 0.047296] 初始化系统可信密钥环 [ 0.047511] 工作集:时间戳位数=42 最大阶数=18 桶阶数=0 [0.047754]squashfs:版本4.0(2009/01/31)菲利普·劳格 [ 0.048006] NFS:注册 id_resolver 密钥类型 [ 0.048039] 已注册键类型 id_resolver [ 0.048047] 已注册键类型 id_legacy [ 0.048067] nfs4filelayout_init:NFSv4 文件布局驱动程序正在注册... [ 0.048077] nfs4flexfilelayout_init:NFSv4 Flexfile 布局驱动程序正在注册... [ 0.048099] jffs2:版本 2.2。(与非)© 2001-2006 Red Hat, Inc. [ 0.048292] 9p:正在安装 v9fs 9p2000 文件系统支持 [ 0.069734] 抖动熵:初始化失败,主机不符合要求:9 [ 0.069757] 密钥类型非对称注册 [ 0.069765] 非对称密钥解析器“x509”已注册 [ 0.069818] 已加载块层 SCSI 通用 (bsg) 驱动程序版本 0.4(主版本 243) [ 0.069831] io 调度器 mq-deadline 已注册 [ 0.069839] io 调度器 kyber 已注册 [ 0.069876] io 调度器 bfq 已注册 [ 0.073826] EINJ:ACPI 已禁用。 [ 0.078241] 总线频率驱动模块已加载 [ 0.085775] 串口:8250/16550 驱动程序,4 个端口,已启用 IRQ 共享 [ 0.088108] 44380000.serial:位于 MMIO 0x44380010 的 ttyLP0(中断号 = 17,基本波特率 = 1500000)是一个 FSL_LPUART。 [ 0.088147] fsl-lpuart 44380000.serial:串口:控制台 LPUART 四舍五入波特率,范围从 187500 到 115200 [ 0.088267] printk: 控制台 [ttyLP0] 已启用 [ 1.279060] imx-lcdif:探测 4ae30000.lcd-controller失败,错误代码 -2 [ 1.287354] imx93-ldb ldb-display-controller:无法与 4ae30000.lcd-controller 创建设备链接 (0x180) [ 1.301356] 循环:模块已加载 [ 1.305755] megasas: 07.725.01.00-rc1 [ 1.314046] tun:通用 TUN/TAP 设备驱动程序,1.6 [1.319701]thunder_xcv,版本1.0 [ 1.322988] thunder_bgx,版本 1.0 [ 1.326238] nicpf,版本 1.0 [ 1.330111] hns3:适用于 Hip08 系列的海思以太网网络驱动程序 - 版本 [ 1.337346] hns3: 版权所有 (c) 2017 华为公司。 [ 1.342694] hclge 正在初始化 [ 1.346035] e1000:Intel(R) PRO/1000 网络驱动程序 [ 1.350911] e1000: 版权所有 (c) 1999-2006 英特尔公司。 [ 1.356668] e1000e:Intel(R) PRO/1000 网络驱动程序 [ 1.361632] e1000e: 版权所有(c) 1999 - 2015 英特尔公司。 [ 1.367561] igb:Intel(R) 千兆以太网网络驱动程序 [ 1.372966] igb: 版权所有 (c) 2007-2014 英特尔公司。 [ 1.378547] igbvf:Intel(R) 千兆虚拟功能网络驱动程序 [ 1.384806] igbvf: 版权所有 (c) 2009 - 2012 英特尔公司。 [ 1.390842] sky2:驱动程序版本 1.30 [ 1.394867] usbcore:已注册新的接口驱动程序 catc [ 1.400300] usbcore:已注册新的接口驱动程序 kaweth [ 1.405868] pegasus:Pegasus/Pegasus II USB 以太网驱动程序 [ 1.411457] usbcore:已注册新的接口驱动程序 Pegasus [ 1.417131] usbcore:已注册新的接口驱动程序 rtl8150 [ 1.422796] usbcore:已注册新的设备驱动程序 r8152-cfgselector [ 1.429079] usbcore:已注册新的接口驱动程序 r8152 [ 1.434586] usbcore:已注册新的接口驱动程序 lan78xx [ 1.440254] usbcore:已注册新的接口驱动程序 asix [ 1.445666] usbcore:已注册新的接口驱动程序 ax88179_178a [ 1.451774] usbcore:已注册新的接口驱动程序 cdc_ether [ 1.457612] usbcore:已注册新的接口驱动程序 cdc_eem [ 1.463281] usbcore:已注册新的接口驱动程序 dm9601 [ 1.468861] usbcore:已注册新的接口驱动程序 sr9700 [ 1.474443] usbcore:已注册新的接口驱动程序 CoreChips [ 1.480289] usbcore:已注册新的接口驱动程序 smsc75xx [ 1.486048] usbcore:已注册新的接口驱动程序 smsc95xx [ 1.491802] usbcore:已注册新的接口驱动程序 gl620a [ 1.497387] usbcore:已注册新的接口驱动程序 net1080 [ 1.503065] usbcore:已注册新的接口驱动程序 plusb [ 1.508567] usbcore:已注册新的接口驱动程序 rndis_host [ 1.514501] usbcore:已注册新的接口驱动程序 MOSCHIP usb-ethernet 驱动程序 [ 1.521906] usbcore:已注册新的接口驱动程序 cdc_ncm [ 1.527579] usbcore:已注册新的接口驱动程序 huawei_cdc_ncm [ 1.533859] usbcore:已注册新的接口驱动程序 cdc_mbim [ 1.539618] usbcore:已注册新的接口驱动程序 r8153_ecm [ 1.545875] VFIO - 用户级元驱动程序版本:0.3 [ 1.552654] usbcore:已注册新的接口驱动程序 cdc_wdm [ 1.558531] usbcore:已注册新的接口驱动程序 uas [ 1.563873] usbcore:已注册新的接口驱动程序 usb-storage [ 1.569962] usbcore:已注册新的接口驱动程序 usbserial_generic [ 1.576505] usbserial:已为通用 USB 串行支持注册 [ 1.582517] usbcore:已注册新的接口驱动程序 ftdi_sio [ 1.588268] usbserial:已为 FTDI USB 串口设备注册 USB 串口支持 [ 1.595589] usbcore:已注册新的接口驱动程序 usb_serial_simple [ 1.602118] usbserial:已为 CareLink 注册 USB 串口支持 [ 1.608224] usbserial:已为 flashloader 注册 USB 串口支持 [ 1.614591] usbserial:已为 funsoft 注册 USB 串口支持 [ 1.620604] usbserial:已为 Google 注册 USB 串口支持 [ 1.626532] usbserial:已为 hp4x 注册 USB 串口支持 [ 1.632286] usbserial:已为 kaufmann 注册 USB 串口支持 [ 1.638387] usbserial:libtransistor 已注册 USB 串口支持 [ 1.644926] usbserial:已为 moto_modem 注册 USB 串口支持 [ 1.651197] usbserial:已为 motorola_tetra 注册 USB 串口支持 [ 1.657818] usbserial:诺基亚已注册 USB 串口支持 [ 1.663659] usbserial:已为 novatel_gps 注册 USB 串口支持 [ 1.670021] usbserial:已为 siemens_mpi 注册 USB 串口支持 [ 1.676390] usbserial:已为 Suunto 注册 USB 串口支持 [ 1.682320] usbserial:vivopay 已注册 USB 串口支持 [ 1.688333] usbserial:已为 zio 注册 USB 串口支持 [ 1.694007] usbcore:已注册新的接口驱动程序 usb_ehset_test [ 1.701353] imx_usb 4c200000.usb:未定义过电流极性 [ 1.708038] UDC 核心:g_serial:找不到可用的 UDC [ 1.715325] 输入:44440000.bbnsm:pwrkey作为 /devices/platform/soc@0/44000000.bus/44440000.bbnsm/44440000.bbnsm:pwrkey/input/input0 [ 1.730471] bbnsm_rtc 44440000.bbnsm:rtc:注册为 rtc0 [ 1.736808] bbnsm_rtc 44440000.bbnsm:rtc:将系统时钟设置为 1970-01-01T00:00:00 UTC (0) [ 1.746038] i2c_dev:i2c /dev 条目驱动程序 [ 1.753139] imx7ulp-wdt 42490000.watchdog:imx93 wdt探针 [ 1.787402] 蓝牙:HCI UART 驱动程序版本 2.3 [ 1.791883] 蓝牙:HCI UART 协议 H4 已注册 [ 1.797022] 蓝牙:HCI UART 协议 BCSP 已注册 [ 1.802352] 蓝牙:HCI UART 协议 LL 已注册 [ 1.807488] 蓝牙:HCI UART 协议 ATH3K 已注册 [ 1.812890] 蓝牙:HCI UART 协议三线 (H5) 已注册 [ 1.819284] 蓝牙:HCI UART 协议,博通公司已注册 [ 1.824994] 蓝牙:HCI UART 协议 QCA 已注册 [ 1.831298] sdhci:安全数字主机控制器接口驱动程序 [ 1.837532] sdhci:版权所有 (c) 皮埃尔·奥斯曼 [ 1.842202] Synopsys Designware 多媒体卡接口驱动程序 [ 1.848543] sdhci-pltfm:SDHCI 平台和 OF 驱动程序助手 [ 1.855334] ledtrig-cpu:已注册以指示 CPU 活动 [ 1.863232] fsl-se secure-enclave:已分配预留内存节点 ele-reserved@a4120000 [ 1.873387] fsl-se secure-enclave:已成功注册 ele-trng [ 1.879142] random: crng 初始化完成 [ 1.879689] fsl-se secure-enclave: i.MX secure-enclave: hsm0 接口到固件,已配置。 [ 1.891850] SMCCC: SOC_ID: ARCH_SOC_ID 未实现,跳过.... [ 1.898604] usbcore:已注册新的接口驱动程序 usbhid [ 1.904183] usbhid:USB HID 核心驱动程序 [ 1.904309] mmc0:42850000.mmc 上的 SDHCI 控制器 [42850000.mmc]使用ADMA [ 1.945753] imx93-adc 44530000.adc:ADC校准失败! [ 1.951368] imx93-adc:对 44530000.adc 的探测失败,错误代码为 -11 [ 1.958480] 硬件性能事件:已启用 armv8_cortex_a55 PMU 驱动程序,可用计数器为 7 个 [ 1.968425] cs_system_cfg:CoreSight 配置管理器已初始化 [ 1.976335] optee:探测管道方法。 [ 1.977451] mmc0:地址 0001 处新增 HS400 增强型频闪 MMC 卡 [ 1.980811] optee:修订版 4.4 (ecea75b7fee5a3c8) [ 1.987571] optee:动态共享内存已启用 [1.987831]mmcblk0:mmc0:0001 016G01 14.5 GiB [ 1.992772] optee:已初始化驱动程序 [ 1.998748] mmcblk0: p1 [ 2.004322] NET:已注册 PF_LLC 协议族 [ 2.005920] mmcblk0boot0: mmc0:0001 016G01 8.00 MiB [ 2.008032] u32 分类器 [ 2.013839] mmcblk0boot1: mmc0:0001 016G01 8.00 MiB [ 2.017621] 输入设备检查开启 [ 2.021299] mmcblk0rpmb: mmc0:0001 016G01 4.00 MiB,字符设备 (234:0) [ 2.025176] 已配置的操作 [ 2.039098] NET:已注册 PF_INET6 协议族 [ 2.044802] IPv6 分段路由 [ 2.048507] 基于 IPv6 的原地 OAM (IOAM) [ 2.052513] NET:已注册 PF_PACKET 协议族 [ 2.057586] bridge:默认情况下不再支持通过 arp/ip/ip6tables 进行过滤。如果需要,请更新脚本以加载 br_netfilter。 [ 2.070641] 蓝牙:RFCOMM TTY 层已初始化 [ 2.075541] 蓝牙:RFCOMM 套接字层已初始化 [ 2.080716] 蓝牙:RFCOMM 版本 1.11 [ 2.084473] 蓝牙:BNEP(以太网仿真)版本 1.3 [ 2.089778] 蓝牙:BNEP 过滤器:协议组播 [ 2.094999] 蓝牙:BNEP 套接字层已初始化 [ 2.099961] 蓝牙:HIDP(人机接口仿真)版本 1.2 [ 2.105875] 蓝牙:HIDP 套接字层已初始化 [ 2.111098] 8021q:802.1Q VLAN 支持 v1.8 [ 2.115320] lib80211:IEEE802.11驱动程序的通用例程 [ 2.121028] 9pnet:正在安装 9P2000 支持 [ 2.125419] 已注册密钥类型 dns_resolver [ 2.143506] 已注册 taskstats 版本 1 [ 2.147939] 正在加载编译内置的 X.509 证书 [ 2.172921] usb_phy_generic usbphynop1:不允许对独占请求使用虚拟供应 [ 2.181294] usb_phy_generic usbphynop2:不允许对独占请求使用虚拟供应 [ 2.198616] imx93-ldb ldb-display-controller:无法与 ldb-phy 创建设备链接 (0x180)。 [2.210799]dw-mipi-dsi-imx 4ae10000.dsi:修复了与 /soc@0/dsi@4ae10000/panel@0 的依赖循环 [2.220052]mipi-dsi 4ae10000.dsi.0:修复了与 /soc@0/dsi@4ae10000 的依赖循环 [ 2.228927] imx-drm 显示子系统:已绑定 imx-lcdifv3-crtc.0(操作 lcdifv3_crtc_ops) [ 2.236979] imx-drm 显示子系统:绑定 4ae10000.dsi(操作 dw_mipi_dsi_imx_ops) [ 2.244908] imx-drm 显示子系统:绑定 ldb-display-controller(操作 imx93_ldb_ops) [ 2.253294] [drm] 为次设备号为 0 的显示子系统初始化 imx-drm 1.0.0 20120507 [ 2.802984] 控制台:切换到彩色帧缓冲区 设备 60x53 [ 2.828150] imx-drm 显示子系统:[drm] fb0:imx-drmdrmfb 帧缓冲区设备 [ 2.837814] pps pps0:新的 PPS 源 ptp0 [ 2.846512] fec 42890000.ethernet eth0:已注册 PHC 设备 0 [ 2.853413] imx-dwmac 428a0000.ethernet:未找到 IRQ eth_lpi [ 2.859635] imx-dwmac 428a0000.ethernet:用户 ID:0x10,Synopsys ID:0x52 [ 2.866514] imx-dwmac 428a0000.ethernet:DWMAC4/5 [ 2.871338] imx-dwmac 428a0000.ethernet:DMA 硬件功能寄存器支持 [ 2.878525] imx-dwmac 428a0000.ethernet:支持 RX 校验和卸载引擎 [ 2.885704] imx-dwmac 428a0000.ethernet:支持插入 TX 校验和 [ 2.892440] imx-dwmac 428a0000.ethernet:支持局域网唤醒 [ 2.898623] imx-dwmac 428a0000.ethernet:通过硬件看门狗定时器启用接收缓解 [ 2.906332] imx-dwmac 428a0000.ethernet:已启用 L3L4 流 TC(条目=8) [ 2.913173] imx-dwmac 428a0000.ethernet:已启用 RFS 流 TC(条目数=10) [ 2.920027] imx-dwmac 428a0000.ethernet:启用硬件TC(条目数=256,最大关闭次数=256) [ 2.927635] imx-dwmac 428a0000.ethernet:使用 32/32 位 DMA 主机/设备宽度 [ 2.942363] imx_usb 4c200000.usb:未定义过电流极性 [2.954776]ci_hdrc ci_hdrc.0:EHCI 主机控制器 [2.961299]ci_hdrc ci_hdrc.0:新USB总线已注册,分配总线编号1 [2.985668]ci_hdrc ci_hdrc.0:USB 2.0 已启动,EHCI 1.00 [ 2.993524] hub 1-0:1.0:发现 USB 集线器 [ 2.998921] hub 1-0:1.0: 检测到 1 个端口 [ 3.008793] Goodix-TS 0-005d:未找到电源 AVDD28,使用虚拟稳压器 [ 3.019083] Goodix-TS 0-005d:未找到电源 VDDIO,使用虚拟稳压器 [ 3.125704] Goodix-TS 0-005d:从 0x8140 读取 1 个字节时出错:-5 [ 3.161700] Goodix-TS 0-005d:从 0x8140 读取 1 个字节时出错:-5 [3.197663]Goodix-TS 0-005d:I2C通信失败:-5 [ 3.206490] Goodix-TS:0-005d 探测失败,错误代码 -5 [ 3.215233] i2c i2c-0:LPI2C 适配器已注册 [ 3.222451] nxp-pca9450 1-0025:未配置 IRQ? [ 3.224819] tca6418 1-0034:设备已初始化 [ 3.227276] nxp-pca9450:对 1-0025 的探测失败,错误代码为 -22 [ 3.244047] Goodix-TS 1-005d:未找到电源 AVDD28,使用虚拟稳压器 [ 3.254216] Goodix-TS 1-005d:未找到电源 VDDIO,使用虚拟稳压器 [ 3.361719] Goodix-TS 1-005d:从 0x8140 读取 1 个字节时出错:-5 [ 3.397698] Goodix-TS 1-005d:从 0x8140 读取 1 个字节时出错:-5 [3.433661]Goodix-TS 1-005d:I2C通信失败:-5 [ 3.442457] Goodix-TS:1-005d 探测失败,错误代码 -5 [ 3.451205] i2c i2c-1:LPI2C 适配器已注册 [ 3.458342] imx_usb 4c100000.usb:未定义过电流极性 [ 3.471095] g_serial gadget.0:小工具序列号 v2.4 [ 3.477393] g_serial gadget.0:g_serial 就绪 [ 3.485854] sdhci-esdhc-imx 42860000.mmc:已获取 CD GPIO [ 3.486159] cfg80211:正在加载监管数据库的编译内 X.509 证书 [ 3.504424] 已加载 X.509 证书“sforshee: 00b28ddf47aef9cea7” [ 3.513610] 已加载 X.509 证书“wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600” [ 3.521940] mmc1:SDHCI 控制器位于 42860000.mmc [42860000.mmc]使用ADMA [ 3.523888] 平台监管.0:直接加载 regulatory.db 的固件失败,错误代码为 -2 [ 3.531273] clk:禁用未使用的时钟 [ 3.539449] cfg80211:加载 regulatory.db 失败 [ 3.557817] ALSA 设备列表: [ 3.562298] 未找到声卡。 [ 3.568049] /dev/root:无法打开块设备 [ 3.573684] VFS:无法打开根设备“&”或未知块(0,0):错误 -6 [ 3.583559] 请添加正确的“root=”启动选项;以下是可用分区: [ 3.594850] b300 15187968 mmcblk0 [ 3.594855] 驱动程序:mmcblk [ 3.604564] b301 7497318 mmcblk0p1 076c4a2a-01 [ 3.604569] [ 3.612052] mmc1:主机不支持读取只读开关,假定其为写使能开关 [ 3.612806] b320 8192 mmcblk0boot0 [ 3.625056](驱动程序?) [ 3.634669] b340 8192 mmcblk0boot1 [ 3.634673](驱动程序?) [ 3.644238] 所有 bdev 文件系统列表: [ 3.644587] mmc1:地址 0001 处新增超高速 SDR104 SDXC 卡 [ 3.648243] ext3 [ 3.648245] ext4 [ 3.648246] ext2 [ 3.648248] squashfs [3.655362]mmcblk1:mmc1:0001 SD64G 58.3 GiB [ 3.656759] vfat [ 3.656761] [ 3.656766] 内核崩溃 - 未同步:VFS:无法在未知块(0,0)上挂载根文件系统 [ 3.656770] CPU:1 PID:1 通信:swapper/0 未被污染 6.6.52-r2-g472e64a0fc2c#1 [ 3.656775] 硬件名称:bytesatwork byteDEVKIT OSM i.MX93 (DT) [ 3.656778] 调用跟踪: [ 3.656780] dump_backtrace+0x90/0xe8 [ 3.656794] 显示堆栈+0x18/0x24 [ 3.656801] dump_stack_lvl+0x48/0x60 [ 3.656807] dump_stack+0x18/0x24 [ 3.656811] panic+0x324/0x380 [ 3.656818] mount_root_generic+0x260/0x330 [ 3.656825] mount_root+0x170/0x334 [ 3.656829] prepare_namespace+0x6c/0x2a4 [ 3.656833] kernel_init_freeable+0x244/0x284 [ 3.656837] kernel_init+0x24/0x1dc [ 3.656843] ret_from_fork+0x10/0x20 [ 3.656849] SMP:停止辅助 CPU [ 3.658689] 内核偏移:已禁用 [ 3.658690] CPU 特性:0x0,c0000000,40028143,1000721b [ 3.658694] 内存限制:无 [ 3.789243] ---[ 内核崩溃结束 - 未同步:VFS:无法在未知块(0,0)上挂载根文件系统 ]--- Linux 疑似软件缺陷 Yocto Project Re: Bricked Bytesatwork Devboard 1.0 with IMX93 chipset 你好@Johny1 希望你一切都好。 由于这是第三方板和软件,我们不提供支持。 请直接联系Bytesatwork。 顺祝商祺! 萨拉斯。
記事全体を表示
S32K311 HSE固件刷写算法及生命周期解锁查询(使用P&E Cyclone FX) 我们目前正在进行一个使用 S32K311 MCU 的项目。客户提供了 HseLib_HseFwInstall_Driver.hex 和 app.hex,我们使用的是 P&E Cyclone FX 编程器。我们想请恩智浦半导体的专家帮忙确认一款全新MCU的算法选择: 1. 将 HseLib_HseFwInstall_Driver.hex 烧录到全新的 MCU(nxp_s32k311-1x32x212k_hse_enabled.arp 或 nxp_s32k311-1x32x212k_hse_disabled.arp)时,应该使用哪种算法? 2. HSE驱动程序刷写完成后应该选择哪种算法? 3. 如何确认 HSE 驱动程序是否成功安装? 4. 如果MCU的生命周期被锁定,如何才能解锁? 提前谢谢您。 Re: S32K311 HSE Firmware Flashing Algorithm and Lifecycle Unlock Inquiry (Using P&E Cyclone FX) HI 根据名称HseLib _HseFwInstall_Driver 来看,它似乎是一家中国客户,并引用了中国 FAE 提供的HSE_Lib演示。 A1. nxp_s32k311-1x32x212k_hse_disabled.arp A2.我建议您询问客户他们安装的 HSE 固件是 FULL_MEM 还是 AB_SWAP。 如果您要安装 FULL_MEM,请选择 nxp_s32k311_1x32x212k_hse_enabled.arp。 如果您要安装 AB_SWAP,请选择 nxp_s32k311_1x32x168k_ab_swap.arp。 A3. 检查 HSE GPR 寄存器,地址为 0x4039C028。位“0”表示是否已安装 HSE 固件。 A4。我不确定生命周期已经发展到哪个阶段了。如果您询问有关调试访问的问题,我建议您参考 S32K3XXRM Rev12 中的“ 82.11 跨设备生命周期的调试”。 可信:成功认证后(使用正确的凭据进行质询/响应握手)即可进行调试。 参见: ...\s32k3_hse_lib_rtd400hf01_20260427\Doc\ S32K3_SecureDebug_UserGuide.pdf此文档需要从中国 FAE 或您的客户处获取。 支持 NXP Automotive S32K311-SECUREDEBUG! 恩智浦:使用 PEmicro 工具实现 S32K3xx 安全调试支持 此致敬礼, Robin Re: S32K311 HSE Firmware Flashing Algorithm and Lifecycle Unlock Inquiry (Using P&E Cyclone FX) 我不熟悉 P&E Cyclone FX,所以我建议参考S32K3 HSE 固件安装问题中的讨论。 0x4039C028=0xC1,Bit1=1,表示 HSE 固件运行正常。 Re: S32K311 HSE Firmware Flashing Algorithm and Lifecycle Unlock Inquiry (Using P&E Cyclone FX) 你好,罗宾, 感谢您的帮助。 此外,我按照下图所示的编程顺序设置了 HSE 镜像(使用外部电源 + 编程继电器)。 刷写固件后,从MCU读取到的地址处的实际数据如下。 地址内容.PNG 请您帮我再确认一下有没有什么问题?谢谢。
記事全体を表示
GUIGuider 1.10.1 to 2.0.0 migration We have build our GUIGuider projects in version 1.10.1 and I am interested in migrating to the new 2.0.0 version to check out the new features. I found out the old GUIGuider project file could not be loaded in the new version, and I think it is because of the new JSON structure 2.0.0 projects use. Is there an easy way to migrate the projects to the newer version of GUIGuider or do we have to manually convert it? Re: GUIGuider 1.10.1 to 2.0.0 migration Hi @MJHammers_ICP, As you correctly mention, due to the redesigned architecture and new project structure of GUI Guider v2.0.0, this new version of GUI Guider is not fully backward compatible with GUI Guider v1.x. The recommended path would be to recreate the project in GUI Guider v2.0 rather than attempting a file-level conversion. You can find the recommended migration workflow to help you with this task in the following link: Tutorials — GUI Guider Documentation BR, Edwin.
記事全体を表示
S32K3 ADC 外部チャネルの利用 こんにちは。NXPチーム S32K3 ADCの外部チャネルの使い方 . Re: S32K3 ADC Use of external channels こんにちは、 @VaneBさん これに関して、追加の質問があります。 もし私のデザインにマルチマックスがなくても、例えばセンサ1にADC1_X[0]、センサ2にADC1_X[1]、そしてADC1_Xセンサ3にだけ使いたい場合は、MAピンをGPIO出力ピンなど他の用途で再利用してLEDを駆動することは可能でしょうか? 私のデザインはs32k344をベースにしています Re: S32K3 ADC Use of external channels NPXチームの皆様、こんにちは。 このトピックに関連して、以下の図のようなSCHを実装することが可能かどうか確認していただけますか? サポートありがとうございます。 Re: S32K3 ADC Use of external channels @VaneB ご協力いただき、誠にありがとうございました。 Re: S32K3 ADC Use of external channels こんにちは@Niuyanlin 各ADCは外部アナログ多重化器の8チャネル中1チャネルを選択するために使う3つの外部デコード信号(MA)を提供し、最大4つのマルチプレクサを設置して32の外部チャネルを接続できます。つまり、これら4つのマルチプレクサは同じMA信号を共有します。 ADCは変換対象の現在のチャネルに基づき、これらの外部アナログ多重化器を制御するよう自動設定します。マスクレジスタのビットに応じて、対応する「X」ピンがサンプリングされ、その結果が「MA」と「X」の組み合わせに対応する場所に格納されます。 当社の開発ボードには外部アナログ多重化装置が設計されていないため、そのような例は実装されていません。 Re: S32K3 ADC Use of external channels こんにちは。ヴェインB あなたのプロンプトによると、RTDで外部チャネルADCを使った例が見つかりません。もし対応するルーティンがあれば、ぜひ送っていただけると嬉しいです。どうもありがとうございます。 Re: S32K3 ADC Use of external channels こんにちは@Niuyanlin RTDで役立つかもしれないADCの実装例が見つかります。 BR VaneB
記事全体を表示
FreeMASTER 3.2.7 Update - Release Announcement Version 3.2.7 of the NXP FreeMASTER tool has just been published online.  This version is backward compatible and fully replaces older 3.2.x releases (see previous announcements). It brings new features and bugfixes described below. The updated installer is available along with documentation and other resources at http://www.nxp.com/freemaster.   Release description FreeMASTER is a powerful data visualization tool developed and provided by NXP to help users monitor and control embedded applications running on NXP’s targets. It works with almost all NXP Arm ® Cortex®-M and other microcontrollers from both Edge Processing and Automotive business lines as well as with DSC and legacy Power Architecture, ColdFire and HCS12/Z platforms. Note that the license terms and conditions does not allow using FreeMASTER with non-authorized systems from other vendors. Version 3.2.7 is a minor update of the 3.2.x mainline release. It overwrites the previous 3.2 version installed on the host computer. Older 2.x, 3.0, and 3.1 versions are not removed; however, the communication plug-ins installed with the latest version are globally registered in the operating system and will also be used by older versions. This version is backward compatible with all previous versions. It supports variable monitoring, oscilloscope real-time graphs, fast transient recorder graphs, array-to-graph views, and connectivity to third-party applications. It includes two Chromium-based HTML rendering engines—CEF and Microsoft Edge WebView2—with full support for JSON-RPC, HTML5, and JavaScript to create custom dashboards and other user interfaces running inside FreeMASTER. The older Internet Explorer rendering engine, with the ActiveX interface and protocol defined for version 2.x, is also still supported. FreeMASTER Lite, which is part of the FreeMASTER installation package, provides the communication core for Windows and Linux systems. It is accessible similarly to the FreeMASTER desktop application over the JSON-RPC interface. FreeMASTER Lite also embeds the popular Node-RED framework for graphical programming and provides many examples of its use with the FreeMASTER tool. More information related to Node-RED can be found in the dedicated training video. FreeMASTER Node.js Installable Modules enable convenient use of the FreeMASTER JSON-RPC components in a Node.js applications managed by the ‘npm’ package manager. Version 3.2.7 contains FreeMASTER Lite and Node.JS modules internally referred as version 1.4. Installing FreeMASTER Lite will require you to enter an activation code generated for this version. Get your free code on the License Keys tab at the license information page. New Features Version 3.2.7 introduces the following new features: P&E Micro debugging probes support updated This version includes the latest update of P&E Micro drivers, enabling JTAG communication with the newest NXP microcontrollers. Chromium browser component updated The Chromium browser has been updated to the most recent version, addressing several incompatibility issues and re-enabling the JScript debugger and other DevTools within FreeMASTER. ELF/DWARF parser extended  ELF file parser has been extended to locate static variables inside C++ anonymous namespaces. Bugfixes and other extensions: FreeMASTER Fixed "Show-As" style of floating point variables generated automatically from ELF symbols. Fixed CAN communication plug-in issue in its Configuration dialog. Fixed PD-BDM communication plug-in timing during initial connection to target. Fixed ELF file selection after forcing its file path by external script SetProjectOptions(). Fixed CEF and Edge web browser components to enable cross-origin content loading from file: resources. Fixed project corruption when deleting variable assigned to X-Axis in an XY graph. Related Content NXP MCUXpresso SDK For consumer, industrial or IoT edge applications, the FreeMASTER communication driver is distributed as a "middleware" component of MCUXpresso SDK. The driver sources are publicly available on GitHub along with documentation. The most convenient way to get a full SDK package including FreeMASTER and other middleware components is via the MCUXpresso SDK Builder. The full SDK is also available on GitHub. S32 Design Studio for S32 Platform For automotive parts, the FreeMASTER communication driver is distributed as an eclipse update site for S32 Design Studio. Latest versions can be installed directly from within the IDE by accessing "S32DS Extension and Updates" from "Help" menu. Additionally, it can be downloaded both as eclipse update site and a stand-alone zip archive via the Flexera Links available on FreeMASTER's home page. The distribution already includes ready to use examples. More advanced applications and demos are available on NXP's Application Code Hub (ACH). Zephyr sample applications FreeMASTER sample applications for Zephyr demonstrate Zephyr logging and shell running over FreeMASTER pipe as well as runtime visualization of Zephyr thread information, CPU utilization and stack usage. Thread performance data can be displayed in common graphs with application-specific data making it great runtime tuning tool. Release target audience Both FreeMASTER and FreeMASTER Lite are primarily targeted to our customers, engineers and developers of NXP embedded applications from Industrial, IoT and Automotive areas who want to monitor and control their applications at runtime. FreeMASTER is also a strong framework which can be used to create interactive demos and user interfaces helping to use the embedded applications by yet wider target audience. Prerequisites FreeMASTER tools run on the host computer and communicates with the target microcontroller application using Serial, CAN, Ethernet/WiFi network, JTAG, BDM or other physical interface. The microcontroller communication drivers are available as part of MCUXpresso SDK, S32 Design Studio or as a standalone installation package. Get familiar with the communication protocol and the microcontroller driver API before using the FreeMASTER tool. License terms and conditions permit use of FreeMASTER solely with systems based on NXP microprocessor or microcontroller systems. Packages A single self-extracting installation package which contains both FreeMASTER desktop application and the new FreeMASTER Lite service is available for Windows platforms. JTAG/ BDM Serial CAN TCP/IP Segger RTT FreeMASTER Desktop app. x86 for Windows ✓ ✓ ✓ ✓ ✓ Separate packages are available for FreeMASTER Lite containing x64 binaries for Windows & Linux platforms with the following supported communication interfaces. JTAG/ BDM Serial CAN TCP/IP Segger RTT FreeMASTER Lite x64 for Windows ✓* ✓ ✓ ✓ ✓ FreeMASTER Lite x64 for Linux ✗ ✓ ✗ ✓ ✗ *Requires 64 bit version of the 3 rd  party library. Tested with Segger (JLink_x64.dll). Access the installation and documentation at the FreeMASTER home page at https://www.nxp.com/freemaster.
記事全体を表示
S32K146 FLEXCAN RJW構成 S32K146において、FLEXCANのRJW構成はPSEG2と比較して何らかの影響を及ぼしますか? Re: S32K146 FLEXCAN RJW config こんにちは、@ Salan これは私の間違いでした。RJWの設定エラーを示すエラーメッセージが表示されていると思い込んでいました。 RJWは、再同期中のPESG1セグメントの延長時間とPSEG2セグメントの短縮時間を表す。PSEG2セグメントを短縮すると、サンプリングポイントが後方にシフトすることになり、シフト量が大きすぎるとサンプリング誤差が生じる。 SO CANビットタイミング要件では、再同期ジャンプ幅が4時間量子を超えてはならず、またPHASE_SEG1セグメント内の時間量子数を超えてはならないと書かれています。 Re: S32K146 FLEXCAN RJW config 図に示すように、RJWを3に設定し、PSEG2よりも大きくしましたが、「実現不可能」という警告は表示されませんでした。 可能であれば、レジスタの設定がこの方法にどんな影響があるのか教えていただけますか? Re: S32K146 FLEXCAN RJW config こんにちは、@ Salan S32 DSを使用してFlexCanを設定すると、それが不可能であることが明示的に通知されます。 Re: S32K146 FLEXCAN RJW config CANプロトコルによると、SJWはPSEG2≤PSEG1、SJW≤4Tq≤。 FLAXCANレジスタでSJWがPSEG2より大きい値に設定されている場合、何か影響はありますか? Re: S32K146 FLEXCAN RJW config こんにちは、@ Salan S32K146 FlexCANの場合、PSEG2は公称ビット時間とサンプルポイントに影響を与えますが、RJWは再同期調整を制限するだけで、公称ビットレートの計算には含まれません。 Re: S32K146 FLEXCAN RJW config RJWの値がPSEG2の値よりも高い場合、影響はありますか?
記事全体を表示
i.MX8MPにTRACE32をアタッチできません FRDM-i.MX8MPLUSボードに接続しようとしていますが、失敗します。NXPブログのガイドに従いました: https://community.nxp.com/t5/NXP-Tech-Blog/Debug-i-MX8MP-Linux-with-TRACE32/ba-p/1582382 私の手順は以下の通りです。 echo 1 > /sys/devices/system/cpu/cpu0/cpuidle/state1/disable echo 1 > /sys/devices/system/cpu/cpu1/cpuidle/state1/disable echo 1 > /sys/devices/system/cpu/cpu2/cpuidle/state1/disable echo 1 > /sys/devices/system/cpu/cpu3/cpuidle/state1/disable echo 1 > /sys/devices/system/cpu/cpu0/cpuidle/state0/disable echo 1 > /sys/devices/system/cpu/cpu1/cpuidle/state0/disable echo 1 > /sys/devices/system/cpu/cpu2/cpuidle/state0/disable echo 1 > /sys/devices/system/cpu/cpu3/cpuidle/state0/disable 次に、以下のTRACE32コマンドを実行します。 RESet SYStem.RESet SYStem.CPU IMX8MQ CORE.ASSIGN 1. 2. 3. 4. SYStem.Option MMUSPACES ON SYStem.Option IMASKASM ON SYStem.Mode Attach しかし、TRACE32はAttachコマンドで停止し、アタッチ処理が完了しません。 以前にこの問題に遭遇した方、または原因をご存知の方はいらっしゃいますか? よろしくお願いします。 Re: Unable to Attach TRACE32 to i.MX8MP こんにちは、 はい、手順はこれで正しいです。デバイスが正しく接続されていることを確認してください。また、何をデバッグしようとしているのですか?Ubootですか、Linuxですか、それとも他の何かでしょうか? 敬具/サルドス、 アルド。
記事全体を表示
P1013 CPU/CCB/DDR Underclocking for Thermal and Communication Stability I have old P1013NSE2MHB components on dev boards.  I want to work to under clock them to reduce the thermal load on the component and use the communication clock for PCIe and SPI standard from the P1013NSE2LFB component, It is what I am most familiar with. Essentially, I want to have the P1013NSE2MHB use the P1013NXE2LFB PLL clocking setup, i.e, CPU/CCB/DDR final clock rates of the P1013NSE2MHB to be 1067/533/533 MHz.  Based on the AN4343 Section 6 both components should be able to support the 1067/533/533 clock speeds.  The only concern that I have is that the CCB limit of the P1013NSE2MHB is supposedly 480MHz. I can find no reasoning for this besides that only CCB clocks 400 and 480 MHz can use the built in PLL settings to get to the maximum of 1200MHz. (See AN4343 Section 6.2.1 Table 16) I just want the CPU to have a core clock of 1067MHz.  Both the P1013NSE2MHB use the P1013NXE2LFB are from the exact same line and should share the same architecture, the improvement in the CPU maximum clock to 1200MHz should not prevent the previously implemented CCB architecture from being used to reach a lower CPU clock speed. Unless the CCB bus was redesigned, which would be a massive waste of resources, to support the new CPU even though it isn't radically different.  Thanks for any insights. QorIQ P1 Devices Re: P1013 CPU/CCB/DDR Underclocking for Thermal and Communication Stability It seems the architecture may be different according to the data below, the CPU/CCB/DDR may not share the same trend CPU/CCB/DDR frequency (MHz) LF=1067/533/667    MH=1200/480/800 But this is old device so may need to check with NXP internal team for the explaination Re: P1013 CPU/CCB/DDR Underclocking for Thermal and Communication Stability The T2080/T2081 are not the processors I am asking about. I am looking at the P1013/P1022 processors. Re: P1013 CPU/CCB/DDR Underclocking for Thermal and Communication Stability Hello, Yes — the documentation supports your observation that CPU/core, platform/CCB, and DDR do not have to follow the same scaling trend on T2080/T2081, because they are generated by different PLL domains and the memory bus is explicitly dictated by its own PLL . Core and platform clocks are generated by different PLLs , and the T2080/T2081 clocking map exposes separate status/control points for core-cluster PLLs, the platform PLL, and the DDR PLL ( Clocking_PLLCnGSR , Clocking_PLLPGSR , Clocking_PLLDGSR ) The hardware specs also state directly that the memory bus clock speed is dictated by its own PLL. So the architectural explanation is: CPU/core frequency comes from the core cluster PLL(s) and may run at PLL/1, /2, or /4 depending on configuration. Platform/CCB frequency is a separate platform clock domain with its own allowed SYSCLK ratios. DDR frequency is separate again, and the memory bus clock is half the DDR data rate and is controlled by its own PLL That is why a non-monotonic-looking pair such as: LF = 1067 / 533 / 667 MH = 1200 / 480 / 800 is architecturally plausible in principle: the three domains are not required to rise and fall together. However, I could not find those exact two T2080 frequency triplets documented in the available T2080/T2081 material.   Regards
記事全体を表示
FRDM-MCXA156の「MCU-LINK」ポートが動作しません こんにちは。 FRDM-MCXA156を入手しました。USBケーブルをMCU-Linkポートに接続しても、Windows 10システムは全く反応しません。システムのデバイスマネージャーを確認しましたが、新しいデバイスは表示されていませんでした。 LED D12とD6が点滅しています。D7は点灯しています。 LinkServer_26.5.59をインストールしました。 他に私にできることはありますか? THX。 蔡。 開発ボード MCXA Re: FRDM-MCXA156 'MCU-LINK' port not work こんにちは、 @phantomgz さん、 投稿ありがとうございます。 UM12121の「3.4」の項を参照して、mcu-linkファームウェアを更新してください。ファームウェアアップデートユーティリティを使用したMCU-Linkファームウェアのアップデート: Linkserver_26.3.123 の最新スクリプトを使用することをお勧めします。 お役に立てば幸いです。 BR セレステ Re: FRDM-MCXA156 'MCU-LINK' port not work UM12121 FRDM-MCXA156ボードユーザーマニュアル(3.3 MCU-Linkファームウェアアップデートユーティリティのインストール用) UG10219 LinkServerとMCUXpresso IDEの統合
記事全体を表示
imx95 NPU 上的 MoveNet 姿态产生错误结果 嗨, ,我正试图在 iMX95 NPU 上验证 MoveNet 的姿势检测,但它似乎生成了无效的姿势骨架。在 iMX95 中央处理器上运行相同的机型也没问题。 我下载了一个 int8 量化版本: wget -q -O model.tflite https://tfhub.dev/google/lite-model/movenet/singlepose/thunder/tflite/int8/4?lite-format=tflite 之后,我将其转换为 npu: eiq-neutron-sdk-linux-3.1.2/bin/neutron-converter --target imx95 --input model.tflite --output model_npu.tflite 然后我将这些模型和所附的图像(man.jpg)都复制到我的 imx95 设备上,然后使用 cpu 和 npu 参数运行了 python 脚本: root@mydevice:~# python3 draw_skeleton.py cpu /usr/lib/python3.13/site-packages/tflite_runtime/interpreter.py:457: UserWarning: Warning: tf.lite.Interpreter is deprecated and is scheduled for deletion in TF 2.20. Please use the LiteRT interpreter from the ai_edge_litert package. See the [migration guide](https://ai.google.dev/edge/litert/migration) for details. warnings.warn(_INTERPRETER_DELETION_WARNING) Using CPU: model.tflite INFO: Created TensorFlow Lite XNNPACK delegate for CPU. root@mydevice:~# cp pose_output.jpg pose_output_cpu.jpg root@mydevice:~# python3 draw_skeleton.py npu /usr/lib/python3.13/site-packages/tflite_runtime/[ 156.433505] remoteproc remoteproc0: powering up neutron-rproc interpreter.py:457: UserWarning:[ 156.440691] remoteproc remoteproc0: Booting fw image NeutronFirmware.elf, size 46388 Warning: tf.[ 156.450073] remoteproc remoteproc0: remote processor neutron-rproc is now up lite.Interpreter is deprecated and is scheduled for deletion in TF 2.20. Please use the LiteRT interpreter from the ai_edge_litert package. See the [migration guide](https://ai.google.dev/edge/litert/migration) for details. warnings.warn(_INTERPRETER_DELETION_WARNING) INFO: NeutronDelegate delegate: 3 nodes delegated out of 84 nodes with 3 partitions. INFO: Neutron delegate version: v1.0.0-d98743a7, zerocp enabled. INFO: Neutron delegate version: v1.0.0-d98743a7, zerocp enabled. INFO: Neutron delegate version: v1.0.0-d98743a7, zerocp enabled. Using NPU delegate: model_npu.tflite INFO: Created TensorFlow Lite XNNPACK delegate for CPU. [ 157.705821] remoteproc remoteproc0: stopped remote processor neutron-rproc root@mydevice:~# cp pose_output.jpg pose_output_npu.jpg CPU 输出正常: NPU 的输出不正确: 我的内核是 6.12.49。我使用了 NXP yocto 中的默认委托、固件和库,并尝试用 Neutron SDK 3.1.2 中的委托、固件和库替换它们。结果也差不多。我还尝试了不同的中子变流器选项,但这无济于事。 那么 我的程序有什么问题吗?(使用中子变流器转换 MoveNet int8 tflite + 在 neutron_delegate 上运行) 中子变流器有错误吗? 我发现 A1 版本的芯片可能存在 NPU 错误。这可能是问题所在吗? https://community.nxp.com/t5/Other-NXP-Products/i-MX95-EVK-REV-A1-LF-6-6-52-2-2-2-Ported-DMS-demo-CPU-works-NPU/td-p/2355702 U-Boot:" CPU:i.mx9596 rev2.0 在 1800MHz 时使用 " cat /sys/devices/soc0/revision:" 2.0 " 作为补充信息,我可以让 Yolo-26-n pose 正常工作,它没有类似的问题。但这并不是解决我的问题的正确方法。 致以最诚挚的问候, Sami Re: MoveNet pose on imx95 NPU produces faulty results 你好,Chavira, 感谢您的快速回复。它与您所附的模型一起工作。然后我尝试了你使用的相同变流器命令,看起来优化标志修复了模型。我用这个命令进行了转换: eiq-neutron-sdk-linux-3.1.2/bin/neutron-converter --input model.tflite --target imx95 --output model_npu.tflite --optimization-level OOpt 之后,NPU 检测功能就好用多了。 不过,我注意到,如果使用完全相同的标志多次运行转换,每一轮得到的模型都会有一些不同的表现。大多数转换后的模型都能正确检测到骨架,但也有一些存在问题。因此,仿佛在每次中子变流器传递到所得模型时都会引入一些变化。如果我在任何一个转换后的模型上重复运行推理,每次都会输出相同的结果。因此,模型推理是确定性的,但模型转换却不是。 我看到编译器中有"--force-determinism" 标志。这似乎稳定了转换的确定性,但创建的模型同样无法正确绘制骨架。 那么,我有几个后续问题: 是否有任何标志组合能使模型的行为与原始模型完全相似(即CPU)模式?还是说,我必须测试每种构件,看看哪种构件可以正常工作? " cat /sys/devices/soc0/revision " 2.0 是指芯片修订版 A1 还是 B0?我的设备上有散热器 + 粘贴,所以我看不懂标记。 关于你问的电路板支持包版本:我使用 Variscite DART-IMX95 而 Yocto 来自 Variscite,使用内核 6.12.49。为了进行测试,我更新了 eIQ Neutron SDK 3.1.2 中的 libneutron_delegate.so、NeutronFirmware.elf 和 libNeutronDriver.so。 致以最诚挚的问候, Sami Re: MoveNet pose on imx95 NPU produces faulty results 您好@saminurm, 感谢您联系恩智浦支持中心。 我已经按照您分享的步骤进行了操作,并在我这边使用相同版本的 SDK 成功重现了预期行为。 你能否确认一下你是否已经更新了主板上的所有必填文件?此外,你能告诉我你目前使用的是哪个 BSP 版本吗?作为参考,我正在使用 BSP 版本 6.18。 在我的设置中,我使用以下方式执行了示例: python3 draw_skeleton.py npu 并获得了以下输出: NEUTRON_ENABLE_ZERO_COPY: 0 INFO: NeutronDelegate delegate: 3 nodes delegated out of 84 nodes with 3 partitions. INFO: Neutron delegate version: v1.0.0-d98743a7, non-zerocp. Using NPU delegate: model_npu.tflite INFO: Created TensorFlow Lite XNNPACK delegate for CPU. 对于模型转换,我使用了以下命令: .\neutron-converter.exe ` --input "4.tflite" ` --target imx95 ` --output "4_neutron.tflite" ` --dump-after-optimize "optimized.tflite" ` --dump-after-extract "extracted.tflite" ` --dump-statistics ` --optimization-level OOpt 请确认您的设置是否符合这些步骤和配置? 致以最崇高的敬意, Chavira Re: MoveNet pose on imx95 NPU produces faulty results 嗨 @saminurm, 不幸的是,不支持这种行为,因为我们的内部说明中已将其明确记录为免责声明。不过,一旦确定了一个运行正常且稳定的模型,您就可以放心将其部署到产品中。 您可以在转换过程中尝试使用 --force-determinism 选项,以获得更可重现的结果。话虽如此,在某些情况下,此选项可能会对性能或转化质量产生负面影响,因此并非总是推荐的做法。 此致, ·查维拉 Re: MoveNet pose on imx95 NPU produces faulty results 你好@saminurm 1) 根据我们的文档: 免责声明 请注意,对于 Neutron-S 目标,变流器使用非确定性的受限编程求解器。 这意味着对同一型号进行后续转换时,生成的微代码会略有不同,特别是在 TCM 地址方面。 这是因为求解器是多线程的,多个线程会竞争以寻找最优解。 由于可能存在多个最优解,这些不同的解(线程)将竞相冲向终点,结果可能是每次获胜的解都不尽相同。 但关键在于,所有这些不同的解法都是同样正确且最优的,它们之间的差异并不重要。 虽然有一些方法可以强制实现确定性,但这些方法会导致转换时间增加,这通常是不可接受的。 说明: 中子-C靶(例如iMXRT700) 和 Neutron-S 目标 (例如iMX95 和 iMX943 在该工具中采用完全不同的工作流程,从而导致用户体验不同。 在将同一模型转换为不同目标平台时,转换时间可能会有显著差异: 例如,将同一模型分别转换为 iMX95(4 核 Neutron-S)和 iMX943(1 核 Neutron-S)时,iMX943 的转换时间会更长。 这是因为 iMX943 的内部存储器(TCM)比 iMX95 小(仅为后者的四分之一),导致需要生成更多数量的较小图块。 由于 iMX943 的处理单元数量多于 iMX95,调度器可调用的处理单元更多(自由度更高),从而导致转换时间更长。 总而言之,是的,你可以多次尝试,以找到最适合你的选项。 2) 2.0 版是 B0 版本。 此致, ·查维拉 Re: MoveNet pose on imx95 NPU produces faulty results 你好,Chavira, 谢谢。B0 意味着我们没有那个存在缺陷的 NPU。 #!/bin/bash set -e CONVERTER=~/tools/eiq-neutron-sdk-linux-3.1.2/bin/neutron-converter [email protected] for i in $(seq 1 10); do printf -v idx "%04d" "$i" echo "=== Run $idx/10 ===" "$CONVERTER" \ --input model.tflite \ --target imx95 \ --output model_npu.tflite \ --optimization-level OOpt scp model_npu.tflite "$DEVICE": ssh "$DEVICE" python3 draw_skeleton.py npu scp "$DEVICE":pose_output.jpg "pose_output_${idx}.jpg" echo "Saved pose_output_${idx}.jpg" done echo "Done. 10 runs completed." 上面的代码展示了这个问题。有时根本检测不到骨架,有时骨架又乱七八糟。 那么,你能帮我找出任何能稳定转换为 " " 差异不应该与免责声明级别的 " 相关的中子变流器选项吗? 致以最诚挚的问候, Sami   Re: MoveNet pose on imx95 NPU produces faulty results 你好,Chavira, 好的,谢谢你的信息。我想我们接下来就该这么做,测试不同的转换方案。请问有没有适合 imx95 NPU 的推荐姿势检测模型?最好是能很好地适配 NPU 内部架构的。 此致, Sami
記事全体を表示
IMX8M+(BT+WiFiモジュール搭載)(AW-XB583MA-PUR)BTの初期化には50~60秒かかります。 NXPチームの皆様へ 当社はiMx8M+ベースのカスタムボードを使用しており、PCIeとUARTを介してそれぞれBTとWiFi(Azurawave製のモジュールAW-XB583MA-PUR)を使用しています。 BTの初期化中に問題が発生しており、UART経由で最初のHCIリセットコマンドを送信してから応答が得られるまでに約50~60秒(常に一定の時間)かかります。Azurawaveチームと確認・デバッグを行ったところ、NXP側にも確認するよう提案されました(彼らの見解では、これはNXP側の問題である可能性が高いとのことです)。 以下は、SoCとモジュール間の接続図です。 NXP: UART1_RXD <---> モジュール: UART TXD NXP: UART1_TXD <---> モジュール: UART RXD NXP: UART3_TXD <---> モジュール: UART RTS NXP: UART3_RXD <---> モジュール: UART CTS デバイスツリーの変更点: &uart1 { /* BT */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; 割り当てられたクロック = <&clk IMX8MP_CLK_UART1>; 割り当てられたクロック親 = <&clk IMX8MP_SYS_PLL1_80M>; /*fsl,uart-has-rtscts;*/ ステータス = "正常"; }; pinctrl_uart1: uart1grp { fsl、pins = < MX8MP_IOMUXC_UART1_RXD__UART1_DCE_RX 0x140 MX8MP_IOMUXC_UART1_TXD__UART1_DCE_TX 0x140 MX8MP_IOMUXC_UART3_RXD__UART1_DCE_CTS 0x140 MX8MP_IOMUXC_UART3_TXD__UART1_DCE_RTS 0x140 >; }; i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Linux Re: IMX8M+ w/ BT+WiFi module (AW-XB583MA-PUR) BT takes 50-60 seconds time to get initialized こんにちは、 @hiteshviradiya さん。 お元気でお過ごしのことと思います。 デバイスツリーの詳細を教えていただけますか?Pinmuxのコードしか見えません。 また、使用しているBSPのバージョンと、Wi-Fiモジュールへの接続に使用しているドライバの詳細も教えてください。 よろしくお願いいたします。 サラス。 Re: IMX8M+ w/ BT+WiFi module (AW-XB583MA-PUR) BT takes 50-60 seconds time to get initialized @Manuel_Salas様、 弊社では、カスタマイズされたBuildroot(バージョン2024.08)を使用しています。カーネルバージョン:6.6.36。以前、BT関連のデバイスツリーコードとPinmuxを共有しましたが、以下に改めて共有します。 &uart1 { /* BT */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; 割り当てられたクロック = <&clk IMX8MP_CLK_UART1>; 割り当てられたクロック親 = <&clk IMX8MP_SYS_PLL1_80M>; fsl、uart-has-rtscts; ステータス = "正常"; }; pinctrl_uart1: uart1grp { fsl、pins = < MX8MP_IOMUXC_UART1_RXD__UART1_DCE_RX 0x140 MX8MP_IOMUXC_UART1_TXD__UART1_DCE_TX 0x140 MX8MP_IOMUXC_UART3_RXD__UART1_DCE_CTS 0x140 MX8MP_IOMUXC_UART3_TXD__UART1_DCE_RTS 0x140 >; }; 他に特定のデバイスツリーノードが必要な場合はお知らせください。 Re: IMX8M+ w/ BT+WiFi module (AW-XB583MA-PUR) BT takes 50-60 seconds time to get initialized こんにちは、 使用しているドライバを指定してください。 それは習慣ですか?当サイトのBSPではAW-XB583MAを直接サポートしていません。 よろしくお願いいたします。 サラス。 Re: IMX8M+ w/ BT+WiFi module (AW-XB583MA-PUR) BT takes 50-60 seconds time to get initialized 現在は汎用UARTドライバが使用されています
記事全体を表示