Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
LPI2C6 无法发送 0 位吗? 您好,我正在尝试在我的 MIMXRT1170 SoC 上对连接到 T5 和 R5 的设备实现控制。 最初,我尝试这样设置:   lpi2c_master_config_t cfg ;   LPI2C_MasterGetDefaultConfig ( & cfg );   LPI2C_MasterInit ( I2C_BASE , & cfg ,                    srcClockHz );   status_t start_status = LPI2C_MasterStart ( I2C_BASE , 0x15 , kLPI2C_Write );   我发现它在示波器上似乎没有按预期工作。我看到的是起始序列,然后是 0,之后就什么都没有了。所以我尝试直接在 MTDR 中写入类似这样的内容来替换启动命令:   I2C_BASE -> MTDR = 0x4FA ;   这个地址由很多 1 组成,后面跟着 1 和 0 交替出现。我在示波器上看到,在接收到第一个零之后,模块就放弃了,不再传输剩余的比特。为什么会发生这种情况? 为了方便起见,我附上原理图: 我还要补充一点,我们还增加了几个 2.2k 的引体向上。 Re: LPI2C6 can't send 0 bit? 嗨@alex0 , 非常感谢您对我们产品的关注以及对我们社区的使用。 关于您提出的LPI2C6引脚T5和R5的通信问题,请查看以下内容: 1:引脚配置:将 SCL 和 SDA 配置为启用 SION 和启用开漏。确认 T5/GPIO_LPSR_11 已复用至 LPI2C6_SCL,R5/GPIO_LPSR_10 已复用至 LPI2C6_SDA。还要确认 SCL 和 SDA 输入 DAISY 选择是否指向这些焊盘,并检查上拉电阻。 2:调试接口:确认您使用的是 SWD 还是 JTAG。这些引脚(T5 和 R5)也具有 JTAG 功能。如果使用 JTAG,请检查是否存在引脚复用或板级连接冲突。 3:时钟配置:确认 LPI2C6 功能时钟已启用,并且传递给 LPI2C_MasterInit() 的 srcClockHz 值与其配置的频率相匹配。LPI2C 时序取决于该功能时钟。 请在完成这些检查后重试转账。如果在地址字节处仍然停止,请提供故障发生后捕获的SCL/SDA波形和LPI2C6 MSR值。 希望对你有帮助 顺祝商祺! 刘梅 Re: LPI2C6 can't send 0 bit? 你好May,谢谢你的快速回复! 1. 关于引脚配置,我注意到它与我们之前使用的略有不同,但 SION 和开漏已启用。尽管如此,我们还是尝试修改它,使其与截图完全一致——但仍然无效。 2. 关于 JTAG——我们已经了解。我们使用的是SWD,但似乎默认配置无需任何引脚配置即可正常工作。 3. 时钟工作正常。I2C配置为以100kHz运行,并且它正是以这个频率运行的。 以下是我们配置焊盘的方式: IOMUXC_SetPinMux(IOMUXC_GPIO_LPSR_10_LPI2C6_SDA,1U); IOMUXC_SetPinMux(IOMUXC_GPIO_LPSR_11_LPI2C6_SCL, 1U); IOMUXC_SetPinConfig(IOMUXC_GPIO_LPSR_10_LPI2C6_SDA, 0x21U); IOMUXC_SetPinConfig(IOMUXC_GPIO_LPSR_11_LPI2C6_SCL, 0x21U); 据我了解,IOMUXC_SetPinMux 函数负责处理输入 DAISY 引脚的选择。 #define IOMUXC_GPIO_LPSR_10_LPI2C6_SDA 0x40C08028U, 0x2U, 0x40C08090U, 0x1U, 0x40C08068U #define IOMUXC_GPIO_LPSR_11_LPI2C6_SCL 0x40C0802CU, 0x2U, 0x40C0808CU, 0x1U, 0x40C0806CU 这似乎是正确的: 之后得到的 MSR 值为: 0x02000801 Re: LPI2C6 can't send 0 bit? 稍作更正,我们实际上使用的是JTAG,而不是SWD。 断开 JTAG 连接并按照您建议的配置(快速转换速率、正常驱动强度、保持选择)后,我们现在没有时钟信号。   Re: LPI2C6 can't send 0 bit? 嗨,玛丽, 我不太明白您所说的“仅仅拔掉 JTAG 探针可能无法隔离仍然连接到板上 SDA/SCL 网络的电阻器或其他电路”是什么意思。 我们将镜像写入板,断开 JTAG 探针与板的连接,然后执行上电复位。是否需要在软件方面进行一些额外的配置才能禁用 JTAG,还是这是硬件问题? 我提到的那两个电阻器确实是按照你描述的方式连接的。它们不在原理图中,但存在于 I2C 从设备侧。 Re: LPI2C6 can't send 0 bit? 嗨@alex0 , 感谢您提供的最新信息。 我建议切换到 SWD 进行对比测试,并确认调试器和 RT1170 目标板均已连接并配置为 SWD。仅仅拔下 JTAG 探针可能无法隔离仍然连接到板上 SDA/SCL 网络的电阻器或其他电路。 我无法在您提供的原理图中识别出 SDA 和 SCL 网络上的上拉电阻。既然您提到要添加两个 2.2 kΩ 的上拉电阻,请您确认一个连接到 SDA,另一个连接到 SCL,并且两个电阻都上拉到相应的 I/O 电源? 此致, 可能 Re: LPI2C6 can't send 0 bit? 嗨@alex0 , 1:抱歉,我之前的措辞不够清楚。我的意思并不是说在断开探针并执行上电复位后,还需要额外的软件步骤来禁用 JTAG。我担心后续的任何引脚配置是否可能会覆盖 LPI2C6 的 GPIO_LPSR_10/11 设置。请您在传输之前立即读取引脚多路复用寄存器、输入选择寄存器和焊盘控制寄存器,以确认 LPI2C6 配置仍然有效? 2:I²C 主设备和从设备是否在同一块板上?如果没有,请确认他们是否有共同点。 3:断开探针连接后,请通过 UART 或 GPIO 确认应用程序是否到达传输点,并记录传输返回状态以及传输前后 LPI2C6 MSR 的值。如果可用,SWD 调试可以帮助在传输停止时检查寄存器。 此致, 可能 Re: LPI2C6 can't send 0 bit? 嗨,May, 我很高兴地告诉大家,这个问题已经解决了。问题源于引脚配置重叠。CM7 的设置中定义了引脚复用,但 CM4 覆盖了该定义。 我们可以将其标记为已解决。感谢您抽出时间!
View full article
验证 csf 头文件是否与特定的拟合图像相关联。 我已经实现了安全启动,并且大致了解了 Uboot 使用 esbc_validate 所做的操作。但是,我正在尝试创建一个升级实用程序,以验证使用 cst 2.x 生成的特定头文件是否与特定的 fit(内核、dtbs、rootfs)映像相关联。 将 csf 网络安全标头放置在正确的偏移量处,并将 fit 图像放置在正确的偏移量处,启动就完全没问题了。但是,我想在将它们放置到各自位置之前先核实一下。 我知道公钥嵌入在 CSF 文件中,所以我必须把它提取出来。我之后有点困惑。我认为我需要提取 RSA 签名,并使用提取出的公钥对其进行哈希运算,而这个哈希值似乎与拟合图像有关,但它并不是拟合图像的简单哈希值? 我已经设法从烧断的熔丝中取出了SRKH,这样我就可以进行比较了。 目前谷歌/Gemini公司提供的帮助不大。 有什么想法吗? QorIQ LS1设备 Re: Verify a csf header file is associated with a specific fit image. 签名不仅仅是 FIT 的哈希值。对于此安全启动流程,它会验证 CSF 标头的 安全散列算法\(SHA\)-256 摘要、该标头指定的映像字节、公钥材料以及(如果使用)SG 表。验证过程还会将密钥与熔丝后的SRKH进行比对。 因此,在安装这两个文件之前,您的实用程序必须解析候选标头,使用其大小和偏移字段从候选 FIT 中选择正确的字节,计算完整签名数据的摘要,并使用已验证的公钥验证提取的 RSA 签名。如果验证通过,则该标头与经过身份验证的 FIT 字节关联。仅使用 FIT 进行 安全散列算法(SHA)-256 比较是行不通的。
View full article
最新的eb licesne无效 Re: 最新的eb licesne无效 错误“错误:处理响应(50019,41200,10246)” 通常表示存在以下问题之一: 1.激活码已失效或可用许可证数量已用完。 2. 激活响应文件(activation.xml)与目标电脑上生成的激活请求文件不匹配。 3. activation.xml 文件不是通过 Elektrobit 官方离线激活门户生成的。 我刚才试着离线激活,成功了。 Re: 最新的eb licesne无效 使用离线激活时,出现此错误信息。 Re: 最新的eb licesne无效 嗨,怡源, 请告诉我具体的错误信息,例如 EB Client License Administrator 1.5.1 返回什么错误? 我刚使用该激活码成功激活。 此致敬礼, Robin
View full article
选择用于 PXI 控制器的 MPU 我想创建一个开源的 PXI 机箱控制器(如果有人不知道的话,它基本上是一个 ARM 单板计算机,通过 PCIe 连接到背板,外围 PXI 模块也做同样的事情,但使用的是 PCIe EP 而不是 RC)。 所以,我需要一个可以运行linux发行版的MPU,例如:Ubuntu 系统在图形模式下运行,性能良好,因为上面会运行一些专用软件,例如:LabVIEW 和自定义外围模块控制实用程序,每秒可处理 Gb 的原始数据。它还应该至少有 2 个独立的 PCIe RC,这是 PXI 规范所要求的,而且速度越快越好:如果速度足够快,例如,就可以实现以下功能:将原始数据连续地馈送到射频 AWG 的 DAC,不受 AWG 内存大小的限制。如果能连接大量 LPDDR4 内存就太好了,不只是普通的 32 位总线,而是 64 位以上的总线。 TI 的新款 Am69a 看起来很棒,但似乎价格不菲,而且它非常新,所以没有完整的勘误表、软件示例、驱动程序等等——对于我这个硬件开发人员来说,编程只是业余爱好,感觉挑战太大了。 另一种选择是瑞芯微RK3588,它价格更便宜,也更老一些,但是它的PCIe速度太慢,只有2x2 Gen 3。我当然可以接受,但是……也许您有更好的想法,或者最近做过类似的事情?很想听听他们的想法。 🙂 USB Re: Choosing an MPU for PXI controller 您好, 感谢您对恩智浦半导体产品的关注, 对于 PCIe 要求,工业处理器中的最新 PCIe 代数为 Gen 3。LS2048/88A 具有 4 个 PCIe 控制器(Gen3),支持 1x8、4x4、4x2、4x1 通道配置,而 LX2160A 最多有 24 条 PCIe Gen3 通道,支持高达 x8 的端口。Layerscape 还拥有卓越的以太网连接性能,能够处理超过几 Gbps 的数据。DDR 也能够满足 2 个分别为 64 位和 72 位的控制器,但是它们运行在 DDR4 上。 https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/layerscape-processors:QORIQ-ARM 另一个缺点是它们不能原生运行图形界面,工业图形处理器是 i.MX 处理器,它们运行在 32 位 DDR 上,最高支持 10 Gbps 以太网,最高支持 2 个 PCIe Gen 3,但它们可以运行图形。 此致
View full article
S32 Design Studio: Import and Build an Application Code Hub Project using AI Introduction This tutorial shows how an AI agent, together with S32 Design Studio AI Support, can run a complete S32 Design Studio workflow from one natural-language prompt. The workflow covers importing an NXP Application Code Hub example, generating configuration code, building the project, and running it on hardware. Instead of clicking through wizards, configuration views, and debug settings, you describe the result you want in plain language. The agent then uses S32 Design Studio AI Support's MCP tools to carry out each step. In this scenario, you ask the agent to complete an end-to-end task: Start S32 Design Studio with a dedicated workspace. Import the GPIO Blinking LED Demo from the NXP Application Code Hub. Target the FRDM-A-S32K312 board. Generate code for Pins, Clocks, and Peripherals using S32 Configuration Tools. Build the project with zero errors. Flash and run the firmware on the connected board. The agent breaks this request into a sequence of tool calls. It starts the IDE, searches the Application Code Hub, imports the demo, runs code generation, builds the project, and flashes the board.  Estimated time: ~20 minutes. System Architecture GPIO Blinking LED Demo — FRDM-A-S32K312 – system architecture overview   The components involved are:   FRDM-A-S32K312 – Target evaluation board. Runs the GPIO Blinking LED Demo firmware. Host PC – Runs S32 Design Studio and the S32 Design Studio AI Support. Imports the project, generates code, builds, and flashes the firmware over USB. Prerequisites   What you need before starting Download and install the FRDM Automotive S32K3 + S32M27 Board Installation Package from the Automotive Package Manager – LINK Update S32 Design Studio to v3.6.11 or later using the S32 Design Studio Platform package available in the Extensions and Updates panel Install the S32 Design Studio MCP REST Server (bundled with S32 Design Studio 3.6.11+ or available for installation via Extensions and Updates in older versions starting with 3.6.5) One FRDM-A-S32K312 evaluation board + USB cable Download, install and configure your agent to use the S32 Design Studio AI Support from Installation & Usage Guide  Note: This tutorial uses these paths: Installation: C:\NXP\2026\K3_kit\S32DS_3.6.8 Workspace: C:\NXP\2026\K3_kit\workspace_S32DS_3.6.8_K3_kit You can use any location. If you do, update the paths in the prompt to match. Connect the FRDM-A-S32K312 board to the PC via USB before starting. The AI will detect the board automatically through the MCP server. Steps   Send the following prompt to your AI assistant. It is a complete, self-contained instruction that drives the demo.   Step 1 – Import GPIO Blinking LED Demo & build You are a software developer that needs to use S32K312 FRDM board, start S32DS that is installed at C:\NXP\2026\K3_kit\S32DS_3.6.8, import the GPIO Blinking LED Demo for FRDM-A-S32K312 from the NXP Application Code Hub into S32 Design Studio IDE. After importing, run S32 Configuration Tools to generate code (Pins, Clocks, Peripherals), build and run the project. Use s32ds-agentic-ai MCP server and if the server disconnects, stop and notify the user. AI will:   Start S32 Design Studio from C:\NXP\2026\K3_kit\S32DS_3.6.8 Search NXP Application Code Hub for GPIO Blinking LED Demo for FRDM-A-S32K312 and import it into S32DS Open S32 Configuration Tools and click Generate Code (Pins, Clocks, Peripherals) Trigger a full build and confirm zero errors Flash and run the project on the board Stop and notify the user if the s32ds-agentic-ai server disconnects Verifying the Result   Work through this final check to confirm that the prompt completed successfully.   Final check The project is imported and visible in the S32DS Project Explorer. S32 Configuration Tools ran successfully – Pins, Clocks, and Peripherals code was generated with no errors. Build completes with zero errors. Firmware is flashed and running on the FRDM-A-S32K312 board. The onboard LED should toggle with a 500ms cadence (500ms on, 500ms off). Troubleshooting   Symptom Fix Project not found in Application Code Hub Confirm the search term is GPIO Blinking LED Demo for FRDM-A-S32K312. Check that the s32ds-agentic-ai is connected and the ACH tool is available. Import fails or project does not appear in Project Explorer Try File › Import › Existing Projects into Workspace manually. Confirm the workspace path is C:\NXP\2026\K3_kit\workspace_S32DS_3.6.8_K3_kit. S32 Configuration Tools does not open Double-click the .mex file in the project root. Ensure the S32K3 SDK is installed and the project SDK is correctly configured. Generate Code produces errors Check the Pins, Clocks, and Peripherals tabs for validation errors (red markers). Resolve conflicts before regenerating. Build errors after Generate Code Ensure the generated src/ folder is included in the build path. Try Project › Clean then rebuild. Flash / debug fails Ensure the board is powered via USB and the J-Link / OpenSDA debugger is recognised. Try Run › Debug Configurations and re-select the correct debug probe. LED does not blink after flashing Confirm the correct binary was flashed. Check that the debug session started and the program counter advanced past main(). s32ds-agentic-ai server disconnects Stop immediately and restart the MCP server following the setup instructions. Do not continue until the server is confirmed connected. File Reference   File Step Description src/main.c 1 Main firmware entry point — GPIO LED blinking loop *.mex 1 S32 Configuration Tools project file (Pins, Clocks, Peripherals) generate/src/ 1 Auto-generated peripheral initialization source files generate/include/ 1 Auto-generated peripheral configuration headers   Import the demo, generate the configuration code and flash it – your first Application Code Hub project running on the FRDM-A-S32K312 in about 20 minutes. Examples
View full article
ls1043a - Linux BSP 中是否应该启用 thermal_zone5? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 我正在使用 ls1043 处理器的参考板 ls1043ardb,遇到了散热子系统的问题。我看到的错误是: [ 116.704475] thermal thermal_zone5:已达到临界温度 (104°C),正在关闭 虽然看起来有点零星,但一旦出现,通常会在启动后不久发生。它并非总是发生。当系统稳定时,thermal_zone5 的温度始终为 0。 dts 文件 fsl-ls1043a.dtsi 中已激活 thermal_zone0 - thermo_zone5。( fsl-ls1043a.dtsi\freescale\dts\boot\arm64\arch - qoriq-components/linux - 用于 QorIQ 支持的 Linux 树) 问题是 ls1043 是否应该启用 thermal_zone5?查阅“QorIQ LS1043A 参考手册,修订版 5,04/2019”第 35.1.1 章“本地温度传感器位置”,我可以看到一个表格,其中指出 ls1043 的温度传感器 ID 为 0-4,而 ID 5-15 被标记为保留。hte dtsi 文件是否启用 thermal_zone5,并且在 ls1043 中是否可用? 谢谢, 彼得 Re: ls1043a - should thermal_zone5 be active in the Linux BSP? 你好, 我们在运行 Linux 4.19.68 的 LS1043A 平台上也遇到了类似的问题。 系统偶尔会报告: Thermal_zone5:温度已达临界值(104℃),正在关闭   观察发现,热区 0-4 通常彼此密切相关,而热区 5 经常报告明显不同的值,并且与其他区域的行为不同。   停机前,各热区报告的值与以下值类似: thermal_zone0: 75000 thermal_zone1:76000 thermal_zone2:76000 thermal_zone3:75000 thermal_zone4:74000 thermal_zone5:0 NXP 在之前的回复中提到 thermal_zone5 的值不确定,并将在未来的 LSDK 版本中提供修复程序。 请问这个问题是否已经修复?如果已修复,请问是哪个 LSDK/内核版本包含了该修复? 谢谢。 Re: ls1043a - should thermal_zone5 be active in the Linux BSP? 我在最新的LSDK 20.12(内核版本5.4.47)上也遇到了类似的问题。 [ 2115.927267] thermal thermal_zone1:已达到临界温度(85°C),正在关闭 [ 2116.951246] thermal thermal_zone1:已达到临界温度(85°C),正在关闭 [ 2117.975285] thermal thermal_zone1:已达到临界温度(85°C),正在关闭 请问是否有任何变通方法可以解决这个问题? 这个问题的根本原因是什么? Re: ls1043a - should thermal_zone5 be active in the Linux BSP? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 我们已确认该问题,目前热区 5 报告的值不确定,可能会在任何随机时间点导致此类问题。我们将在即将发布的 LSDK 版本中提供正式修复程序。 目前你可以从 dtsi 中移除热区 5,看看是否有帮助。
View full article
JCOP4 P71 — AES-GCM 和 AES-CCM 返回 NO_SUCH_ALGORITHM 我正在使用 NXP JCOP4 P71 卡,并试图了解为什么 AES-GCM 和 AES-CCM 似乎都不可用。 卡片详情: JCOP 4 P71 JCOP 版本:4.7 R1.01.4 平台 ID:J3R3510236310400 ATR:3BFA180000910131FE454A33523331302D333535FF JCOP 工具 6.15.0.11 Java Card Classic 3.0.5 其他加密功能,如 AES-128 ECB、SHA-256、RSA 和安全随机数生成,均能正常工作。 然而: * AES-GCM 返回 CryptoException.NO_SUCH_ALGORITHM * CryptoBaseX.ALG_AES_GCM 也返回 NO_SUCH_ALGORITHM * AEADCipher.ALG_AES_CCM 也返回 NO_SUCH_ALGORITHM 请问有人能澄清一下,GCM 和 CCM 是否应该支持此特定 JCOP4 P71 配置吗? 尤其: 1. 平台 ID J3R3510236310400 是否支持 AES-GCM 和 AES-CCM? 2. 这些算法是否依赖于特定的 OEF / 卡配置? 3. 颁发后能否启用,还是需要不同的 JCOP4 卡配置? 4. 是否有文档说明针对给定的 JCOP4 配置启用了哪些加密算法? 我主要想确定这是否是此卡配置的预期行为,还是我的设置中遗漏了什么。 Smart Card Re: JCOP4 P71 — AES-GCM and AES-CCM return NO_SUCH_ALGORITHM 你好@sameer_chawla , 答案如下: 1. 不,JCOP 4(平台 ID:J3R3510236310400)不支持 AES-GCM 和 AES-CCM。 2. 不,这些算法不受任何配置支持。 3. 不,它们无法自动启用,客户需要使用可用的 API 自行实现。 4. 是的,“um4695xx - 用户指南和管理员手册 JCOP4 P71”列出了可用的加密算法 还有另一份文档描述了我们 JCOP 平台上可用的加密算法: an7459xx - AN14334 - JCOP 4 P71、JCOP 4.5 P71 和 JCOP 5 P71 的比较 CIPHER_AES_CCM:JCOP 4 不支持,JCPO 4.5/5 支持。 CIPHER_AES_GCM:JCOP 4/4.5/5 不支持。 希望对您有所帮助。 祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 -------------------------------------------------------------------------------
View full article
IMX95: Displays with a MIPI DSI and a dual-channel LVDS Hi, Can I output different sources to a DSI and a dual-channel LVDS at the same time? If this is supported, how to config the settings? I referred to IMX95 Manual and the device-trees, but I can not understand the association between pixel_interleaver , LDB and MIPI-DSI. Thanks. Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS For the normal i.MX95 BSP/device-tree model: do not plan on driving an independent MIPI-DSI display and a dual-channel LVDS display at the same time. The limiting point is the display output routing: the i.MX95 display controller has two independent display output streams, and dual-channel LVDS consumes the two LVDS-side paths, leaving no free input path for MIPI-DSI in the standard configuration . There is one important nuance: an NXP community knowledge-base item mentions i.MX95 triple-display Linux patches for LF-6.6.52-2.2.0 with “1 MIPI DSI + 2 LVDS” support and DTBs named imx95-19x19-evk-triple-display-lvds-clone.dtb and imx95-19x19-evk-triple-display-lvds-interleaver.dtb . That should be treated as a specific patched EVK/BSP use case , not as evidence that the unmodified reference manual/device trees support arbitrary independent DSI + dual-channel LVDS routing. The association is roughly: Block Role in the display path Display engines / DPU outputs Produce the two display streams, DISP_IN0 and DISP_IN1 . pixel_interleaver Routes or splits those streams. In bypass mode, DISP_IN0 goes to PL_OUT0 and DISP_IN1 goes to PL_OUT1 ; in interleaver mode, one selected input stream is interleaved while the other input is bypassed . LVDS / LDB / Pixel Mapper The i.MX95 LVDS path receives one or two display-interface streams and drives the LVDS PHYs; the RM describes the Pixel Mapper driving LVDS PHY1 and LVDS PHY2 . Some Linux/device-tree naming may still use “LDB”, but architecturally on i.MX95 this is the LVDS output path behind the pixel interleaver / pixel mapper. MIPI-DSI DSI takes pixel data through the Pixel Link path; the DSI pixel-formatting block converts Pixel Link format to DSI host DPI format, and a DSI pixel-link control field selects the pixel link connected to the DSI host controller . So, for standard configuration: Single-channel LVDS + MIPI-DSI : feasible; one display output path can feed LVDS and the other can feed DSI. Dual-channel LVDS only : feasible; both LVDS channels are used together for the LVDS display. Independent MIPI-DSI + dual-channel LVDS : not supported in the standard routing described by the current evidence; NXP community analysis states that dual-channel LVDS reserves both available DPU output ports, so MIPI-DSI cannot be routed at the same time. For configuration, I would not try to fix this by manually changing pixel_interleaver register values alone. Under Linux, the routing is established by the DRM device-tree graph: the DPU / display pixel link endpoints must connect to either LVDS/LDB or MIPI-DSI endpoints. If the DSI node has no valid upstream endpoint, the driver reports errors such as imx95-mipi-dsi ... No valid input endpoint found . For a supported setup, use the corresponding BSP DTB/overlay: LVDS-only: use the LVDS DTB for the intended LVDS channel/mode. DSI-only: use the DSI panel/bridge DTB. Single-LVDS + DSI: route one pixel-link output to LVDS and the other to DSI. Triple-display / DSI + 2 LVDS: start from the NXP LF-6.6.52-2.2.0 triple-display patch set and its provided DTBs, if that patch set matches your BSP and EVK baseline. Bottom line: with the normal i.MX95 BSP, use either dual-channel LVDS or DSI + single-channel LVDS; for DSI plus two LVDS outputs, use the specific NXP triple-display patch flow rather than trying to derive it from the RM registers alone. Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS Thanks for answering me. I learned a lot. This feature is not necessary. The reason why I want to do this is my target board has these two interface 2ch-lvds and mipi-dsi, but I don't like to reset fdtfile whenever I need to change the display to do testing. Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS Are there any official documents released by NXP for independent tripple display support?
View full article
iMXRT 1024 evk 调试错误 你好, 我们正在尝试使用 iMXRT 1024 evk 板和 MCUXpresso IDE 调试 IMXRT 1024 的辅助引导加载程序。每次启动调试会话时,都会出现以下错误: cleo_0-1787762322632.png ============= 脚本:IMX93_connect_M33.scp ============= IMX93 M33 连接脚本 RESET引脚状态:01 DpID = 0BD11477 TAP 0: 0BD11477 核心 0: M7 APID: 04770041 ROM 表: E00FD003* TAP 0: 0BD11477 核心 0: M7 APID: 04770041 ROM 表: E00FD003* APID = 0x04770041 错误:线路确认故障 - 目标已连接? 错误:线路确认故障 - 目标已连接? m = 0x04770041 n = 0x04770041 重新连接即可查看 M33 DpID = 0BD11477 APID = 0x04770041 禁用 Cortex-M33 TCM 的 ECC 逻辑 禁用 Cortex-M33 缓存的 ECC 逻辑 错误:线路确认故障 - 目标已连接? 错误:线路确认故障 - 目标已连接? 错误:线路确认故障 - 目标已连接? 错误:线路确认故障 - 目标已连接? 向 EdgeLock 安全区发送请求以释放 Cortex-M33 TROUT ... 查看 错误:线路确认故障 - 目标已连接? Resp1:0x000000C8 错误:线路确认故障 - 目标已连接? Resp2:0x000000C8 错误:线路确认故障 - 目标已连接? 错误:线路确认故障 - 目标已连接? SCR = 0x00000000 M33_CFG = 0x00000000 TAP 0: 0BD11477 核心 0: M7 APID: 04770041 ROM 表: E00FD003* M33 启动 错误:AP 未就绪 错误:未确认停止 ============= 脚本结束 ================================= following RESET read of core registers failed - Ep(08).目标运行时无法访问核心寄存器。 提交 Flash 写入时出现目标错误:Ep(08)。目标运行时无法访问核心寄存器。 GDB 短截线 (C:\nxp\LinkServer_25.6.131\binaries\crt_emu_cm_redlink)终止 - GDB 协议问题:管道已被 GDB 关闭。 造成这个问题的原因是什么?如何解决? Re: iMXRT 1024 evk debug error 嗨@cleo , 非常感谢您对我们产品的关注以及对我们社区的使用。 我不认为这个问题是由辅助引导加载程序本身引起的。 从调试日志来看,MCUXpresso IDE / LinkServer 似乎正在运行以下连接脚本: IMX93_connect_M33.scp IMX93 M33 连接脚本 此脚本适用于 i.MX93 设备上的 Cortex-M33 内核。然而,i.MX RT1024 是一款单核 Cortex-M7 设备,不使用 i.MX93 的 M33 连接流程。   请尝试以下操作? 1:在 MCUXpresso IDE 中,删除此项目的现有调试启动配置。 2:确认项目 MCU/板配置为 i.MX RT1024 设备(或 RT1024 EVK),而不是 i.MX93 设备。 3:打开启动/调试配置,并验证所选设备/核心是否为 RT1024。 如果可以,您还可以分享调试配置设置的屏幕截图,以便我们进一步查看。   希望对你有帮助 顺祝商祺! 5月
View full article
FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times 最近在研究FS2630 供电的时序和模式切换,      板子切换到OTP emulation 模式下,download the mirror register and switch SW7 to OFF,  然后开始初始化过程, 一直到normal Mode, 一切都正常, 然后配置了wakeup1 作为唤醒源 ,然后发送standby command, FS2630 进入到standby mode, 此时也是一切正常(INT 没有触发), 然后我switch SW2 后, NXP GUI INT 就报了 VPRE_UVH 和其他INT, FS2630 的FS_STATUS 也变成 0-Undefined, 为什么没有回到normal mode 呢?     之后我关闭了FS2630 的EVB 板子的12V电源, 然后准备重新操作下,发现NXP GUI 就不能读取寄存器的值, 最后发现是MOSI , SCK 对地短接了, 这种情况发生了两次, 没有一点头绪,希望各位给个思路? Recently, I have been studying the FS2630 power-up sequence and mode switching. The board is switched to OTP Emulation Mode. After downloading the mirror registers and setting SW7 to OFF, I start the initialization process and everything works normally until the device reaches Normal Mode. Next, I configure WAKEUP1 as the wake-up source and send the Standby command. The FS2630 enters Standby Mode, and at this point everything is still normal (INT is not triggered). However, when I toggle SW2, the NXP GUI reports a VPRE_UVH interrupt along with other interrupts. At the same time, the FS_STATUS of the FS2630 changes to 0 - Undefined. Why doesn't the device return to Normal Mode? In addition, I later turned off the 12 V power supply to the FS2630 EVB and attempted to repeat the process. I found that the NXP GUI could no longer read the register values. After some investigation, I discovered that MOSI and SCK were shorted to ground. This issue has occurred twice, and I have no clear idea what is causing it. I would appreciate any suggestions or insights on where to start troubleshooting. Re: FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times 切换SW2后,我读取了寄存器M_WIO_FLG、M_REG_FLG和M_VSUP_FLG。 M_REG_FLG: 0X00a0 M_VSUP_FLG: 0X0000 M_WIO_FLG:0X0f00 Re: FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times 我还有个问题, LDT功能5,在低功耗模式下,计数不能因其他唤醒事件而停止吗? 计数只能在溢出或 LDT_EN=0 时停止? 在计数运行溢出之前,FS2630 已被其他唤醒事件唤醒,然后计数运行溢出,FS2630 会发生什么情况? Re: FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times 好的,我购买了MFS2630AMDA0AD芯片,正在发货,收到芯片后我会读取寄存器。 另一个问题1:FS2630的VDDIO和VBAT可以同时上电吗? 关于FS2630,我有4个问题: FS2630上电过程中如果MCU与SBC连接的RESET_B引脚被MCU拉低, SBC的上电过程会受到什么影响? FS2630正常工作过程中如果MCU与SBC连接的RESET_B引脚被MCU拉低, SBC的行为会是什么? FS2630通过接收MCU的SPI进入低功耗模式,接收命令后的行为是什么?是否有延迟设置? FS2630进入待机/LPOO后,通过唤醒源唤醒后,唤醒后的上电如何操作? Re: FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times 您好! 根据您的描述,似乎检测到了 WAKE1 事件,并且 FS2630 正在尝试退出待机模式。然而,报告的 VPRE_UVH 中断表明,在待机到正常转换期间可能发生了与电压相关的故障,从而阻止设备成功完成唤醒序列。因此,设备可能无法恢复到正常模式,并且 FS_STATUS 可能显示为未定义。 为了帮助缩小故障根源范围,请您提供以下信息? 切换 SW2 后 M_WIO_FLG、M_REG_FLG 和 M_VSUP_FLG 的值。 关于第二个问题,MOSI 和 SCK 出现对地短路的现象在正常操作中是不可能发生的。由于这种情况已经发生两次,我们建议检查 EVB 硬件是否有任何损坏或意外短路。 Re: FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times 你好, 请用示波器在进入待机状态之前、待机期间以及切换 SW2 之后立即捕获 VSUP、BATSENSE、VPRE、VDDIO、WAKE1、RSTB 和 SPI 信号。 Re: FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times 你好, 是的,VBAT 和 VDDIO 可以同时供电。 1.在 FS2630 上电过程中,如果 MCU 将 RESET_B 拉低,会产生什么影响? FS26 上电序列正常进行。然而,由于 RSTB 是双向的,即使 FS26 准备释放复位线,MCU 仍可能保持复位线低电平,从而使 MCU 保持复位状态。如果 RSTB 保持低电平超过 8 秒,设备可能进入深度故障保护模式。 2. 在正常运行期间,如果 MCU 将 RESET_B 拉低,会发生什么情况? 复位线为低电平,MCU 保持 RESET 状态,FS26 可以根据其功能安全配置输出功能安全信号。 3. 执行 SPI 命令进入低功耗模式后会发生什么?是否有可配置的延迟? 未描述可配置的延迟。 4. 从待机/LPOFF 状态唤醒后的上电顺序是什么? 检测到唤醒源 → 调节器启动序列 → LBIST(如果启用) → ABIST → RSTB 释放 → INIT_FS 状态 → 看门狗刷新 → 释放安全输出 → 正常模式。 Re: FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times LDT 功能 5 的计数能否被另一次唤醒事件停止? 不 计数只能在溢出或 LDT_EN = 0 时停止吗? 是的。LDT 会在超时时失效,或者软件可以通过清除 LDT_EN = 0 来停止它。 如果另一个唤醒源在 LDT 过期之前唤醒了 FS2630,之后 LDT 达到溢出,会发生什么情况? 我们没有关于此具体案例的信息。 Re: FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times 正常模式下 VPRE 信号电压为 6V 待机模式下VPRE信号电压为5.35V VPRE 信号电压:电压以 450 kHz 的频率在 0V 和 6V 之间切换。 我尝试了很多方法,因为我使用的是 FS2613AMDA0AD 芯片,并使用 OTP 仿真来下载镜像寄存器。当芯片通过 wakeup1 源从待机模式切换到正常模式时,镜像寄存器丢失了,导致 VPRE 电压以 450 kHz 的频率在 0V 和 6V 之间切换。除了烧录 OTP 之外,还有其他方法可以解决这个问题吗? Re: FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times 你好, 不,镜像寄存器的内容在重启或唤醒序列后不会被保留。 Re: FS2630 Evaluation Board , the MOSI and SCK pin of FS2630 is short , three times 唤醒序列是否包括从待机/LPOFF模式到正常模式的转换?
View full article
Accessing my kernel rpmsg buffer from user space Hi, I have been able to communicate between my imx8mp MPU and the MCU.  However, I want to access the data in the shared memory from the user space.  Is there an example for this? I would also like to ask if the imx_rpmsg_pinpong.c device driver can be extended to handle linux Userspace I/O for the communication between the kernel space and the user space. Thanks i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: Accessing my kernel rpmsg buffer from user space Hi, I am also looking at the same issue. The example you provided works with the kernel module. However, I am actually looking for a example userspace application. Could you provide a sample C program i can run on the linux side within userspace. Thanks! Re: Accessing my kernel rpmsg buffer from user space Hi @ababatola , I hope you're doing well! Sorry for the late reply. I'd recommend taking a look at the rpmsg_lite_str_echo_rtos multicore example found in the i.MX 8M Plus SDK. It's a simple application which allows you to send a message from the Cortex A to the Cortex M and then M4 displays what is received, and echoes back the same message as an acknowledgement.  You can build and download the SDK from https://mcuxpresso.nxp.com/ Let me know if this works for you. Best regards, Hector.
View full article
FRDM-i.MX95 EVK の Ubuntu インストール ガイド (Ubuntu 22.04/24.04) こんにちは、 現在 FRDM-i.MX95 EVK を使っていて、このプラットフォームで Ubuntu(22.04または24.04) を動かしたいと考えています。 i.MX8MPにUbuntuをインストールするための以下のガイドを見つけました: https://community.nxp.com/t5/i-MX-Processors/How-to-install-ubuntu-on-imx8mp/td-p/1744295 私の質問は以下のとおりです。 このi.MX8MPガイドで説明されている手順をFRDM-i.MX95 EVKで使ってもいいですか? i.MX95向けに公式にサポートされているUbuntuイメージやBSPはありますか? もし直接互換性がない場合、i.MX95でUbuntuを動かす際に推奨される方法は何でしょうか? (例:Yocto + Ubuntu rootfs、またはプリビルドイメージなど) ブートローダー、カーネル、デバイスツリー、GPU/NPUのサポートなど、既知の制限や違いはありますか? i.MX95上でUbuntuを動作させるためのガイダンスや参考資料があれば、ぜひ教えていただきたいです。 事前に感謝いたします。 よろしくお願いします、 ジャック Re: Ubuntu installation guide for FRDM-i.MX95 EVK (Ubuntu 22.04/24.04) こんにちは、 @JK-IMXさん。 Ubuntu OSのサポートは終了しました。現在、私たちはDebian OSをサポートしています。Debianシステムに関する情報については、下記のリンクを参照してください。 https://www.nxp.com/design/design-center/software/embedded-software/linux-software-and-development-tools/nxp-debian-linux-sdk-distribution-for-i-mx-and-layerscape:NXPDEBIAN BR
View full article
[S32K358] Version for HSM, RTD on s32k358 dear nxp What is version for HSM, RTD on s32k358? Thanks, Bryan Re: [S32K358] Version for HSM, RTD on s32k358 Hi @bryan_hong  It’s recommended to use the latest version of RTD and HSE firmware. That means: - HSE firmware for S32K358 version 0.2.55.0 - RTD 7.x.x As mentioned in the release notes, Crypto driver from RTD 7.x.x is tested with HSE firmware 0.2.55.0. Regards, Lukas Re: [S32K358] Version for HSM, RTD on s32k358 Hi Lukas thanks for your comments, it's helpfull me. Thanks, Bryan    
View full article
LS1028A IEEE1588 Phyタイムスタンプによるサポート こんにちは、IEEE1588 LS1028Aのサポートについて質問があります。利用可能な資料をざっと見てみましたが、質問の答えが見つかりませんでした。具体的には、FelixのスイッチドライバーかMACドライバー(どちらかは不明)が、タイムタンピングがMACレイヤーではなくEthernet Phyで行われるIEEE1588をサポートしていますか?理論的には、Phyタイムスタンプを使用すると、ラインに近いので、より高い精度が得られるはずなので、疑問に思っています。少なくとも理論上は。このSoCではどのように動作するのですか? Re: LS1028A IEEE1588 support with Phy timestamping こんにちは、 いいえ — LS1028Aでは、IEEE 1588/PTPのタイムスタンプは、SoCの内部イーサネットハードウェア(ENETC MACまたはFelix switch MAC/PTPブロック)によって行われると記録されており、外部イーサネットPHYによって行われていません。IEEE 1588タイムスタンプは、外部のPHYベースのパケットタイムスタンプではなく、ENETC/Felix MAC側のPTPハードウェアと個別のPHCブロックによって内部的に処理されます。 よろしくお願いします。
View full article
INJ1 and INJ3 waveforms differ on FRDMPKPT2000EVM – how to make them consistent? Hello everyone, I am currently working with the S32K144-Q100 board and FRDMPKPT2000EVM, running the S32K144_PT2000_EXAMPLE project to drive a Bosch HDEV 5.1 injector (1.5Ω, Peak & Hold type). The problem: INJ1 and INJ3 have different current waveforms. Both injectors are the same model and connected to the same type of load. What I have already tried: In the main function, I called send_single_PT2000_SPI_Cmd(WRITE, ch1_ctrl_reg_uc0, 0x00); and send_single_PT2000_SPI_Cmd(WRITE, ch1_ctrl_reg_uc1, 0x00); – no change in the waveform. I changed the value of flash_enable (address 0x100) in PT2000_ch1_config[20] to 0x0008 – still no change. My questions: What is the purpose of send_single_PT2000_SPI_Cmd(WRITE, ch1_ctrl_reg_uc0, 0x00);? Why do INJ1 and INJ2 have the same waveform, but INJ1 and INJ3 have different waveforms? What code do I need to add or modify to make INJ3 match INJ1? Any guidance would be greatly appreciated! Thanks in advance, D1ego PT2000 FRDMPKPT2000EVM  Re: INJ1 and INJ3 waveforms differ on FRDMPKPT2000EVM – how to make them consistent? Hello D1ego, The command send_single_PT2000_SPI_Cmd(WRITE, ch1_ctrl_reg_uc0, 0x00) only controls the microcore behavior (enable/reset/override). It does not define the injector current waveform, so no visible change is expected. In PT2000, injector outputs are controlled by microcores grouped into banks (with separate code/data RAM) → Different banks can run different current profiles. Please refer to the AN5186.  In the example project: INJ1 and INJ2 share the same bank/microcode → identical waveform INJ3 is assigned to a different bank → different waveform Therefore, the behavior is expected and not caused by a fault. To make INJ3 match INJ1: Ensure INJ3 uses the same configuration and microcode as INJ1: Copy the corresponding Data RAM configuration (PT2000_chX_config[]) Ensure the same microcode is loaded for that bank With Best Regards, Jozef
View full article
JTAG on FRDM iMX95 Hi all,  I just bought FRDM iMX95 recently, i am curious about how to use JTAG to debug this board  As check in schematic it has JTAG exposed at 6 test point pin here  At board layout it here  How should i connect jtag to it, do i need any rework ? And does this JTAG support to debug all A55, M33, and M7 core ?  Which device should i use here, it seem we have 6 pin needle but it 2x3 not 1x6  I would appreciate any guide or docment to set up JTAG  Thank you !!   Linux Re: JTAG on FRDM iMX95 Hello, Your understanding is correct. As you can see in schematic is needed to add the DNP resistors and a connector for the debugger. Best regards. Re: JTAG on FRDM iMX95 Hello, Thank you for your confirmation @JorgeCas  Summary : Please help with JTAG problem ""DAP: Could not power-up system power domain."" I have done the rework for 3 resistor and measure the pin, it successfully pull up. One note that to enable JTAG, i need to disable LPUART5 in device tree  because it use the same pin (i follow the same modify as imx95-19x19-jtag.dtb ) or else TMS (Test point 49) will always LOW) diff --git a/arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts b/arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts index c45f28efb568..598e16af0ebd 100644 --- a/arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts +++ b/arch/arm64/boot/dts/freescale/imx95-15x15-frdm.dts @@ -520,7 +520,7 @@ &lpuart5 { /* BT */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart5>; - status = "okay"; + status = "disabled"; bluetooth { compatible = "nxp,88w8987-bt"; After this i need to find the connector with 1.27mm pin. It take me some time to find this pcb test by pogo pin, it has 6 pin, perfectly fit.  Here is my current setup  It seem a mess but the connection is not problem, i check the HWStatus and it look good  J-Link>ShowHWStatus VTref=3.324V ITarget=0mA TCK=1 TDI=1 TDO=0 TMS=0 TRES=1 TRST=1 Supported target interface speeds: - 120 MHz/n, (n>=8). => 15000kHz, 13333kHz, 12000kHz, ... - Adaptive clocking I try connect it by these 2 command for A55 and M33 but same issue show is "DAP: Could not power-up system power domain." zk47@ltu:~$ JLinkExe -device MIMX9516_M33 -if JTAG -speed 200 SEGGER J-Link Commander V9.42 (Compiled May 6 2026 12:36:02) DLL version V9.42, compiled May 6 2026 12:35:00 zk47@ltu:~$ JLinkExe -device MIMX9516_A55 -if JTAG -speed 200 What could i do wrong here ? Maybe it fall to my JLink device is not good, can MCU-Link Pro replace it ? Can MCU-Link Pro debug both A55 and M core ?  I would still prefer do the debug through JTAG because i already had it. Please help  If you guy plan to add document guide for JTAG on FRDM iMX95, please update it soon like FRDM iMX93.   Re: JTAG on FRDM iMX95 Dear @JorgeCas  Any update ? Can i use MCU-Link Pro to debug all core A55, M33 and M7 core ?  Re: JTAG on FRDM iMX95 Hello, I apologize for the delay. We suggest you any debugger from MACRAIGOR Systems, Wind River or any of ARM. NXP team uses Lauterbach Trace32 as debugger tool for Cortex-A cores, J-link is for Cortex-M cores. In the case of i.MX95, as prerequisite to use the CM7 or CA55 scripts the SM should be already running on the i.MX device. it has the CM33 for resource management and security reasons, it's open source, it's compliant to a HW resource management standard by ARM, and its code it's meant (between a lot of them) to partition hardware, assign resources to either Cortex-A or Cortex-M7. You can use this document as reference. Debugging Cortex-M with VS Code on i.MX 8M, i.MX 8ULP, and i.MX 9 If you still having issues after this considerations, please look for hardware issues in your adapter. Best regards.  Re: JTAG on FRDM iMX95 Dear @JorgeCas  Thank you for your reply.  Okay so the hardware could be the problem, but i am still wonder these thing  Can i have a picture for your setup debug ? I am not sure what is the official way to connect to these test point. does we need to use kind of this  2. The docs only for Debug core M, not core A. Can you give me more guide for "Debug core A linux using Trace32 or JLink or MACRAIGOR " as you said ?  3. Not relate to this thread, but can i have the estimated release date for FRDM iMX95 Pro ?  Re: JTAG on FRDM iMX95 Hello, 1. Our available boards for testing are not modified since if JTAG is needed, we use EVK instead FRDM boards. The recommended approach is use shorter wires as possible between the boards and debugger to warranty a good connection and signal integrity. As you can see in this post, the issue was solved with shorter cables soldered to the board. 2.  This information is in probe manual since each manufacturer uses their process and scripts to connect with the processor. There is no documentation in our side regarding these probes connection. 3. Unfortunately we do not have this information, I suggest you check our official web site for further updates. Best regards. Re: JTAG on FRDM iMX95 @Zk47T Hi, I was wondering if you managed to succeed in debugging the cortex cores on the board, and if you have any advice that you're able to share with me. I'm currently facing the same issues trying to debug the M7 core, and any help would be appreciated. Thanks Re: JTAG on FRDM iMX95 Dear @bbggl  I still can't make it work on FRDM iMX95 board. And as i upgrade to FRDM iMX95 Pro which even have more mess up pin layout. I don't pursue the JTAG on these board any more  As suggest by @JorgeCas , you should ask the author on this thread  as they say they successfully make it work.  Re: JTAG on FRDM iMX95 Thanks you for the reply, I have reached out to the other author. What did you decide on for your debugging setup? Is there another device like the MCU link or EVK board that works better, or have you used alternate methods? Re: JTAG on FRDM iMX95 Hi,  After all, seem like it really the wire issue. I solder directly jumper with copper wire to the JTAG test point, then connect from CH347F module and it did work. I can even able to get some ETM trace here 
View full article
i.MX8MP: TP2860エンコーダチップを搭載したCSI0(連続クロックモード) こんにちは、 IMX8MPベースのプラットフォームにTP2860ビデオエンコーダーを統合しようとしていますが、ビデオをキャプチャすることができません。CSISは受信するMIPIデータストリームと同期していないようです。 プラットフォーム:VARカスタムボード上のVariscite DART-MX8M-PLUS カーネル: linux-imx 6.6.52 (NXP BSP、imx8-mipi-csi2-sam ドライバー)、yocto ビルド カメラ:TechPoint TP2860 MIPIエンコーダ(AHD/TVI → MIPI-CSI2ブリッジ)、出力MIPIクロック:297MHz(実測値) インターフェース: CSI0 (mipi_csi_0 @ 0x32e40000)、2レーン、500 Mbps/レーン、FHD30 (1920x1080@30) パイプライン: TP2860 -> MIPI D-PHY -> CSIS -> (MediaMix Gasket) -> ISI0 -> /dev/video2 v4l2パイプラインは問題ないようです(添付のpipeline_info.txtを参照)。 関連する(フラット化された)デバイスツリー情報はdevicetree.txtに添付されています。 DPHYSTATUSは0xC2(すべてのレーンがHS)を報告しますが、 CSISフレーム開始カウンタは常にゼロです(実際、mxc-mipi-csi2.0カウンタはすべてゼロです)。 NXPのAN13857を読みましたが、いくつか質問があります。 TP2860は、バースト間(連続クロックモード)でMIPIクロックレーンをHSに維持します。これは、ドライバのs_stream有効化の前後両方でCSIS DPHYSTATUS = 0xC2となることで確認できます。 => CSISレジスタダンプ(CSISベース0x32e40000): CSIS_CMN_CTRL [0x04] = 0x00004105 (ENABLE=1、LANE_NR=1->2レーン、HDR_MODE=0) CSIS_DPHYCTRL [0x24] = 0x13000007 (hs_settle=0x13、D-PHY有効) CSIS_DPHYSTATUS [0x20] = 0x000000C2 (HSCLK=1、HSDAT1=1、STOPSTATE_CLK=0) CSIS_INTSRC [0x14] = 0x00000000 (割り込みは発生していません) => CSIS_DPHYSTATUS[0x20] = 0x000000C2 ビット7:HSCLK = 1(HSのクロックレーン) ビット6:HSDAT1 = 1(HSのデータレーン1) ビット1:ULPS_CLK = 0(ULPSではない) ビット0:STOPSTATE_CLK = 0(LP-11停止状態では決して0にならない) これはNXPのAN13857警告と一致します。 i.MX 8MM、 i.MX 8MN、およびi.MX 8MPでは、接続されたカメラがLP状態で動作する必要があります。 Rx DPHYを有効にする前に。しかし、カメラが連続クロックモードで動作する場合、クロック レーンは常にHSモードになっている可能性があります。この場合、Rx DPHY は HS モードを検出せず、 誤って停止状態またはULPS状態にとどまっている。 TP2860レジスタのI2C経由のストリーミング時の読み出し: 0x40 -> 0x08 (s_streamの後にドライバによって選択されたMIPIページ) 0x02 -> 0x7d (MIPI_EN0=1、全ビットがセット) 0x28 -> 0x00 (STOP_CLK=0、ULPM=0) 0x10 -> 0x20 (MIPI TX有効、リセット状態ではない) 0x29 -> 0x00 (データレーン停止/ULPS: なし) アナログエンコーダーの経路を除外するために、TP2860の内部BT.1120テストパターンを有効にしてみました。 0x40 -> 0x08 (MIPIページ) 0x22 -> 0x80 (TP_ENA=1: アナログデコーダをバイパスし、デジタルパターンを送信) しかし、それでは状況は改善しない。 TP2860の設定は以下のとおりです。 0x02=0x3d、0x03=0x35、0x04=0x35 を書き込む <-- MIPI_ENx=0 (レーンオフ) タイミング: 0x2B=0x09 (T_PREP リセットデフォルト)、0x2C=0x0a デコーダPLLリセット: REG 0x06 |= 0x80、msleep(10) MIPI PLLリセット: REG 0x14 |= 0x80、msleep(10)、deassert msleep(50) (PLLロックのための拡張セトル) 0x02=0x7d、0x03=0x75、0x04=0x75 <-- レーンを有効化(LP→HSをクリーンアップ) 質問: iMX8MP Rx D-PHYをカメラと連続クロックモード(STOPSTATE_CLKが常に0)で使用するための、サポートされているBSPメカニズムはありますか?CSIS / D-PHY は HS-RXイネーブルをアサートする前にクロックレーン上のLP-11を監視することに依存しないモードはありますか? iMX8MPにおいて、連続クロックMIPI-CSI2ソースを使用したCSIS動作に関して、AN13857以外に既知の正誤表やアプリケーションノートはありますか? TP2860エンコーダーチップを搭載した同じハードウェアは、Boundary Devices i.MX8 MQセットアップでも動作します。 どんなご支援でも大変ありがたく思います。 グラフィックスとディスプレイ i.MX 8ファミリ | i.MX 8QuadMax (8QM) | 8QuadPlus i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Linux Yocto Project Re: i.MX8MP: CSI0 with TP2860 encoder chip in continous clock mode こんにちは、 私も似たような問題に直面していますが、解決策が見つかれば教えていただけませんか?
View full article
i.MX93でWestonを起動する際の問題:Waylandバックエンドが見つからない みなさん、こんにちは! NXP i.MX93 EVKでWestonを起動しようとした際に問題が発生しており、何かアドバイスをいただけると幸いです。以下に、私のシステム構成と発生しているエラーの詳細を示します。 設定: ボード:カスタムi.MX93 DK Weston バージョン: 12.0.3 カーネルバージョン: 6.6.28 Yoctoベースの環境 問題: weston.ini ファイルに use-g2d=true を追加して Weston を起動しようとすると、次のエラーが発生します。 [14:45:05.751] Failed to load module: /usr/lib/libweston-12/wayland-backend.so: cannot open shared object file: No such file or directory [14:45:05.751] fatal: failed to create compositor backend /usr/lib/libweston-12/ ディレクトリに wayland-backend.so がありません。利用可能なモジュールの一覧は以下のとおりです。 - drm-backend.so - g2d-renderer.so - gl-renderer.so - xwayland.so その他詳細: weston.iniでuse-g2d=falseを設定すると、Westonは問題なく起動するが、フレームレートは5fps程度しかない。 私のweston.iniファイルは以下のようになっています。 [core] use-g2d=true repaint-window=16 gbm-format=argb8888 idle-time=0 xwayland=true [libinput] touchscreen_calibrator=true [screen-share] command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize DRMバックエンドを使用してWestonを手動で起動することができ、正常に動作し、use-g2dをfalseに設定した場合よりもフレームレートが高くなりました。しかし、私のイメージにWaylandバックエンドが含まれていない理由と、それをどのように追加できるのかを知りたいです。 私のYoctoイメージにwayland-backend.soが欠落しているのはなぜですか?イメージ構築時にこのバックエンドが適切に含まれるようにするには、どのような手順を踏めばよいでしょうか? WaylandバックエンドとG2Dアクセラレーションの両方が正しく動作するように、YoctoまたはWestonビルド中に調整する必要のある特定の構成はありますか? どんなご助言やご提案でも大変ありがたく思います!よろしくお願いします。 よろしくお願いします、 エリア Re: Issues Starting Weston on i.MX93: Wayland Backend Missing weston.ini でバックエンドを次のように設定するだけで済みます。 [コア] use-g2d=true backend=drm-backend.so バックエンドを指定しない場合、weston はデフォルトで wayland-backend.so を探しますが、これは weston のコンパイル方法によっては存在しない場合もあります。 Re: Issues Starting Weston on i.MX93: Wayland Backend Missing こんにちは。私もiMX8M Plus用のBSP 6.6.23で同じ問題が発生しています。Waylandバックエンドファイルが見つかりません。なぜそこにないのか、誰か知っていますか? Re: Issues Starting Weston on i.MX93: Wayland Backend Missing あるいは、drmバックエンドをデフォルトで使用するために、どのファイルを変更する必要があるかご存知ですか?weston.ini を変更しました。 [コア] backend=drm-backend.so そしてweston.service [サービス] ExecStart=/usr/bin/weston --backend=drm-backend.so --modules=systemd-notify.so 「weston」と入力すればwestonを起動できますが、「systemctl start weston」では起動できません。 なぜだか分かる? Re: Issues Starting Weston on i.MX93: Wayland Backend Missing @Bio_TICFSL他に試せる方法を知っていますか? Re: Issues Starting Weston on i.MX93: Wayland Backend Missing 設定ファイルの中に、バックエンドの読み込みを停止させたり、読み込みを妨げたりするような設定が含まれている可能性はありますか?しかし、なぜ鈍重なウェストンは影響を受けないのだろうか? 質問が多くて申し訳ありませんが、私はまだYoctoやLinux全般についてあまり詳しくないのです。 Re: Issues Starting Weston on i.MX93: Wayland Backend Missing こんにちは。試してみましたが、残念ながら何も変わりませんでした。wayland-backend.so は、usr/lib/libweston-12/ の下にまだ見つかりません。 メタフリースケール: 41b923e59e048b9b2942ff737a4ddac386954c62 メタオープン埋め込み: a72010b414ee3d73888ac9cb4e310e8f05e13aea ポーキー: 02eacd385eca7aa9cf25aaaa61427aa9c126e0bc それでも、NXP Weston バージョンを bbmask して、bitbake に Poky レイヤーで Weston 13.x を使用するように強制すると、Wayland バックエンドが存在します。 他に何かアイデアはありますか?これは私の設定の問題だと思いますか、それとも別の原因でしょうか? 前もって感謝します! Re: Issues Starting Weston on i.MX93: Wayland Backend Missing poky layerが提供するWestonバージョンは動作しますか? Re: Issues Starting Weston on i.MX93: Wayland Backend Missing こんにちは、 私は使用しています imx93evk-11x11 DISTRO=fsl-imx-xwayland MACHINE=imx93evk source imx-setup-release.sh -b build-xwayland BSP 6.6.3 ウェストン 12.0.3 wayland-backend.so の読み込みに問題が発生しています。 エラー- ウェストン -バージョン [09:17:25.044]ウェストン 12.0.3 https://wayland.freedesktop.org バグ報告先: https://gitlab.freedesktop.org/wayland/weston/issues/ ビルド: 10.0.0-1204-gb0d89091+ [09:17:25.044]コマンドライン: weston -version [09:17:25.044]OS: Linux、6.6.3-lts-next-gccf0a99701a7-dirty、#1 SMP PREEMPT 2024年2月29日(木) 08:37:44 UTC、aarch64 [09:17:25.045]フライトレコーダー:有効 [09:17:25.045]設定ファイル「/etc/xdg/weston/weston.ini」を使用します。 [09:17:25.045]出力再描画ウィンドウの最大時間は16ミリ秒です。 [09:17:25.045]モジュール '/usr/lib/libweston-12/wayland-backend.so' をロードしています [09:17:25.045]モジュール /usr/lib/libweston-12/wayland-backend.so の読み込みに失敗しました。共有オブジェクトファイルを開けません: そのようなファイルまたはディレクトリはありません [09:17:25.045]致命的エラー: コンポジターバックエンドの作成に失敗しました ivi-shellとレイヤーマネジメントを利用しようとしています。ご協力やご提案をいただければ幸いです。 よろしくお願いします。 Re: Issues Starting Weston on i.MX93: Wayland Backend Missing こんにちは、 サポートされていないバージョンを使用しており、galcore がモジュールとして渡されています。6.6.23 bsp を試してみてください。 よろしくお願いします。 Re: Issues Starting Weston on i.MX93: Wayland Backend Missing あ、言い忘れていましたが、Poky Layer が提供する Weston バージョン 13 を使用すると、非常に動作が遅く、フレームレートが非常に低いことを除けば、特に問題はありません。
View full article
rte_eth_rx_burst -> returning same mbuff pointer twice consecutively From my application calling rte_eth_rx_burst  checking sometimes same mbuff coming twice . Checked code buffer not freeing . With out mbuff free what could be the scenario that same mbuff pointer received twice . QorIQ LS1 Devices Re: rte_eth_rx_burst -> returning same mbuff pointer twice consecutively Enable DPDK log levels (first thing to try) Run your app with: --log-level=8 What you’ll see: RX descriptor handling buffer allocation/recycling PMD behavior Enable mbuf debug checking (very useful) Rebuild DPDK with: CONFIG_RTE_LIBRTE_MBUF_DEBUG=y This will: Validate mbuf consistency Catch: corrupted metadata reused mbuf incorrectly invalid refcnt Enable mempool debug       CONFIG_RTE_LIBRTE_MEMPOOL_DEBUG=y Helps detect: double allocation cache corruption same buffer returned twice from mempool Poison/free tracking (EXTREMELY useful) You can enable memory overwrite checking: CONFIG_RTE_MALLOC_DEBUG=y and --mp-alloc=debug This helps detect: overwrite before/after mbuf hidden memory corruption Quick isolation trick (VERY effective) Run testpmd -- -i Then: set fwd rxonly start If duplication disappears: your application bug If still happens: PMD / HW / queue config issue Re: rte_eth_rx_burst -> returning same mbuff pointer twice consecutively thanks @yipingwang  for your quick reply and suggestions. from code i am not to figure out more . Any DPDK debug flag can help ?  Re: rte_eth_rx_burst -> returning same mbuff pointer twice consecutively Without an explicit mbuf free in your code, the most likely scenarios are that the mbuf is still being effectively returned/reused through another path in the application or shared unsafely across threads/cores, or that a special driver/path-specific buffer handling issue is corrupting lifecycle state. Cross-core/shared mbuf ownership issue. One documented case used one CPU for RX and many worker CPUs consuming mbufs from a ring; the mbuf address was then seen reused/overwritten while still referenced elsewhere. NXP specifically asked whether  RTE_MBUF_REFCNT_ATOMIC  was enabled for multicore access, and the customer said yes, but the issue was still treated as application-level ownership/lifetime handling., Duplicate release or hidden return path in the application pipeline. NXP’s guidance in that case was to instrument buffer allocate/release/packet-send actions to see whether the same address was being released back to the buffer pool more than once. PMD/driver returning malformed mbufs to pool in special paths. There is a separate DPAA2 PMD case involving chained mbufs where mbufs returned to the mempool appeared corrupted (  next  not cleared), causing sanity-check failures on later allocation. That is not the same symptom as your report, but it does show that special buffer handling paths can lead to later reuse/corruption symptoms. Same source and destination mbuf in crypto path. In a DPAA security/IPsec case, NXP noted that if  sym->m_dst  is  NULL  , then  m_src  and  m_dst  use the same mbuf. That can make packet contents appear rewritten “in place” under load, even though the pointer identity did not change. Re: rte_eth_rx_burst -> returning same mbuff pointer twice consecutively Thanks @yipingwang  for Quick reply . I will try and update you . One observation every time multiple mbuf ( same address coming ) getting below prints in screen fslmc: dpaa2_get_qbman_swp(): New Portal 0x17ffd61c0 (5) affined thread - 1953 fslmc: dpaa2_configure_stashing(): Portal= 5 CPU= 10 SDEST= 5 fslmc: DPAA Portal=0x17ffd61c0 (5) is affined to thread 1953 Re: rte_eth_rx_burst -> returning same mbuff pointer twice consecutively Those fslmc / dpaa2 portal affined thread logs strongly indicate portal (QBMan SWP) is being re-attached to a different thread/core, which can break ownership model → leading to mbuf reuse / duplication symptoms.
View full article
在运行 S32K344 WB 的"s32k3_wb_can" 项目时,罐盒无法检测罐信号 您好, ,我正在将 S32K344 WB's"s32k3_wb_can" 项目代码移植到我的项目中。CAN0 的 TX 和 RX 引脚与 WB 的设计相同(CAN0_RX:PTA6,CAN0_TX:PTA7)。CAN0 在 CAN Classic 模式下工作,但 CANBox 无法检测到任何 CAN 信号。 我尝试调试"s32k3_wb_can" 项目,发现"CAN0_ISRCallback" 函数从未被调用。我查看了 s32k144 演示代码,似乎"CAN0_Callback_Func" 函数被调用,并通过"CAN_InstallEventCallback(&can_pal0_instance,&CAN0_Callback_Func,(void*)0);" 进行安装,但 S32K344 的"s32k3_wb_can" 项目似乎没有这样的安装过程。 我没有 S32K344 WB 板,所以我无法验证 WB 的实际运行状态。我想知道如何让 can0 在"s32k3_wb_can" 项目中运行。 附件是我的项目"s32k3_wb_can.zip" 。为了缩小项目大小,我删除了"Debug_FLASH" 子文件夹。我的 CAN 是 8 引脚 CAN 芯片样本,STB 默认为低电平,因此我只能操作 CAN0_RX/CAN0_TX。请帮我检查一下问题出在哪里。谢谢。 Re: Can box can' t detect can signal when runing S32K344 WB's "s32k3_wb_can" project 嗨,@Jimmybai、 CAN0 在 CAN Classic 模式下工作,但 CANBox 无法检测到任何 CAN 信号。 您能说清楚这到底是什么意思吗?CAN Classic 是否能正常工作,而 CAN FD 却不能?或者,您是如何确认 CAN Classic 功能的? 我尝试调试"s32k3_wb_can" 项目,发现"CAN0_ISRCallback" 函数从未被调用。我检查了 s32k144 演示代码,似乎调用并安装了"CAN0_Callback_Func" 函数 您可以使用以下 API 启用 FlexCAN 的 IRQ 和处理程序: IntCtrl_Ip_EnableIrq(FlexCAN0_1_IRQn); IntCtrl_Ip_InstallHandler(FlexCAN0_1_IRQn, CAN0_ORED_0_31_MB_IRQHandler, NULL_PTR); 不过,在对 IntCtrl 驱动程序进行初始化时,应该已经启用了这一功能: retCode = IntCtrl_Ip_Init(&IntCtrlConfig_0); retCode = IntCtrl_Ip_ConfigIrqRouting(&intRouteConfig); 回调安装是在 FlexCAN 的初始化过程中完成的,无论您声明了哪个回调: 您的回调从未被触发的另一个原因可能是没有收到有效的 Rx 帧。您是否尝试过通过示波器对 CAN 总线进行范围界定? 你有没有尝试过使用 RTD 包中包含的 flexcan_IP_example_s32K344,而不是测试 wb_can 示例? 或者社区中分享的一些例子: 示例 S32K344 FlexCAN_Ip TX/RX/EnhanceRXFIFO 测试 S32DS3.4RTD200 [RTD600 MCAL & IP] S32K3X4EVB - T172 FlexCAN 示例(中断/轮询) 致以最诚挚的问候, Julián Re: Can box can' t detect can signal when runing S32K344 WB's "s32k3_wb_can" project 顺便说一下,示例项目来自 S32K344 WB 的示例文件夹--S32K344_Whiteboard_Example(LLD)_RTM_1.0.0
View full article