Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
AN15071: デモ版とツールはどこからダウンロードできますか? NXPチームの皆様、こんにちは。 AN15071 Rev 1.0 (MCX N947 上の I3C 経由の CMIS) は、 mcxn947_optical_module_cmis_over_i3c_demoプロジェクトとその scripts フォルダー内のcmis_test_tool.exeを参照していますが、ドキュメント内の唯一のリンクは USB-to-I3C ブリッジのリポジトリです。 デモソースとPCツールはどこでダウンロードできるのか、またいつ公開されるのか? サポートありがとうございます。 チャールズ・ディアス FRDMトレーニング ハンズオン・トレーニング MCX N Re: AN15071: where to download the demo and tool? こんにちは、 @CharlesDias さん、 投稿ありがとうございます。 AN15071デモおよび関連ツールは アプリケーションコードハブにアップロードされます。アップロード作業は現在も進行中であり、11月中旬には利用可能になる予定です。 緊急の場合は 、プライベートチケットを作成してお問い合わせください。デモがすでに内部スキャンを通過している場合は、正式リリース前に送付をお願いできます。 お役に立てば幸いです。 BR セレステ Re: AN15071: where to download the demo and tool? こんにちは、 @Celeste_Liu さん。 チケットを作成します。 助けてくれてありがとう!
View full article
Code compression MPC556 Hi there. I'm working on a legacy MPC556 microcontroller where I don't have an option to change it. I need any code compressor. Reading MPC555UM, I could find the following at 4.3.1: "Compression is done off line by a special compressor tool, using a fixed vocabulary instruction based algorithm, optmized for the PowerPC instruction set." I've searched for some compiler or even other tool to compress my C code but I've no idea which one I must use. I saw somebody mentioning about Squeezard compressor but I couldn`t find it to download or even buy it. Is there something I can do to compress my C code ? It can be any tool (compiler with a compression option or compressor software) even in case I need to buy it! My last option will be to develop by my own but I don't know how tough is that. Re: Code compression MPC556 Hi, colleague! Have you managed to find any information about the code compression mechanism? Please contact with me [email protected] Re: Code compression MPC556 Hi @juninholiveira90  I'm sorry but the tools and documentation for code compression are not available anymore. Also MPC555/556 are already in End Of Life status, the device is no longer manufactured, so it's not supported anymore. Regards, Lukas
View full article
Could not connect to core / wire ack fault FRDM-MCXA153 I have accidently configured pins 49 and 50 to something else, without realising they are used for the debug probe as well which now means I can't access debug anymore. I changed them back to default but code now won't go to MCU because it doesn't find the core. The probe exists and the MCU seems healthy, I tried the reset and ISP pins to no avail. also tried mass erasing flash but its not possible because of the same fault. This is what I'm currently struggling with: Wire Ack Fault Ee(42). Could not connect to core No connection to chip's debug port Also tried the preconnect script but it did not work. Maybe if I can find a way to get to ROM mode? not sure, any advice is welcome. Development Board Re: Could not connect to core / wire ack fault FRDM-MCXA153 Hi @Luca28  Thanks for the detailed information. Since the issue appeared after changing the pin configuration and the debugger can no longer connect to the core, I would suggest trying to recover the device through ISP mode first. Please try entering ISP mode by holding the ISP button while resetting or power-cycling the board. Then, instead of starting a debug session, please use MCUXpresso Secure Provisioning Tool or blhost to check whether the device can be detected in ISP mode. Please refer to this link Re: FRDM-MCXA153 Suddenly started reporting an error on debug attempt - NXP Community BR Harry
View full article
Compulab IOTDIN-IMX8-C 1800QM-D4-N32 CAN 性能问题 各位团队成员,大家好! 我们目前正在使用通过终端 I/O 模块暴露的板载 CAN 接口,在基于 CompuLab ARM 的平台上评估 CAN 通信性能。 在测试过程中,我们观察到,在类似的 CAN 网络条件下,ARM 平台上的 CPU 利用率明显高于基于 x86 的系统: x86平台: CPU利用率约为30%。 CompuLab ARM平台: CPU利用率约为45%。 相比之下,当使用PEAK USB CAN 适配器和 compulab时,整体性能似乎更好,CPU 利用率也比使用板载 CAN 接口时更低。 我们的CAN网络配置如下: 具有18 个节点的 CANopen 网络。 CAN总线比特率: 250 kbps SocketCAN,txqueuelen 设置为 2000 通信主要通过PDO消息进行。 消息周期范围为100 毫秒至 10 秒 目前使用的最短更新间隔为100 毫秒 CAN-FD 未启用 x86 和 ARM 平台使用相同的应用软件和 CAN 配置。 我们希望更好地了解: 哪些因素可能导致 ARM 平台上的 CPU 占用率较高? 该平台上的板载 CAN 控制器/驱动程序是否存在任何已知的限制或优化建议? 是否有需要检查的特定 CAN 驱动程序、中断处理、缓冲或内核级调优参数? 板载 CAN 控制器和 PEAK USB CAN 适配器之间的差异是否可以解释观察到的性能差距? 是否有推荐的我的或诊断方法可以帮助确定 CPU 负载的主要来源? 我们的目标是在 ARM 平台上实现与 x86 系统相当的性能,同时保持当前的网络负载和消息速率。 我们非常感谢您能提供任何关于提高该平台上 CAN 性能的指导、建议或最佳实践。 感谢您的支持。 Re: Compulab IOTDIN-IMX8- C 1800QM-D4-N32 CAN performance issues 你好@JyothiKrao 希望你一切都好。 目前信息不足,无法确定是否存在平台特定的限制。在推荐针对特定控制器的变通方案之前,需要确切的 CompuLab 型号、SoC、内核版本、CAN 驱动程序和接口配置。具体来说,我们应该确认接口是否使用 FlexCAN 或其他控制器,是否选择 RX FIFO 或邮箱模式,以及驱动程序是否支持任何接收卸载机制。 我们建议首先比较两个系统上的以下测量结果: 实际 CAN 流量:每秒帧数、每秒字节数、总线利用率以及发送和接收的 PDO 数量。 CAN 错误和丢包: ip -details -statistics link show can0 以及控制器/驱动程序统计信息。 中断负载: /proc/interrupts 、 /proc/softirqs 以及运行 CAN 中断的 CPU。 进程和内核负载: top -H 、 pidstat -t ,以及(如果可用) perf top 或 perf record 同时保持相同的流量处于活动状态。 CPU 频率和调速器:验证两个平台是否都在预期的频率下运行,并且频率缩放是否影响比较结果。 顺祝商祺! 萨拉斯。
View full article
コード圧縮 MPC556 やあ。私はレガシーのMPC556マイクロコントローラを扱っていて、変更オプションがありません。コード圧縮ツールが必要です。MPC555UMを読んでみると、4.3.1で次のような記述が見つかりました。「圧縮は、PowerPC命令セットに最適化された固定語彙命令ベースのアルゴリズムを使用する専用の圧縮ツールによってオフラインで行われます。」 Cコードを圧縮できるコンパイラや他のツールを検索しましたが、どれを使えばいいのか全くアイデアがありません。Squeezardコンプレッサーについて言及している人を見かけたのですが、ダウンロードも購入もできませんでした。Cコードを圧縮する方法はありますか?圧縮オプション付きのコンパイラやコンプレッサーソフトウェアなど、どんなツールでも使えますし、購入が必要になった場合にも対応できます! 最後の手段は自分で開発することですが、それがどれほど大変なことなのか分かりません。 Re: Code compression MPC556 こんにちは、同僚さん!コード圧縮の仕組みに関する情報は何か見つかりましたか?どうかお問い合わせください [email protected] Re: Code compression MPC556 こんにちは、@juninholiveira90 申し訳ありませんが、コード圧縮のためのツールやドキュメントはもう利用できません。 また、MPC555/556はすでにエンドサービス状態にあり、製造中でサポートされていません。 よろしくお願いいたします。 ルーカス
View full article
我应该使用哪个 Matter 分支/版本? 你好, 我有点困惑该选择哪个 Matter 分支。我看到有v1.6.0.0.1版本和一个分支v1.6-branch-imx_matter_2026_q2 ,后者是建议在 Linux 环境下运行的 iMX93 上使用的分支。这两个分支之间有什么需要注意的重大变化吗? __展示 __展示 Re: Which Matter Branch/Release should i use 嗨@pengyong_zhang , 我想了解这个分支的用途,以及它与connectedhomeip除了 ELE 和 groupcast 之外的其他区别,并举几个例子。我看不出它们之间有什么区别,而且v1.6-branch-imx_matter_2026_q2版本看起来比 connectedhomeip 的其他版本要旧。 __展示 __展示 Re: Which Matter Branch/Release should i use 嗨@eldhokk 你应该使用 v1.6-branch-imx_matter_2026_q2。v1.6.0.0.1版本适用于 MCU 平台(FreeRTOS/Zephyr)。 B.R
View full article
iMX8QM - 中断/触发 a72 核心 CPU 您好,NXP, 我们成功启动了带有 a72 核心的 VARISCITE iMX8QM VAR-SOM-SYMPHONY 板,仅使用引导加载程序。引导加载程序日志如下: => CPU列表 错误:获取温度失败!(误差 = -19) 0: cpu@0 NXP i.MX8QM RevB A53 频率为 0 MHz - 传感器数据无效 错误:获取温度失败!(误差 = -19) 1:CPU@1 NXP i.MX8QM RevB A53 频率为 0 MHz - 传感器数据无效 错误:获取温度失败!(误差 = -19) 2:CPU@2 NXP i.MX8QM RevB A53 频率为 0 MHz - 传感器数据无效 错误:获取温度失败!(误差 = -19) 3:CPU@3 NXP i.MX8QM RevB A53 频率为 0 MHz - 传感器数据无效 4:CPU@100 NXP i.MX8QM RevB A72,频率 1596 MHz,温度 54°C 5:CPU@101 NXP i.MX8QM RevB A72,频率 1596 MHz,温度 54°C => 但是我们无法使用SGI中断/Poke CPU,设备树如下所示: gic:中断控制器@51a00000 { 兼容 = "arm,gic-v3"; reg = <0x0 0x51a00000 0 0x10000>, /* GIC Dist */       <0x0 0x51b00000 0 0xC0000>, /* GICR */       <0x0 0x52000000 0 0x2000>,  /* GICC */       <0x0 0x52010000 0 0x1000>,  /* GICH */       <0x0 0x52020000 0 0x20000> /* GICV */ #中断单元 = <3> 中断控制器; interrupts = ; interrupt-parent = <&gic>; };   设备树需要做任何更改吗?     Re: iMX8QM - Interrupt/Poke the a72 Core CPU 嗨@kamohan 这个问题与设备树关系不大。SGI 无法传递给内核;原因可能在于目标内核的上电状态或 GIC 初始化。 这是 ATF 中的代码,请确保使用 PSCI CPU_ON 和 SMC 为 A72 上电。 int imx_pwr_domain_on(u_register_t mpidr) { int ret = PSCI_E_SUCCESS; unsigned int cluster_id = MPIDR_AFFLVL1_VAL(mpidr); unsigned int cpu_id = MPIDR_AFFLVL0_VAL(mpidr); sc_pm_set_resource_power_mode(ipc_handle, cluster_id == 0 ? SC_R_A53 : SC_R_A72, SC_PM_PW_MODE_ON); sc_pm_req_low_power_mode(ipc_handle, cluster_id == 0 ? SC_R_A53 : SC_R_A72, SC_PM_PW_MODE_ON); if (sc_pm_set_resource_power_mode(ipc_handle, ap_core_index[cpu_id + PLATFORM_CLUSTER0_CORE_COUNT * cluster_id], SC_PM_PW_MODE_ON) != SC_ERR_NONE) { ERROR("core %d power on failed!\n", cpu_id + PLATFORM_CLUSTER0_CORE_COUNT * cluster_id); ret = PSCI_E_INTERN_FAIL; } if (sc_pm_cpu_start(ipc_handle, ap_core_index[cpu_id + PLATFORM_CLUSTER0_CORE_COUNT * cluster_id], true, CPU_START_ADDR) != SC_ERR_NONE) { ERROR("boot core %d failed!\n", cpu_id + PLATFORM_CLUSTER0_CORE_COUNT * cluster_id); ret = PSCI_E_INTERN_FAIL; } return ret; } void imx_pwr_domain_on_finish(const psci_power_state_t *target_state) { #if (!defined COCKPIT_A53) && (!defined COCKPIT_A72) uint64_t mpidr = read_mpidr_el1(); if (CLUSTER_PWR_STATE(target_state) == PLAT_MAX_OFF_STATE) cci_enable_snoop_dvm_reqs(MPIDR_AFFLVL1_VAL(mpidr)); #endif plat_gic_pcpu_init(); plat_gic_cpuif_enable(); } U-Boot 只使用主核心;辅助核心不会进入 U-Boot。此外,U-Boot 不启用 IRQ,也不在 NS 端配置 GIC CPU 接口,因此 U-Boot 无法接收 SGI 信号。 此致, 志明
View full article
SWO Data Watch Not Working on FRDM-MCXN947 Hello NXP Community, I am using MCUXpresso IDE 25.6 with the FRDM-MCXN947 development board. All other SWO features, including ITM Console output, interrupts, profiling, and counters, are working correctly. However, SWO Data Watch does not display live variable values or generate plots. I tested a simple program with global volatile variables that update continuously. The variables display the correct values in the debugger while paused and continue updating during execution (shown in the global variables), but SWO Data Watch remains empty or displays zero values. I have attached a screenshot of the SWO Trace Configuration. The SWO clock speed is set to 12.0 MHz, and the trace clock is enabled in the Clock Configuration tool. SWO trace statistics show good bytes with no bad bytes, and the trace configuration appears active. This is the simple code Iam using -  #include #include "fsl_common.h" #include "fsl_clock.h" #include "board.h" volatile uint32_t trace_counter = 0; volatile uint32_t trace_ramp = 0; volatile uint32_t trace_wave = 0; int main(void) { BOARD_InitBootClocks(); while (1) { trace_counter++; trace_ramp += 10U; if (trace_ramp >= 1000U) { trace_ramp = 0U; } trace_wave = (trace_wave == 0U) ? 100U : 0U; SDK_DelayAtLeastUs(100000U, CLOCK_GetFreq(kCLOCK_CoreSysClk)); } } Screenshots are attached for better clarification. Could this be a limitation or compatibility issue with SWO Data Watch on the MCXN947 in MCUXpresso IDE 25.6? Are any additional target, probe, or watchpoint configurations required to enable live variable monitoring? Thank you for your help. FRDM-MCXN947  MCXN Re: SWO Data Watch Not Working on FRDM-MCXN947 Hello @sidsal , Thanks for your post. After checking internally, I can confirm this is a known issue in MCUXpresso IDE v25.06 for arm33 core.   The issue comes from a difference in the DWT unit. The MCXN947 uses a Cortex-M33 core (Armv8-M). Its DWT comparator registers are designed differently from those on Cortex-M3/M4 (Armv7-M). Because of this, the comparators are not set up correctly for data tracing on this core. No data trace packets are generated, so the SWO Data view stays empty or shows zero. As NXP is currently focusing its development efforts on MCUXpresso for VS Code as the recommended development environment, we are unable to provide a confirmed schedule for an new MCUXpresso IDE release containing a fix at this time. Sorry for the inconvenience caused. BR Celeste
View full article
i.MX RT1176 eDMA:错误时停止机制设置的 CR[HALT] 无需任何软件写入即可清除。 你好, 我们正在调查运行在 PX4 飞行器上的 NuttX 的 i.MX RT1176(rev B0)的 eDMA 错误。 控制器板(fmu-v6xrt)。NuttX 中已找到并修复了错误的触发信号,但是 我们观察到一些eDMA行为,这些行为无法用参考手册解释,我们希望 理解它。 背景(公开报告): https://github.com/apache/nuttx/issues/20881 修复已合并到 apache/nuttx 项目中: https://github.com/apache/nuttx/pull/20893 ## 配置 - eDMA(用于 LPSPI、LPI2C 和 LPUART;不是 eDMA_LPSR) - CR[HOE] = 1(出错时停止),CR[EDBG] = 1 - 已启用散射/聚集;已启用次级环路通道链接 (ELINK) - 使用的通道:LPSPI1/2/3、LPI2C1/2/3、LPUART3/4/5/6/8/10 ## 发生了什么 驱动程序错误导致在 LPUART 上执行有效的 TCD 后,将 TCD 与 CITER = BITER = 0(分散/聚集)关联起来。 TX通道。我们在错误中断处理程序中捕获了 eDMA 寄存器,然后清除它们。 错误信息: - ES[NCE] 已设置,故障通道 = LPUART TX 通道,TCD CITER = BITER = 0 - CR = 0x432(已设置 HALT) 稍后我们从线程上下文(中断之外)读取 CR 时,它是 0x412(HALT 清除)。 同一信道上出现了成对的错误。大多数配对中,两个错误都出现在同一位置。 毫秒,但在某些配对中,第二个错误发生在第一个错误之后 1-269 毫秒。在这些情况下 LPSPI 和 LPI2C 传输停止的时间几乎与两者之间的时间间隔相同。 错误(例如,268 毫秒间隙 / 270.2 毫秒中断)。 软件的功能 - CR 只在初始化时写入一次。之后没有代码会写入 CR[HALT] = 0。 - 在错误中断处理程序中,驱动程序会为通道写入 CERR,然后终止程序。 该通道上的传输:CEEI、CERQ、TCD CSR = 0、TCD DLASTSGA = 0。 参考手册(修订版)5) 将 CR[HOE] 描述为:“任何错误都会导致 eDMA 引擎写入 1 到 HALT 场。随后,eDMA 引擎会忽略所有服务请求,直到您写入为止。 将 0 设置为 HALT 场。我们的观察结果与此不符,因为 HALT 在没有任何任何变化的情况下就变成了 0。 软件编写。 ## 问题 1.当 CR[HOE] = 1 时,在什么条件下 CR[HALT] 会被清除而无需对 CR 进行软件写入? 例如,写入 CERR 或 CERQ,或者激活或终止另一个通道。 2. 当 CR[HALT] = 1 时,如果一个子循环已经在执行,会发生什么? 渠道,以及在此期间收到的服务请求?他们是迷路了吗?还是…… HALT 清除后是否需要继续维护? 3.在错误处理程序将 CERQ 和 TCD CSR = 0 写入故障通道后,会发生什么? 是否会在 1-269 毫秒后在同一通道上引发第二次 NCE? 4. 对于多个外设共享 eDMA 的系统,NXP 是否建议 HOE = 0 或 HOE = 1?如果 HOE = 1,预期的恢复操作是否是在错误处理程序中写入 CR[HALT] = 0? 我们在 i.MX RT1170 芯片勘误表(修订版)中没有找到关于此的勘误。1.6)。我们可以分享 如果需要,可以提供寄存器捕获方法以及测量的更多详细信息。 谢谢! i.MXRT Re: i.MX RT1176 eDMA: CR[HALT] set by Halt-On-Error clears without any software write to C 嗨@宫胁, 感谢您的联系!您是否尝试过在RT1176 rev B0开发板上使用MCUXpresso SDK示例程序来重现此问题?我认为这是一种将 eDMA 行为与 NuttX 驱动程序和 PX4 工作负载分离的有效方法。 祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 -------------------------------------------------------------------------------
View full article
どのMatterブランチ/リリースを使うべきか こんにちは、 どのMatterブランチを選ぶべきか少し混乱しています。iMX93でLinux環境で動く際に推奨されている v1.6-branch-imx_matter_2026_q2 と、この2つのブランチ間で注目すべき大きな違いはありますか? __現在 __現在 Re: Which Matter Branch/Release should i use こんにちは@pengyong_zhangさん このブランチの用途と、ELEとgroupcast以外のconnectedhomeipとの違い、そしていくつかの例を知りたいのですが、両者の違いが全く分かりません。v1.6-branch-imx_matter_2026_q2はconnectedhomeipのリリースと比べて古くなっているように見えます。 __現在 __現在 Re: Which Matter Branch/Release should i use こんにちは、 @eldhokkさん v1.6-branch-imx_matter_2026_q2 を使用してください。v1.6.0.0.1のリリースはMCUプラットフォーム(FreeRTOS/Zephyr)向けに設計されています。 B.R
View full article
guiguider2.0.1不能创建C模拟器 我把guiguider2.0.1安装在了win10上  可以正常安装和运行  生成代码也正常 在生成C模拟器的时候会提示错误如下: 我想知道是因为我的系统win10(要求win11),还是其它问题产生的? Re: guiguider2.0.1不能创建C模拟器 嗨@tbg 感谢您提供错误日志。 GUI Guider 2.0.1 正式支持 Windows 11(64 位)。 从日志来看,C 模拟器运行失败的原因是捆绑的 GCC/MinGW 编译器无法执行其 cc1 元器件: cc.exe:致命错误:无法执行“cc1”:CreateProcess:没有该文件或目录 因此,我首先建议在 Windows 11 上测试 GUI Guider 2.0.1。如果同样的问题仍然存在,我们可以进一步调查工具链/安装环境。 BR 哈里
View full article
无法连接到核心/线路确认故障 FRDM-MCXA153 我不小心将引脚 49 和 50 配置成了其他用途,却没有意识到它们也用于调试探针,这意味着我现在无法再访问调试功能了。我已将它们改回默认值,但现在代码无法发送到 MCU,因为它找不到内核。探针存在,MCU 看起来也正常,我尝试了 RESET 引脚和 ISP 引脚,但都无济于事。也尝试过批量擦除闪存,但由于同样的故障,无法完成。 这就是我目前遇到的困难: 线路确认故障 Ee(42)。无法连接到核心网 未连接到芯片的调试端口 我也尝试过预连接脚本,但是没有成功。也许我能找到进入 ROM 模式的方法?不太确定,欢迎大家提供建议。 开发板 Re: Could not connect to core / wire ack fault FRDM-MCXA153 嗨@Luca28 感谢您提供如此详细的信息。 由于该问题是在更改引脚配置后出现的,并且调试器无法再连接到内核,我建议先尝试通过 ISP 模式恢复设备。 请尝试按住 ISP 按钮,同时 RESET 或重启板,进入 ISP 模式。然后,请不要启动调试会话,而是使用 MCUXpresso 安全配置工具或 blhost 检查是否可以在 ISP 模式下检测到设备。 请参考此链接 回复:FRDM-MCXA153 在调试尝试时突然开始报告错误 - NXP 社区 BR 哈里
View full article
代码压缩 MPC556 你好呀。我正在使用一款老旧的MPC556微控制器,没有办法更换它。我需要一款代码压缩器。阅读MPC555UM手册时,我在4.3.1节中找到了以下内容:“压缩是由一个特殊的压缩工具离线完成的,该工具使用基于固定词汇表指令的算法,并针对 PowerPC 指令集进行了优化。” 我一直在寻找一些编译器或其他工具来压缩我的 C 代码,但我不知道应该使用哪一个。我看到有人提到Squeezard压缩器,但我找不到下载或购买的地方。有什么办法可以压缩我的C代码吗?可以是任何工具(带有压缩选项的编译器或压缩软件),即使我需要购买它也没关系! 我的最后一个选择是自己开发,但我不知道这有多难。 Re: Code compression MPC556 嗨,同事!你找到任何关于代码压缩机制的信息了吗?请联系我:[email protected] Re: Code compression MPC556 你好@juninholiveira90 很抱歉,代码压缩的工具和文档已不再提供。 此外,MPC555/556 已经停产,该设备不再生产,因此不再提供支持。 此致, Lukas
View full article
Compulab IOTDIN-IMX8- C 1800QM-D4-N32 CAN パフォーマンスの問題 こんにちは、チームの皆さん、 現在、端末I/Oブロックを通じて露出したオンボードCANインターフェースを用いて、CompuLabのARMベースプラットフォーム上でCAN通信性能を評価しています。 テスト中、同様のCANネットワーク条件下で、ARMプラットフォームのCPU利用率はx86ベースのシステムに比べて著しく高いことが観察されました。 x86プラットフォーム: 約 30%のCPU使用率 CompuLab ARMプラットフォーム: 約 45%のCPU使用率 比較として、 ピークUSB CANアダプターとコンピュラブを組み合わせると、全体的な性能が優れており、CPUの使用率もオンボードCANインターフェースより低く見えます。 私たちのCANネットワーク構成は以下の通りです: 18ノードからなるCANopenネットワーク。 使用中のCANビットレート: 250 kbps txqueuelenを2000に設定したSocketCAN コミュニケーションは主にPDOメッセージで構成される メッセージの送信間隔は100ミリ秒から10秒までです。 現在使用されている最短更新間隔は100ミリ秒です。 CAN-FDは有効になっていません x86およびARMプラットフォームの両方で、同じアプリケーションソフトウェアとCAN構成が使用されています 私たちは以下の点についてより深く理解したいと考えています。 ARMプラットフォームで観察される高いCPU消費量に寄与する要因は何でしょうか? このプラットフォーム上のオンボードCANコントローラ/ドライバに関して既知の制限や最適化の提案はありますか? 特定のCANドライバ、割り込み処理、バッファリング、またはカーネルレベルのチューニングパラメータは確認すべきでしょうか? オンボードのCANコントローラとピークUSBのCANアダプターの違いが、観察された性能差の説明になるのでしょうか? CPU負荷の主な原因を特定するのに役立つ推奨されるプロファイリングや診断方法はありますか? 私たちの目標は、現在のネットワーク負荷とメッセージレートを維持しつつ、x86システムで見られる性能と同等のパフォーマンスをARMプラットフォーム上で達成することです。 このプラットフォームでのCANパフォーマンス向上のためのガイダンス、推奨、ベストプラクティスをいただけると大変ありがたいです。 再開まで今しばらくお待ちください。 Re: Compulab IOTDIN-IMX8- C 1800QM-D4-N32 CAN performance issues こんにちは、 @JyothiKraoさん お元気でお過ごしのことと思います。 プラットフォーム固有の制限を特定するには、まだ十分な情報がありません。コントローラ固有の回避策を推奨する前に、正確なCompuLabモデル、SoC、カーネルバージョン、CANドライバ、インターフェース構成が必要です。特に、インターフェースがFlexCANを使用しているか他のコントローラを使用しているか、RX FIFOまたはメールボックスモードを選択しているか、ドライバが受信オフロード機構をサポートしているかを確認する必要があります。 まず、両システムにおける以下の測定値を比較することをお勧めします。 実際のCANトラフィック:フレーム数/秒、バイト数/秒、バス利用率、送受信PDO数。 CANエラーとドロップ: ip -details -statistics link show can0 とコントローラ/ドライバの統計。 割り込み負荷: /proc/interrupts 、 /proc/softirqs 、およびCAN割り込みが動作するCPUです。 プロセスとカーネルの負荷: top -H 、 pidstat -t 、および、利用可能な場合は、同じトラフィックがアクティブな間、 perf top または perf record 。 CPU周波数とガバナー:両方のプラットフォームが期待される周波数で動作し、周波数のスケーリングが比較に影響していないかを確認しましょう。 よろしくお願いいたします。 サラス。
View full article
FRDM-MCXN947 上的 SWO 数据监视功能无法正常工作 NXP社区的各位朋友,大家好! 我正在使用MCUXpresso IDE 25.6和FRDM-MCXN947开发板。 SWO 的其他所有功能,包括 ITM 控制台输出、中断、性能分析和计数器,均运行正常。但是, SWO 数据监视器不显示实时变量值,也不生成图表。 我测试了一个简单的程序,其中包含持续更新的全局易失性变量。暂停时,这些变量在调试器中显示正确的值,并且在执行过程中持续更新(显示在全局变量中),但 SWO 数据监视器仍然为空或显示零值。 我已附上 SWO 跟踪配置的屏幕截图。SWO 时钟频率设置为12.0 MHz ,并且在时钟配置工具中启用了跟踪时钟。SWO 跟踪统计信息显示只有有效字节,没有坏字节,并且跟踪配置似乎已激活。 这是我使用的简单代码 - #include #include "fsl_common.h" #include "fsl_clock.h" #include "board.h" volatile uint32_t trace_counter = 0 ; volatile uint32_t trace_ramp = 0 ; volatile uint32_t trace_wave = 0 ; int main ( void ) { BOARD_InitBootClocks () ; 当( 1 ) { trace_counter ++; trace_ramp += 10 U ; 如果( trace_ramp >= 1000 U ) { trace_ramp = 0 U ; } trace_wave = ( trace_wave == 0 U ) ?100 U : 0 U ; SDK_DelayAtLeastUs ( 100000U , CLOCK_GetFreq ( kCLOCK_CoreSysClk ) ) ; } } 附上屏幕截图以便更好地说明。 这会不会是 MCUXpresso IDE 25.6 中 MCXN947 上的 SWO 数据监视器存在限制或兼容性问题?要启用实时变量监测,是否需要任何额外的目标、探针或观察点配置? 感谢您的帮助。 FRDM-MCXN947 MCX N Re: SWO Data Watch Not Working on FRDM-MCXN947 你好@sidsal , 感谢您的帖子。 经内部核实,我确认这是MCUXpresso IDE v25.06(arm33内核)中已知的问题。 问题出在DWT单位的不同上。MCXN947 使用 Cortex-M33 内核( Armv8-M )。它的 DWT 比较器寄存器设计与 Cortex-M3/M4 ( Armv7-M ) 上的不同。因此,该核心上的比较器没有正确设置,无法进行数据跟踪。没有生成数据跟踪包,因此 SWO 数据视图保持为空或显示为零。 由于恩智浦目前正集中精力开发基于 VS Code 的 MCUXpresso,并将其作为推荐的开发环境,因此我们暂时无法提供包含此修复程序的 MCUXpresso IDE 新版本发布的具体时间表。由此造成的不便,敬请谅解。 BR 塞莱斯特
View full article
iMX8QM - Interrupt/Poke the a72 Core CPU Hello NXP, We were able to bringup VARISCITE iMX8QM VAR-SOM-SYMPHONY Board with a72 core conly in bootloader.. the bootloader logs are as below, => cpu list Error: get temperature failed! (error = -19) 0: cpu@0 NXP i.MX8QM RevB A53 at 0 MHz - invalid sensor data Error: get temperature failed! (error = -19) 1: cpu@1 NXP i.MX8QM RevB A53 at 0 MHz - invalid sensor data Error: get temperature failed! (error = -19) 2: cpu@2 NXP i.MX8QM RevB A53 at 0 MHz - invalid sensor data Error: get temperature failed! (error = -19) 3: cpu@3 NXP i.MX8QM RevB A53 at 0 MHz - invalid sensor data 4: cpu@100 NXP i.MX8QM RevB A72 at 1596 MHz at 54C 5: cpu@101 NXP i.MX8QM RevB A72 at 1596 MHz at 54C => But we  are unable to Interrupt/Poke the cpu using SGI, the device tree is as below, gic: interrupt-controller@51a00000 { compatible = "arm,gic-v3"; reg = <0x0 0x51a00000 0 0x10000>, /* GIC Dist */       <0x0 0x51b00000 0 0xC0000>, /* GICR */       <0x0 0x52000000 0 0x2000>,  /* GICC */       <0x0 0x52010000 0 0x1000>,  /* GICH */       <0x0 0x52020000 0 0x20000>; /* GICV */ #interrupt-cells = <3>; interrupt-controller; interrupts = ; interrupt-parent = <&gic>; };   Are there any changes to be done for Device Tree?     Re: iMX8QM - Interrupt/Poke the a72 Core CPU Hi @kamohan  This issue has little to do with the Device Tree. The SGI cannot be delivered to the kernel; the cause likely lies in the target core's power-on state or GIC initialization. Here is code in ATF, please make sure you are using PSCI CPU_ON with SMC to power on the A72. int imx_pwr_domain_on(u_register_t mpidr) { int ret = PSCI_E_SUCCESS; unsigned int cluster_id = MPIDR_AFFLVL1_VAL(mpidr); unsigned int cpu_id = MPIDR_AFFLVL0_VAL(mpidr); sc_pm_set_resource_power_mode(ipc_handle, cluster_id == 0 ? SC_R_A53 : SC_R_A72, SC_PM_PW_MODE_ON); sc_pm_req_low_power_mode(ipc_handle, cluster_id == 0 ? SC_R_A53 : SC_R_A72, SC_PM_PW_MODE_ON); if (sc_pm_set_resource_power_mode(ipc_handle, ap_core_index[cpu_id + PLATFORM_CLUSTER0_CORE_COUNT * cluster_id], SC_PM_PW_MODE_ON) != SC_ERR_NONE) { ERROR("core %d power on failed!\n", cpu_id + PLATFORM_CLUSTER0_CORE_COUNT * cluster_id); ret = PSCI_E_INTERN_FAIL; } if (sc_pm_cpu_start(ipc_handle, ap_core_index[cpu_id + PLATFORM_CLUSTER0_CORE_COUNT * cluster_id], true, CPU_START_ADDR) != SC_ERR_NONE) { ERROR("boot core %d failed!\n", cpu_id + PLATFORM_CLUSTER0_CORE_COUNT * cluster_id); ret = PSCI_E_INTERN_FAIL; } return ret; } void imx_pwr_domain_on_finish(const psci_power_state_t *target_state) { #if (!defined COCKPIT_A53) && (!defined COCKPIT_A72) uint64_t mpidr = read_mpidr_el1(); if (CLUSTER_PWR_STATE(target_state) == PLAT_MAX_OFF_STATE) cci_enable_snoop_dvm_reqs(MPIDR_AFFLVL1_VAL(mpidr)); #endif plat_gic_pcpu_init(); plat_gic_cpuif_enable(); } U-Boot uses only the primary core; the secondary core does not enter U-Boot. Additionally, U-Boot does not enable IRQs and does not configure the GIC CPU interface on the NS side, so SGI signals cannot be received within U-Boot. Best Regards, Zhiming
View full article
i.MX RT1176 eDMA: CR[HALT] set by Halt-On-Error clears without any software write to C Hello, We are investigating eDMA errors on an i.MX RT1176 (rev B0) running NuttX on a PX4 flight controller board (fmu-v6xrt). The trigger of the errors has been found and fixed in NuttX, but we observed eDMA behavior that we cannot explain from the Reference Manual, and we would like to understand it. Background (public report): https://github.com/apache/nuttx/issues/20881 Fix merged in apache/nuttx: https://github.com/apache/nuttx/pull/20893 ## Configuration - eDMA (the one serving LPSPI, LPI2C and LPUART; not eDMA_LPSR) - CR[HOE] = 1 (Halt On Error), CR[EDBG] = 1 - Scatter/gather enabled; minor-loop channel linking (ELINK) enabled - Channels in use: LPSPI1/2/3, LPI2C1/2/3, LPUART3/4/5/6/8/10 ## What happened A driver bug linked a TCD with CITER = BITER = 0 (scatter/gather) after a valid TCD on LPUART TX channels. We captured the eDMA registers in the error interrupt handler, before clearing the error: - ES[NCE] set, failing channel = an LPUART TX channel, TCD CITER = BITER = 0 - CR = 0x432 (HALT set) When we read CR later from thread context (outside the interrupt), it was 0x412 (HALT clear). The errors came in pairs on the same channel. In most pairs both errors were in the same millisecond, but in some pairs the second error came 1-269 ms after the first. In those cases the LPSPI and LPI2C transfers stopped for almost the same time as the gap between the two errors (for example, 268 ms gap / 270.2 ms interruption). ## What the software does - CR is written only once, at initialization. No code writes CR[HALT] = 0 afterwards. - In the error interrupt handler, the driver writes CERR for the channel, then terminates the transfer on that channel: CEEI, CERQ, TCD CSR = 0, TCD DLASTSGA = 0. The Reference Manual (Rev. 5) describes CR[HOE] as: "any error causes the eDMA engine to write 1 to the HALT field. Subsequently, the eDMA engine ignores all service requests until you write 0 to the HALT field." Our observation does not match this, because HALT became 0 without any software write. ## Questions 1. With CR[HOE] = 1, under what conditions is CR[HALT] cleared without a software write to CR? For example, writing CERR or CERQ, or activating or terminating another channel. 2. While CR[HALT] = 1, what happens to a minor loop that is already executing on another channel, and to service requests that arrive during that time? Are they lost, or are they held and serviced after HALT is cleared? 3. After the error handler has written CERQ and TCD CSR = 0 on the failing channel, what can cause a second NCE on the same channel 1-269 ms later? 4. For a system where several peripherals share the eDMA, would NXP recommend HOE = 0 or HOE = 1? If HOE = 1, is the expected recovery to write CR[HALT] = 0 in the error handler? We have not found an erratum about this in the i.MX RT1170 Chip Errata (Rev. 1.6). We can share the register capture method and more details of the measurement if that helps. Thank you. i.MXRT Re: i.MX RT1176 eDMA: CR[HALT] set by Halt-On-Error clears without any software write to C Hi @miyawaki , Thanks for the reaching out! Have you tried with some MCUXpresso SDK demo on an RT1176 rev B0 board to reproduce this issue? I think it would be a useful way to separate eDMA behavior from the NuttX driver and PX4 workload.  Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. -------------------------------------------------------------------------------
View full article
Guiguider 2.0.1 cannot create a C simulator. I installed guiguider 2.0.1 on Windows 10, and it installed and ran normally, and the code generation was also normal. However, when generating the C simulator, I encountered the following error: I want to know if it's because my system is Windows 10 (which requires Windows 11), or if there's some other problem? Re: guiguider2.0.1不能创建C模拟器 HI @tbg  Thanks for providing the error log. GUI Guider 2.0.1 officially supports Windows 11 (64-bit). From the log, the C simulator fails because the bundled GCC/MinGW compiler cannot execute its cc1 component: cc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory Therefore, I would first recommend testing GUI Guider 2.0.1 on Windows 11. If the same issue still occurs there, we can further investigate the toolchain/installation environment. BR Harry
View full article
AN15071:在哪里可以下载演示版和工具? 您好,NXP团队, AN15071 Rev 1.0(MCX N947 上的 CMIS over I3C)提到了mcxn947_optical_module_cmis_over_i3c_demo项目及其脚本文件夹中的cmis_test_tool.exe ,但文档中唯一的链接是 USB 转 I3C 桥接存储库。 演示源代码和PC工具在哪里可以下载?或者它们何时发布? 感谢您的支持, 查尔斯·迪亚斯 FRDM 培训 动手实践培训 MCX N Re: AN15071: where to download the demo and tool? 你好@Celeste_Liu , 我会创建工单。 感谢您的帮助! Re: AN15071: where to download the demo and tool? 你好@CharlesDias , 感谢您的帖子。 AN15071 演示和相关工具将上传到应用程序代码中心。上传过程仍在进行中,预计将于 11 月中旬上线。 如果情况紧急,您可以创建私人工单与我们联系。如果演示版已经通过了我们的内部审核,我可以申请在正式版本前发送给您。 希望对您有所帮助。 BR 塞莱斯特
View full article
コア/配線認証の故障FRDM-MCXA153に接続できませんでした 誤ってピン49と50を別のものに設定してしまい、それがデバッグプローブにも使われていることに気づかず、その結果デバッグにアクセスできなくなりました。デフォルトに戻しましたが、コードがMCUに行けません。コアが見つからないからです。プローブは存在し、MCUも正常そうです。リセットやISPピンも試しましたが効果はありませんでした。フラッシュメモリの一括消去も試みましたが、同じ不具合のため不可能でした。 私が現在抱えている問題は以下のとおりです。 ワイヤACK障害 Ee(42)コアに接続できませんでした チップのデバッグポートに接続されていません プリコネクトスクリプトも試してみましたが、うまくいきませんでした。ROMモードに移行する方法を見つけられればいいのですが?よくわからないので、アドバイスをいただけると嬉しいです。 開発ボード Re: Could not connect to core / wire ack fault FRDM-MCXA153 こんにちは、 @Luca28さん 詳細な情報ありがとうございます。 ピン設定を変更した後に問題が発生し、デバッガがコアに接続できなくなったため、まずISPモードでデバイスを復旧することをおすすめします。 ボードのリセットまたは電源の再投入を行う際に、ISPボタンを押し続けながらISPモードに入ってみてください。その後、デバッグセッションを開始する代わりに、MCUXpressoセキュアプロビジョニングツールやblhostを使ってISPモードでデバイスが検出可能かどうかを確認してください。 こちらのリンクを参照してください Re: FRDM-MCXA153 デバッグ試行時に突然エラーが報告され始めた - NXPコミュニティ BR ハリー
View full article