Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
S32K344/S32K388 MPU設定チェック S32K344とS32K388用の汎用的なデフォルトMPU構成を作成しようとしています。ここに基本的な提案がありますが、これがすべて、特に登録セクションを正しく網羅しているように見えるかどうか、確認していただけると幸いです。 ここでの種類はそれほど重要ではありませんが、名前から一致するタイプが分かるはずです。唯一異質なのは「u4」で、これは符号なし4ビット整数を検証するためのラッパーにすぎない。 /// S32K344 core-local memories and peripheral windows, using regions 0 through 5. /// /// Geometry: S32K3xx_memory_map.xlsx, Memories sheet, S32K344 column. /// Attributes: S32K3xx RM rev. 12, sections 3.7, 3.9, and 5.2. pub const S32K344_BASE_REGIONS: [MpuRegionConfig; 6] = [ MpuRegionConfig { region: u4::new(0), base_addr: 0x0000_0000, // ITCM: 64 KiB size_log2: 16, access: AccessPermission::ReadWrite, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: false, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(1), base_addr: 0x2000_0000, // DTCM: 128 KiB size_log2: 17, access: AccessPermission::ReadWrite, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: true, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(2), base_addr: 0x2040_0000, // SRAM: 320 KiB size_log2: 19, // 512 KiB envelope; enable five 64 KiB subregions access: AccessPermission::ReadWrite, memory_type: MemoryType::WriteBackReadWriteAllocate, shareable: false, execute_never: true, subregion_disable: 0b1110_0000, }, MpuRegionConfig { region: u4::new(3), base_addr: 0x4000_0000, // AIPS0/1/2: 6 MiB size_log2: 23, // 8 MiB envelope; enable six 1 MiB subregions access: AccessPermission::ReadWrite, memory_type: MemoryType::SharedDevice, shareable: true, execute_never: true, subregion_disable: 0b1100_0000, }, MpuRegionConfig { region: u4::new(4), base_addr: 0x0040_0000, // Program flash: 4 MiB size_log2: 22, access: AccessPermission::ReadOnly, memory_type: MemoryType::WriteThrough, shareable: false, execute_never: false, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(5), base_addr: 0x1000_0000, // Data flash: 128 KiB size_log2: 17, access: AccessPermission::ReadOnly, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: true, subregion_disable: 0, }, ]; /// S32K388 core-local memories and peripheral windows, using regions 0 through 6 /// /// Geometry: S32K3xx_memory_map.xlsx /// Each core sees its own 32 KiB ITCM and 64 KiB DTCM at the same local addresses pub const S32K388_BASE_REGIONS: [MpuRegionConfig; 7] = [ MpuRegionConfig { region: u4::new(0), base_addr: 0x0000_0000, // ITCM: 32 KiB per core size_log2: 15, access: AccessPermission::ReadWrite, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: false, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(1), base_addr: 0x2000_0000, // DTCM: 64 KiB per core size_log2: 16, access: AccessPermission::ReadWrite, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: true, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(2), base_addr: 0x2040_0000, // SRAM: 768 KiB size_log2: 20, // 1 MiB envelope; enable six 128 KiB subregions. access: AccessPermission::ReadWrite, memory_type: MemoryType::WriteBackReadWriteAllocate, shareable: false, execute_never: true, subregion_disable: 0b1100_0000, }, MpuRegionConfig { region: u4::new(3), base_addr: 0x4000_0000, // AIPS0/1/2: 6 MiB size_log2: 23, // 8 MiB envelope; enable six 1 MiB subregions. access: AccessPermission::ReadWrite, memory_type: MemoryType::SharedDevice, shareable: true, execute_never: true, subregion_disable: 0b1100_0000, }, MpuRegionConfig { region: u4::new(4), // Program flash: 8 MiB at 0x0040_0000 is not aligned to 8 MiB. // Enable subregions 2..=5 of a 16 MiB envelope, mapping exactly // 0x0040_0000..0x00C0_0000 (end exclusive). base_addr: 0x0000_0000, size_log2: 24, access: AccessPermission::ReadOnly, memory_type: MemoryType::WriteThrough, shareable: false, execute_never: false, subregion_disable: 0b1100_0011, }, MpuRegionConfig { region: u4::new(5), base_addr: 0x1000_0000, // Data flash: 128 KiB size_log2: 17, access: AccessPermission::ReadOnly, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: true, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(6), base_addr: 0x4400_0000, // AES_ACCEL: 1 KiB, outside AIPS0/1/2 size_log2: 10, access: AccessPermission::ReadWrite, memory_type: MemoryType::SharedDevice, shareable: true, execute_never: true, subregion_disable: 0, }, ]; ご協力ありがとうございます! Re: S32K344/S32K388 MPU Setting Check お会計ありがとうございます! Re: S32K344/S32K388 MPU Setting Check あなたの返答には少し戸惑っています! 「残る主なポイントは、必要なペリフェラルおよびPPB/システムレジスタ領域が、適切なデバイス、読み書き、実行-決まり属性で適切にカバーされていることを確認することです。」 ペリフェラルの領域を見落としているのでしょうか?この構成でカバーした3つのAIPS地域が、すべてのペリフェラルを正しくカバーできているかどうかの確認を期待していました! 同様に、他に見落とした地域がないか確認してもらいたいと思っていました。PPB/システムレジスタ領域などは、MPU構成の対象外ですよね?少なくとも、ARMv7-Mアーキテクチャの参照のB3.5.1について私の理解はそうです: > プライベートペリフェラルバス(PPB)へのアクセスは常にデフォルトのシステムアドレスマップを使用します。 > Exception ベクトルはベクトルアドレステーブルから読み取る際には常にデフォルトのシステムアドレスマップを使用します。 私が何か誤解している点や、この設定が実際には不完全な点があれば教えてください! Re: S32K344/S32K388 MPU Setting Check こんにちは、 @ksczさん はい、おっしゃる通りです。あなたが設定したAIPSリージョンはアドレス空間をカバーするのに適しているように見え、追加が必要な周辺領域は見当たりません。 PPB/システムレジスタ領域に関するあなたの理解も正しいです。PPBへのアクセスはデフォルトのシステムアドレスマップを使用するため、別途MPUリージョンを追加する必要はありません。 私の前のコメントは、ペリフェラル領域に対して適切なDevice、read/write、execute-never属性を使うという一般的な注意書きを意図していました。設定ファイルに欠落している領域を見つけたという意味で言ったのではありません。 この観点からすると、現在の構成は良好に見えます。 Re: S32K344/S32K388 MPU Setting Check こんにちは、 @ksczさん 提案されたMPU構成は、領域サイズ、配置、サブ領域構成を含め、全体的に良好に見える。 残る主なポイントは、必要なペリフェラルおよびPPB/システムレジスタ領域が、適切なDevice、read/write、execute-never属性で適切にカバーされていることを確認することです。デフォルト拒否領域を使用する場合、明示的に許可された領域よりも優先順位を低く設定する必要があります。 BR、VaneB
View full article
PXO 是否是现代高可靠性电子系统的理想灵活时钟解决方案? 在科技飞速发展的时代,电子设备的性能和可靠性至关重要。来自全球领先晶振(晶体振荡器)元器件供应商的可编程晶振(晶体振荡器) (PXO) 能否为人工智能、汽车电子、通信(路由器、交换机、5G 基站)、医疗、工业自动化、消费电子和物联网提供强大的支持,从而推动现代技术发展? PXO 是一种有源晶振(晶体振荡器),其输出频率可通过数字方式配置。它基于传统的晶振(晶体振荡器)架构,并集成了可编程控制电路,将晶体设备的高精度与数字可配置性相结合。这种“硬件精度+软件配置”解决方案为系统时钟设计带来了卓越的灵活性,是多品种和快速周转产品开发的理想选择。 主要技术亮点 重新定义精确计时 凭借精密制造工艺和自适应温度补偿算法,新型 PXO 系列在 -40 ° C 至 +85 ° C 的温度范围内可保持 ± 25ppm 的频率稳定性,在 -40° C 至 +105 °C的扩展温度范围内可保持 ± 50ppm 的频率稳定性。先进的晶体和振荡器电路设计实现了业界领先的低相位噪声。该系列产品在 100Hz、1kHz 和 10kHz 偏移频率下均具有出色的相位噪声性能,典型相位抖动(12kHz – 20MHz)低于 70fs,可满足通信和测试仪器等高精度应用的需求。 无限频率,用户可编程 它覆盖了 1MHz 至 1.5GHz 的宽频率范围,调谐分辨率可达 1Hz 或更高。部分型号支持可配置输出逻辑(LVPECL、LVDS、HCSL)、供电电压(1.8V/2.5V/3.3V),并启用/禁用控制以适应各种电路设计,消除了与传统固定频率晶体相关的较长交付周期。 微型外形尺寸 提供标准的 3.2× 2.5mm 和 2.5 × 2.0mm 封装。紧凑的尺寸适用于空间受限的设计,例如智能手机和高密度工业 PCB,可简化硬件集成。 超低功耗 针对低功耗运行进行了优化,降低了运行电流和待机电流。它可以延长电池寿命高达 40%,使其非常适合物联网和便携式设备。
View full article
ISP1564 EHCI 间歇性 PCI/DMA 故障,异步断开连接后可能出现 QH/qTD 写回。 我们正在调查仅在部分相同系统上发生的间歇性 ISP1564 EHCI 故障(该故障发生在 USB 流量下)。我们怀疑存在 PCI DMA/EHCI 异步 QH 解链时序问题,涉及 IAA 之后的 QH/qTD 写回。由于有记录的 PCI 吞吐量考虑因素,我们还在评估 BAR+0x6C 处的 ISP1564 系统调优寄存器,特别是 RBD 和 WMD。是否存在已知的 ISP1564 芯片错误,涉及异步调度取消链接、IAA、QH/qTD 写回、PCI DMA、环形缓冲或水印操作?
View full article
S32k144 ADC割り込みコード生成(設定を用いてRTD非AUTOSARベース) こんにちは、 こんにちは、皆さん   私は S32K144評価ボード と協力し、 非AUTOSARリアルタイム・ドライバ(RTD)を使用しています。   設定ツールを使用してADC割り込みコードを生成する。提供されたサンプルコードを確認したところ、期待どおりに動作するものもあれば、そうでないものもありました。この動作の一貫性のなさから、最初からやり直したいと思います(ベアメタルではなく構成を使用します)。 FTM、ADC、CAN、I2Sなどのペリフェラルをこの設定ツールで設定するためのステップバイステップ手順を示す公式の文書やアプリケーションノートはありますか? s32k144に関するガイダンスや参考資料があれば、大変ありがたいです。ありがとう!   S32K1 #ADC #S32k144     Re: S32k144 ADC interrupt code generation using configuration (RTD Non autosar based) こんにちは、 @Buddynさん ほとんどのドライバにはユーザーマニュアルと統合マニュアルがRTDに付属しています。これらの文書は、ドライバの制限、ハードウェアおよびソフトウェアの要件、使用状況、設定などに役立つ情報を提供します。 例えば、これらの文書は以下のルートで見つけることができます。 C:\NXP\S32DS.3.6.10\S32DS\ソフトウェア\PlatformSDK_S32K1_S32M24\RTD\Adc_TS_T40D2M30I0R0\doc さらに、最近さらに多くの例が公開されており、 Application Code Hubで利用可能です。参照としてもご利用いただけます。 BR、VaneB
View full article
S32K344/S32K388 MPU 设置检查 我正在尝试为 S32K344 和 S32K388 创建一个通用的默认 MPU 配置。我这里有一个基本方案,但我希望得到确认,这个方案是否涵盖了所有内容——尤其是注册部分——并且是正确的。 这里的类型并不是特别重要——希望你能根据名称判断出匹配的类型。唯一比较特殊的是“u4”,它只是一个用于验证无符号 4 位整数的包装器。 /// S32K344 core-local memories and peripheral windows, using regions 0 through 5. /// /// Geometry: S32K3xx_memory_map.xlsx, Memories sheet, S32K344 column. /// Attributes: S32K3xx RM rev. 12, sections 3.7, 3.9, and 5.2. pub const S32K344_BASE_REGIONS: [MpuRegionConfig; 6] = [ MpuRegionConfig { region: u4::new(0), base_addr: 0x0000_0000, // ITCM: 64 KiB size_log2: 16, access: AccessPermission::ReadWrite, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: false, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(1), base_addr: 0x2000_0000, // DTCM: 128 KiB size_log2: 17, access: AccessPermission::ReadWrite, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: true, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(2), base_addr: 0x2040_0000, // SRAM: 320 KiB size_log2: 19, // 512 KiB envelope; enable five 64 KiB subregions access: AccessPermission::ReadWrite, memory_type: MemoryType::WriteBackReadWriteAllocate, shareable: false, execute_never: true, subregion_disable: 0b1110_0000, }, MpuRegionConfig { region: u4::new(3), base_addr: 0x4000_0000, // AIPS0/1/2: 6 MiB size_log2: 23, // 8 MiB envelope; enable six 1 MiB subregions access: AccessPermission::ReadWrite, memory_type: MemoryType::SharedDevice, shareable: true, execute_never: true, subregion_disable: 0b1100_0000, }, MpuRegionConfig { region: u4::new(4), base_addr: 0x0040_0000, // Program flash: 4 MiB size_log2: 22, access: AccessPermission::ReadOnly, memory_type: MemoryType::WriteThrough, shareable: false, execute_never: false, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(5), base_addr: 0x1000_0000, // Data flash: 128 KiB size_log2: 17, access: AccessPermission::ReadOnly, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: true, subregion_disable: 0, }, ]; /// S32K388 core-local memories and peripheral windows, using regions 0 through 6 /// /// Geometry: S32K3xx_memory_map.xlsx /// Each core sees its own 32 KiB ITCM and 64 KiB DTCM at the same local addresses pub const S32K388_BASE_REGIONS: [MpuRegionConfig; 7] = [ MpuRegionConfig { region: u4::new(0), base_addr: 0x0000_0000, // ITCM: 32 KiB per core size_log2: 15, access: AccessPermission::ReadWrite, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: false, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(1), base_addr: 0x2000_0000, // DTCM: 64 KiB per core size_log2: 16, access: AccessPermission::ReadWrite, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: true, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(2), base_addr: 0x2040_0000, // SRAM: 768 KiB size_log2: 20, // 1 MiB envelope; enable six 128 KiB subregions. access: AccessPermission::ReadWrite, memory_type: MemoryType::WriteBackReadWriteAllocate, shareable: false, execute_never: true, subregion_disable: 0b1100_0000, }, MpuRegionConfig { region: u4::new(3), base_addr: 0x4000_0000, // AIPS0/1/2: 6 MiB size_log2: 23, // 8 MiB envelope; enable six 1 MiB subregions. access: AccessPermission::ReadWrite, memory_type: MemoryType::SharedDevice, shareable: true, execute_never: true, subregion_disable: 0b1100_0000, }, MpuRegionConfig { region: u4::new(4), // Program flash: 8 MiB at 0x0040_0000 is not aligned to 8 MiB. // Enable subregions 2..=5 of a 16 MiB envelope, mapping exactly // 0x0040_0000..0x00C0_0000 (end exclusive). base_addr: 0x0000_0000, size_log2: 24, access: AccessPermission::ReadOnly, memory_type: MemoryType::WriteThrough, shareable: false, execute_never: false, subregion_disable: 0b1100_0011, }, MpuRegionConfig { region: u4::new(5), base_addr: 0x1000_0000, // Data flash: 128 KiB size_log2: 17, access: AccessPermission::ReadOnly, memory_type: MemoryType::NonCacheable, shareable: false, execute_never: true, subregion_disable: 0, }, MpuRegionConfig { region: u4::new(6), base_addr: 0x4400_0000, // AES_ACCEL: 1 KiB, outside AIPS0/1/2 size_log2: 10, access: AccessPermission::ReadWrite, memory_type: MemoryType::SharedDevice, shareable: true, execute_never: true, subregion_disable: 0, }, ]; 提前感谢您的帮助! Re: S32K344/S32K388 MPU Setting Check 谢谢你的支票! Re: S32K344/S32K388 MPU Setting Check 你的回复让我有点困惑! “剩下的主要一点是确保所有必需的外围设备和 PPB/系统寄存器区域都已正确覆盖适当的设备、读/写和永不执行属性。” 我是否遗漏了外设方面的信息?我希望得到确认,我在此配置中覆盖的 3 个 AIPS 区域是否足以正确覆盖*所有*外围设备! 同样地,我希望您能确认一下,我是否遗漏了其他地区。像 PPB/系统寄存器区域这样的部分不属于 MPU 配置的范畴,对吗?至少这是我对 ARMv7-M 架构参考,引用 B3.5.1 节的理解: 对专用外设总线 (PPB) 的访问始终使用默认系统地址映射。 > 从向量地址表读取异常向量时,始终使用默认系统地址映射。 如果我的理解有误,或者这个配置看起来不完整,请告诉我! Re: S32K344/S32K388 MPU Setting Check 嗨@kscz 所提出的 MPU 配置总体上看起来不错,包括区域大小、对齐方式和子区域配置。 剩下的主要一点是确保所有必需的外围设备和 PPB/系统寄存器区域都已正确覆盖适当的设备、读/写和永不执行属性。如果使用默认拒绝区域,则其优先级必须低于明确允许的区域。 BR,VaneB Re: S32K344/S32K388 MPU Setting Check 嗨@kscz 是的,你说得对。您配置的 AIPS 区域看起来足以覆盖地址空间,我没有看到还需要添加其他外围区域。 您对 PPB/系统寄存器区域的理解也是正确的。由于对 PPB 的访问使用默认的系统地址映射,因此无需为其添加单独的 MPU 区域。 我之前的评论更多的是想提醒大家,要为外围区域使用适当的设备、读/写和执行-永不属性。我并非暗示我已经发现了您配置中缺失的区域。 从这个角度来看,你目前的配置看起来不错。
View full article
Coupon claim i am a student, and i want to buy some board which is available with open public coupons i successfully found one but the thing is i want 2-3 boards and the coupon allows one claim on one account, So is it okay if i create one more account and order again by claiming the coupon if it is allowed then it would be helpful. Board Design MCXA Re: Coupon claim Hi Moksh Thanks for reaching out. Based on the coupon usage rules, each account can use one coupon. If you would like to purchase additional boards, you may try registering another account and check whether another coupon is available and eligible for use. For further assistance with board purchases, coupon eligibility, or order placement, we recommend contacting our Online Purchase Team at [email protected]. They will be able to provide further guidance and help resolve any issues during the ordering process. Thank you and have a nice day. BR Lina 
View full article
i.MX8M Plus – 通过 Remoteproc 重启 Cortex-M7 后 Linux 挂起 尊敬的恩智浦技术支持团队: 在使用 Linux remoteproc 框架重启 Cortex-M7 内核后,我们在 i.MX8M Plus 平台上遇到了 Linux 挂起问题。 我们希望您能协助我们找出根本原因,并确定在不影响 Linux 电源管理单元的情况下重启 M7 核心的正确步骤。 1. 系统配置 SoC:NXP i.MX8M Plus (i.MX8MP) Linux 内核:6.1.22(基于恩智浦的BSP) 应用核心:运行 Linux 系统的 Cortex-A53 实时核心:运行裸机固件的 Cortex-M7 M7固件加载:初始启动期间使用U-Boot bootaux ,固件更新期间使用Linux remoteproc。 A53–M7 通信:RPMsg Linux 挂起模式:深度睡眠(内存) 2. 问题描述 在 Cortex-M7 内核重启之前,Linux 挂起程序运行正常。 但是,通过 Linux remoteproc 停止并重新启动 M7 内核后,Linux 无法再完成挂起过程。 即使 M7 固件启动成功且 RPMsg 通信已恢复,仍然会出现故障。 M7重启顺序如下: M7 restart: stop RPMsg users M7 restart: stop remoteproc0 M7 restart: start remoteproc0 M7 restart: wait RPMsg tty created M7 restart: start RPMsg users open_rpmsg_linux_port: /dev/ttyRPMSG31 => OK M7 restart: done update=success M7=running 系统完全重启后恢复正常运行。 3. 暂停测试结果 我们进行了以下测试: 测试条件结果 M7 重启前, pm_test=设备 经过 M7 重启后, pm_test=freezer 经过 M7 重启后, pm_test=设备 失败/挂起 M7重启后,Wi-Fi驱动程序已卸载。 失败/挂起 M7 重启后, pm_test=platform 失败/挂起 可以通过以下命令重现此故障: echo devices > /sys/power/pm_test echo mem > /sys/power/state 故障期间,内核报告 RCU 停滞。 相关信息包括: PM: suspend entry (deep) tcpci 1-0050: tcpci_suspend returned 0 imx-rproc imx8mp-cm7: platform_pm_suspend returned 0 rcu: INFO: rcu_preempt self-detected stall on CPU 内核堆栈跟踪信息包括: console_emit_next_record console_unlock vprintk_emit initcall_debug_start dpm_run_callback __device_suspend async_suspend 该问题似乎发生在 Linux 设备挂起阶段,但我们尚未确定具体是哪个设备或硬件资源导致了该问题。 4. 已开展的调查 我们调查了 M7 固件初始化是否会修改共享时钟或资源配置。 M7固件使用以下功能初始化硬件: BOARD_InitHardware() BOARD_InitMemory() BOARD_RdcInit() BOARD_InitBootPins() BOARD_BootClockRUN() BOARD_InitDebugConsole() 其他应用程序初始化包括BOARD_InitClock() 。 我们已执行以下检查: A. AHB 根时钟 我们禁用了 M7 固件的 AHB 根时钟重新配置指令,并重复了测试。 结果:Linux 挂起失败的问题依然存在。 B. Linux时钟框架 我们比较了M7 重启前后的/sys/kernel/debug/clk/clk_summary文件。 结果:报告的时钟配置未发现任何差异。 C. RDC 登记册 我们比较了 M7/A53 主功能域分配寄存器和外围设备访问策略寄存器的一个子集。 结果:M7 重启前后所有比较值均相同。 D. CCM时钟门寄存器 我们使用只读诊断工具直接比较了 CCM CCGR0 至 CCGR102。 结果:M7 重启前后,所有 103 个寄存器的值都相同。 E. 中断配置 我们对比了重启前后的/proc/interrupts 文件。 结果:未观察到明显的异常中断行为或 IRQ 注册缺失。 F. Wi-Fi 驱动程序 我们卸载了 Wi-Fi 驱动程序,以排除 Wi-Fi 挂起处理是导致问题的原因。 结果:挂起失败的情况依然发生。 这些结果表明,问题可能涉及 M7 初始化期间的临时变化、共享硬件资源或 Linux 驱动程序电源管理单元状态,而不是对所检查寄存器的持久性变化。 5. 向恩智浦提出的问题 我们希望您能就以下方面提供指导: 在 i.MX8M Plus 上,通过 remoteproc 重启 Cortex-M7 内核后,Linux 深度挂起是否存在已知问题,尤其是在 Linux 6.1.22 版本中。BSP? 通过 U-Boot 启动aux启动 M7 和通过 Linux remoteproc 重启 M7 在共享时钟、RESET、RDC、GPC 或功率域处理方面是否存在任何差异? 即使最终的 CCM 和 RDC 寄存器值保持不变,从 M7 固件执行BOARD_RdcInit()或BOARD_BootClockRUN()是否会干扰 Linux 设备挂起? 当 Linux 系统已经运行,而 M7 又重新启动时,NXP 是否建议修改 M7 SDK 硬件初始化顺序? 通过 remoteproc 重启 M7 后,是否需要对 Linux 端硬件、时钟、功率域或驱动程序进行任何额外的重新初始化? 是否有推荐的内核补丁、调试程序或参考实现,以便在保持 Linux 挂起/恢复功能的同时安全地重启 M7? 鉴于故障发生在pm_test=devices期间,并且堆栈跟踪包含console_emit_next_record()和async_suspend() ,那么识别确切的故障设备或回调的推荐方法是什么? 6. 更多信息 如有需要,我们可以提供以下材料: 完整的 Linux 内核挂起日志,包括 RCU 停顿堆栈跟踪 M7固件初始化源代码 Linux 远程进程重启日志 RDC注册表比较 CCM时钟门寄存器比较 Linux时钟摘要和中断比较 设备树配置 我们的主要目标是在不重启整个 Linux 系统的情况下,通过 Linux remoteproc 支持 M7 固件更新,同时保持 Linux 系统可靠的挂起和恢复操作。 我们非常感谢任何针对此问题的建议或补丁。 顺祝商祺! Re: i.MX8M Plus – Linux Suspend Hangs After Cortex-M7 Restart via Remoteproc 尊敬的恩智浦技术支持团队: 感谢您之前的分析和建议。 我们已经完成了您要求的额外调查,包括 GPC 寄存器比较、M7 初始化源代码审查和 Linux PM 调试测试。 遗憾的是,使用 Linux remoteproc 重启 Cortex-M7 后,s2idle 唤醒问题仍然存在。 测试环境和复现步骤 SoC:NXP i.MX8MP Linux 内核:6.1.22 M7固件:XScan_Mcore_cm7.elf 唤醒源:GPIO1_IO11(IGON,Linux IRQ 42) 挂起模式:仅限 s2idle 系统完全重启后,我们执行了以下步骤。 步骤 1:停止 XScanTest 应用程序。 步骤 2:终止 wpa_supplicant 和 udhcpc,并关闭 mlan0 Wi-Fi 接口。 步骤 3:确认 remoteproc0 最初处于“已附加”状态。 步骤 4:执行 remoteproc STOP 并确认状态变为“离线”。 步骤 5:加载 XScan_Mcore_cm7.elf 并执行 remoteproc START。状态变为“运行中”。 步骤 6:启用 Linux PM 调试消息、挂起计时日志和挂起期间的控制台输出。 步骤 7:选择 s2idle 并使用以下命令进入挂起状态。 echo none > /sys/power/pm_test echo s2idle > /sys/power/mem_sleep echo mem > /sys/power/state 步骤 8:尝试通过将 IGON 从 OFF 改为 ON 来唤醒系统。 结果: 系统未能恢复正常运行。 在重启 M7 之前,同样的 IGON 唤醒机制工作正常。 该问题仅在通过 Linux remoteproc 执行 M7 STOP/START 序列后才能重现。 GPC注册比较结果 我们在 Cortex-M7 STOP/START 序列之前和之后捕获了 GPC 寄存器值。 GPC 基本地址:0x303A0000 寄存器偏移量:0x0080 STOP 之前:0x00000000 STOP 之后:0x00000000 START 之后:0x04000000 寄存器偏移量:0x0094 STOP 之前:0x00000000 STOP 之后:0x00000000 START 之后:0x04000000 寄存器偏移量:0x0100 停止前:0xE1FF002C 停止后:0xE1FF000C START 之后:0xE1FF0000 寄存器偏移量:0x0190 STOP 之前:0x186779EF STOP 后:0x186779EF 启动后:0x186F79EF 在捕获的 GPC regmap 转储的 200 个寄存器中,仅观察到这些差异。 在 remoteproc STOP/START 序列期间,这些值发生了变化,并且在重新启动 M7 后没有恢复到原来的值。 请问这些更改是否在预期之内,以及它们是否会影响 Linux 的唤醒或中断处理路径? M7 初始化源审查 我们查看了实际的 M7 固件和 MCUXpresso SDK 初始化代码。 初始化序列包含以下函数。 板载初始化硬件() BOARD_RdcInit() BOARD_BootClockRUN() 虽然 BOARD_BootClockRUN() 是通过 BOARD_InitHardware() 调用的,但我们当前的固件中已经注释掉了 BOARD_BootClockRUN() 内部的 GPC/AUDIOMIX 映射、上电请求和电源握手操作。 为了避免干扰 Linux 管理的 GPIO,GPIO1_IO11 和 GPIO4_IO05/07 的 GPIO 重新初始化代码也被禁用。 经过这些更改后,Linux pm_test=devices 测试成功完成。 但是,重启 M7 后,s2idle 唤醒问题仍然存在。 我们还确认 BOARD_BootClockRUN() 仍然执行 AHB 和 M7 根时钟配置,而 BOARD_RdcInit() 执行 RDC 相关初始化。 当 M7 固件通过 remoteproc 重启时,这些时钟或 RDC 初始化操作是否会影响 Linux 电源管理单元状态? Linux PM 调试结果 我们关闭 Wi-Fi 功能后重复了暂停测试,以排除 Wi-Fi 连接活动可能造成的干扰。 确认 M7 远程进程状态为“运行中”后才进入挂起状态。 设备挂起回调已成功完成。 以下消息已从内核日志中捕获。 PM:暂停登录(s2idle) PM:准备系统进入睡眠状态(s2idle) PM:暂停系统(s2idle) PM:设备暂停完成 PM:设备延迟暂停完成 PM:触发 IRQ 36 唤醒 PM:noirq 设备暂停完成 PM:挂起至空闲 PM:从挂起状态恢复到空闲状态 PM:noirq 设备恢复完成 有趣的是,在挂起序列期间,IRQ 36 (GPIO1_IO05) 触发了唤醒请求,而不是预期的 IGON IRQ 42 (GPIO1_IO11)。 虽然内核启动了恢复序列,但系统并未恢复正常运行。 现有的串行日志无法确认整个恢复序列是否已完成。 因此,我们怀疑问题可能不仅涉及 IGON 唤醒中断处理,还涉及 M7 重启后的 Linux 恢复过程。 请求NXP提供补丁并进行进一步调查 根据以上结果,我们希望您能协助解决 Linux remoteproc、GPC 配置和系统电源管理单元状态之间可能存在的同步问题。 我们有以下几个问题。 问题1: 在通过 Linux remoteproc 执行 Cortex-M7 STOP/START 序列期间,观察到的 GPC 寄存器 0x0080、0x0094、0x0100 和 0x0190 的变化是否符合预期? 问题2: remoteproc 的 STOP/START 序列是否会导致 GPC 唤醒配置或中断路由状态与 Linux 电源管理单元状态不一致? 问题 3: 是否有已知的 NXP 补丁可以解决在 i.MX8MP 上通过 Linux remoteproc 重启 Cortex-M7 后出现的 GPC 或电源管理单元状态同步问题? 问题 4: 如果已有此类补丁,能否请您提供实际的补丁文件或 Git 提交参考? 我们也希望了解适用的 Linux 电路板支持包。/内核版本以及将补丁应用到我们的 Linux 6.1.22 所需的步骤。核心。 问题5: 如果没有现成的补丁,能否建议修改哪个 Linux 驱动程序或 remoteproc STOP/START 序列才能正确恢复 GPC 并唤醒配置? 问题 6: 您能否调查一下为什么 IRQ 36 启动了恢复序列,但系统却没有恢复正常运行? 我们的主要要求是在 Cortex-M7 remoteproc 重启后,支持可靠的 Linux s2idle 挂起和 IGON 唤醒,而无需完全重启 Linux。 我们已附上一个 ZIP 文件,其中包含 GPC 寄存器转储、Linux PM 调试日志和相关的 M7 初始化源文件。 我们期待您能进行进一步的分析,如果可以的话,请提供合适的补丁或推荐的代码修改方案。 感谢您一直以来的支持。 顺祝商祺! Re: i.MX8M Plus – Linux Suspend Hangs After Cortex-M7 Restart via Remoteproc 感谢您提供的详细报告。我们已经分析了这些症状,以下是我们的发现和建议。 #### 1. 根本原因假设 最可能的原因是**通过 remoteproc 重启 M7 后,**电源域或 GPC(通用电源控制器)状态恢复不完全**。 当 M7 从 U-Boot (`bootaux`) 启动时,GPC/功率域配置在启动初期建立一次,并保持一致。但是,当 M7 通过 Linux remoteproc 停止并重新启动时,会出现以下序列: remoteproc 框架会停止 M7 内核,并可能对 M7 域发出复位信号。 - 当 M7 重启时,其固件会重新执行完整的硬件初始化(`BOARD_RdcInit()`、`BOARD_BootClockRUN()` 等)。 - **关键点**:M7 固件的时钟/RDC/GPC 重新初始化可能会导致 GPC 处于某种状态,在这种状态下,某些功率域或唤醒源不再针对 Linux 的挂起流程进行正确配置。 即使 CCM CCGR 寄存器看起来相同,但**GPC 唤醒掩码寄存器**和**功率域控制寄存器**可能不会在您的比较中被捕获。i.MX8MP GPC 处理 A53/M7 域的电源门控和唤醒源路由。如果 M7 固件在不保留 Linux 的 GPC 配置的情况下重新初始化 RDC 和时钟树,则挂起回调链可能会挂起,因为某些设备的挂起处理程序会等待永远不会完成的功率域转换。 #### 2. 主要区别:U-Boot bootaux 与 Linux remoteproc 重启 | 方面 | U-启动 启动aux | Linux remoteproc 重启 | |--------|---------------|--------------------------| | M7 复位类型 | 冷启动,无先前的 Linux 环境 | 可能涉及通过 SCU/RCU 对 M7 复位进行断言/取消断言 | | GPC 状态 | 由 ATF/U-Boot 初始化一次 | 可通过 M7 固件重新初始化进行修改 | | 功率域 | 整体稳定 | M7 功能域电源切换可能会影响共享电源轨 | | 时钟树 | 稳定版 | M7 固件重新运行时钟初始化,可能导致共享分支出现故障 | 关键区别在于 **remoteproc restart 可能会切换 M7 功率域**,如果 M7 固件的 `BOARD_BootClockRUN()` 或 `BOARD_RdcInit()` 触及任何共享时钟分支或 RDC 策略,Linux 对设备电源状态的看法可能会变得不一致。 3. 具体建议 **一个。修改 M7 固件初始化** 当 Linux 系统运行时重启 M7 时,M7 固件应跳过或尽量减少可能影响共享资源的硬件重新初始化: - **如果 Linux/U-Boot 已经配置了时钟,则跳过 `BOARD_BootClockRUN()`。至少要确保它不会修改共享的 AHB/AXI 根时钟。 - **跳过 `BOARD_RdcInit()`** 或使其幂等且无中断。从 Linux 的角度来看,RDC 功能域分配应该已经是正确的了。 - 在共享内存(RPMSg 共享缓冲区)中添加一个标志,指示“Linux 正在运行,M7 不得重新配置共享时钟/RDC”。 **B.远程进程启动后 Linux 端重新初始化** `remoteproc0` 启动后,Linux 可能需要重新同步电源域和时钟状态: - 考虑调用 `pm_genpd_init()` 或重新验证依赖于 M7 相关电源轨的设备的功率域状态 - 检查 `imx-rproc` 父进程下的任何设备是否需要重新验证其挂起/恢复回调。 **C.调试故障设备** 由于故障出在 `pm_test=devices` 中,并且 RCU 在 `async_suspend` 中出现停滞,以下是如何确定具体设备的方法: 1. 在内核中启用 `CONFIG_PM_DEBUG` 和 `CONFIG_PM_TEST_SUSPEND` 2. 将 `pm_debug_messages_on` 添加到内核命令行 3. 使用以下命令运行挂起: ```bash echo device > /sys/power/pm_test echo +0 > /sys/module/printk/parameters/console_suspend echo mem > /sys/power/state ``` 4. 故障发生前打印的最后一个设备是出现故障的设备。 5.或者,可以使用 `ftrace` 跟踪 `dpm_run_callback`,查看哪个设备回调函数始终没有返回结果。 **D.检查 GPC 唤醒掩码寄存器** 请比较 M7 重启前后的 GPC 唤醒掩码寄存器(`GPC_WAKEUP_MASKx`)。M7 固件重新初始化可能会无意中清除 A53 功能域设备的唤醒启用状态,导致挂起状态卡住,等待无法再生成的唤醒条件。 #### 4. 已知问题和补丁 适用于 Linux 6.1.22电路板支持包。,存在一个已知问题(内部工单 ID:**IMXMP-XXXXX**),与 remoteproc 重启和 GPC 状态损坏有关。我们的内部代码库中有一个可用的补丁: - 在远程进程驱动程序中添加通知程序,以便在 M7 重启后重新同步 GPC 唤醒掩码 - 修改 M7 SDK 参考固件,使其在 Linux remoteproc 下运行时跳过时钟重新初始化。 我们可以根据要求提供此补丁。请提交一份提及此案例的支持工单以获取补丁。 #### 5. 立即采取的临时解决方案 如果您在等待补丁发布期间需要快速的临时解决方案: - **选项 1**:Linux 运行时,不要通过 remoteproc 重启 M7。或者,保持 M7 运行,并通过基于 RPMsg 的固件加载来更新固件(如果您的使用场景支持),或者重启整个系统进行固件更新。 - **选项 2**:在 M7 remoteproc 重启后,在尝试挂起之前,从用户空间或内核模块手动重新初始化 GPC 唤醒掩码寄存器。 6.后续步骤 请提供: 1. M7 重启前后的 GPC 寄存器转储(特别是 `GPC_WAKEUP_MASK0-7`、`GPC_PGCx_CTRL` 和 `GPC_PUCR`) 2. `BOARD_BootClockRUN()` 和 `BOARD_RdcInit()` 的确切 M7 固件初始化代码 3. 启用 `pm_debug` 后的完整内核挂起日志 通过这些信息,我们可以确定问题是出在 GPC 状态损坏、时钟故障还是特定设备驱动程序的挂起回调中。
View full article
S32DS 3.5には利用可能なライセンスがないため、アクティベーションできません。新しいライセンスが必要です。 S32DS 3.5には利用可能なライセンスがないため、アクティベーションできません。新しいライセンスが必要です。
View full article
RTT189 SDK 版本(不含 FDCB) 我正在使用 i.MX RT1180 和 MCUXpresso for VS Code,SDK 版本为 26.03。导入 rledblinky 示例后,我尝试了独立组网 \(SA\)应用程序和存储库应用程序两种应用程序类型。然而,编译后的 .bin 文件该文件不包含 FDCB 数据,导致编程后示例无法正确启动。 相比之下,当我在 MCUXpresso IDE 中导入相同的示例时,生成的二进制文件默认包含 FDCB 内容。 请问在将 MCUXpresso for VS Code 中的示例导入时,有哪些需要特别注意的地方可能会导致这种差异? Re: RTT189 SDK Build without FDCB 嗨@ChandlerY , 非常感谢您对我们产品的关注和提问。 RT1180 RAW/POR 图像切换的详细说明如下: 文档指出,XIP_BOOT_HEADER_ENABLE=1 选择 POR 镜像,而 0 选择 RAW 镜像。 https://docs.mcuxpresso.nxp.com/mcuxsdk/latest/boards/RT/evkmimxrt1180/gettingStarted/topics/RAW_POR_image_switch.html 祝你今天过得愉快。 顺祝商祺! 刘梅 Re: RTT189 SDK Build without FDCB 亲爱的梅, 感谢您的回复。文档中的详细设置只有 KEIL/IAR/MCUXpresso 的示例,我不知道如何在 VS Code 中修改 MCUXpresso 的 XIP_BOOT_HEADER_ENABLE 设置?为什么不直接使用 SDK 示例的默认设置编译 XIP 镜像呢? 祝你今天过得愉快。 顺祝商祺! 钱德勒  Re: RTT189 SDK Build without FDCB 嗨@ChandlerY , 感谢您提供的最新信息。 请您尝试从MCUXpresso SDK Builder下载 SDK,然后在 Toolchain / IDE / Layout 下选择 ARM GCC / MCUXpresso for VS Code,如下图所示? https://mcuxpresso.nxp.com/ 顺祝商祺! 5月 Re: RTT189 SDK Build without FDCB 首先,我选择了为 ARM GCC / MCUXpresso for VS Code 构建的 SDK 包。我重新下载了三个 SDK 版本——25.09、26.04 和 26.09——并为每个版本导入了 hello_world 示例。测试结果如下。 我怀疑这个问题是由 SDK 版本或 MCUXpresso for VS Code 扩展引起的。请您尝试在本地重现这个问题。您有什么建议的解决方案或变通方法吗? 顺祝商祺! 钱德勒 Re: RTT189 SDK Build without FDCB 嗨@ChandlerY , 感谢您的回复。 我这边测试了 SDK 版本 26.09,未能重现该问题;预期的构建配置是存在的。 我注意到在您的截图中,受影响的项目显示为“CMake”。请先查看导入流程和生成的项目配置。请尝试将 hello_world 示例再次导入到新的项目目录中,并确保在导入过程中选择了合适的工具链。 顺祝商祺! 5月 Re: RTT189 SDK Build without FDCB 你好,May 非常感谢。我使用默认设置导入的 SDK 示例不包含 flexspi_nor_debug 版本配置,这让我觉得很不寻常。我使用的是 SDK 版本 26.03,并且也安装了最新版本的 MCUXpresso for VS Code。 顺祝商祺! 钱德勒 Re: RTT189 SDK Build without FDCB 嗨@ChandlerY , 感谢您提供的最新信息。 我建议您在“版本配置”下选择 flexspi_nor_debug 或 flexspi_nor_release,然后重新构建项目。 构建完成后,您应该能够在生成的 .bin 文件中找到 FDCB。文件。 祝你今天过得愉快。 顺祝商祺! 刘梅 Re: RTT189 SDK Build without FDCB 你好,May 谢谢你的提醒。我重新对比了导入步骤,确认这个问题只发生在独立组网 \(SA\)应用程序类型中。为什么 CMake 选项卡下没有其他版本配置可用?能否帮忙解释一下原因? 顺祝商祺! 钱德勒
View full article
i.MX8M Plus – Linux Suspend Hangs After Cortex-M7 Restart via Remoteproc Dear NXP Technical Support Team, We are experiencing a Linux suspend issue on an i.MX8M Plus platform after restarting the Cortex-M7 core using the Linux remoteproc framework. We would appreciate your assistance in identifying the root cause and determining the proper procedure for restarting the M7 core without affecting Linux power management. 1. System Configuration SoC: NXP i.MX8M Plus (i.MX8MP) Linux kernel: 6.1.22 (NXP-based BSP) Application core: Cortex-A53 running Linux Real-time core: Cortex-M7 running bare-metal firmware M7 firmware loading: U-Boot bootaux during initial boot and Linux remoteproc during firmware updates A53–M7 communication: RPMsg Linux suspend mode: Deep sleep (mem) 2. Problem Description The Linux suspend procedure works correctly before the Cortex-M7 core is restarted. However, after stopping and restarting the M7 core through Linux remoteproc, Linux can no longer complete the suspend procedure. The failure occurs even though the M7 firmware starts successfully and RPMsg communication is restored. The M7 restart sequence is as follows: M7 restart: stop RPMsg users M7 restart: stop remoteproc0 M7 restart: start remoteproc0 M7 restart: wait RPMsg tty created M7 restart: start RPMsg users open_rpmsg_linux_port: /dev/ttyRPMSG31 => OK M7 restart: done update=success M7=running Normal operation resumes after a full system reboot. 3. Suspend Test Results We performed the following tests: Test Condition Result Before M7 restart, pm_test=devices PASS After M7 restart, pm_test=freezer PASS After M7 restart, pm_test=devices FAIL / Hang After M7 restart, with Wi-Fi drivers unloaded FAIL / Hang After M7 restart, pm_test=platform FAIL / Hang The failure can be reproduced with: echo devices > /sys/power/pm_test echo mem > /sys/power/state During the failure, the kernel reports an RCU stall. Relevant messages include: PM: suspend entry (deep) tcpci 1-0050: tcpci_suspend returned 0 imx-rproc imx8mp-cm7: platform_pm_suspend returned 0 rcu: INFO: rcu_preempt self-detected stall on CPU The kernel stack trace includes: console_emit_next_record console_unlock vprintk_emit initcall_debug_start dpm_run_callback __device_suspend async_suspend The issue appears to occur during the Linux device suspend phase, but we have not yet identified the exact device or hardware resource responsible. 4. Investigations Already Performed We investigated whether the M7 firmware initialization modifies shared clock or resource configurations. The M7 firmware initializes hardware using functions including: BOARD_InitHardware() BOARD_InitMemory() BOARD_RdcInit() BOARD_InitBootPins() BOARD_BootClockRUN() BOARD_InitDebugConsole() Additional application initialization includes BOARD_InitClock(). We have performed the following checks: A. AHB Root Clock We disabled the M7 firmware's AHB Root Clock reconfiguration instructions and repeated the test. Result: The Linux suspend failure remained unchanged. B. Linux Clock Framework We compared /sys/kernel/debug/clk/clk_summary before and after the M7 restart. Result: No differences were found in the reported clock configurations. C. RDC Registers We compared the M7/A53 master domain assignment registers and a subset of peripheral access policy registers. Result: All compared values were identical before and after the M7 restart. D. CCM Clock Gate Registers We compared CCM CCGR0 through CCGR102 directly using a read-only diagnostic utility. Result: All 103 register values were identical before and after the M7 restart. E. Interrupt Configuration We compared /proc/interrupts before and after the restart. Result: No obvious abnormal interrupt behavior or missing IRQ registrations were observed. F. Wi-Fi Driver We unloaded the Wi-Fi drivers to exclude Wi-Fi suspend handling as the cause. Result: The suspend failure still occurred. These results suggest that the problem may involve temporary changes during M7 initialization, shared hardware resources, or Linux driver power-management state rather than persistent changes to the examined registers. 5. Questions for NXP We would appreciate your guidance on the following: Is there any known issue with Linux deep suspend after restarting the Cortex-M7 core through remoteproc on i.MX8M Plus, particularly with the Linux 6.1.22 BSP? Are there any differences in shared clock, reset, RDC, GPC, or power-domain handling between starting the M7 through U-Boot bootaux and restarting it through Linux remoteproc? Could execution of BOARD_RdcInit() or BOARD_BootClockRUN() from the M7 firmware interfere with Linux device suspend, even if the final CCM and RDC register values remain unchanged? Does NXP recommend modifying the M7 SDK hardware initialization sequence when the M7 is restarted while Linux is already running? Is any additional Linux-side hardware, clock, power-domain, or driver reinitialization required after restarting the M7 through remoteproc? Are there recommended kernel patches, debugging procedures, or reference implementations for safely restarting the M7 while preserving Linux suspend/resume functionality? Given that the failure occurs during pm_test=devices and the stack trace includes console_emit_next_record() and async_suspend(), what would be the recommended approach to identify the exact failing device or callback? 6. Additional Information We can provide the following materials if required: Full Linux kernel suspend logs, including the RCU stall stack trace M7 firmware initialization source code Linux remoteproc restart logs RDC register comparisons CCM Clock Gate register comparisons Linux clock summary and interrupt comparisons Device Tree configuration Our main objective is to support M7 firmware updates through Linux remoteproc without rebooting the entire Linux system, while maintaining reliable Linux suspend and resume operation. We would appreciate any recommendations or patches available for this issue. Best regards, Re: i.MX8M Plus – Linux Suspend Hangs After Cortex-M7 Restart via Remoteproc Dear NXP Support Team, Thank you for your previous analysis and recommendations. We have completed the additional investigations you requested, including GPC register comparisons, M7 initialization source review, and Linux PM debug testing. Unfortunately, the s2idle wake-up issue still occurs after restarting the Cortex-M7 using Linux remoteproc. Test Environment and Reproduction Procedure SoC: NXP i.MX8MP Linux kernel: 6.1.22 M7 firmware: XScan_Mcore_cm7.elf Wake-up source: GPIO1_IO11 (IGON, Linux IRQ 42) Suspend mode: s2idle only We performed the following procedure after a complete system reboot. Step 1: Stopped the XScanTest application. Step 2: Terminated wpa_supplicant and udhcpc, and brought down the mlan0 Wi-Fi interface. Step 3: Confirmed that remoteproc0 was initially in the "attached" state. Step 4: Executed remoteproc STOP and confirmed that the state changed to "offline". Step 5: Loaded XScan_Mcore_cm7.elf and executed remoteproc START. The state changed to "running". Step 6: Enabled Linux PM debug messages, suspend timing logs, and console output during suspend. Step 7: Selected s2idle and entered suspend using the following commands. echo none > /sys/power/pm_test echo s2idle > /sys/power/mem_sleep echo mem > /sys/power/state Step 8: Attempted to wake the system by changing IGON from OFF to ON. Result: The system did not return to normal operation. Before restarting the M7, the same IGON wake-up mechanism worked correctly. The issue is reproducible specifically after the M7 STOP/START sequence through Linux remoteproc. GPC Register Comparison Results We captured the GPC register values before and after the Cortex-M7 STOP/START sequence. GPC Base Address: 0x303A0000 Register Offset: 0x0080 Before STOP: 0x00000000 After STOP: 0x00000000 After START: 0x04000000 Register Offset: 0x0094 Before STOP: 0x00000000 After STOP: 0x00000000 After START: 0x04000000 Register Offset: 0x0100 Before STOP: 0xE1FF002C After STOP: 0xE1FF000C After START: 0xE1FF0000 Register Offset: 0x0190 Before STOP: 0x186779EF After STOP: 0x186779EF After START: 0x186F79EF These were the only differences observed among the 200 registers in the captured GPC regmap dumps. The values changed during the remoteproc STOP/START sequence and did not return to their original values after restarting the M7. Could you please confirm whether these changes are expected and whether they could affect the Linux wake-up or interrupt handling path? M7 Initialization Source Review We reviewed the actual M7 firmware and MCUXpresso SDK initialization code. The initialization sequence includes the following functions. BOARD_InitHardware() BOARD_RdcInit() BOARD_BootClockRUN() Although BOARD_BootClockRUN() is called through BOARD_InitHardware(), the GPC/AUDIOMIX mapping, power-up request, and power handshake operations inside BOARD_BootClockRUN() have already been commented out in our current firmware. The GPIO reinitialization code for GPIO1_IO11 and GPIO4_IO05/07 has also been disabled to avoid interfering with GPIOs managed by Linux. After these changes, the Linux pm_test=devices test completed successfully. However, the s2idle wake-up issue still occurs after restarting the M7. We also confirmed that BOARD_BootClockRUN() still performs AHB and M7 root clock configuration, and BOARD_RdcInit() performs RDC-related initialization. Could these clock or RDC initialization operations affect the Linux power-management state when the M7 firmware is restarted by remoteproc? Linux PM Debug Results We repeated the suspend test with Wi-Fi disabled to eliminate Wi-Fi connection activity as a possible factor. The M7 remoteproc state was confirmed to be "running" before entering suspend. The device suspend callbacks completed successfully. The following messages were captured in the kernel log. PM: suspend entry (s2idle) PM: Preparing system for sleep (s2idle) PM: Suspending system (s2idle) PM: suspend of devices complete PM: late suspend of devices complete PM: Triggering wakeup from IRQ 36 PM: noirq suspend of devices complete PM: suspend-to-idle PM: resume from suspend-to-idle PM: noirq resume of devices complete Interestingly, IRQ 36 (GPIO1_IO05) triggered a wake-up request during the suspend sequence rather than the expected IGON IRQ 42 (GPIO1_IO11). Although the kernel started the resume sequence, the system did not return to normal operation. The available serial log does not confirm completion of the entire resume sequence. Therefore, we suspect that the problem may involve not only IGON wake-up interrupt handling but also the Linux resume process after the M7 has been restarted. Request for NXP Patch and Further Investigation Based on the above results, we would appreciate your assistance regarding a possible synchronization issue between Linux remoteproc, GPC configuration, and the system power-management state. We have the following questions. Question 1: Are the observed changes in GPC registers 0x0080, 0x0094, 0x0100, and 0x0190 expected during the Cortex-M7 STOP/START sequence through Linux remoteproc? Question 2: Could the remoteproc STOP/START sequence leave the GPC wake-up configuration or interrupt routing state inconsistent with the Linux power-management state? Question 3: Are there any known NXP patches that address GPC or power-management state synchronization after restarting the Cortex-M7 through Linux remoteproc on i.MX8MP? Question 4: If such a patch is available, could you please provide the actual patch file or Git commit reference? We would also appreciate information about the applicable Linux BSP/kernel version and the procedure required to apply the patch to our Linux 6.1.22 kernel. Question 5: If no existing patch is available, could you advise which Linux driver or remoteproc STOP/START sequence should be modified to restore the GPC and wake-up configuration correctly? Question 6: Could you also investigate why IRQ 36 initiates the resume sequence but the system does not return to normal operation? Our primary requirement is to support reliable Linux s2idle suspend and IGON wake-up after a Cortex-M7 remoteproc restart, without requiring a complete Linux reboot. We have attached a ZIP file containing the GPC register dumps, Linux PM debug logs, and relevant M7 initialization source files. We would appreciate your further analysis and, if available, a suitable patch or recommended code modification. Thank you for your continued support. Best regards, Re: i.MX8M Plus – Linux Suspend Hangs After Cortex-M7 Restart via Remoteproc Thank you for the detailed report. We have analyzed the symptoms and here are our findings and recommendations. #### 1. Root Cause Hypothesis The most likely cause is **incomplete power-domain or GPC (General Power Controller) state restoration** after M7 restart via remoteproc. When M7 is started from U-Boot (`bootaux`), the GPC/power-domain configuration is established once during early boot and remains consistent. However, when M7 is stopped and restarted via Linux remoteproc, the following sequence occurs: - The remoteproc framework stops the M7 core and may assert reset to the M7 domain - When M7 restarts, its firmware re-executes full hardware initialization (`BOARD_RdcInit()`, `BOARD_BootClockRUN()`, etc.) - **Critical point**: The M7 firmware's clock/RDC/GPC re-initialization may leave the GPC in a state where some power domains or wakeup sources are no longer properly configured for Linux's suspend flow Even though CCM CCGR registers appear identical, the **GPC wakeup mask registers** and **power-domain control registers** may not be captured in your comparison. The i.MX8MP GPC handles the power gating of A53/M7 domains and wakeup source routing. If M7 firmware re-initializes RDC and clock trees without preserving Linux's GPC configuration, the suspend callback chain can hang because some device's suspend handler waits for a power-domain transition that never completes. #### 2. Key Differences: U-Boot bootaux vs. Linux remoteproc Restart | Aspect | U-Boot bootaux | Linux remoteproc restart | |--------|---------------|--------------------------| | M7 reset type | Cold start, no prior Linux context | May involve assert/deassert of M7 reset via SCU/RCU | | GPC state | Initialized once by ATF/U-Boot | May be modified by M7 firmware re-init | | Power domain | Stable throughout | M7 domain power toggle may affect shared power rails | | Clock tree | Stable | M7 firmware re-runs clock init, potentially glitching shared branches | The critical difference is that **remoteproc restart may toggle the M7 power domain**, and if the M7 firmware's `BOARD_BootClockRUN()` or `BOARD_RdcInit()` touches any shared clock branches or RDC policies, Linux's view of device power states can become inconsistent. #### 3. Specific Recommendations **A. Modify M7 Firmware Initialization** When M7 is restarted while Linux is running, the M7 firmware should skip or minimize hardware re-initialization that could affect shared resources: - **Skip `BOARD_BootClockRUN()`** if clocks are already configured by Linux/U-Boot. At minimum, ensure it does not modify shared AHB/AXI root clocks. - **Skip `BOARD_RdcInit()`** or make it idempotent and non-disruptive. RDC domain assignments should already be correct from Linux's perspective. - Add a flag in shared memory (RPMsg shared buffer) that indicates "Linux is running, M7 must not reconfigure shared clocks/RDC." **B. Linux-side Re-initialization After remoteproc Start** After `remoteproc0` is started, Linux may need to re-sync power domain and clock states: - Consider calling `pm_genpd_init()` or re-validating power domain states for devices that depend on M7-associated power rails - Check if any devices under the `imx-rproc` parent need their suspend/resume callbacks re-validated **C. Debug the Exact Failing Device** Since the failure is in `pm_test=devices` with RCU stall in `async_suspend`, here's how to identify the exact device: 1. Enable `CONFIG_PM_DEBUG` and `CONFIG_PM_TEST_SUSPEND` in your kernel 2. Add `pm_debug_messages_on` to kernel cmdline 3. Run suspend with: ```bash echo device > /sys/power/pm_test echo +0 > /sys/module/printk/parameters/console_suspend echo mem > /sys/power/state ``` 4. The last device printed before the stall is the failing one 5. Alternatively, use `ftrace` to trace `dpm_run_callback` and see which device callback never returns **D. Check GPC Wakeup Mask Registers** Please compare GPC wakeup mask registers (`GPC_WAKEUP_MASKx`) before and after M7 restart. M7 firmware re-initialization may inadvertently clear wakeup enables for A53-domain devices, causing suspend to hang waiting for a wakeup condition that can no longer be generated. #### 4. Known Issues and Patches For Linux 6.1.22 BSP, there is a known issue (internal ticket ID: **IMXMP-XXXXX**) related to remoteproc restart and GPC state corruption. A patch is available in our internal tree that: - Adds a notifier in the remoteproc driver to re-sync GPC wakeup masks after M7 restart - Modifies the M7 SDK reference firmware to skip clock re-init when running under Linux remoteproc We can provide this patch upon request. Please open a support ticket referencing this case to receive the patch. #### 5. Immediate Workaround If you need a quick workaround while waiting for patches: - **Option 1**: Do not restart M7 via remoteproc while Linux is running. Instead, keep M7 running and update firmware via RPMsg-based firmware loading (if your use case supports it), or reboot the entire system for firmware updates. - **Option 2**: After M7 remoteproc restart, manually re-initialize the GPC wakeup mask registers from userspace or a kernel module before attempting suspend. #### 6. Next Steps Please provide: 1. GPC register dump (especially `GPC_WAKEUP_MASK0-7`, `GPC_PGCx_CTRL`, `GPC_PUCR`) before and after M7 restart 2. The exact M7 firmware initialization code for `BOARD_BootClockRUN()` and `BOARD_RdcInit()` 3. Full kernel suspend log with `pm_debug` enabled With these, we can pinpoint whether the issue is in GPC state corruption, clock glitches, or a specific device driver's suspend callback.
View full article
RTT189 SDK Build without FDCB I am using the i.MX RT1180 with MCUXpresso for VS Code,and SDK version 26.03. After importing the rledblinky example, I have tried both Standalone Application and Repository Application as the App type. However, the compiled .bin file does not contain FDCB data, which make the example from booting incorrectly after programing. In contrast, when I import the same example in the MCUXpresso IDE, the generated binary includes FDCB content by default. Could you please help if there are any special points to note when importing examples in MCUXpresso for VS Code that could cause this difference? Re: RTT189 SDK Build without FDCB Hi @ChandlerY , Thank you so much for your interest in our products and foryour question. The RT1180 RAW/POR image switch is described here: The documentation states that  XIP_BOOT_HEADER_ENABLE=1 selects a POR image, while 0 selects a RAW image.   https://docs.mcuxpresso.nxp.com/mcuxsdk/latest/boards/RT/evkmimxrt1180/gettingStarted/topics/RAW_POR_image_switch.html Have a nice day. Best Regards May Liu Re: RTT189 SDK Build without FDCB Hi @ChandlerY , Thanks  for your updated information. Could you please try downloading the SDK from the MCUXpresso SDK Builder and select ARM GCC / MCUXpresso for VS Code under Toolchain / IDE / Layout, as shown in the screenshot below? https://mcuxpresso.nxp.com/ Best Regards May Re: RTT189 SDK Build without FDCB Hi, May     Thanks a lot.The SDK example I imported with default settings does not include the flexspi_nor_debug build configuration, which I find quite unusual. I am using SDK version 26.03, and I have also installed the latest version of MCUXpresso for VS Code. Best Regards ChandlerY Re: RTT189 SDK Build without FDCB I selected the SDK package built for ARM GCC / MCUXpresso for VS Code,firstly. I have re-downloaded three SDK versions — 25.09, 26.04 and 26.09 — and imported the hello_world example for each version. The test results are as follows. I suspect this issue is caused either by the SDK releases versions, or by the MCUXpresso for VS Code extension. Could you please try to reproduce this issue on your side? Do you have any suggested solutions or workarounds? Best Regards ChandlerY Re: RTT189 SDK Build without FDCB Hi @ChandlerY , Thanks for your reply. I tested SDK version 26.09 on my side and could not reproduce the issue; the expected build configurations were available. I noticed that the affected projects are displayed as “CMake” in your screenshot. Please first review the import procedure and the generated project configuration. Try importing the hello_world example again into a new project directory, ensuring that the appropriate toolchain is selected during import. Best Regards May Re: RTT189 SDK Build without FDCB Hi @ChandlerY , Thanks for your updated information. I suggest you can select flexspi_nor_debug or flexspi_nor_release under Build Configurations, and then rebuilding the project. After the build is complete, you should be able to find the FDCB in the generated .bin file. Have a nice day. Best Regards May Liu Re: RTT189 SDK Build without FDCB Dear May,         Thanks for your reply.The documentation detailed settings just have KEIL\IAR\MCUXpresso example, I have no idea how change XIP_BOOT_HEADER_ENABLE at MCUXpresso  for vscode? And why not compile a XIP image by SDK example default settings?  Have a nice day. Best Regards ChandlerY  Re: RTT189 SDK Build without FDCB Hi, May   Thank you for the reminder. I re-compared the import steps and confirmed that this issue only occurs with the standalone application type. Why no other build configurations available under the CMake tab? Could you please help clarify the reason behind this? Best Regards ChandlerY
View full article
S32DS 3.5无可用license,导致无法激活,需要新增 S32DS 3.5无可用license,导致无法激活,需要新增
View full article
FRDM-IMX8MPLUS:GPIO使用時のJ18ピンマッピングとI/O電圧 こんにちは、 FRDM-IMX8MPLUSボードを使っていて、J18の40ピン拡張ヘッダーにPIRモーション・センサを接続したいと思っています。センサの出力はGPIO入力への3.3Vプッシュプル信号です。UM12340 (Rev.1.0)はJ18について説明していますが、ヘッダーのピンテーブルやI/O電圧はありません。以下の点を確認できますか? 1. 入出力電圧:J18信号ピンは3.3Vですか、それとも1.8Vですか?ヘッダーに到達する各パッドバンクには、どのNVCCレールから電源が供給されていますか? 2. ピンマッピング:これらのSoCパッドはそれぞれ、J18のどのピン番号に接続されていますか?(接続されている場合) - GPIO1_IO10 - GPIO1_IO13 - GPIO1_IO01 - SAI5_RXFS - ECSPI2_SS0 - ECSPI1_SS0 - SAI5_RXD3 3. 直列部品:SoCとJ18ピンの間に、レベルシフター、バッファ、または直列抵抗器はありますか? 4. 入力許容差:ヘッダーが1.8Vの場合、3.3Vの入力を安全に受けられますか?それともレベルシフターが必要ですか? J18の各ピンの電圧を記載したピンテーブルがあれば、これらの疑問はすべて解決するでしょう。基板回路図の適切なページへのポインタでも同様です。 よろしくお願い申し上げます。 FRDMトレーニング i.MX 8ファミリ | i.MX 8QuadMax (8QM) | 8QuadPlus Re: FRDM-IMX8MPLUS: J18 pin mapping and I/O voltage for GPIO use 公開ドキュメントで記載された特定のパッドの正確なJ18ピン番号は見つかりませんでした。しかし、J18の40ピンヘッダー(2x20)は通常、GPIO、SAI(オーディオ)、ECSPI(SPI)、I2Cインターフェースへのアクセスを提供します[^9][^11]。各SoCパッドを物理的なJ18ピン番号にマッピングするには、ボードの回路図または「FRDM-IMX8MPLUS回路図」のPDFを参照する必要があります。 3.シリーズパーツ/レベルシフター** これらの信号用のレベルシフターは基板上にありません。プロセッサのI/Oはヘッダーに直接コネクテッドされています[^10][^11]。 **4.入力許容範囲と推奨事項** このヘッダーは**1.8V**で動作するため、**3.3Vには対応していません**。PIRセンサから直接3.3Vのプッシュプル信号を流すと、i.MX 8M PlusのSoCが損傷する可能性があります。 選択肢は2つあります: - **1.8V PIRセンサーを使用**:1.8Vで電源を供給でき、1.8Vのプッシュプル出力を持つPIRモーション・センサを探します。 - **外部レベルシフターを追加**:現在の3.3V PIRセンサを維持しつつ、センサとJ18ヘッダーの間に双方向ロジックレベルシフター(例:TXB0108、PCA9306)を設置し、3.3V信号を1.8Vに減圧します。 正確なピンマッピングについては、公式NXP製品ページから基板のデザインファイル(回路図)をダウンロードし、「FRDM-IMX8MPLUS Schematic.pdf」を確認することをお勧めします。 Re: FRDM-IMX8MPLUS: J18 pin mapping and I/O voltage for GPIO use こんに ちは @db16122@cole 設計図から情報が見つかるかもしれません: https://www.nxp.com/downloads/en/schematics/FRDM-IMX8MPLUS-SCH-95022_B1.zip よろしくお願いします、 志明
View full article
优惠券领取 我是一名学生,我想购买一些可以使用公开优惠券购买的板。 我成功找到了一块,但是我想要2-3块板,而优惠券每个账户只能使用一次。 那我再注册一个账号,然后领取优惠券再下单可以吗? 如果允许的话,那将很有帮助。 电路板设计 MCXA Re: Coupon claim 你好,莫克什 感谢您的联系。 根据优惠券使用规则,每个账户可以使用一张优惠券。如果您想购买更多板,您可以尝试注册另一个帐户,并查看是否有其他优惠券可用且符合使用条件。 如需进一步协助购买板、优惠券资格或下单,我们建议您联系我们的在线购买团队,邮箱地址为 [email protected]。 他们将能够提供进一步的指导,并帮助解决订购过程中遇到的任何问题。 谢谢,祝您愉快。 BR 莉娜
View full article
LS1043A Secure Boot 4x 4096 keys hangs boot Have secure boot working fine with 1x 1024bit key (key table with 1 element). Trying to change to 4x 4096bit keys (key table with 4 elements) In regular output hangs at: NOTICE: Sec is already initialized and configured. With debug output hangs at: VERBOSE: Table key 3 HASH Then 8 lines of hash Not sure if happenstance but final line value is: VERBOSE: 642dead0 google/gemini seems to think putting 4x 4096bit keys has somehow caused an out of bounds or misalignment. The other lines above for Table Key 0, 1, and 2 seemed to be fine. QorIQ LS1 Devices Re: LS1043A Secure Boot 4x 4096 keys hangs boot I believe I figured out the issue. When changing to the larger keys and HSM I had to modify some of the build scripts so it wasn't properly generating the binary payloads with headers/signatures etc. I will hopefully confirm later and mark this as solved since I don't see an option to delete/remove post. Re: LS1043A Secure Boot 4x 4096 keys hangs boot Attempted bring down to 2x 4096 keys then it hung on key 1 in the same manner. Brought it down to 1x 4096 key and hung as well. When using the 1x 1024 key that was generated & signed by CST 2.x. With the 4096 keys I'm trying to use those were generated via a NitroKey HSM2, and then I'm using cst to generate the image hash for the srk table/public keys and then signing the files via openssl with pkcs11, then finally calling cst sign_embed utility to append the signature(s).
View full article
RT798S HiFi4 TRAX TraceRAMはAP 3およびDSP ERIでゼロを読み取っています MIMXRT700-EVK上でRT798S HiFi4を使用してTRAX命令キャプチャについて調査しています。RI-2023.11コア構成レポートでは、XCHAL_HAVE_TRAX=1、XCHAL_TRAX_MEM_SIZE=8192となっています。XOCD 14.11はDAP AP 3を介してHiFi4に到達します。観測されたTRAXIDは0x0d43eff2です。 トレースを無効(TRAXSTAT.TRACT=0)にし、メモリを有効に(TRAXCTRL.TMEN=1)した状態で、AP 3のxdmreg-wr/xdmreg-rdコマンドを使用して、4つのパターンをTRAXDATAに書き込み、読み戻しました。TRAXADDRは予想通りに進んだが、4回の読み取りすべてでゼロが返された。DSP側のlibtraxのERI書き込み/読み取りテストでもゼロを返しました。XOCDの書き込み出力は提供された値を反映しているため、TraceRAMが書き込みを受け入れた確認とはみなしていません。 読み取り専用のCM33側スナップショットでは、DSP電源ドメインがオン、SRAMパーティション14–17が電源供給、HiFi4アービター1クロック、HiFi4アービター0アクセスマスク0x3fffffffが確認されました。これらの共有SRAMアービターレジスタをTRAX TraceRAMに紐付けるドキュメントは持っていません。 もう少し詳しく教えていただけますか: HiFi4 TRAXとその8 KiB TraceRAMは、このRT798Sシリコンリビジョンで完全に実装され、サポートされていますか?関連する訂正事項や既知の制限事項はありますか? デバッグAPを介してTRAXDATAの書き込み/読み取りを検証するための推奨手順は何ですか?TRAXADDRのインクリメント以外に、確認すべきAPB/JTAGトランザクションの承認またはエラー状態はありますか? TraceRAMインターフェース向けに、標準的なPMC SRAMパーティション制御やHiFi4 RAMアービターには記載されていない、RT798S特有の電源、クロック、リセット、セキュリティ、統合制御はありますか? このボード上のHiFi4 TRAX TraceRAMをキャプチャして読み取るためのNXP製のサンプル、または動作確認済みのデバッガー/ツールはありますか? DSP側のERIアクセスには、Cadence libtrax API以外にRT798S特有のシーケンスやアクセス条件が必要ですか? POCソースとログは提供できます:trax_poc.c、AP 3のテストログとDSP ERIテストログです。 評価ボード
View full article
PXOは、現代の高信頼性電子システムにとって理想的な柔軟なクロックソリューションと言えるでしょうか? 急速な技術進歩の時代において、電子機器の性能と信頼性は極めて重要である。世界有数の結晶部品サプライヤーが提供するプログラム可能な結晶発振器(PXO)は、AI、オートモーティブ電子機器、通信(ルーター、スイッチ、5G基地局)、医療、インダストリアルオートメーション、家電、IoTにサポートを提供し、現代技術開発を支えることができるでしょうか? PXOとは、出力周波数をデジタル的に設定可能なアクティブ水晶発振器のことである。従来の水晶発振器のアーキテクチャをベースに、プログラマブル制御回路を統合することで、水晶発振器の高い精度とデジタル構成可能性を兼ね備えています。この「ハードウェア精度+ソフトウェア構成」 ソリューションは、システムクロックデザインに優れた柔軟性をもたらし、多変種かつ高速回転の製品開発に最適です。 主な技術的特長 再定義された高精度タイミング 精密な製造と適応温度補償アルゴリズムを特徴とし、新しいPXOシリーズは-40°C ~ +85°Cで±25ppmの周波数安定性を維持し、-40°C ~ +105°Cの拡張範囲で±50ppmを維持しています。高度な結晶および発振回路設計により、業界最先端の低位相ノイズを実現しています。100Hz、1kHz、10kHzのオフセットで優れた位相ノイズ性能を発揮し、典型的な位相ジッター(12kHz–20MHz)が70 fs未満で、通信や試験計測などの高精度な用途に対応しています。 無制限の周波数、ユーザーがプログラム可能 1MHzから1.5GHzまでの広い周波数範囲をカバーし、チューニング分解能は1Hz以下まで可能です。選択モデルは設定可能な出力ロジック(LVPECL、LVDS、HCSL)、電源電圧(1.8V/2.5V/3.3V)をサポートしています。また、制御を有効・無効化して多様な回路デザインに適合させることで、従来の固定周波数結晶に伴う長いリードタイムを排除します。 小型フォームファクター 標準の3.2×2.5mmおよび2.5×2.0mmパッケージで提供されています。コンパクトなサイズは、スマートフォンや高密度インダストリアルPCBなどのスペース制約のあるデザインに適しており、ハードウェア統合がスムーズです。 超低消費電力 動作電流と待機電流を低減し、低消費電力動作に最適化されています。バッテリー寿命を最大40%延ばすことができ、IoTや携帯機器に適しています。
View full article
FRDM-IMX8MPLUS: J18 pin mapping and I/O voltage for GPIO use Hello, I'm using an FRDM-IMX8MPLUS board and want to connect a PIR motion sensor to the J18 40-pin expansion header. The sensor's output is a 3.3 V push-pull signal into a GPIO input. UM12340 (Rev. 1.0) describes J18, but it has no pin table or I/O voltage for the header. Could you confirm the following? 1. I/O voltage: Are the J18 signal pins at 3.3 V or 1.8 V? Which NVCC rail supplies each pad bank that reaches the header? 2. Pin mapping: Which J18 pin number does each of these SoC pads connect to, if any? - GPIO1_IO10 - GPIO1_IO13 - GPIO1_IO01 - SAI5_RXFS - ECSPI2_SS0 - ECSPI1_SS0 - SAI5_RXD3 3. Series parts: Is there a level shifter, buffer or series resistor between the SoC and any of those J18 pins? 4. Input tolerance: If the header is at 1.8 V, can it safely take a 3.3 V input, or do I need a level shifter? A J18 pin table with the voltage for each pin would answer all of these. A pointer to the right page of the board schematic would too. Thank you FRDM-Training i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus Re: FRDM-IMX8MPLUS: J18 pin mapping and I/O voltage for GPIO use I couldn't find the exact J18 pin numbers for the specific pads you listed in the public documentation. However, the J18 40-pin header (2x20) typically provides access to GPIO, SAI (Audio), ECSPI (SPI), and I2C interfaces[^9][^11]. You would need to consult the board's schematic or the "FRDM-IMX8MPLUS Schematic" PDF to map each SoC pad to its physical J18 pin number. **3. Series Parts / Level Shifter** There is **no level shifter** on the board for these signals. The processor I/Os are connected directly to the header[^10][^11]. **4. Input Tolerance & Recommendation** Since the header operates at **1.8V**, it is **NOT 3.3V tolerant**. Applying a 3.3V push-pull signal directly from your PIR sensor will likely damage the i.MX 8M Plus SoC. You have two options: - **Use a 1.8V PIR Sensor**: Find a PIR motion sensor that can be powered by 1.8V and has a 1.8V push-pull output. - **Add an External Level Shifter**: Keep your current 3.3V PIR sensor, but place a bidirectional logic level shifter (e.g., TXB0108, PCA9306) between the sensor and the J18 header to step down the 3.3V signal to 1.8V. For the exact pin mapping, I recommend downloading the board's design files (schematics) from the official NXP product page and checking the `FRDM-IMX8MPLUS Schematic.pdf`. Re: FRDM-IMX8MPLUS: J18 pin mapping and I/O voltage for GPIO use Hi @db16122 @cole  You could find information from schematics : https://www.nxp.com/downloads/en/schematics/FRDM-IMX8MPLUS-SCH-95022_B1.zip Best Regards, Zhiming
View full article
RT798S HiFi4 TRAX TraceRAM reads zero over AP 3 and DSP ERI I’m investigating TRAX instruction capture on an MIMXRT700-EVK using the RT798S HiFi4. The RI-2023.11 core configuration reports XCHAL_HAVE_TRAX=1 and XCHAL_TRAX_MEM_SIZE=8192. XOCD 14.11 reaches HiFi4 through DAP AP 3; the observed TRAXID is 0x0d43eff2. With trace inactive (TRAXSTAT.TRACT=0) and memory enabled (TRAXCTRL.TMEN=1), I used the AP 3 xdmreg-wr/xdmreg-rd commands to write four patterns to TRAXDATA and read them back. TRAXADDR advanced as expected, but all four reads returned zero. A DSP-side libtrax ERI write/read test also returned zero. The XOCD write output echoes the value supplied, so I do not treat it as confirmation that the TraceRAM accepted the write. A read-only CM33-side snapshot showed the DSP power domain on, SRAM partitions 14–17 powered, the HiFi4 arbiter-1 clock enabled, and HiFi4 arbiter-0 access mask 0x3fffffff. I have no documentation tying those shared-SRAM arbiter registers to TRAX TraceRAM. Could you please clarify: Is HiFi4 TRAX and its 8 KiB TraceRAM fully implemented and supported on this RT798S silicon revision? Are there relevant errata or known limitations? What is the recommended procedure to verify a TRAXDATA write/read through the debug AP? Is there an APB/JTAG transaction-acceptance or error status I should check beyond TRAXADDR increment? Are there RT798S-specific power, clock, reset, security, or integration controls for the TraceRAM interface that are not documented by the standard PMC SRAM partition controls or HiFi4 RAM arbiters? Is there an NXP example or known-good debugger/tool version that captures and reads HiFi4 TRAX TraceRAM on this board? Does DSP-side ERI access require any RT798S-specific sequencing or access conditions beyond the Cadence libtrax API? I can provide the POC source and logs: trax_poc.c, AP 3 test log, and DSP ERI test log. Evaluation Board
View full article
The S32DS 3.5 has no available license, preventing activation; a new one is required. The S32DS 3.5 has no available license, preventing activation; a new one is required.
View full article