Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
泰德的木工课程套餐值得购买吗?详细而诚实的评价 如果你喜欢木工、喜欢DIY项目,或者刚刚开始建立自己的家庭工作室,你可能听说过Ted's Woodworking。凭借着超过 16,000 个方案的承诺,它在网上随处可见,并引起了广泛关注。 那么,里面究竟是什么呢?我仔细研究了整个产品——查看了布局,检查了实际包含的内容,并将好的部分与不太好的部分区分开来。接下来,我们将直接介绍 Ted's Woodworking 提供的服务以及它的不足之处,以帮助您判断它是否适合您。 首先,Ted’s Woodworking 是什么?简而言之,泰德·麦格拉斯整理了一个巨大的数字木工图纸库,几乎涵盖了所有技能水平。如果你厌倦了在网络上到处搜索或为新项目购买大量书籍,那么这里旨在将所有内容集中在一个地方。里面包含简易家具、花园小屋、鸟屋、工作台等等的设计图纸。 这里是 什么 你 得到: 分步蓝图:每个项目都列出了详细的图表、多角度视图和说明,详细说明了构建的每个部分。 裁剪和材料清单:每个项目都会提供简明的购物清单,让您确切地知道要买什么。无需猜测,也减少了木材浪费。 技能多样性:无论您是使用基本手工具进行第一个项目,还是想要作为专业人士应对更艰巨、更高级的计划,每个人都能找到适合自己的内容。 额外内容:该套装还附赠额外指南——例如木工业务技巧、CAD 平面图查看器和一些教学视频,以帮助您一路前行。 总的来说,《泰德的木工》是一本内容丰富的合集,种类繁多,但最重要的是你是否真的会使用里面的内容。 优点 海量选择:我们提供如此多的套餐方案,您总能找到新的尝试。很难会缺乏灵感或者找不到自己喜欢的风格。 非常适合初学者:从尺寸到视觉指南,一切都安排得很清楚,所以即使你以前从未建造过任何东西,也很容易弄清楚每个部件是如何组装在一起的。 节省材料:详细的切割清单意味着您确切地知道要购买什么。木材厂不会再出现代价高昂的错误了。无风险购买:ClickBank 提供 60 天退款保证,因此如果产品不符合您的预期,您可以获得退款。 反对派 一开始可能会有点不知所措:会员区有成千上万个文件需要浏览,在你弄清楚所有内容的位置之前,可能会感觉很混乱。大型下载:文件非常大。如果你的网络速度慢,下载所有内容都需要一段时间,浏览网页也会卡顿。 最终判决 如果你厌倦了在互联网上搜寻零散的尺寸和难以理解的图纸,Ted’s Woodworking 可以为你省去所有这些麻烦。对于任何想要轻松、即时访问海量有序设计图库的 DIY 爱好者来说,这里都是首选之地。 想知道你实际会得到什么吗?您可以在下面的概览图中找到官方的详细分析、视频指南和最新信息。 扫描下方二维码查看官方演示文稿: 使用智能手机摄像头扫描即可直接访问官方页面。
View full article
JN5189 在现场突然停止工作,完全擦除闪存并重新编程后恢复正常 你好, 我正在使用 JN5189 开发一个自定义照明控制模块,SDK 版本为 2.6.16。现场一台设备突然停止工作,我想了解可能的根本原因、诊断方法和预防措施。 发生了什么 1.我拆下了故障模块,并使用 DK6 编程器读取了整个 Flash 内容。 2. 我将该转储文件编程到另一个新的 JN5189 模块中,该模块工作正常。这表明转储文件中包含的固件和数据是有效的。 3. 我将相同的转储文件重新编程到原来的故障芯片中,但问题仍然没有解决。 4. 我对原芯片执行了“完全闪存擦除”,然后再次写入了相同的转储文件。模块开始正常工作。 问题 1. 可能的根本原因 什么原因会导致这种行为?为什么对同一个 Flash 转储文件进行编程无法恢复原始芯片,而先进行完全擦除再进行编程却能成功恢复正常运行? 2. 诊断方法 如果再次出现此问题,在执行完全擦除之前,我应该检查哪些内容以确定根本原因?对于这类故障,是否有推荐的调试步骤或工具进行调查? 3. 固件中的预防措施 是否有任何固件层面的措施可以帮助防止此类问题再次发生? 任何建议、类似经验或相关技术文档的参考资料都将不胜感激。 感谢您的帮助。 Johnny9 Re: JN5189 Suddenly Stops Working in the Field and Recovers After Full Flash Erase and Reprogramming 你好, 希望你一切都好。感谢您提供的详细描述。 1. 可能的根本原因 Flash 转储文件在编程到另一个 JN5189 中可以正常工作,这表明提取的映像本身可以生成一个功能正常的设备。此外,由于原设备在完全擦除闪存并重新编程相同的转储后恢复正常,因此该设备似乎并未遭受永久性故障。 需要强调的是,对 Flash 进行编程和擦除 Flash 是不同的操作。对于 JN5189,必须先擦除 Flash 页才能对其进行编程。只要页面之前已被擦除,就可以在不同的地址执行连续的 FLASH_Program() 操作。 因此,在未先擦除 Flash 的情况下将转储文件编程回受影响的设备,并不一定能将 Flash 恢复到预期状态。先执行完全擦除操作,以确保 Flash 页面在再次编程图像之前处于适当的状态。 这就解释了为什么擦除+编程序列能够恢复设备。 然而,仅根据以上观察,我们无法确定最初导致该设备停止工作的原因。如果应用程序在正常运行期间执行 Flash 擦除/编程操作,则在应用程序修改 Flash 时发生的电源中断、RESET 或其他事件可能值得调查,但目前的证据尚不足以确认其中任何一项是根本原因。 2. 诊断步骤 如果问题再次发生,我建议在执行任何擦除或编程操作之前先保存设备状态。 尤其: 读取并保存完整的 Flash 内容,就像你在本例中所做的那样。 将转储文件与预期的编程映像进行比较。 确定哪些闪存区域不同,并确定这些区域是否预计在正常运行期间会被修改。 检查应用程序在运行时是否执行任何 Flash 擦除/编程操作。 如果使用运行时 Flash 操作,请调查在这些操作进行期间是否可能发生 RESET 或断电。 如果可能,在重新编程故障单元之前,请保留故障单元的RESET原因信息和其他诊断信息。 最有价值的证据是从另一台故障设备中提取的、在进行任何恢复操作之前的 Flash 转储文件,以及有关应用程序修改了哪些 Flash 区域的信息。 3. 固件方面的考虑 对于应用程序受控的闪存存储,请确保在对页面进行编程之前将其擦除。FLASH_ErasePages() 可用于页面擦除操作,一旦相应的页面被擦除,就可以对不同的位置进行连续的编程操作。 如果应用程序在正常运行期间修改非易失性数据,那么审查应用程序对这些操作期间发生的中断或重置的处理方式也很有用。 此时,擦除+重新编程恢复表明先前的 Flash 状态与观察到的行为相关,但这不足以确定最初是如何达到该状态的。 顺祝商祺! 里卡多
View full article
JN5189 Suddenly Stops Working in the Field and Recovers After Full Flash Erase and Reprogramming Hello, I am using the JN5189 in a custom lighting control module with SDK version 2.6.16. One unit suddenly stopped working in the field, and I would like to understand the possible root causes, diagnostic methods, and preventive measures. What Happened 1. I removed the faulty module and read the entire Flash contents using DK6 Programmer. 2. I programmed the dump into another new JN5189 module, which worked normally. This suggests that the firmware and data contained in the dump are valid. 3. I programmed the same dump back into the original faulty chip, but the issue was not resolved. 4. I performed a 'full Flash erase' on the original chip and then programmed the same dump again. The module started working normally. Questions 1. Possible Root Causes What could cause this behavior? Why would programming the same Flash dump fail to recover the original chip, while performing a full erase before programming successfully restores normal operation? 2. Diagnostic Methods If this issue occurs again, what should I check before performing a full erase to identify the root cause? Are there any recommended debugging procedures or tools for investigating this type of failure? 3. Preventive Measures in Firmware Are there any firmware-level measures that could help prevent this issue from occurring again? I would appreciate any advice, similar experiences, or references to relevant technical documentation. Thank you for your help. Johnny9 Re: JN5189 Suddenly Stops Working in the Field and Recovers After Full Flash Erase and Reprogramming Hello, Hope you are doing well. Thank you for the detailed description. 1. Possible root cause The fact that the Flash dump works when programmed into another JN5189 indicates that the extracted image itself can result in a functional device. Also, since the original device recovered after a full Flash erase followed by programming the same dump, the device does not appear to have suffered a permanent failure. An important point is that programming Flash and erasing Flash are different operations. For the JN5189, a Flash page must be erased before it is programmed. Consecutive FLASH_Program() operations can be performed at different addresses, provided that the page has previously been erased. Therefore, programming the dump back to the affected device without first erasing the Flash does not necessarily restore the Flash to the intended state. Performing a full erase first ensures that the Flash pages are in the appropriate state before the image is programmed again. This can explain why the erase + program sequence recovered the device. However, based only on the observations above, we cannot determine what originally caused the unit to stop working. A power interruption, reset, or another event occurring while the application is modifying Flash may be worth investigating if the application performs Flash erase/program operations during normal operation, but the current evidence does not confirm one of these as the root cause. 2. Diagnostic steps If the issue occurs again, I would recommend preserving the device state before performing any erase or programming operation. In particular: Read and save the complete Flash contents, as you did in this case. Compare the dump against the expected programmed image. Identify which Flash regions differ and determine whether those regions are expected to be modified during normal operation. Check whether the application performs any Flash erase/program operations at runtime. If runtime Flash operations are used, investigate whether a reset or power interruption could occur while those operations are in progress. If possible, preserve reset-cause information and other diagnostic information from the failing unit before reprogramming it. The most valuable evidence would be a Flash dump from another failed device taken before any recovery operation, together with information about which Flash regions are modified by the application. 3. Firmware considerations For application-managed Flash storage, make sure that a page is erased before it is programmed. FLASH_ErasePages() can be used for page erase operations, and consecutive programming operations to different locations are possible once the corresponding page has been erased. If the application modifies nonvolatile data during normal operation, it would also be useful to review the application's handling of interruptions or resets occurring during those operations. At this point, the erase + reprogram recovery indicates that the previous Flash state was relevant to the observed behavior, but it is not sufficient to identify how that state was originally reached. Best regards, Ricardo
View full article
Example S32K344 EMAC lwIP FreeRTOS S32K3-T-BOX S32DS 3.6.6 RTD7.0.1 * Detailed Description: * Updated the example lwip_FreeRTOS_s32K344 to enable pinging the lwIP stack * from the command window * *ping 192.168.0.210 * *Pinging 192.168.0.210 with 32 bytes of data: *Reply from 192.168.0.210: bytes=32 time=2ms TTL=255 *Reply from 192.168.0.210: bytes=32 time=1ms TTL=255 *Reply from 192.168.0.210: bytes=32 time=1ms TTL=255 *Reply from 192.168.0.210: bytes=32 time=2ms TTL=255 * *Ping statistics for 192.168.0.210: * Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), *Approximate round trip times in milli-seconds: * Minimum = 1ms, Maximum = 2ms, Average = 1ms * * Installed packages for S32 Design Studio 3.6.6: * * SW32K3_S32M27x_RTD_R23-11_7.0.1_D2603_DesignStudio_updatesite.zip * SW32K3_FreeRTOS_11.1.0_7.0.0_CD1_HF1_D2511_DesignStudio_updatesite.zip * SW32K3_TCPIP_STACK_5.0.0_CD01_D2605_DesignStudio_updatesite.zip * * * EVB: * - All jumpers in default positions * * Configuration: * - Updated pin configuration * - Updated clock configuration * - IP address set to 192.168.0.210 * - Added DIO * * Excluded from build: * - RTD/src/EthIf.c * - tcpip/lwip/src/apps/http/fsdata * * main.c * - Updated only the header * device.c * - Added required delay before clock init * test.c * - Removed the code that shuts down the TCP/IP stack after * its predefined timeout * - Added LED task * * ----------------------------------------------------------------------------- * Test HW: S32K3-T-BOX * MCU: S32K344 * Debugger: Lauterbach TRACE32 * Target: internal_FLASH * EVB connection: EMAC <-> USB-to-Ethernet adapter <-> Laptop DELL, Windows 11
View full article
MIMXRT1064 LPSPI4 主/从 MCUXpresso 配置工具 MIMXRT1064 的 LPSPI4 可以是主控端或从控端。 我的PCB板上有两种组装方式—— 以 LPSPI4 为主控 其次,以 LPSPI4 作为从设备。 在MCUXpresso配置工具中,当我在引脚面板中选择引脚D12为LPSPI4:SDI后,在路由详情面板中我可以设置它的方向吗? 如果我采用的是“功能组”配置,其中 LPSPI4 是主设备, D12引脚应该设置为输入还是输出? 我是否需要将 SDI 和 SDO 与外部 0 欧姆电阻互换? 谢谢。 大卫。 电路板设计 封装和 I/O|GPIO Re: MIMXRT1064 the LPSPI4 master / slave MCUXpresso config tool 嗨@davidfi , 非常感谢您对我们产品的关注以及对我们社区的使用。 在正常的 LPSPI4 配置(CFGR1[PINCFG] = 0b00)下,SDI/SIN 是 RT1064 的输入,SDO/SOUT 是其输出: 1:RT1064 作为主设备:它接收从设备通过 SDI 发送的数据,并通过 SDO 向从设备发送数据。 2:RT1064 作为从设备:它接收主设备通过 SDI 发送的数据,并通过 SDO 向主设备发送数据。 单单改变 RT1064 在主从之间的位置,并不会逆转 SDI 和 SDO 的方向。   如果一个组件的 SDI 和 SDO 连接被反转,你可以设置 CFGR1[PINCFG] = 0b11 ( kLPSPI_SdoInSdiOut ) 来在软件中交换它们的功能。SDI 发送数据,而 SDO 接收数据。请确保此设置与所选组件的接线相匹配。 BR 5月 Re: MIMXRT1064 the LPSPI4 master / slave MCUXpresso config tool MCUXpresso 配置工具中是否可以交换 SDI/SDO? Re: MIMXRT1064 the LPSPI4 master / slave MCUXpresso config tool 请看下图:
View full article
学生边缘人工智能项目原型申请:FRDM-MCXN947 和 FRDM-RW612 NXP社区和FAE团队,您好! 我是一名学生开发者,正在使用 MCX 生态系统开发嵌入式边缘 AI 和无线网关架构。我最近开始在 macOS 上的 VS Code 中使用 MCUXpresso 对 FRDM-MCXA156 和 FRDM-MCXN236 开发板进行原型设计。 为了将此设置扩展到多节点系统,我打算评估FRDM-MCXN947和FRDM-RW612板: FRDM-MCXN947:利用其双核 Cortex-M33 架构、硬件 eIQ Neutron NPU 和高速接口,构建边缘 AI 计算节点。 FRDM-RW612:用作三射频无线桥接器,处理 Wi-Fi 6、Matter/Thread 和 BLE 网状遥测。 由于我的个人账户无法在支持案例门户网站上提交正式工单,我想询问 NXP 团队成员或大学推广代表是否可以协助我获得这两个目标的样品批准或促销优惠券代码。 一旦原型版本得到验证,我将在 GitHub 上开源发布完整的固件源代码和版本文档,并分享对该项目的完整评论。 感谢您抽出时间并支持学生开发者! 顺祝商祺! Vaibhav L K 电路板设计 开发板 FRDM 培训 动手实践培训 MCX N Re: Prototype Request FRDM-MCXN947 & FRDM-RW612 for Student Edge AI Project 你好@L_K_Vaibhav , 感谢您对恩智浦产品的关注。 关于您的请求,您可以尝试联系下方链接“联系我”下的联系人,看看他们是否能提供进一步的帮助。 NXP CZ 学生版 您或许会对NXP CUP感兴趣。恩智浦杯 | 恩智浦半导体 BR 塞莱斯特
View full article
i.MX8MP USB主机锁定(-110),低速设备物理拔出 目标设置: SoC:NXP i.MX8MP端口配置:共 4 个 USB 端口(2 个 USB 2.0,2 个 USB 3.0) 操作系统:Yocto Scarthgap 6.6.52 拓扑结构: 在我们的设计中,i.MX8MP SoC 使用其内部 USB2(在我们的设计中,USB1 线连接到 otg)控制器以 USB 3.0 模式直接提供上行连接到板载 Fresco Logic FL5500-2F0 集线器。然后,集线器将此连接向下分配到四个物理端口:两个端口采用 USB 3.0 全功能连接,而其余两个端口仅采用 USB 2.0 连接。 i.MX8MP(SoC 控制器“USB2”线,以 USB 3.0 模式运行)-> USB 3.0 集线器(Fresco Logic FL5500-2F0,提供 2 个 USB 3.0 端口和 2 个 USB 2.0 端口)   问题描述:我们正在追踪 i.MX8MP 上的一个致命的 xHCI 命令环锁定问题。该硬件在重新插拔后无法响应 xHCI 驱动程序发出的数据命令。崩溃条件非常特殊,仅限于一个硬件上的 USB 3.0 端口,其他 USB 3.0 和 2.0 端口均未出现此问题。 当低速 (LS) 设备从下游高速集线器物理拔出,而其他 3 个端口中的至少一个后台连接着至少一个低速设备时,锁定只会发生在特定的 USB 3.0 端口上(如果在尝试重新插入问题端口之前拔出后台低速设备,则不会出现此问题)。 关键行为隔离: 端口隔离:如果我们对另一个 USB 3.0 端口或 USB 2.0 端口执行完全相同的多设备拔插测试,则测试结果正常。故障仅限于单个 USB 3.0 端口。速度隔离:后台设备必须是低速设备。后台连接了多少高速设备(例如 USB 存储驱动器)并不重要;如果没有其他低速设备,拔出操作就能正常进行。 注意:缓解此问题的一个方法是,在尝试物理拔插之前,使用以下命令取消故障 USB 端口的授权: echo 0 > /sys/bus/usb/devices/1-1.1/authorized 如果我们解绑再重新绑定 USB 驱动程序,也能达到同样的效果。 使用的端口 集线器上的后台设备 设备正在拔掉电源 断开连接方法 主机控制器结果 USB 3.0(良好端口) 低速 低速 物理抽签 彻底拆解 USB 2.0端口 低速 低速 物理抽签 彻底拆解 USB 3.0(故障端口) 仅限高速 低速 物理抽签 彻底拆解 USB 3.0(故障端口) 无 低速 物理抽签 彻底拆解 USB 3.0(故障端口) 低速 低速 软件(已授权=0) 彻底拆解 USB 3.0(故障端口) 低速 低速 物理抽签 命令环超时(-110),主机死亡 日志, root@lec-imx8mp:~# lsusb 总线 001 设备 001:ID 1d6b:0002 Linux Foundation 2.0 根集线器 总线 001 设备 002:ID 1d5c:5510 Fresco Logic Frescologic USB2.0 集线器 总线 001 设备 004:ID 413c:301a 戴尔计算机公司 戴尔 MS116 光电鼠标 总线 001 设备 005:ID 413c:2113 戴尔电脑公司 KB216 有线键盘 总线 002 设备 001:ID 1d6b:0003 Linux Foundation 3.0 根集线器 总线 002 设备 002:ID 1d5c:5500 Fresco Logic Frescologic USB3.1Gen2 集线器 root@lec-imx8mp:~# [ 39.686850] usb 1-1.2:USB断开连接,设备编号5 [ 41.191295] usb 1-1.1:使用 xhci-hcd 的新型低速 USB 设备,设备编号为 6 root@lec-imx8mp:~# lsusb 总线 001 设备 001:ID 1d6b:0002 Linux Foundation 2.0 根集线器 [ 51.427313] xhci-hcd xhci-hcd.1.auto:xHCI 主机未响应停止端点命令 [ 51.443403] xhci-hcd xhci-hcd.1.auto:xHCI 主机控制器无响应,假定其已损坏 [ 51.451350] xhci-hcd xhci-hcd.1.auto:HC去世;清理工作 [ 51.457035] usb 1-1-port1:无法分配 usb_device [ 51.462339] usb 1-1:USB 断开连接,设备编号 2 总线 001 设备 002:ID 1d5c:5510 [ 51.467338] usb 1-1.4:USB断开连接,设备编号4 Fresco Logic Frescologic USB2.0 H[ 51.475602] usb 2-1:USB 断开连接,设备编号 2 总线 001 设备 004:ID 413c:301a 戴尔计算机公司 戴尔 MS116 光电鼠标 总线 002 设备 001:ID 1d6b:0003 Linux Foundation 3.0 根集线器 总线 002 设备 002:ID 1d5c:5500 Fresco Logic Frescologic USB3.1Gen2 集线器 root@lec-imx8mp:~# lsusb 总线 001 设备 001:ID 1d6b:0002 Linux Foundation 2.0 根集线器 总线 002 设备 001:ID 1d6b:0003 Linux Foundation 3.0 根集线器   i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Linux Yocto Project Re: i.MX8MP USB Host Lockup (-110) on Low Speed device Physical Unplug 任何关于此问题的见解或解决方案都将非常有帮助。 谢谢 Re: i.MX8MP USB Host Lockup (-110) on Low Speed device Physical Unplug 你好, 您能否尝试在设备树中添加这两个特殊设置? /* 禁用 USB 2.0 管道上的停车模式功能 */ snps,parkmode-disable-hs-quirk; /* 强烈建议同时包含此项,以防止频繁的链路休眠 */ snps,dis_u2_susphy_quirk; 这将修改控制器 GUCTL1 寄存器中的第 16 位(PARKMODE_DISABLE_HS)。它会停止高速总线线路的预取调度机制,确保控制器在处理来自集线器后面的设备的操作时不会陷入无响应陷阱。 希望这能帮到你。 此致敬礼/Saludos, 阿尔多。
View full article
FRDM-A-S32K344のFLSドライバーについて チームの皆さん、こんにちは。 私はFRDM-A-S32K344に取り組んでいます。 FLSドライバの開発に取り組みたいです。(S32DS 3.5バージョンとRTD 3.0.0をインストールしました) 私はFLSのドライバを下にしています。 画像1 S32DSとRTDの構成が同じ別のPCも持っています。 以下にスニップにFLSドライバーが含まれています。このFLSドライバを見るには、どのRTDかpkgをインストールしればいいのでしょうか? 画像2 画像1と画像2、どちらが古いRTD/FLSドライバの新しいバージョンですか?それとも両者の間に何か違いがあるのでしょうか?教えてください。
View full article
S32 Design Studio for ARM v2018.R1 许可证已过期 你好, 我的S32 Design Studio for ARM v2018.R1许可证已过期。 请问您能否帮我延长一下许可证期限? 激活码:9D31-3A20-FFB1-F104 Re: S32 Design Studio for ARM v2018.R1 license expired 你好, 您的S32DS许可证已延期。请使用您之前的激活码重新激活S32DS。
View full article
MIMXRT1064 LPSPI4 マスター/スレーブ MCUXpresso 設定ツール MIMXRT1064のLPSPI4はマスターまたはスレーブにできます。 私のPCBには2つの組み立てオプションがあります。 マスターとしてLPSPI4を使用するもの 2つ目は、LPSPI4をスレーブとして使用する場合です。 MCUXpressoの設定ツールで、ピンパネルでD12をLPSPI4:SDIに選んだ後、ルーティング詳細パネルで方向を設定できます!? もし私が「Functional Group」構成でLPSPI4がマスターである場合、 このD12ピンは入力か出力に設定すべきでしょうか? SDIとSDOを外部の0Ω抵抗器に交換する必要はありますか? ありがとう。 デビッド。 ボード設計 パッケージとIO|GPIO Re: MIMXRT1064 the LPSPI4 master / slave MCUXpresso config tool こんにちは、 @davidfi さん。 私たちの製品にご関心を寄せ、コミュニティをご利用いただき、本当にありがとうございます。 通常のLPSPI4構成(CFGR1[PINCFG] = 0b00)では、SDI/SINがRT1064の入力、SDO/SOUTが出力となります。 1:RT1064をマスターとして動作させる場合:スレーブからSDI経由で送信されたデータを受信し、スレーブにSDO経由でデータを送信します。 2:RT1064をスレーブとして使用する場合:マスターからSDI経由で送信されたデータを受信し、SDO経由でマスターにデータを送信します。 RT1064をマスターとスレーブ間で変更しても、それ自体でSDIとSDOの方向が逆になるわけではありません。   アセンブリのSDIとSDO接続が逆の場合、CFGR1[PINCFG] = 0b11 (kLPSPI_SdoInSdiOut )を設定してソフトウェアで関数を交換できます。SDIはデータを送信し、SDOはそれを受信します。この設定が選択したアセンブリの配線と一致していることを確認してください。 BR 5月 Re: MIMXRT1064 the LPSPI4 master / slave MCUXpresso config tool 下記の図をご覧ください。 Re: MIMXRT1064 the LPSPI4 master / slave MCUXpresso config tool MCUXpressoの設定ツールでSDI/SDOを切り替える方法はありますか?
View full article
IW612:固件说明 我的 IW612 的 BLE 部分出现了一些问题。我收到类似这样的错误: 9月30日 14:27:11 设备 kern.err 内核: [103370.366384]蓝牙:hci0:控制器不再接受命令:ncmd = 0 9月30日 14:27:11 设备 kern.err 内核: [103370.372705]蓝牙:hci0:注入 HCI 硬件错误事件 9月30日 14:27:32 设备 kern.err 内核: [103391.064915]蓝牙:hci0:帧重组失败(-84) 9月30日 14:27:34 设备 kern.err 内核: [103393.005935]蓝牙:hci0:操作码 0x0c03 失败:-110 我的平台是 STM32MP1,内核版本为 6.6.x,使用 Murata 2EL 模块。使用 NXP HCI 驱动程序。 请问以下说法是否属实? - github.com/nxp-imx/mwifiex 的版本应与 github.com/nxp-imx/imx-firmware 匹配 - 校准版本 (github.com/murata-wireless/nxp-linux-calibration)无关紧要 - 无需将标签与内核版本匹配,因此我不必使用lf-6.6.52_2.2.0 分支,较新的 lf-6.18.37_2.1.0 应该向下兼容我的内核。 我希望在测试新版本之前先解决这个问题,看看更新是否能解决我的问题。 Re: IW612: Firmware clarification 嗨, @allard_p - github.com/nxp-imx/mwifiex 的版本应与 github.com/nxp-imx/imx-firmware 匹配 ==>[NXP]:是的,我们强烈建议使用匹配的驱动程序(github.com/nxp-imx/mwifiex)。以及固件(github.com/nxp-imx/imx-firmware)。 - 校准版本 (github.com/murata-wireless/nxp-linux-calibration)无关紧要 ==>[NXP]: 是的,对于您当前的 HCI 错误,校准并不重要。它通常会影响射频性能、发射功率和监管行为。 - 无需将标签与内核版本匹配,因此我不必使用lf-6.6.52_2.2.0 分支,较新的 lf-6.18.37_2.1.0 应该向下兼容我的内核。 ==>[NXP]:是的,我们的驱动程序与旧内核兼容,例如您的6.6.x 内核。但是您需要使用内核交叉编译工具链交叉编译驱动程序源代码。 顺便问一下,您提到您正在使用 nxp hci 驱动程序。 您正在使用我们的 btnxpuart 吗?或者您使用的是Linux开源UART? 对于蓝牙:hci0:帧重组失败(-84)错误,我建议您检查与蓝牙相关的设备树以及波特率。 顺祝商祺! Christine。 Re: IW612: Firmware clarification 我正在使用 btnxpuart.c,内核 6.6.129 中包含的版本 Re: IW612: Firmware clarification 更新:我已更新至 lf-6.18.37_2.1.0。我还没有遇到最初的问题,但我遇到了另一个问题:蓝牙控制器有时会停止发送 LE 广播报告,而主机仍然启用了扩展被动扫描。停车很突然,没有任何错误提示。 我有 HCI 日志,但我不想将它们附加到公共论坛上,我会就此提交一个支持案例。 Re: IW612: Firmware clarification 嗨, @allard_p 感谢您的反馈,请问您最初的问题已通过更新到 lf-6.18.37_2.1.0 得到解决吗? 对于新的BLE广播问题,当然可以,请随时通过我们的支持工单系统创建新案例: https://support.nxp.com/s/?language=en_US 如果本帖没有其他问题,我将暂时关闭此帖。 如果您还有其他疑问,可以随时回复。 顺祝商祺! Christine。
View full article
i.MX95 SEMA42 GATEn 功能域注册器 我计划在 i.MX95 上使用 SEMA42 来实现 Cortex-M7 和 Cortex-A55 之间的互斥。 为此,需要在 SEMA42 GATEn 寄存器的 GTFSM 字段(位 3-0)中指定功能域号(功能域 0-14)。 请问功能域 0 到 14 分别对应哪些总线主控芯片(Cortex-A55、Cortex-M7、Cortex-M33、DMA 等)? 我从 MCUXpresso SDK 中的 SEMA42 驱动程序示例中找到了 Cortex-M7 和 Cortex-M33 的功能域数字。 (APP_CORTEX_M33_DID = 8,APP_CORTEX_M7_DID = 9),并且该示例适用于这些值。 但是,它们与系统管理器 cfg 文件中配置的 TRDC DID 不匹配(M33/SM 的 did=2,M7 的 did=4)。 此外,i.MX943 EVK 的 SEMA42 示例将这些值描述为“SoC 的主 ID 分配”,因此我假设 SEMA42 使用的是总线主 ID 而不是 TRDC DID。 但是,我找不到 i.MX95 上 Cortex-A55 的对应值。如果任何文档中描述了此信息(例如,i.MX95 的主 ID 分配表)。 或者在网上,如果您能告诉我哪里可以找到,我将不胜感激。 mcuxpresso-sdk\mcuxsdk\examples\_boards\imx95lpd5evk19\driver_examples\sema42\sm\cm7\app.h --- #define APP_CORTEX_M7_DID 9 #define APP_CORTEX_M33_DID 8 --- Re: i.MX95 SEMA42 GATEn regiser of Domain ID 在 i.MX95 SEMA42 示例中,Cortex-M7 请使用 DID 9,而不是系统管理器/TRDC DID 4。在此配置中,它们是不同的标识符:SEMA42 接受 SDK 值,并且由功能域 9 锁定的门会读取 GTFSM = 10(功能域 + 1)。 Re: i.MX95 SEMA42 GATEn regiser of Domain ID 我的环境中系统管理器/TRDC 配置的 Cortex-M7 DID 为 4。 我首先尝试了这个DID。但SEMA42不起作用。MCUXpressoSDK 示例中的 GATEn.GTFSM 值仅有效。 你有什么想法吗? Re: i.MX95 SEMA42で使用するDomain ID i.MX95 参考手册默认将 Cortex-A55 列为功能域 ID 3。Cortex-M7 和 Cortex-M33 的默认 ID 分别为 4 和 2。 您的 SDK 示例将 M7 定义为 9,将 M33 定义为 8。在使用 A55 DID 3 进行 A55-M7 锁定之前,请检查该示例使用的系统管理器/TRDC 配置。此外,锁定的 GATEn.GTFSM 读取为 DID + 1;读取值为 9 表示 DID 8。 i.MX95rifァrensumanyuaruでは、 Cortex-A55の既定のDomain ID (DID )は3です。Cortex-M7とCortex-M33の既定DIDは、それぞれ4と2です。 另外、ご提示のSDK例ではM7を9、M33を8と定义しています。 A55–M7间の排他处理にA55のDID 3を使う前に、その例で使用する系统管理器/TRDC的设定を确认してください。また、ロック后の GATEn.GTFSMの読み出し値はDID + 1です。読み出し値9はDID 8を示します。 Re: i.MX95 SEMA42 GATEn regiser of Domain ID 实际上,我通过编写以下代码在 Cortex-A55 和 Cortex-M7 上测试了 SEMA42: 将值 1 到 15 传递给 GATEn.GTFSM,以检查哪些值可以实际锁定该门。   GATEn.GTFSM DID + 1 (*1) Cortex-A55 核心 0 1 4 Cortex-A55 核心 1 2 4 Cortex-M7 10 (*2) 5 *1 值基于系统管理器配置文件中的 DID 定义 *2 此值用于 MCUXpresso SDK 的 SEMA42 驱动程序示例中。 要写入 GATEn.GTFSM 的值显然不是 DID + 1 (*1)。 根据 i.MX95 SEMA42 规范,哪些设备(总线主控器) 对应于 GATEn.GTFSM 值 1 到 15? 我至少需要与以下各项对应的 GATEn.GTFSM 值: Cortex-A55 核心 0 至 5 和 Cortex-M7。 Re: i.MX95 SEMA42 GATEn regiser of Domain ID 关键在于 GATEn.GTFSM 不是一个固定的总线主控 ID 表。它反映了请求者配置的DID加一: GTFSM = DID + 1 对于标准的 i.MX95/系统管理器配置: GTFSM 做过 总线主控/设备 1 0 没有标准默认赋值 2 1 没有标准默认赋值 3 2 Cortex-M33 / 系统管理器 4 3 Cortex-A55平台——核心0-5 5 4 Cortex-M7 6-15 5–14 取决于配置;没有固定的设备分配 因此,对于默认配置: Cortex-A55 核心 0–5:GTFSM = 4 皮层-M7:GTFSM = 5 Cortex-M33/系统管理器:GTFSM = 3 这就解释了为什么 A55 核心 0 和 1 都锁定为值 4:六个 A55 核心共享 A55 平台 DID;它们没有单独的 GTFSM 值。系统管理器配置分配 SM/M33 DID 2、A55 DID 3 和 M7 DID 4。 MCUXpresso SEMA42 示例使用不同的配置:M33 DID 8 和 M7 DID 9,因此相应的回读值为 9 和 10。这些不是默认系统管理器配置中的 TRDC DID。
View full article
S32G2によるマルチコアアプリケーションの実現 こんにちは、NXPの皆さん: S32G274Aチップでプログラムを動かすにはマルチコアを使い、LinuxにはA53、LLCE_CANはM7で動かす準備をしています。 5.2に基づき「S32G2プラットフォームソフトウェア統合を使ったマルチコアアプリケーションをS32G2で有効化する」と述べました。ブートローダーを設定し、推奨するソフトウェアパッケージをインストールし、手順に従って設定してください。 zhipeng_7-1786181958976.pngzhipeng_7-1786181958976.pngzhipeng_7-1786181958976.pngzhipeng_7-1786181958976.png 5.3にエラーがあります。コンパイル時にブートローダーを構築する。 launch.batファイルが編集されました。 zhipeng_0-1786182860528.pngzhipeng_0-1786182860528.pngzhipeng_0-1786182860528.pngzhipeng_0-1786182860528.png launch.bat の実行後にエラーが発生しました。 zhipeng_0-1786180508617.pngzhipeng_0-1786180508617.pngzhipeng_0-1786180508617.pngzhipeng_0-1786180508617.png 関連するコードをコメントアウトした後。 zhipeng_5-1786181360466.pngzhipeng_5-1786181360466.pngzhipeng_5-1786181360466.pngzhipeng_5-1786181360466.png zhipeng_2-1786180921774.pngzhipeng_2-1786180921774.pngzhipeng_2-1786180921774.pngzhipeng_2-1786180921774.png CryptoDal.hを見つけましたインストールディレクトリ内のファイル。 zhipeng_4-1786181305215.pngzhipeng_4-1786181305215.pngzhipeng_4-1786181305215.pngzhipeng_4-1786181305215.png zhipeng_6-1786181450684.pngzhipeng_6-1786181450684.pngzhipeng_6-1786181450684.pngzhipeng_6-1786181450684.png どこに間違いがあるでしょうか? ありがとうございます。 Re: S32G2 Enabling Multicore Application こんにちは、ジペン ご指摘の件についてですが、以下の内容を追加した場合、エラーが発生しますか?コメントアウトしてもエラーは発生しませんか? Joey_z_0-1786328574726.pngJoey_z_0-1786328574726.pngJoey_z_0-1786328574726.pngJoey_z_0-1786328574726.png BR ジョーイ Re: S32G2 Enabling Multicore Application こんにちは、 @Joey_z はい、追加後、3枚目の画像に「未申告」と表示されます。 コメントアウトすると、5番目の画像に「そのようなファイルまたはディレクトリはありません」と表示されます。 zhipeng_1-1786347067301.pngzhipeng_1-1786347067301.pngzhipeng_1-1786347067301.pngzhipeng_1-1786347067301.png 「CryptoDal.h」は、D:\NXP\Integration_Reference_Examples_S32G2_2022_06\code\framework\realtime\bsw\dal\cryptodal\generic\include にあります。 「Hse_Ip.h」は、D:\NXP\SW32G_RTD_4.4_3.0.2_HF01\eclipse\plugins\Crypto_TS_T40D11M30I2R0\include にあります。 両方のファイルはそれぞれのフォルダ内に見つかりました。また、ファイルパスはlaunch.batにも記載されています。 現在の問題は、コンパイルプロセス中にプラグインのパスが含まれていなかったことが原因のようです。 BR Re: S32G2 Enabling Multicore Application こんにちは、ジペン 設定でセキュアブートは有効になっていますか?セキュアブートを有効にして、問題が解消されるかどうか確認してみてください。 Joey_z_2-1786353784256.pngJoey_z_2-1786353784256.pngJoey_z_2-1786353784256.pngJoey_z_2-1786353784256.png BR ジョーイ 回复: S32G2 Enabling Multicore Application こんにちは、 @Joey_z 前回のブートローダーのコンパイルは成功しました。NORフラッシュにイメージを書き込んだ後、起動してもUARTから何も出力されません。 私はAN13750を参照しました。私の操作手順は以下のとおりです。 「S32G2_LinuxBSP_42.0_User_Manual.pdf」に従いました。Ubuntu 20 に u-boot bsp42.0-2022.04 と ATF bsp42.0-2.10 をインストールしました。 s32_mmc.cを修正しましたおよび s32_common.mk は 0001-fip-align-and-mmc-init.patch に従っています。 zhipeng_0-1787646642108.pngzhipeng_0-1787646642108.pngzhipeng_0-1787646642108.pngzhipeng_0-1787646642108.png zhipeng_1-1787646670172.pngzhipeng_1-1787646670172.pngzhipeng_1-1787646670172.pngzhipeng_1-1787646670172.png zhipeng_2-1787646683855.pngzhipeng_2-1787646683855.pngzhipeng_2-1787646683855.pngzhipeng_2-1787646683855.png u-bootとATFをコンパイルしました。 make CROSS_COMPILE=/opt/S32G/arm-gnu-toolchain-11.3.rel1-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=aarch64 PLAT=s32g274ardb2 BL33=../u-boot/u-boot-nodtb.bin Image Layout DCD: Offset: 0x200 Size: 0x1c IVT: Offset: 0x1000 Size: 0x100 AppBootCode Header: Offset: 0x1200 Size: 0x40 Application: Offset: 0x1240 Size: 0x33e00 Boot Core: A53_0 IVT Location: SD/eMMC Load address: 0x342f8f00 Entry point: 0x34302000 fip.s32ファイルをSDカードに書き込みました。fipを交換した後も、SDカードは起動可能で、u-bootの日付も変更された。 U-Boot 2022.04-00213-g5a6f62071f (Aug 24 2026 - 10:35:21 +0800) ブートローダーを設定します。 zhipeng_3-1787647428751.pngzhipeng_3-1787647428751.pngzhipeng_3-1787647428751.pngzhipeng_3-1787647428751.png zhipeng_4-1787647490093.pngzhipeng_4-1787647490093.pngzhipeng_4-1787647490093.pngzhipeng_4-1787647490093.png zhipeng_5-1787647533346.pngzhipeng_5-1787647533346.pngzhipeng_5-1787647533346.pngzhipeng_5-1787647533346.png zhipeng_6-1787647547310.pngzhipeng_6-1787647547310.pngzhipeng_6-1787647547310.pngzhipeng_6-1787647547310.png S32Gブートイメージを生成する zhipeng_7-1787647657415.pngzhipeng_7-1787647657415.pngzhipeng_7-1787647657415.pngzhipeng_7-1787647657415.png bt_m7_blob.binを選択して、アドレス0x0に書き込みます。 fip.binを選択して、アドレス0x100000に書き込みます。 S32G274A_M7.binを選択して、アドレス0x200000に書き込みます。 zhipeng_8-1787647865193.pngzhipeng_8-1787647865193.pngzhipeng_8-1787647865193.pngzhipeng_8-1787647865193.png 現在、UARTもCANも応答していません。状況を分析するのを手伝ってください。 ありがとうございます。 回复: S32G2 Enabling Multicore Application こんにちは、ZhiPeng 情報提供ありがとうございます。 もっと詳しい情報を教えてもらえますか? 1. Aコア上でATFとubootのみを起動していますか? AコアのUARTに何らかの出力はありますか? 2. Mコア機能とは何ですか?UART/CAN関数のことですか? BR ジョーイ 回复: S32G2 Enabling Multicore Application こんにちは、 @Joey_z ご返信ありがとうございます。 1. はい、AコアではATFとu-bootのみが起動されました。UARTからの出力が全くありませんでした。 2. MコアはLLCE_CANおよびLpspiプログラムを実行し、「Can_Llce_DS_Loopback_S32G274A_M7」および「Lpspi_Ip_Transfer_S32G274A_M7」ルーチンを統合しました。最初はSPI通信を使用し、その後LLCE_CANを実行した。 さらにいくつか情報を付け加えたいと思います。 1.プロセス全体はAN13750に従って実行されましたが、いくつかの違いがあります。BSP42とS32DS3.5バージョンを使用し、IPCFルーチンをLLCE_CANに置き換え、M7_0のみを設定しました。 2. Yoctoを使ってBSP42をコンパイルし、.sdcardを作成しました。SDカードをインポートした後、Linuxを起動できました。 3. 私は「AN13750」に従ってBSP42のu-bootとATFをまとめました。4.Cortex-A53コアの画像を準備してください」セクション。.sdcardとfip.s32をSDカードに再インポートした後も、LinuxはSDモードで起動できました。しかし、ブートローダーとfip.binをnorflashにインポートしても、何も出力されませんでした。 4. M7コア用のUARTルーチンを別途Norflashに書き込み、Linuxを起動して出力できました。これは、焼き付けツールとノーフラッシュが正常であったことを証明した。 5. LLCE_CANプログラムをnorflashに別途書き込みました。プログラムは実行されず、CAN出力もありませんでした。 6.EBブートローダーを設定してA53を個別に起動しようと試みましたが、norflashを再書き込みしても何も出力されませんでした。 ありがとうございます。 回复: S32G2 Enabling Multicore Application こんにちは、志鵬 1.LLCE_CANがMコア上で動作していることは理解しています。このプログラムMコアのブートローダーの起動を個別にテストしてください。起動プロセス中は、Aコアイメージを読み込まないでください。 2. テストでは、ブートローダーはM7のUARTプログラムを起動できますが、LLCE_CANを起動できないのでしょうか? 3. ブートローダーを使ってA53だけを起動してみましたか? この問題のために中国語のシステムに新しいCASEを作成しました。CASE番号は01000969です。これはコミュニケーションを円滑にするだろう。 BR ジョーイ 回复: S32G2 Enabling Multicore Application こんにちは、ジペン お問い合わせいただきありがとうございます。 内部のCASEは私がサポートします。 BR ジョーイ 回复: S32G2 Enabling Multicore Application こんにちは、 @Joey_z 遅延はかなり長く、前のCASEは終了しました。 私たちは最近、ラウターバッハ社のデバッガーを購入しました。 Trace32を使用してBootloader.elfを実行しました。図に示すように、Hse_Ip_GetHseStatus 関数において、Mu_Ip_GetFlagStatusRegister 関数の戻り値 u32Status は 0 であり、関数の戻り値も 0 です。プログラムは while ループで停止してしまいます。 Hse_Ip_Init関数を追加してみましたが、うまくいきませんでした。 Hse_Ip_apMuBaseのデータを取得しました。 どうやらHSE(英国保健安全庁)に問題があるようだ。分析を手伝ってもらえますか? 他に検査が必要な場所はありますか? よろしくお願いいたします。
View full article
S32K3 UTESTプログラムでハードフォルトが発生する こんにちは、 JTAGやデバッグのアクセスを制限するために、S32K312に16バイトのパスワード(HSEなし)を設定して制限するテストアプリケーションを作成しようとしています。以前は2段階のアプローチをとっていました。1つのプログラムでパスワードを設定し、もう1つのプログラムでライフサイクルを進めるという方法で、これはうまく機能していたようです。 現在、両方を一つのシーケンスにまとめて最終的にメインアプリケーションに統合しようとしていますが、パスワードをプログラムしようとするとMCUがハードフォルトを発生させる問題に直面しています。 パスワードをプログラムしようとする前にパスワードは設定されておらず(全0xFF)、ハードフォールトが生成されたもののパスワードは実際にプログラムされていることを確認できます。これが以前の2段階の方法がうまくいった理由だと思います。最初の段階がハードフォールしても気づかず、単に2段階をプログラムしたはずです。 以下は私のコードスニペットです。なお、起動スクリプト内でライフサイクル構成ワードのアドレスも設定しており、これはIVTに含めるようにしています。起動スクリプトやリンカーには、他に一切変更は加えられていません。 #define MASTER_ID (0U) #define CUST_DB_PSWD_A_ADDR (0x1B000080U) #define CUST_DB_PSWD_A_SECTOR (C40_UTEST_ARRAY_0_S000) #define CUST_DB_PSWD_A_LENGTH (16U) #define LC_CONFIGURATION_WORD_ADDR (0x005A6000) #define LC_CONFIGURATION_WORD_SECTOR (C40_CODE_ARRAY_0_BLOCK_1_S211) #define LC_CONFIGURATION_WORD_LENGTH (8U) uint8_t cust_db_pswd_a[CUST_DB_PSWD_A_LENGTH] __attribute__((aligned(4))) = { 0x35, 0x2E, 0x04, 0x92, 0x65, 0x25, 0x09, 0x23, 0x35, 0x2E, 0x04, 0x92, 0x65, 0x25, 0x09, 0x23 }; uint8_t lc_configuration_word[LC_CONFIGURATION_WORD_LENGTH] __attribute__((aligned(4))) = { 0xBA, 0xBA, 0xBA, 0xBA, 0x0, 0x0, 0x0, 0x0 }; /* Minimum data length 8 bytes */ int main(void) { Clock_Ip_Init(&Clock_Ip_aClockConfig[0]); C40_Ip_Init(&C40_Ip_InitCfg); /* PROGRAMMING ADKP */ if (C40_Ip_GetLock(CUST_DB_PSWD_A_SECTOR) == C40_IP_STATUS_SECTOR_PROTECTED) { C40_Ip_ClearLock(CUST_DB_PSWD_A_SECTOR, MASTER_ID); } C40_Ip_MainInterfaceWrite(CUST_DB_PSWD_A_ADDR, CUST_DB_PSWD_A_LENGTH, cust_db_pswd_a, MASTER_ID); /* Hardfaults here, but UTEST program is actually successful */ while (C40_Ip_MainInterfaceWriteStatus() == C40_IP_STATUS_BUSY) ; /* ADVANCING LC */ if (C40_Ip_GetLock(LC_CONFIGURATION_WORD_SECTOR) == C40_IP_STATUS_SECTOR_PROTECTED) { C40_Ip_ClearLock(LC_CONFIGURATION_WORD_SECTOR, MASTER_ID); } C40_Ip_MainInterfaceSectorErase(LC_CONFIGURATION_WORD_SECTOR, MASTER_ID); while (C40_Ip_MainInterfaceSectorEraseStatus() == C40_IP_STATUS_BUSY) ; C40_Ip_MainInterfaceWrite(LC_CONFIGURATION_WORD_ADDR, LC_CONFIGURATION_WORD_LENGTH, lc_configuration_word, MASTER_ID); while (C40_Ip_MainInterfaceWriteStatus() == C40_IP_STATUS_BUSY) ; while (true) ; return 0U; } 私の.mex設定は以下のとおりです。 私が何か間違っている点があれば、ご意見をお聞かせください。 よろしくお願いいたします。 ハリーシュS Re: S32K3 UTEST program generates hardfault ハイ アドレス 0x402EC004 の「 21.7.1.3 モジュール構成ステータス (MCRS) 」の値を確認してください。MCRS[RWE] = 1 の場合、前回の読み取り中に RWW エラーが発生したことを意味します。 それでは、「 s32k312 でフラッシュが消去されたときに C40_Ip_MainInterfaceHVJobStatus API でハードフォルトが発生する」の議論をお読みください。 よろしくお願いいたします ロビン Re: S32K3 UTEST program generates hardfault こんにちは、 @Robin_Shen さん。 ご返信ありがとうございます。ご指摘のとおり、RWWのエラーでした。 UTESTセクションは別のブロックで、フラッシュ消去やプログラム機能はフラッシュから動くと思っていましたが、どうやらそうではなかったようです。機能をRAMに移動させたことで問題が解決しました。 よろしくお願いいたします。 ハリーシュS
View full article
i.MX8MP USB Host Lockup (-110) on Low Speed device Physical Unplug Target Setup: SoC: NXP i.MX8MP Port Configuration: 4x USB Ports total (2x USB 2.0, 2x USB 3.0) OS : yocto scarthgap 6.6.52 Topology: In our design the i.MX8MP SoC uses its internal USB2(USB1 lines are connected to otg in our design) controller in USB 3.0 mode to provide the upstream connection directly to an onboard Fresco Logic FL5500-2F0 hub. The hub then distributes this connection downstream to four physical ports: two ports are wired for full USB 3.0 operation, while the remaining two ports are wired only for USB 2.0 operation. i.MX8MP (SoC Controller "USB2" lines, operating in USB 3.0 mode) -> USB 3.0 Hub (Fresco Logic FL5500-2F0, exposing 2x USB 3.0 and 2x USB 2.0 ports)   Issue Description: We are tracking down a fatal xHCI command ring lockup on the i.MX8MP,the hardware fails to respond to data commands issued by xchi drver on replug. The crash conditions are highly specific, isolating to a single hardware 3.0 usb port and the other 3.0 and 2.0 ports dont show this issue. The lockup only occurs on one specific USB 3.0 port when a Low-Speed (LS) device is physically unplugged from a downstream High-Speed Hub, while there is at least one other Low speed device actively connected in the background in one of other 3 ports(if the background device low speed device is unplugged before trying re-plug on the problematic port the issue wont occur). Key behavioral isolations: Port Isolation: If we perform this exact same multi-device unplug test on the other USB 3.0 port, or on the USB 2.0 ports, it tears down cleanly. The crash is isolated to a single USB 3.0 port. Speed Isolation: The background device must be Low-Speed. It does not matter how many High-Speed devices (like USB storage drives) are connected in the background; if there is no other LS device present, the unplug handles cleanly. note: One thing that mitigated this issue was un-authorising the bad usb port using the below command before trying physical un-plug and re-plug back in, echo 0 > /sys/bus/usb/devices/1-1.1/authorized It also works if we unbind and bind the usb driver. Port Used  Background Device(s) on Hub Device Being Unplugged Disconnect Method Host Controller Result USB 3.0 (Good Port) Low-Speed Low-Speed Physical Yank Clean Teardown USB 2.0 Ports Low-Speed Low-Speed Physical Yank Clean Teardown USB 3.0 (Failing Port) High-Speed(s) only Low-Speed Physical Yank Clean Teardown USB 3.0 (Failing Port) None Low-Speed Physical Yank Clean Teardown USB 3.0 (Failing Port) Low-Speed Low-Speed Software (authorised=0) Clean Teardown USB 3.0 (Failing Port) Low-Speed Low-Speed Physical Yank Cmd Ring Timeout (-110), Host Dies logs, root@lec-imx8mp:~# lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 1d5c:5510 Fresco Logic Frescologic USB2.0 HUB Bus 001 Device 004: ID 413c:301a Dell Computer Corp. Dell MS116 Optical Mouse Bus 001 Device 005: ID 413c:2113 Dell Computer Corp. KB216 Wired Keyboard Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 002: ID 1d5c:5500 Fresco Logic Frescologic USB3.1Gen2 HUB root@lec-imx8mp:~# [ 39.686850] usb 1-1.2: USB disconnect, device number 5 [ 41.191295] usb 1-1.1: new low-speed USB device number 6 using xhci-hcd root@lec-imx8mp:~# lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub [ 51.427313] xhci-hcd xhci-hcd.1.auto: xHCI host not responding to stop endpoint command [ 51.443403] xhci-hcd xhci-hcd.1.auto: xHCI host controller not responding, assume dead [ 51.451350] xhci-hcd xhci-hcd.1.auto: HC died; cleaning up [ 51.457035] usb 1-1-port1: couldn't allocate usb_device [ 51.462339] usb 1-1: USB disconnect, device number 2 Bus 001 Device 002: ID 1d5c:5510 [ 51.467338] usb 1-1.4: USB disconnect, device number 4 Fresco Logic Frescologic USB2.0 H[ 51.475602] usb 2-1: USB disconnect, device number 2 Bus 001 Device 004: ID 413c:301a Dell Computer Corp. Dell MS116 Optical Mouse Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 002: ID 1d5c:5500 Fresco Logic Frescologic USB3.1Gen2 HUB root@lec-imx8mp:~# lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub   i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Linux Yocto Project Re: i.MX8MP USB Host Lockup (-110) on Low Speed device Physical Unplug Any insight or fix on this issue would be hugely helpfull. thanks Re: i.MX8MP USB Host Lockup (-110) on Low Speed device Physical Unplug Hello, Could you try with this two quirks con your device tree? /* Disables the park mode feature on the USB 2.0 pipeline */ snps,parkmode-disable-hs-quirk; /* Strongly recommended to include this as well to prevent aggressive link sleeps */ snps,dis_u2_susphy_quirk; This modifies bit 16 (PARKMODE_DISABLE_HS) inside the controller's GUCTL1 register. It halts the prefetching scheduler mechanism specifically for the High-Speed bus lines, ensuring that your controller stops running into the unresponsiveness trap when handling operations from the devices behind your hub. Hope this helps, Best regards/Saludos, Aldo.
View full article
i.MX95 SEMA42 GATEn ドメインIDのレジストラ 私は、Cortex-M7とCortex-A55の間で相互排他を実装するために、i.MX95でSEMA42を使う予定です。 これを行うには、SEMA42 GATEnレジスタのGTFSMフィールド(ビット3~0)にドメイン番号(ドメイン0~14)を指定する必要があります。 ドメイン0から14までの各バス・マスタ(Cortex-A55、Cortex-M7、Cortex-M33、DMAなど)がどのバス・マスタに対応しているか教えていただけますか? MCUXpresso SDKsのSEMA42ドライバ例からCortex-M7とCortex-M33のドメイン番号を見つけることができました (APP_CORTEX_M33_DID = 8、APP_CORTEX_M7_DID = 9)、この例はこれらの値で動作します。 しかし、System マネージャのcfgファイルで設定されているTRDCのDIDとは一致しません(M33/SMはdid=2、M7はdid=4)。 さらに、i.MX943 EVKのSEMA42例ではこれらの値を「SoCのマスターID割り当て」として説明しているため、SEMA42はTRDCのDIDではなくバス・マスタIDを使用していると推測します。 しかし、i.MX95でCortex-A55の対応する値は見つかりませんでした。この情報(例:i.MX95のマスターID割り当てテーブル)が任意の文書で記述されている場合 またはウェブ上でも、もし教えていただけると助かります。 mcuxpresso-sdk\mcuxsdk\examples\_boards\IMX95LPD5EVK19\driver_examples\sema42\SM\CM7\App.h --- #define APP_CORTEX_M7_DID 9 #define APP_CORTEX_M33_DID 8 --- Re: i.MX95 SEMA42 GATEn regiser of Domain ID i.MX95 SEMA42の例ではCortex-M7にはDID 9を使用してください。System マネージャやTRDCのDID 4は使いません。この構成では異なる識別子です。SEMA42はSDKs値を受け入れ、ドメイン9でロックされたゲートはGTFSM = 10(ドメイン+1)を読み戻します。 Re: i.MX95 SEMA42 GATEn regiser of Domain ID 私の環境のSystem マネージャ/TRDC構成のCortex-M7 DIDは4です。 私は最初にこのDIDを試しました。しかし、SEMA42は機能しなかった。GATEn.GTFSM の値はMCUXpressoSDK の例でのみ動作します。 何かアイデアはありますか? Re: i.MX95 SEMA42で使用するDomain ID i.MX95リファレンスマニュアルでは、Cortex-A55はデフォルトでドメインID 3として記載されています。Cortex-M7とCortex-M33のデフォルトIDはそれぞれ4と2です。 あなたのSDK例では、M7を9、M33を8と定義しています。A55 DID 3をA55–M7のロックに使う前に、その例で使われているSystem マネージャ/TRDCの設定を確認してください。また、ロックされたGATEn.GTFSMはDID + 1として読み戻されます。読み戻し値が9の場合はDID 8を示します。 i.MX95リファレンスマニュアルでは、 Cortex-A55の既定のDomain ID(DID)は3 です。Cortex-M7とCortex-M33の既定DIDは、それぞれ4と2です。 一方、ご提示のSDK例ではM7を9、M33を8と定義しています。 A55–M7間の排他処理にA55のDID 3を使う前に、その例で使用するSystem マネージャ/TRDCの設定を確認してください。 また、ロック後の GATEn.GTFSM の読み出し値は DID + 1 です。読み出し値9はDID 8を示します。 Re: i.MX95 SEMA42 GATEn regiser of Domain ID 実はCortex-A55とCortex-M7の両方でSEMA42をテストしました。書きながら 値1から15までをGATEn.GTFSMに変換し、どの値が実際にゲートをロックできるか確認します。   GATEn.GTFSM DID + 1 (*1) Cortex-A55 コア 0 1 4 Cortex-A55コア1 2 4 Cortex-M7 10 (*2) 5 *1 System マネージャ cfg ファイルの DID 定義に基づく値 *2 MCUXpresso SDKのSEMA42ドライバー例で使用される値 GATEn.GTFSM に書き込まれる値は明らかに DID + 1 (*1) ではありません。 i.MX95 SEMA42仕様によると、どのデバイス(バス・マスタ)が GATEn.GTFSM 値の1から15に対応していますか? 最低限、GATEn.GTFSMの値が次のように設定する必要があります。 Cortex-A55コア0から5とCortex-M7です。 Re: i.MX95 SEMA42 GATEn regiser of Domain ID 重要な点は、GATEn.GTFSMが固定されたバス・マスタIDテーブルではないということです。これは、要求者が設定したDIDに1を加えた値です。 GTFSM = DID + 1 標準のi.MX95/System マネージャ構成の場合: GTFSM した バス・マスタ/デバイス 1 0 標準のデフォルト割り当てはありません 2 1 標準のデフォルト割り当てはありません 3 2 Cortex-M33 / システムマネージャー 4 3 Cortex-A55プラットフォーム — コア0–5 5 4 Cortex-M7 6~15歳 5~14 構成に依存します。固定のデバイス割り当てはありません。 したがって、デフォルト設定では次のようになります。 Cortex-A55コア 0–5: GTFSM = 4 Cortex-M7: GTFSM = 5 Cortex-M33/システムマネージャー:GTFSM = 3 これがA55コア0と1の両方が値4でロックされる理由を説明しています。6つのA55コアはA55プラットフォームのDIDを共有しており、それぞれ別々のGTFSM値を持ちません。System マネージャの設定では、SM/M33はDID 2、A55はDID 3、M7はDID 4が割り当てられています。 MCUXpresso SEMA42の例では、異なる構成を使用しています。M33 DID 8、M7 DID 9であるため、対応する読み出し値は9と10になります。これらはデフォルトのシステムマネージャー構成のTRDCのDIDではありません。
View full article
i.MX95 SEMA42 GATEn regiser of Domain ID I am planning to use SEMA42 on the i.MX95 to implement mutual exclusion between the Cortex-M7 and the Cortex-A55. To do this, a domain number (Domain 0–14) needs to be specified in the GTFSM field (bits 3-0) of the SEMA42 GATEn register. Could you please tell me which bus master (Cortex-A55, Cortex-M7, Cortex-M33, DMA, etc.) each of Domain 0–14 corresponds to? I was able to find the domain numbers for the Cortex-M7 and Cortex-M33 from the SEMA42 driver example in the MCUXpresso SDK (APP_CORTEX_M33_DID = 8, APP_CORTEX_M7_DID = 9), and the example works with these values. However, they do not match the TRDC DIDs configured in the System Manager cfg file (did=2 for the M33/SM and did=4 for the M7). In addition, the SEMA42 example for the i.MX943 EVK describes these values as a "Master ID assignment for the SoC", so I assume SEMA42 uses the bus master ID rather than the TRDC DID. However, I could not find the corresponding value for the Cortex-A55 on the i.MX95. If this information (e.g., a master ID assignment table for the i.MX95) is described in any document or on the web, I would also appreciate it if you could point me to it. mcuxpresso-sdk\mcuxsdk\examples\_boards\imx95lpd5evk19\driver_examples\sema42\sm\cm7\app.h --- #define APP_CORTEX_M7_DID 9 #define APP_CORTEX_M33_DID 8 --- Re: i.MX95 SEMA42 GATEn regiser of Domain ID Use DID 9 for the Cortex-M7 in the i.MX95 SEMA42 example, not the System Manager/TRDC DID of 4. They are different identifiers in this configuration: SEMA42 accepts the SDK value, and a gate locked by domain 9 reads back GTFSM = 10 (domain + 1). Re: i.MX95 SEMA42 GATEn regiser of Domain ID Cortex-M7 DID of the System Manager/TRDC configuration in my environment is 4. I first tried this DID. But SEMA42 didn't work. GATEn.GTFSM value of MCUXpressoSDK example only work. Do you have a idea? Re: i.MX95 SEMA42で使用するDomain ID The i.MX95 Reference Manual lists Cortex-A55 as Domain ID 3 by default . Its default IDs for Cortex-M7 and Cortex-M33 are 4 and 2, respectively. Your SDK example instead defines M7 as 9 and M33 as 8. Check the System Manager/TRDC configuration used by that example before using A55 DID 3 for A55–M7 locking. Also, a locked GATEn.GTFSM reads back as DID + 1 ; a readback value of 9 indicates DID 8. i.MX95リファレンスマニュアルでは、 Cortex-A55の既定のDomain ID(DID)は3 です。Cortex-M7とCortex-M33の既定DIDは、それぞれ4と2です。 一方、ご提示のSDK例ではM7を9、M33を8と定義しています。 A55–M7間の排他処理にA55のDID 3を使う前に、その例で使用するSystem Manager/TRDCの設定を確認してください。 また、ロック後の GATEn.GTFSM の読み出し値は DID + 1 です。読み出し値9はDID 8を示します。 Re: i.MX95 SEMA42 GATEn regiser of Domain ID The key point is that GATEn.GTFSM is not a fixed bus-master ID table. It reflects the requester’s configured DID plus one: GTFSM = DID + 1 For the standard i.MX95/System Manager configuration: GTFSM DID Bus master / device 1 0 No standard default assignment 2 1 No standard default assignment 3 2 Cortex-M33 / System Manager 4 3 Cortex-A55 platform — cores 0–5 5 4 Cortex-M7 6–15 5–14 Configuration-dependent; no fixed device assignment Thus, for the default configuration: Cortex-A55 cores 0–5: GTFSM = 4 Cortex-M7: GTFSM = 5 Cortex-M33/System Manager: GTFSM = 3 This explains why A55 cores 0 and 1 both lock with value 4: the six A55 cores share the A55 platform DID; they do not have separate GTFSM values. The System Manager configuration assigns SM/M33 DID 2, A55 DID 3, and M7 DID 4. The MCUXpresso SEMA42 example uses a different configuration: M33 DID 8 and M7 DID 9, therefore the corresponding readback values are 9 and 10. These are not the TRDC DIDs from the default System Manager configuration. Re: i.MX95 SEMA42 GATEn regiser of Domain ID I actually tested SEMA42 on both the Cortex-A55 and the Cortex-M7 by writing values 1 to 15 to GATEn.GTFSM, to check which values can actually lock the gate.   GATEn.GTFSM DID + 1 (*1) Cortex-A55 core 0 1 4 Cortex-A55 core 1 2 4 Cortex-M7 10 (*2) 5 *1 Values based on the DID definitions in the System Manager cfg file *2 Value used in the SEMA42 driver example of the MCUXpresso SDK The value to be written to GATEn.GTFSM is clearly not DID + 1 (*1). According to the i.MX95 SEMA42 specification, which devices (bus masters) correspond to GATEn.GTFSM values 1 to 15? At a minimum, I need the GATEn.GTFSM values corresponding to Cortex-A55 cores 0 to 5 and the Cortex-M7.
View full article
IW612: Firmware clarification I am having some problems with the BLE part of the IW612. I get errors like this: Sep 30 14:27:11 device kern.err kernel: [103370.366384] Bluetooth: hci0: Controller not accepting commands anymore: ncmd = 0 Sep 30 14:27:11 device kern.err kernel: [103370.372705] Bluetooth: hci0: Injecting HCI hardware error event Sep 30 14:27:32 device kern.err kernel: [103391.064915] Bluetooth: hci0: Frame reassembly failed (-84) Sep 30 14:27:34 device kern.err kernel: [103393.005935] Bluetooth: hci0: Opcode 0x0c03 failed: -110 My platform is STM32MP1 with kernel 6.6.x, using Murata 2EL module. Using the nxp hci driver. Can someone clarify if the following is true: - The version of github.com/nxp-imx/mwifiex should be matched with github.com/nxp-imx/imx-firmware - Version of the calibration (github.com/murata-wireless/nxp-linux-calibration) doesn't matter much - No need to match the tag with the kernel version, so i don't have to use the lf-6.6.52_2.2.0 branch, the newer lf-6.18.37_2.1.0 should be backwards compatible with my kernel I want to have this cleared before testing a newer version to see if the update resolves my problems.  Re: IW612: Firmware clarification Hi, @allard_p  - The version of github.com/nxp-imx/mwifiex should be matched with github.com/nxp-imx/imx-firmware ==>[NXP]: Yes, we strongly recommend to use matched  driver(github.com/nxp-imx/mwifiex) and FW(github.com/nxp-imx/imx-firmware). - Version of the calibration (github.com/murata-wireless/nxp-linux-calibration) doesn't matter much ==>[NXP]: Yes, the calibration doesn't matter much for your current HCI errors. It usually affects the RF performance, transmit power, and regulatory behavior. - No need to match the tag with the kernel version, so i don't have to use the lf-6.6.52_2.2.0 branch, the newer lf-6.18.37_2.1.0 should be backwards compatible with my kernel ==>[NXP]:Yes, our driver is compatible with old kernels, like yours: 6.6.x. But you need to cross compile the driver source code with your kernel cross compile tool-chain. By the way, You mentioned that you are using the nxp hci driver. Are you using our btnxpuart? or you are using Linux open source UART? For Bluetooth: hci0: Frame reassembly failed (-84) error, I would prefer to recommend you to check your device tree related to Bluetooth, and also baud rate. Best regards, Christine. Re: IW612: Firmware clarification I am using btnxpuart.c, the version that is included in kernel 6.6.129 Re: IW612: Firmware clarification Update: I updated to lf-6.18.37_2.1.0. I have not seen the original problem yet, but have another problem: the Bluetooth controller sometimes stops sending LE Advertising Reports, while the host still has extended passive scanning enabled. The stop is sudden and comes with no error. I have HCI logs but i don't want to attach them to a public forum, will make a support case of this. Re: IW612: Firmware clarification Hi, @allard_p  Thanks for your feedback and let me know that your original issue is already resolved by updating to lf-6.18.37_2.1.0. For the new BLE advertising issue, sure, please feel free to create a new case through our support ticket: https://support.nxp.com/s/?language=en_US And for this current thread, if no more further concerns, I will close it for now. But you can reply to it at any time, if still have any other concerns. Best regards, Christine.
View full article
S32K3 UTEST program generates hardfault Hello, I am trying to create a test application to restrict JTAG/debug access by setting a 16 byte password (without HSE) for an S32K312. Previously my approach was 2 staged - I had one program to set the password, and another to advance the lifecycle, and this seemingly worked fine. I am now trying to combine both into a single sequence to integrate into my main application eventually, but I am facing issues where the MCU generates a hardfault when I try to program the password. I can confirm that before trying to program the password, there is no password set (0xFF throughout) and even though a hardfault was generated, the password has actually been programmed - this must have been why my previous 2 staged approach worked, as even if the first stage hardfaulted, I would not have noticed and simply programmed the second stage. Below is my code snippet. Do note that I have also set the lifecycle configuration word address in the startup script, to be included in the IVT. There are no other modifications to the startup script or linker. #define MASTER_ID (0U) #define CUST_DB_PSWD_A_ADDR (0x1B000080U) #define CUST_DB_PSWD_A_SECTOR (C40_UTEST_ARRAY_0_S000) #define CUST_DB_PSWD_A_LENGTH (16U) #define LC_CONFIGURATION_WORD_ADDR (0x005A6000) #define LC_CONFIGURATION_WORD_SECTOR (C40_CODE_ARRAY_0_BLOCK_1_S211) #define LC_CONFIGURATION_WORD_LENGTH (8U) uint8_t cust_db_pswd_a[CUST_DB_PSWD_A_LENGTH] __attribute__((aligned(4))) = { 0x35, 0x2E, 0x04, 0x92, 0x65, 0x25, 0x09, 0x23, 0x35, 0x2E, 0x04, 0x92, 0x65, 0x25, 0x09, 0x23 }; uint8_t lc_configuration_word[LC_CONFIGURATION_WORD_LENGTH] __attribute__((aligned(4))) = { 0xBA, 0xBA, 0xBA, 0xBA, 0x0, 0x0, 0x0, 0x0 }; /* Minimum data length 8 bytes */ int main(void) { Clock_Ip_Init(&Clock_Ip_aClockConfig[0]); C40_Ip_Init(&C40_Ip_InitCfg); /* PROGRAMMING ADKP */ if (C40_Ip_GetLock(CUST_DB_PSWD_A_SECTOR) == C40_IP_STATUS_SECTOR_PROTECTED) { C40_Ip_ClearLock(CUST_DB_PSWD_A_SECTOR, MASTER_ID); } C40_Ip_MainInterfaceWrite(CUST_DB_PSWD_A_ADDR, CUST_DB_PSWD_A_LENGTH, cust_db_pswd_a, MASTER_ID); /* Hardfaults here, but UTEST program is actually successful */ while (C40_Ip_MainInterfaceWriteStatus() == C40_IP_STATUS_BUSY) ; /* ADVANCING LC */ if (C40_Ip_GetLock(LC_CONFIGURATION_WORD_SECTOR) == C40_IP_STATUS_SECTOR_PROTECTED) { C40_Ip_ClearLock(LC_CONFIGURATION_WORD_SECTOR, MASTER_ID); } C40_Ip_MainInterfaceSectorErase(LC_CONFIGURATION_WORD_SECTOR, MASTER_ID); while (C40_Ip_MainInterfaceSectorEraseStatus() == C40_IP_STATUS_BUSY) ; C40_Ip_MainInterfaceWrite(LC_CONFIGURATION_WORD_ADDR, LC_CONFIGURATION_WORD_LENGTH, lc_configuration_word, MASTER_ID); while (C40_Ip_MainInterfaceWriteStatus() == C40_IP_STATUS_BUSY) ; while (true) ; return 0U; }   my .mex configuration is as such -  Any inputs as to what I am doing wrong? With regards, Hareesh S Re: S32K3 UTEST program generates hardfault Hi Please check the value of "21.7.1.3 Module Configuration Status (MCRS)" at address 0x402EC004.  If MCRS[RWE] = 1, it means that an RWW error occurred during a previous read. Then please read the discussion in  "Hard Fault in C40_Ip_MainInterfaceHVJobStatus api when flash is erase in s32k312". Best Regards, Robin Re: S32K3 UTEST program generates hardfault Hello @Robin_Shen, Thanks for reverting back - It was indeed a RWW error as you had suggested. I assumed the UTEST section was a different block and hence flash erase/program functions could run from flash but apparently not. Moving the functions to RAM solved my issues. With regards, Hareesh S
View full article
S32K3 UTEST 程序产生硬故障 你好, 我正在尝试创建一个测试应用程序,通过为 S32K312 设置 16 字节密码(不使用 HSE)来限制 JTAG/调试访问。之前我采用的是两阶段方法——一个程序用于设置密码,另一个程序用于推进生命周期,这种方法似乎运行良好。 我现在正尝试将两者合并成一个序列,以便最终集成到我的主应用程序中,但我遇到了问题,当我尝试对密码进行编程时,MCU 会产生硬故障。 我可以确认,在尝试设置密码之前,没有设置密码(全程 0xFF),即使产生了硬故障,密码实际上也已经设置好了——这一定是我的前两阶段方法奏效的原因,因为即使第一阶段出现硬故障,我也不会注意到,只会简单地设置第二阶段。 以下是我的代码片段。请注意,我还在启动脚本中设置了生命周期配置字地址,以便将其包含在 IVT 中。启动脚本或链接器没有其他修改。 #define MASTER_ID (0U) #define CUST_DB_PSWD_A_ADDR (0x1B000080U) #define CUST_DB_PSWD_A_SECTOR (C40_UTEST_ARRAY_0_S000) #define CUST_DB_PSWD_A_LENGTH (16U) #define LC_CONFIGURATION_WORD_ADDR (0x005A6000) #define LC_CONFIGURATION_WORD_SECTOR (C40_CODE_ARRAY_0_BLOCK_1_S211) #define LC_CONFIGURATION_WORD_LENGTH (8U) uint8_t cust_db_pswd_a[CUST_DB_PSWD_A_LENGTH] __attribute__((aligned(4))) = { 0x35, 0x2E, 0x04, 0x92, 0x65, 0x25, 0x09, 0x23, 0x35, 0x2E, 0x04, 0x92, 0x65, 0x25, 0x09, 0x23 }; uint8_t lc_configuration_word[LC_CONFIGURATION_WORD_LENGTH] __attribute__((aligned(4))) = { 0xBA, 0xBA, 0xBA, 0xBA, 0x0, 0x0, 0x0, 0x0 }; /* Minimum data length 8 bytes */ int main(void) { Clock_Ip_Init(&Clock_Ip_aClockConfig[0]); C40_Ip_Init(&C40_Ip_InitCfg); /* PROGRAMMING ADKP */ if (C40_Ip_GetLock(CUST_DB_PSWD_A_SECTOR) == C40_IP_STATUS_SECTOR_PROTECTED) { C40_Ip_ClearLock(CUST_DB_PSWD_A_SECTOR, MASTER_ID); } C40_Ip_MainInterfaceWrite(CUST_DB_PSWD_A_ADDR, CUST_DB_PSWD_A_LENGTH, cust_db_pswd_a, MASTER_ID); /* Hardfaults here, but UTEST program is actually successful */ while (C40_Ip_MainInterfaceWriteStatus() == C40_IP_STATUS_BUSY) ; /* ADVANCING LC */ if (C40_Ip_GetLock(LC_CONFIGURATION_WORD_SECTOR) == C40_IP_STATUS_SECTOR_PROTECTED) { C40_Ip_ClearLock(LC_CONFIGURATION_WORD_SECTOR, MASTER_ID); } C40_Ip_MainInterfaceSectorErase(LC_CONFIGURATION_WORD_SECTOR, MASTER_ID); while (C40_Ip_MainInterfaceSectorEraseStatus() == C40_IP_STATUS_BUSY) ; C40_Ip_MainInterfaceWrite(LC_CONFIGURATION_WORD_ADDR, LC_CONFIGURATION_WORD_LENGTH, lc_configuration_word, MASTER_ID); while (C40_Ip_MainInterfaceWriteStatus() == C40_IP_STATUS_BUSY) ; while (true) ; return 0U; } 我的 .mex配置如下—— 请问我哪里做错了? 此致敬礼, 哈里什·S Re: S32K3 UTEST program generates hardfault HI 请检查地址 0x402EC004 处的“ 21.7.1.3 模块配置状态 (MCRS) ”的值。如果 MCRS[RWE] = 1,则表示在之前的读取过程中发生了 RWW 错误。 然后请阅读“当 s32k312 中的 flash 被擦除时,C40_Ip_MainInterfaceHVJobStatus api 出现硬故障”中的讨论。 此致敬礼, Robin Re: S32K3 UTEST program generates hardfault 你好@Robin_Shen , 感谢您的回复——正如您所说,这确实是 RWW 错误。 我原以为 UTEST 部分是一个不同的模块,因此可以从闪存运行闪存擦除/编程功能,但显然并非如此。将函数移到内存中解决了我的问题。 此致, 哈里什·S
View full article