Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
S32K3 在不阻塞的情况下测量 PWM 占空比 (emiOS ICU IPWM) 你好, 仅供参考- 我正在使用 emiOS 的 ICU 通道来测量 IPWM 模式下不同的 PWM 占空比。我目前能够成功地以 " 阻塞 " 方式测量占空比。 我的输入从 100% 占空比(实际上没有 PWM)过渡到我需要测量的给定占空比的 PWM 信号。 我的 .mex配置如下 我的示例代码如下 虽然这种方法可行,但我更倾向于启动一次信号测量,并定期调用Emios_Icu_Ip_GetDutyCycleValues(),而无需调用 Emios_Icu_Ip_StopSignalMeasurement(),以避免在测量完成之前被阻塞。另外,如果在测量完成时有一个中断被触发,对我来说也是可行的。 我最初只尝试调用 emios_ICU_IP_startSignalMeasuremeasum (),然后定期调用 emios_ICU_IP_getdutyCycleValues ()(每 1 秒,而 PWM 频率为 1kHz),但是数据不准确。 据我了解,SAIC 更适合不同的 PWM 信号(我认为这适合我的用例),但我想我也可以使用 IPWM,因为测量读数会延迟。我不介意返回的结果是否会稍微延迟或过时几毫秒,因为我预计占空比不会发生快速变化,而且频率将保持不变。 如果有人能澄清如何使用IPWM实现这一目标,或者我只能通过SAIC实现这一点,那就太好了。 谢谢 Re: S32K3 measuring PWM duty cycle (eMIOS ICU IPWM) without blocking 你好 您遇到的问题是 S32K3 上 eMIOS ICU IPWM 模式的一个已知限制: IPWM 本身是 "基于测量窗口 "的,而不是连续的,因此在不重启/关闭测量的情况下定期读取会导致过期或部分更新的值。 IPWM 不是为不同步的定期轮询而设计的 您必须: 使用中断通知,或 读数前重新开始测量,或 转用 SAIC 实现真正的无阻塞连续测量 顺祝商祺! Peter
View full article
2026 年最佳 IPTV 提供商有哪些? 人们观看电视的方式发生了前所未有的变化。有线电视费不断上涨,观众希望获得更大的灵活性,流媒体已成为新常态。这就是为什么现在很多用户会问,2026 年最好的 IPTV 提供商是什么?他们希望有更好的频道选择、更流畅的播放以及不受传统电视限制的娱乐体验。 🛰️ 探索最佳 IPTV 供应商 IPTV 是互联网协议电视的缩写。它通过互联网连接提供直播电视频道、电影、体育和在线点播内容。用户不使用卫星或有线电视线路,而是直接在智能电视、Firestick、安卓设备、平板电脑和笔记本电脑上直播内容。 2026 年,IPTV 服务将继续增长,因为它们提供了便利、价值和现代化的观看功能。本指南将解释是什么让供应商脱颖而出,以及如何找到满足您需求的最佳 IPTV 解决方案。 2026 年最佳 IPTV 提供商因何而闻名? 2026 年的最佳 IPTV 提供商不仅要拥有众多频道。质量比数量更重要。顶级供应商应提供稳定的数据流、便捷的导航和强大的客户支持。 可靠的 IPTV 服务投资于更好的服务器,以减少缓冲。他们还定期刷新频道列表,在繁忙时段保持畅通无阻。这对体育迷和现场活动观众尤为重要。 强大供应商的另一个标志是用户友好的设置过程。良好的IPTV平台使激活变得简单,并与流行的应用程序和流媒体设备兼容。 2026 年 IPTV 为何更受欢迎 许多家庭现在更喜欢流媒体,因为它符合现代生活方式。用户希望按自己的日程安排娱乐,而不是固定有线电视套餐。 在任何设备上灵活查看 IPTV 发展的一个主要原因是设备自由。用户可以在智能电视、手机、平板电脑和流媒体棒之间轻松切换。这就创造了一种无缝的娱乐体验。 比传统电视更有价值 许多人都在寻找价格合理的 IPTV 提供商,因为他们想要更多的内容,而不需要支付高昂的有线电视月租费。IPTV 通常将全球频道、体育和电影合而为一。 按需便利 观众不再愿意等待预定的广播节目。IPTV 通常提供回放选项、电视补播和适合繁忙生活的视频在线点播内容。 2026 年最佳 IPTV 提供商的主要特点 如果您知道应该注意什么,选择合适的服务就会变得更加容易。 稳定的流媒体质量 2026 年最佳 IPTV 提供商注重快速服务器和高正常运行时间。与无法正常工作的冗长频道列表相比,流畅的播放更为重要。 广泛的渠道选择 顶级供应商通常包括娱乐、新闻、体育、儿童内容和国际网络。均衡的阵容为用户带来更多价值。 支持高清和 4K 现在,许多用户都希望获得高分辨率的流媒体。高级 IPTV 服务支持的频道通常包括高清、全高清和 4K 选项。 快速响应的客户支持 当出现登录问题、设置错误或应用程序问题时,快速支持可提供帮助。可靠的客户服务是选择 IPTV 提供商的一个重要因素。 如何选择最适合您的 IPTV 提供商 每个观众都有不同的侧重点。有些人想要体育报道,而另一些人则专注于电影或家庭娱乐。 如果体育赛事直播最重要,则应选择稳定的赛事流和覆盖面广的体育频道。如果您喜欢电影和连续剧,请选择具有强大 VOD 库和最新内容的供应商。 家庭可能更喜欢多设备访问和儿童频道。旅行者可能需要全球兼容性和灵活的登录选项。 订购前进行测试也是明智之举。许多用户在购买长期计划之前都会搜索 IPTV 免费试用服务,以检查服务质量。 推动 IPTV 搜索的搜索引擎优化趋势 2026 年最佳 IPTV 提供商、顶级 IPTV 服务、优质 IPTV 计划和无缓冲 IPTV 等搜索短语越来越常见。这反映出对灵活的流媒体解决方案的需求日益增长。 随着全球网速的提高,IPTV 也变得越来越容易使用。智能电视和流媒体设备也更实惠,这有助于提高IPTV的采用率。 人们想要个性化娱乐,而IPTV比标准电视套餐为他们提供了更多的控制权。 选择 IPTV 时应避免的错误 有些用户只选择最便宜的方案。低廉的价格可能很有吸引力,但较差的流媒体质量和薄弱的支持可能会导致失望。 另一个错误是忽视兼容性。务必确认提供商可在您的首选设备上运行。 跳过研究也会造成问题。阅读近期评论和试用测试有助于避免使用不可靠的服务。 2026 年 IPTV 的未来 预计 IPTV 将变得更加智能,更加以用户为中心。更快的网络、改进的应用程序和更好的内容库将继续塑造市场。 许多供应商正在改进界面、搜索工具和流媒体的稳定性。这意味着用户今后可以期待更流畅的体验。 随着需求的增加,IPTV 提供商之间的竞争也可能提高定价和服务质量。 结束语 那么,2026 年有哪些最佳 IPTV 提供商?这些服务集稳定的流媒体、优质的内容、简单的设置和强大的支持于一身。最佳选择取决于您的观看习惯、设备和预算。 选择 IPTV 提供商时,应注重性能而不是承诺。回放可靠、功能实用的服务总是更有价值。 如果您已准备好升级您的娱乐体验,请探索值得信赖的 IPTV 提供商,在 2026 年享受更智能的流媒体服务。 Re: What Are the Best IPTV Providers in 2026? 您在寻找无需立即付费即可享受优质内容的最佳方式吗?2026 年,寻找优质供应商的最有效方式是免费试用 IPTV。 为什么要从免费测试开始? 免费试用允许您在订购前验证几个关键因素: 稳定性:确保服务提供无缓冲流媒体和高正常运行时间(理想情况下为 99% 或更高)。 内容丰富:查看 20,000 多个直播频道,包括高级体育、新闻和国际网络。 质量:验证对高清、全高清和 4K 流媒体的支持。 设备兼容性:确认它可以在您的首选硬件上运行,例如亚马逊 Firestick、智能电视、安卓/iOS 设备或电脑。 2026 年的热门推荐 为了获得具有丰富频道选择和可靠性能的优质体验,我们建议您测试GoldCard TV。它旨在提供无缝娱乐解决方案,将停机时间降至最短。 👉 现在就开始免费试用: https://omeulink.com/GoldCardTv Re: What Are the Best IPTV Providers in 2026? 在过去几个月里,我测试了几家 IPTV 提供商,根据我的经验,HypoTV 是稳定性、流媒体质量和日常娱乐方面最好的提供商之一。如果您正在寻找以体育为重点的流媒体,BekuTV的表现非常出色,直播频道流畅,缓冲极少。对于成人内容和大型 VOD 库,PillowIPTV 是一个不错的选择。我还看到许多用户推荐MomipTV,因为它具有可靠的国际频道选择和多设备支持。总的来说,每种服务都有自己的优势,这取决于您最常观看的内容类型。 Re: What Are the Best IPTV Providers in 2026? 我测试过很多 IPTV 服务,NexusIPTV 的稳定性和画质确实让我大吃一惊。 频道速度快,几乎没有缓冲,而且有大量体育、电影和国际高清/4K 内容可供选择。 可在 Firestick、智能电视、安卓、iPhone 和电脑上完美运行。 如果您想在 2026 年获得可靠的 IPTV 服务,NexusIPTV 绝对值得一试。 www.nexusiptv.live Re: What Are the Best IPTV Providers in 2026? 我最近测试了几项服务,主要是体育直播,UHDSports 是迄今为止最流畅的服务之一。 我最喜欢的是,它不会让人感觉负担过重或杂乱无章。设置很简单,频道在我的设备上打开得很快,体育直播在高峰时段也很稳定,这通常是大多数提供商开始缓冲的地方。我还在智能电视和安卓设备上对其进行了测试,两者都运行良好。 VOD 方面也很不错,但对我来说,使用它的主要原因是体育直播。如果您要选择一家提供商,我还是建议您先申请免费试用,并在实际的实时比赛中进行测试,而不仅仅是在安静的时段。这才是真正的考验。 我并不是说它完美无缺,但根据我的经验,如果您优先考虑的是稳定的体育直播和快速的支持,UHDSports还是值得一试的。 Re: What Are the Best IPTV Providers in 2026? 如果您厌倦了寻找链接、切换应用程序或在大型比赛期间忍受延迟,那么 tvaccess.xyz 就是为您打造的平台。这项高级付费服务提供世界上所有主要体育赛事——全部采用高清、全高清和 4K 超高清画质,播放流畅稳定。 观看所有体育赛事高清/4K直播,尽在tvaccess.xyz Re: What Are the Best IPTV Providers in 2026? 我同意,在 2026 年选择 IPTV 提供商时,真正取决于可靠性、频道选择和流媒体质量。我也喜欢那些能让我在做决定前轻松核实信息的服务。最近,我在进行其他研究时发现Franklin Property Data对查询房产相关细节很有用。仔细比较各种方案,选择最符合自身需求的服务总是没错的。
View full article
AN14175: FlexIO QSPI for MCXN947 Hi,  I was reading through the following resource: Using FlexIO to emulate Quad SPI Controller, and wanted to try this on the MCXN947. The goal is to configure QSPI for MCXN947 as a slave, but I can't find that demo program in the SDK. I have the newest version of the IDE and SDK. Is there a different demo program I can use to try this?  Thanks! Communication & Control(I3C | I2C | SPI | FlexCAN | Ethernet | FlexIO) MCXN Re: AN14175: FlexIO QSPI for MCXN947 Hello, The Software is in Application Note Software section in MCX N94, N54, N53, N52 and N24 MCUs | NXP Semiconductors page You can download it here Application Note Software for AN14175 Best Regards, Luis Re: AN14175: FlexIO QSPI for MCXN947 Do this code has been published ? Re: AN14175: FlexIO QSPI for MCXN947 Yes, you can download it here Application Note Software for AN14175 Best Regards, Luis
View full article
Is dynamic SerDes PLL clock diving (10G XFI -> 1G 1000BASE-X) physically supported on LX2160A? Hey, I’ve been doing some deep-dive development on the LX2160A (working on a SolidRun board) and I'm running into a brick wall trying to get dynamic SFP hot-swapping to work between 10G and 1G fiber modules. I’m currently on the lsdk-21.08 branch, testing directly with the native runme.sh generated ubuntu-core.img. My goal is pretty straightforward: I want to boot the SFP cage in 10G (XFI) using the standard RCW, pull the 10G module out, plug in a standard 1G (1000BASE-X) module, and have the link gracefully down-shift without needing a reboot or an RCW reflash. When I first plugged the 1G module in, phylink threw a -22 (Invalid argument), because the MAC was locked to PHY_INTERFACE_MODE_10GBASER. To see if I could force the down-shift, I applied the usual community workarounds to drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c file. I spoofed the phylink capability masks to explicitly allow 1000baseX_Full on a 10G port, and added a bypass to ignore the phy_validate SerDes rejection. This actually worked perfectly and the -22 error cleared, the ethtool recognized the 1G speeds. But when the kernel reached down to execute the physical change, phy_set_mode_ext() threw a -95 error (operation not supported) straight from the SerDes driver. I’m hoping someone here can confirm the actual hardware limitations: Is the LX2160A silicon fundamentally incapable of dynamically re-tuning the SerDes PLL clock from 10.3 GHz (10G) down to 1.25 GHz (1G) on the fly? Is the dynamic switching in lsdk-21.08 strictly limited to protocols that already share the same SerDes clock speed (like swapping between 1G SGMII and 1G 1000BASE-X)? Thanks. LX2160A  Re: Is dynamic SerDes PLL clock diving (10G XFI -> 1G 1000BASE-X) physically supported on LX2160A Hello, No — you should not expect a lane booted in XFI/10G to hot-swap at runtime to native 1G 1000BASE-X/KX without a SerDes reconfiguration sequence, and that reconfiguration changes the PLL/lane settings that are normally established by the RCW at boot. Your -95 from phy_set_mode_ext() is consistent with the SerDes driver refusing a mode change that requires changing the underlying lane rate/protocol rather than just phylink policy. For your two specific questions: Can LX2160A dynamically retune a SerDes lane from 10.3125 Gbaud XFI down to 1.25 Gbaud 1G mode “on the fly”? Not as a simple live hot-swap transition. The reference manual shows that XFI/SFI uses a different lane rate and PLL setup than 1000Base-KX/SGMII: protocol notation explicitly distinguishes USXGMII/XFI at 10.3125 Gbaud from SGMII at 1.25 Gbaud PLL reference-clock recommendations differ: XFI/SFI uses 156.25 MHz or 161.1328125 MHz, while 1000Base-KX allows 100/125/156.25 MHz  PLL clock-net/VCO recommendations differ: XFI/SFI/10GBase-KR uses 00110b = 10.3125G clock net on 20.625G VCO, while 1000Base-KX uses 00000b or 10000b = 5G clock net  lane divider settings differ: BY_N_RATE_SEL = 000 for XFI/SFI/10GBase-R/10GBase-KR but 010 for 1000Base-KX and 1G SGMII on both TX and RX interface width also differs: XFI/SFI/10GBase-R uses 20-bit, while 1/2.5G SGMII uses 10-bit  The manual does define a PLL Reset and Reconfiguration procedure where software can halt the PLL/lanes, change per-PLL settings including VCO frequency and refclk frequency, then restart them. But that is an explicit reconfiguration flow, not an autonomous/live downshift mechanism for an inserted SFP module. It also recommends disabling controllers connected to the lane before doing so.  Is dynamic switching in LSDK 21.08 limited to cases that already share the same SerDes clocking/rate family? The LSDK 21.08 guide notes SFP support through phylink in the DPAA2 driver stack, but I did not find documentation claiming native runtime switching between XFI 10G and 1G 1000Base-X/KX on one active lane without SerDes reconfiguration.  By contrast, the LX2160A reference manual explicitly provides separate initialization flows for: 1000Base-KX, including enabling the KX AN reference clock, setting PCC8[SGMIIp_KX]=1 , and programming SGMII/KX-side registers  XFI/SFI/10GBase-KR/SXGMII, as a different class of protocol with different lane settings [ That separation strongly indicates runtime changes are only practical when the hardware remains within the same underlying SerDes operating regime, or when a full lane/PLL reconfiguration sequence is performed.  A few details from the LX2160A docs line up very closely with the behavior you observed: The 1000Base-KX sequence explicitly says SGPCS_EN must be set when reconfiguring a port from XFI/SFI/1000Base-KR to SGMII or 1000Base-KX operation. That is a true mode conversion, not just a link-mode advertisement change.  PCC8[SGMIIp_KX] must be set before any MDIO initialization of the PCS for 1000Base-KX.  The 1000Base-KX path also requires enabling the AN reference clock with PLLnCR1[EX_DLY_SEL]=10 , again showing this is a distinct PCS/PLL setup.  So the key takeaway is: phylink can be made to accept the module logically, but the SerDes still has to support the physical mode transition. On LX2160A, XFI-to-1G is not just an advertisement change; it requires changing lane rate, PLL settings, and PCS mode. [ The available documentation does show that LX2160A has a newer SerDes architecture with software-driven reconfiguration capability, and there is even an application note describing lane reconfiguration between protocol sets on LX2160A. But that note is about a controlled software sequence that changes SerDes protocol assignment and PLL mapping; it is not evidence of seamless SFP hot-swap downshift from XFI to 1G in a running Linux data path.  So the answer to your practical question on lsdk-21.08 + native LX2160A SFP cage is: Boot in XFI, pull 10G optic, insert plain 1G 1000BASE-X module, and expect graceful downshift with no reboot/RCW involvement:  the SerDes programming model argues against it.  Switching among protocols that keep the same 10.3125 Gbaud electrical regime is more plausible, because XFI/10GBase-KR/USXGMII@10G share the 10.3125G class in the SerDes documentation. Switching between XFI and 1G SGMII/1000Base-KX crosses baud-rate/PLL/PCS boundaries, so it is not a simple hot-plug transition. On LX2160A, native hot-swapping an SFP lane from 10G XFI to 1G 1000Base-X/KX is not documented as a seamless runtime feature because it requires a real SerDes/PLL/PCS reconfiguration, not just a phylink mode change. Regards
View full article
S32K312MINI-EVB Segger JTAG-SWD接続エラー こんにちは、S32K312MINi EVBを持っています。SWD/JTAG経由でこれをプログラムしようとしています(opesdaが搭載されていることは知っていますが、私のカスタムPCB設計には搭載されません)。 接続しようとすると、次のエラーが表示されます。 不明なSDA AP IDが検出されました: 0xFFFFFFFF 不明なSDA AP IDが検出されました: 0xFFFFFFFF InitTarget() 終了 - 1.09秒かかりました ****** エラー: J-Link スクリプトファイル関数 InitTarget() がエラーコード -1 を返しました   Screenshot 2026-03-30 151042.png R0と消去を試しましたが、うまくいきませんでした Re: S32K312MINI-EVB Segger Jtag-SWD connection error こんにちは、 ご返信ありがとうございます。 Seggerソフトウェアの最新バージョンを使用していますが、vrefが3.3Vになっているのを確認しています。 ピンもテストしましたが、配線は正しいです。リセットボタンは、複数のテスト段階において押し続けられました。 JTAGも、チップとの接続に失敗したというエラーコードを出力しています。 速度を落とそうともしましたが、効果がないようです。 PC上でS32用のjlinkscriptを探してみましたが、見つかりませんでした。どこにあるのでしょうか? Re: S32K312MINI-EVB Segger Jtag-SWD connection error こんにちは、 エラー: J-Link スクリプトファイル関数 InitTarget() がエラーコード -1 を返しました。 J-LinkはターゲットMCUの初期化手順を正常に実行できず、初期化スクリプト(InitTarget())が失敗しました。 初期化に失敗したため、デバッガーはデバイスと通信できません。 このメッセージは、J-Linkが接続のごく初期段階でDAP(デバッグアクセスポート)にアクセスできない場合に表示されます。 「不明なSDA AP IDが検出されました: 0xFFFFFFFF」 InitTarget() 関数は、SEGGER が使用する J-Link スクリプト ファイル (.JLinkScript) の一部です。 時計を設定する デバッグインターフェースを起動する MEM-AP / AHB-AP の設定 デバイス固有の設定を実行する デバッグに必要なアクセスが失敗した場合、SEGGER はスクリプトを中止し、エラー -1 を返します。 解決策の概要 J-Linkソフトウェアをアップデートする SEGGER社はS32K31xのアルゴリズムにバグがあることを確認した。 J-LinkへのVTref(3.3V)を確認してください。 VTrefが欠落しているため、AP ID = 0xFFFFFFFF → InitTargetが失敗します。 SWD配線を確認する SWD_DIO、SWD_CLK、RESET、およびGNDが正しく接続されていることを確認してください。 リセットして接続し、SWD速度を下げてください。 ファームウェアがピンを早期に再構成してくれると助かります。 SWDモードの代わりにJTAGモードを試してください 同様のNXPデバッグエラーで提案された解決策です。 よろしくお願いします、 ピーター Re: S32K312MINI-EVB Segger Jtag-SWD connection error 私も同じ状況に遭遇しました
View full article
Imx8xm IPC A53 cores I am trying to use the Rmesg lite library to send messages from A53 core 1 to A53 core 2. I will be using the MU in both cores to synchronize the core messaging. Is this feasable, and is there any example of this protocol on github? I am using the IMX8mm Som It has to be secure i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus Re: Imx8xm IPC A53 cores Hi @rheslar1  Please refer 3 Heterogeneous Multicore Framework in below guide. https://www.nxp.com/docs/en/user-guide/REALTIMEEDGEUG.pdf Best Regards, Zhiming
View full article
i.MX93 - 1PPS入力とPTP 目標: GPS レシーバからの Pulse-Per-Second (PPS) 信号と GPRMC ログを使用して、ENET_QoS イーサネット コントローラ内で PTP 時間の同期を検証する ハードウェア: i.MX 93 ビルドルート: 2025.11.1 Linux: 6.12.16 Linuxptp : 4.4 デバイスツリーオーバーレイの変更: eqos のステータスを「無効」から「正常」に変更します usdhc2 pinctrl-* エントリから pinctrl_usdhc2_gpio および pinctrl_usdhc2_gpio_sleep エントリを削除します。 pinctrl_eqos と pinctrl_eqos_sleep に「MX93_PAD_SD2_CD_B__ENET_QOS_1588_EVENT0_IN 0x31E」エントリを追加します。 usdhc2 cd-gpiosエントリを削除し、broken-cdに置き換えます pinctrl_usdhc2_gpio ノードと pinctrl_usdhc2_gpio_sleep ノードを削除します。  ターゲット上のソフトウェアの場所: eMMCからの起動 LinuxカーネルとptpアプリをubootingしてSDカードから実行する  Linux PTPソフトウェアを実行中: ptp4l -E4H -i eth1 ts2phc -c /dev/ptp1 -s nmea --ts2phc.nmea_remote_host10.128.240.54 --ts2phc.nmea_remote_port3001 --ts2phc.ピンインデックス0 -l 7 -m PPS入力: 現在、GPS レシーバからの PPS 信号を受け入れるように FRDM i.MX 93 ボードに変更を加える前に、あらゆるイベントのタイムスタンプを検証しようとしています。これらのイベントを生成するために、SD カード ソケットの機械式スイッチの脚の間に絶縁体を挿入しています。SD2_nCD に接続された IO ピンを GPIO 入力として手動で設定し、このアクションによってピンの入力電圧が変化することを確認しました。ハードウェアによるイベント情報のタイムスタンプは、特定の周期性に依存すべきではないと私は想定しています。 テスト結果: ts2phcはGPRMCログを受信していますが、ログにはポーリングで常にゼロイベント情報が返されることが示されています。 devmem プログラムを使用したスクリプト経由でレジスタを調べると、次のようになります。 SW_MUX_CTL_PAD_SD2_CD_B 0x00000001 SW_PAD_CTL_PAD_SD2_CD_B 0x0000031E MAC_SYSTEM_TIME_SECONDS 0x69AB35B0 MAC_SYSTEM_TIME_NANOSECONDS 0x10642013 MAC_TIMESTAMP_STATUS 0x00000000 MAC_補助制御 0x00000010 MAC_AUXILIARY_TIMESTAMP_NANOSECONDS 0x00000000 MAC_AUXILIARY_TIMESTAMP_SECONDS 0x00000000 システム時間レジスタが適切に時間をカウントしていることがわかります 補助タイムスタンプ レジスタにはゼロ以外の値が表示されることはありません。リファレンス マニュアルでは、FIFO が空のときには常にゼロが読み取られるのか、それとも最新のタイムスタンプが返されるのかは明確ではありません。 SW_MUX_CTL_PAD_SD2_CD_B レジスタの SION ビットを 0 と 1 の両方に設定してこれを試しましたが、結果に違いはありませんでした。 pin_index マッピングが予想どおりでなかった場合に備えて、MAC_AUXILIARY_CONTROL レジスタの 4 つの ATSEN ビットをすべて設定してみましたが、結果に違いはありませんでした。 i.MX 93 アプリケーションプロセッサリファレンスマニュアル、Rev. 6、2025-07-01 を読んだときに生じた追加の質問: 第 43 章 TSN 対応イーサネット コントローラ (ENET_QoS)、セクション 43.5、表 417 には、2 つの異なるイベント入力 1588_EVENT_AUX_IN と 1588_EVENT_IN がリストされています。これら 2 つの信号はどの外部ピンまたは内部デバイス ポートに接続されますか?1588_EVENT_IN ポートは ENET_QoS 内で何に接続しますか?1588_EVENT_AUX_INはptp_aux_trig_i[0]に接続され、ATSEN0ビットによって制御されていると推測します。(これはカーネルと ts2phc が期待していることでもあるようです。)それは正しいですか? 第43章、セクション43.5、表417には、1つのイベント出力1588_EVENT_OUTがリストされています。この信号はどの外部ピンまたは内部デバイス ポートに接続されますか?1588_EVENT_OUT ポートは ENET_QoS 内で何に接続しますか?PPS 出力の 1 つに関連付けられていますか? 第 43 章では、タイムスタンプをトリガーするために ptp_aux_trig_i 入力のどのエッジ (立ち上がり/立ち下がり/両方) が使用されるかが指定されていないようです。 Re: i.MX93 - 1PPS input and PTP こんにちは、 NXP Semiconductors製品にご興味をお持ちいただきありがとうございます。 AUX_IN 信号は、現在の時刻 (この時刻は、どのアプリケーションでもタイムスタンプ値として使用されます) をタイムスタンプ FIFO にラッチすることをトリガーするために使用されます (以前のトリガー イベントから複数のタイムスタンプ値がある場合があります)。 EVENT_IN はメディア クロック生成および回復ブロックへの入力であり、次のトリガーに使用されます。 アプリケーションから読み取られたターゲットプレゼンテーション時間のキャプチャは、リカバリモードが有効になっている場合は MAC_PPSn_Target_Time_Seconds に結果を生成します。 生成モードが有効になっている場合、サンプリングされたトリガーで現在のプレゼンテーション時間をキャプチャします。 1588_EVENT_OUT は、プロセッサによって PPS 出力を駆動するために使用されます。 よろしくお願いします。 Re: i.MX93 - 1PPS input and PTP AUX_IN という用語を使用する場合、それは表 417 の 1588_EVENT_AUX_IN という用語と同じですか? もしそうなら、どの特定の ATSEN* ビットにマップされますか? AUX_IN (1588_EVENT_AUX_IN) は、SW_MUX_CTL_PAD_SD2_CD_B の ENET_QOS_1588_EVENT0_IN モードに接続しますか? Re: i.MX93 - 1PPS input and PTP こんにちは@Kevin_M はい、1588_EVENTx_AUX_IN です。次のフィールドを確認してください。これが AUX の使用法です。 PTGE プレゼンテーション時間生成の有効化 このビットが設定されると、プレゼンテーション時間生成が有効になります。 0 - プレゼンテーション時間生成が無効 1 - プレゼンテーション時間生成が有効 ... MAC_PPS0_ターゲット時間秒 PPS ターゲット時間秒レジスタ このフィールドには、時間を秒単位で格納します。 PPSターゲットタイム秒レジスタ このフィールドには時間が秒単位で保存されます。タイムスタンプ値が両方のターゲット タイムスタンプ レジスタと一致するかそれを超えると、MAC は PPS 信号出力を開始または停止し、MAC_PPS_CONTROL レジスタの対応する PPS 出力に対して選択されたターゲット タイム モードに基づいて割り込み (有効な場合) を生成します。 ... 43.7.9.1 メディアクロック生成のプログラミングガイドライン 1. PPSインスタンスをメディアクロック生成モードに設定するには、適切なプレゼンテーションタイムコントロール(サポートされている生成モード「1001-1011」)をMAC_PPS_CONTROLレジスタのPPSCMD(0番目のインスタンスの場合)/PPSCMD#i(1、2、3番目のインスタンスの場合)にプログラムします。 2. 選択されたPPSインスタンスに基づいて、アプリケーションは対応するmcg_pst_trig_i[#i]に適切なトリガー信号を駆動する必要があります。 ... 43.7.9.2 メディアクロックリカバリのプログラミングガイドライン 1. MAC_TIMESTAMP_CONTROL レジスタの PTGE フィールドを設定して、現在のプレゼンテーション時間 (CPT) カウンタを有効にします。システム時間の初期化値をプログラムすることに加えて、同等のプレゼンテーション時間の初期値で MAC_PRESN_TIME_UPDT レジスタを更新します。その後、MAC_TIMESTAMP_CONTROL レジスタの TSINIT フィールドが設定されます。 2. システム時間に使用される増分値は、現在のプレゼンテーション時間にも使用されます。これは、増分値がサブ秒およびサブナノ秒単位であるためです。 1.各ATSENはそれぞれのEVENTにマッピングされます 2. 正解です。ここでAUX_INを確認できます。https://github.com/nxp-imx/linux-imx/blob/lf-6.12.y/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h#L54 よろしくお願いいたします。 Re: i.MX93 - 1PPS input and PTP @JosephAtNXP私は PPS 出力を設定しようとしているわけではなく、IEEE 1722 と関係のあることもしようとしているわけではありません。ENET_QOS_1588_EVENT0_IN の状態が変化した瞬間にタイムスタンプを付けようとしています。 Re: i.MX93 - 1PPS input and PTP @JosephAtNXP さん、ENET_QoSで1588 PPSの入力がうまく機能しない理由について、まだ調査中でしょうか? Re: i.MX93 - 1PPS input and PTP @Kevin_Mこの問題の解決に何か進展はありましたか?私も同じ問題に直面しています。ENETインスタンスではPTPをPPS入力と同期させることはできますが、リファレンスマニュアルやドライバでEVENT0_INピンをENET_QOSで使用する方法が見つかりません。 Re: i.MX93 - 1PPS input and PTP ケビンさん、ありがとうございます。確かにそれが唯一の方法のようですが、stmmacドライバではまだ対応していないようなので、追加する必要がありますね。 Re: i.MX93 - 1PPS input and PTP NXPは、ENET_QoSのAUX TIMESTAMP機能がi.MX93チップの内部または外部のいずれにも接続されていないことを確認しました。 私は、1588_EVENT0_IN モードで SD2_CMD を介して PPS をルーティングし、MAC_PPS_CONTROL をプレゼンテーション時間制御オプション 0001 を使用するように設定して、PPS 信号の立ち上がりエッジでプレゼンテーション時間をキャプチャし、MAC_PPS0_TARGET_TIME_SECONDS でキャプチャされた時間を読み取ることに成功しました。まだ解決すべき細かい点はたくさんありますが、これは有望な解決策のように思えます。
View full article
如何断开调试器? 问题 我需要断开调试器,让应用程序继续运行。 只要拔出 J-Link 的 USB 电缆通常会使我的板崩溃。 有一个 断开按钮,但它是灰色的。 如何才能(优雅地)断开调试器(并让应用程序正常运行)?希望那样我能让 J-Link 掉电? 背景: 在 imxRT1024 上运行的大型 FreeRTOS 应用程序。 调试器工作绝对正常 Windows 10 上的 MCUXpresso IDE v24.9 [版本 25] [2024-09-26] segger J-Link 软件版本 V9.22(刚更新到最新版本) i.MX RT102x Re: How can I disconnect debugger? 你好@davenadler、 感谢您对 NXP MIMXRT 系列的关注! 您的应用程序使用 semihost 吗?还是软件重新配置了任何与 SWD 相关的引脚?也有可能是你的硬件在断开与调试器的连接后出现了供电问题。请帮忙检查一下。或者,也可以尝试使用串行下载模式,直接将映像下载到闪存中,然后检查运行是否正常。 因为如果你的调试器正确地将二进制文件编程到闪存中,那么断开与调试器的连接就不太可能导致崩溃。 致以最诚挚的问候, Gavin
View full article
blkwfdll 无法在装有 Windows 11 的某些机器上运行 我在 blkwfdll 中使用 flashFirmware。我们有一个我从 .net 调用的 dll 版本申请。 相同的 .dll自 2018 年以来一直有效,但最近在 Windows 11 中却失灵了。 一台计算机已更新为 Windows 11 企业版 26200.7705。之后,Updater 的新实例化出现了"无法连接" 错误。该机器以前使用 blfwkdll.dll 时没有任何问题。在设备管理器中可以看到 blfwkdll.dll 连接的符合 HID 的供应商定义设备的设备实例已正确连接。 另一台版本为 26200.7705 的笔记本电脑在 blfwkdll.dll 上运行良好。 还有其他问题报告吗?有没有新版本的 blfwkdll.dll 我可以试试?我找到了源代码,但在构建 .dll 时遇到了麻烦,无法让我的 .net应用程序可以像以前一样将其用作参考。谢谢! Re: blkwfdll not working in certain machines with Windows 11 你好@ryan_pearson、 谢谢您的帖子。抱歉,blfwkdll 已不再维护。您可以试试位于 blhost 目录下的 blfwkdll。我不确定它是否比你目前使用的版本更新,但你可以试一试。 blhost 下载链接: https://www.nxp.com/webapp/Download?colCode=blhost_2.6.7&appType=license&location=null PATH: path\to\blblhost\blhost_2.6.7\blhost_2.6.7\tools\common\blfwkdll BR 西莱斯特 Re: blkwfdll not working in certain machines with Windows 11 如果不再维护 blkfdll,有其他替代方案吗? Re: blkwfdll not working in certain machines with Windows 11 你好@ryan_pearson、 感谢您的分享,我很高兴听到您这样说。 祝您节日快乐 BR 西莱斯特 Re: blkwfdll not working in certain machines with Windows 11 通过修改 hid-windows.c 第 236 行,我修复了这个问题来自 DWORD share_mode = (enumerate) ?file_share_read | file_share_write : file_share_read; 至 DWORD share_mode = FILE_SHARE_READ | FILE_SHARE_WRITE; 这与 hidapi 匹配。
View full article
リポジトリからの例のインポートに失敗しました こんにちは、NXPチーム VS Codeを使ってサンプルをインポートすると、必ず「'west'ツールが見つかりません」というエラーが表示されます。どうすればいいでしょうか? VSCODE を使用して exsample をインポートすると、常に「'west' ツールが見つかりません」というエラーが発生します。どうすればいいですか? ありがとう ハリー LPC55xx Re: Import Example from Repository fail 我已近解决了 すでに解決しました。
View full article
SYS_IMG KeyCatalog corrupted on S32G Hi, I'm using S32G2. SecureBoot is enabled. The IVT has properly defined my startup BootManager on M7, a location for the HSE_FW, and a location for the SYS_IMG within NOR flash. All these areas have backups also defined in IVT. I have also enabled signatures for my BootManager at the end of the area. The SMR is properly defined. I managed to boot it many many times. I also managed to update the BootManager and re-sign it again. This involves to update SMR, and to update SYS_IMG . Backup of SYS_IMG was also re-generated and both written into NOR flash. This update process has been done several times. No issues. After many update cycles, my BootManager has stopped booting. The SYS_IMAGE passes the hseVerifySysImageSrv test. After inspecting the NOR flash, it seems to have a good header of 4KB, a good "HSE Configuration Data Set" of less than 8 KB, and a good "NVM Key Store Data Set" of less than 32KB according to the RM00301 HSE Firmware Manual. Given that my BootManager no longer boots, the board does a reset after 1 second. After 5 resets, it goes to sleep. How can I know if the problem is that the HSE didn't like the SYS_IMG, or the SYS_IMG has lost the SMR for my BootManager , or my BootManager key does not match the content ? As said, hseGetSysImageSizeSrv reports a positive HSE_SRV_RSP_OK. Is there an way to offline analyze the SYS_IMG ? I see that at 0x1000 it has the bytes "E1 E1 E1 E1" and after that there are 4 bytes that might be a counter. After that, the data is encripted so I don't know if the SMR and Key for BootManager are there. Thanks, Francisco Re: SYS_IMG KeyCatalog corrupted on S32G Hi, Thanks for the reply.  The hseVerifySysImageSrv_t is succesfull so it confirms that this SYS-IMG is somehow correct. What I did was: save the bad SYS-IMG in some other NOR address . Point the IVT to a known valid SYS-IMG . Call hseVerifySysImageSrv_t pointing to the bad SYS-IMG is succesfull so it confirms that this SYS-IMG is Verified. But this doesn't garantee that the content includes the SMR or Keys for my BootManager, right ? When IVT points to the bad SYS-IMG, then it does not verifies my BootManager which somehow indicates that the bad SYS-IMG is missing the SMR. Is it possible to ask HSE at run-time to load the bad SYS-IMG, and then use Hse_GetKeyInfo to know if the keys are present ? I know that Hse_GetKeyInfo returns an error if the Key is not present, so this will tell me which keys are still available in my bad SYS-IMG . Is there any way to load the bad SYS-IMG, and call smrVerifyReq (HSE_SRV_ID_SMR_VERIFY) ? That will tell me if the bad SYS-IMG has the SMR for my BootManager, or if it has lost it. Thanks, Francisco Re: SYS_IMG KeyCatalog corrupted on S32G Hello @nxg19026, Regarding the offline review of the SYS-IMG, there is no procedure to check the encrypted contents, it does hold all the non-volatile information, however it is not accessible outside the HSE. About the possibility of the contents being corrupted, I find it quite unlikely, however, you can use the hseVerifySysImageSrv_t to double check if SYS-IMG in the flash memory is correct. Furthermore, following what is mentioned in the HSE FW reference manual, if the SYS-IMG is corrupted, the HSE resets the device up to 8 times before changing to serial mode for recovery. Let me know if the verification runs successfully. Re: SYS_IMG KeyCatalog corrupted on S32G Hello @nxg19026, If the verification ran successfully that should mean the information in the SYS-IMG is correct. Regarging the run-time load, it is not possible to load a different SYS-IMG, the SYS-IMG load is done by the BootROM and that cannot be changed. However, as I mentioned, if the SYS-IMG is really corrupt the chip does not boot, and therefore I do not see any indication that the SYS-IMG is the problem. Can you elaborate more about what exactly does your BootManager does and how is it failing? thanks Re: SYS_IMG KeyCatalog corrupted on S32G Hi, Some more info: I'm using HSE rev2.1_s32g2xx_hse_fw_0.1.1_2.22.0_pb230810 , premiun version with more available keys. One of the groups in aHseNvmKeyCatalog has 20 keys of hseKeyType_t HSE_KEY_TYPE_AES , each one has lenght 256. After confirming that the verification via Hse_VerifySysImg was successful, the investigation is going in a different direction: 1) I flashed a non-signed BootManager, and also told IVT that I need no signatures. This allows me to extend BootManager with new debug functionality. 2) I flashed an old, valid SYS-IMG . I used Hse_GetKeyInfo to confirm that it has the key for BootManager. 3) I flashed the faulty SYS-IMG . Now Hse_GetKeyInfo tells me that the key for BootManager is no longer present. For saving the SYS_IMG, I'm following the recommended process: hseGetSysImageSizeSrv , then hsePublishSysImageSrv, and using the Flash driver to save into NOR Flash. So it seems that the my Update process has written a set of empty keys. I can only imagine that I have lost them because inadvertently calling hseFormatKeyCatalogsSrv_t (HSE_SRV_ID_FORMAT_KEY_CATALOGS). Might it be that hsePublishSysImageSrv has retrieved the keys for another MuInstance ? I have defined all my keys for HSE_MU0_MASK and HSE_KEY_OWNER_CUST . As I understand, hsePublishSysImageSrv retrieves all the keys for all the hseMuMask_t's and all the hseKeyGroupOwner_t's , right ? My BootManager works in the following way: a) It takes 508 KB. The signature is in the last 4 KB. It is pointed by AppBL at IVT. It is started by a SMR . It has a Key of type HSE_KEY_TYPE_AES b) There is a AppBL backup. It uses the same Key, but a different SMR. c) Via communications, it can be updated into AppBL location. Note that AppBL-backup is present, to guarantee A/B d) It generates a new Key and imports into its slot via targetKeyHandle. The counter is HSE_KF_MAX_KEY_COUNTER_VALUE . The authKeyHandle is HSE_INVALID_KEY_HANDLE  The signature is re-written in the last 4KB. e) The SMR is re-generated f) It calls hseGetSysImageSizeSrv , hsePublishSysImageSrv , and writes the SYS_IMG g) It flashes the binary into AppBL-backup, and does the same e) and f) This has been working for a long time and many boards. It is just one board where the KeyCatalog is empty. We can not read the register GSR from HSE because the board resets, and the PMIC is not initialized and it goes to sleep. I guess this is not really relevant, since I know that the KeyCatalog became empty. Thanks, Francisco Re: SYS_IMG KeyCatalog corrupted on S32G Hi, Thanks for the reply. It gave me hints to test and re-analyze. From this comment "It saves all the keys in the catalogs along with all non-volatile configuration for the HSE." -> I tested to load the SYS_IMG into a bootable configuration (i.e. without SecureBoot) and called Hse_GetKeyInfo. As it failed for the all the Keys , this proved that the Keys were absent. You say that the volatile configuration is also present in the SYS_IMG. Is is possible to interrogate HSE to know which configuration is present ? It would help me to see which SMRs are still defined. For a test, I tried to hseSmrEntryErase a SMR which I knew was never defined and yet I got HSE_SRV_RSP_OK. Can you confirm whether hseSmrEntryEraseSrv_t fails if the SmrEntry is missing or already erased ? Similar to hseCrEntryEraseSrv_t . It seems that it always succeeds , even if the entry is absent. As said, we are using the Premium HSE Firmware because we use 32 SMRs. Is there any other info that I can extract from the SYS_IMG ? For example, at offset 0x1004 I got 4 bytes that look like a counter of the times the SysImage has been published. "I imagine is multi-core " -> You are right this is a risk. Therefore the BootManager is single-core, and the interaction with the HSE is singleton, in order to minimize this risk . From your comment "one of the programs overwrote the sysimage" -> As the sysimage is valid, it means that it was published. Otherwise the NOR flash would contain garbage, correct ? Right now I'm investigating the possibility that the Keys were unintentionally erased. Either by Formating the KeyCatalog, or by hseEraseKeySrv_t with HSE_ ERASE_ ALL_NVM_ KEYS_ ON_MU_IF or HSE_ ERASE_KEYGROUP_ ON_MU_IF , althought I doubt it, since BootManager doesn't have any function implementing that. Thanks, Francisco Re: SYS_IMG KeyCatalog corrupted on S32G Hello @nxg19026, Answering to this question: "Might it be that hsePublishSysImageSrv has retrieved the keys for another MuInstance?" From my point of view it would seem that in your application, which I imagine is multi-core, one of the programs overwrote the sysimage, which would cause the image to not have useful information and also be "correct". For this questions "hsePublishSysImageSrv retrieves all the keys for all the hseMuMask_t's and all the hseKeyGroupOwner_t's , right ?" It saves all the keys in the catalogs along with all non-volatile configuration for the HSE. From the description I can only conclude that there was an uninteded call for to publish the SYS-IMG which erased your keys. Another, quite unlikely posibility, is that that once chip has a silicon problem which at some point caused the SYS-IMG to be overwritten, however that is very difficult to diagnose.  With the current information I cannot offer you much more support, I apologize. Let me know if you have more questions. Re: SYS_IMG KeyCatalog corrupted on S32G We found out that the SYS_IMG was not loaded despite hseVerifySysImageSrv_t being successful. Investigation continues now internally with the support of NXP experts. Topic is closed. Thanks
View full article
LPC4337 传感器融合库 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 恩智浦传感器融合工具箱的菜单中有 Flash LPCXpresso 二进制文件-> OM13070 LPC4337 该版本传感器融合库的源代码是否可用? 传感器融合 Re: LPC4337 Sensor Fusion Library <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好,帕维尔、 作为 RT10xx(RT1050、RT1060、RT1064、RT1020)等 NPI 的 ISSDK 支持的一部分,我们的传感器软件团队注册仅在其 SDK 上市之前作为早期启用提供传感器使用示例。这就是所有将 ISSDK 作为其 MRD/PRD 一部分的 MCU NPI 以进行早期启用的原因,我们提供 ISSDK 中间件支持,仅为带有 FRDM-STBC-AGM01 的自定义套件部署传感器示例(而不是传感器融合和计步器等算法示例)。 顺祝商祺! 托马斯 Re: LPC4337 Sensor Fusion Library <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 嗨,托马斯、 谢谢,我下载了 LPC54114 AGM01 SDK,它包含所有 ISSDK 和传感器融合库文件。 我也在看 imxRT1050 所以我下载了带有 AGM01 SDK 的 imxRT1050,它有 ISSDK 和传感器驱动程序,但是 SDK 中缺少\ 中间件\ issdk\ 算法\ sensorfusion\ 来源。iMXRT1050 SDK 中缺少 sensorfusion/源代码的原因是什么? 谢谢! 帕维尔 Re: LPC4337 Sensor Fusion Library <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好,帕维尔、 恩智浦传感器融合工具箱中作为 File-> Flash LPCXpresso 二进制期权的一部分提供的二进制文件是使用代码勇士工具链上的处理器专家模块(Kinetis SDK v1.2 不再可用)为兼容KSDK v1.2的传感器融合工具箱v5(旧版本)定制的。我没有这个二进制文件的源代码或 Code Warrior 项目,因为最新的 Sensor Fusion Toolbox v7.x 已集成到 ISSDK 中并且与 MCUXpresso SDK v2.5.0(最新版本)兼容。即使 McuXpresso SDK 生成器也不支持 Sensor Fusion 工具箱文件中列出的 LPC 系列-> L PCXpresso 二进制选项卡(即LPC4337、LPC1549 和 LPC11U68)。MCUXpresso SDK 生成器仅支持 LPC5xxxx 和 LPC8xxx 系列微控制器: 因此,我建议使用这些受 MCU Xpresso SDK 最新版本(因为支持模式将是可持续的)支持的 LPC MCU 系列,以及我们为以下 LPCXpresso 主板提供的基于 ISSDK 的 Sensor Fusion 示例: 希望对您有所帮助。 顺祝商祺! 托马斯 PS:如果此答案有助于解决您的问题,请标记为"正确" 或 "有帮助"。谢谢。
View full article
エッジAIアプリケーションにおけるNXP MCUの電力最適化戦略 こんにちは、みんな、 現在、NXP マイクロコントローラをベースにした低電力エッジ コンピューティング デバイスを設計しており、コミュニティからアドバイスをいただきたいと考えています。システムは断続的なセンサ サンプリングとローカル推論を実行し、要約された結果をホスト システムに送信してさらに分析します。 開発とテスト中は、 AI 対応のノートPCを使用してパフォーマンスのプロファイルを作成し、推論出力を検証し、長時間実行時の電力消費パターンを監視します。私の主な課題は、推論タスクの許容可能な応答時間を維持しながら、MCU 側の電力使用量を最適化することです。 MCUXpresso には、この種のワークロードに適した推奨の低電力モード、クロック スケーリング手法、または SDK 機能はありますか?NXP MCUのパフォーマンスと電力のバランスに関する実際の経験は非常に役立ちます。ご意見をよろしくお願いします。
View full article
S32K376 VCU – S32DS で SPI ベースの DIO (MSDI) を実装するにはどうすればよいですか? 私は、MSDI デバイスが SPI 経由でコネクテッドされているS32K376 VCU POC ボードに取り組んでいます。 回路図から、次の MSDI 関連信号が使用されます。 SPI信号: MSDI_CS、MSDI_SCLK、MSDI_MOSI、MSDI_MISO 制御/ステータス信号: MSDI_INTB、MSDI_WAKEB アナログ/MUX信号: MSDI_AMUX デジタル入力と出力に使用されるMSDI SGx / SPxピン 私はこれをMBDT(Simulink)とS32構成ツール(S32CT)を使用して実装したいのですが、正しいソフトウェアアプローチがわかりません。 具体的には、以下の点について指導が必要です。 S32CTのSPIピンを外部MSDIデバイスで動作するように設定して使用する方法 MSDI_INTB と MSDI_WAKEB をどのように構成するか(DIO vs ICU/EXTI)、MBDT でどのように処理するか MSDIデジタル入力/出力(SGx / SPx)がソフトウェアでどのようにアクセスされるか MCAL サポート パターンはありますか? それとも、カスタム SPI コマンド + アプリケーション レベルの抽象化として実装する必要がありますか? MSDI_AMUX の一般的な処理方法 (ADC パス / 使用法の想定) S32K376/96 VCU および BMS サンプル POC プロジェクト用のMBDT + S32CTを使用してこのフローを示す実用的なリファレンスまたは例はありません。 推奨される実装アプローチ(ステップバイステップまたはブロックレベル)を提案していただけますか? Re: S32K376 VCU – How to implement SPI-based DIO (MSDI) in S32DS? こんにちは@mariuslucianand これについてコメントしていただけますか? よろしくお願いいたします。 BR、ペトル Re: S32K376 VCU – How to implement SPI-based DIO (MSDI) in S32DS? こんにちは、みんな、 誰も返信しなかったので、私は自分の方でいろいろ試してみたところ、同じVCU POCボード上でS32K396を使用して作業している際に、外部MSDIデバイスがLPSPI3経由で接続されていることがわかりました。しかし、実行時にバスフォルトが発生し、SPIの初期化が失敗します。 確認された問題 Lpspi_Ip_Init() の実行中に、コードが次の箇所でエラーを起こします。 Base->CFGR1 = PhyUnitConfigPtr->Cfgr1; デバッガーの観測結果: インスタンス = 3 ベースアドレス = 0x40364000 レジスターには次のように記載されています: VERID = 53248 PARAM = 53249 CR = 53249 SR = 53249 続いて:BusFault:不正確なデータアクセスエラー ハードフォルトのエスカレーション:これは、LPSPI3へのレジスタアクセス時に発生します。 以下の件についてご協力をお願いします: 添付ファイルを参照して、具体的にどの設定/構成が間違っているのでしょうか?または MSDI I/Oピンデータに正しくアクセスするために、どのような追加設定/MBDTブロックセットが必要ですか? Re: S32K376 VCU – How to implement SPI-based DIO (MSDI) in S32DS? こんにちは、 MC33CD1030 ICからデータを取得するためのSPIペリフェラルの設定方法については、以下の記事を参照してください。 方法: NXP MBDTを使用してS32K396BMS-EVB上のMSDI MC33CD1030 なお、この記事はMC33CD1030 ICとの間でデータを送受信するためのSPI構成に焦点を当てています。CD1030に関する詳細については、データシートを参照してください。 よろしくお願いいたします。 ソリン・バンシラ
View full article
i.MX RT1010 引导加载程序/闪存加载程序 您好, 我一直在研究 i.MX RT1010 的引导加载器/闪存加载器。 我已经阅读了相关的恩智浦应用笔记(AN12604、AN12238 等),但我发现文档相当分散,而且其中大部分似乎针对的是RT10xx系列中的高端设备。 我所缺少的是一份高层次的概述,以及一份简明实用的设置指南。 据我所知,RT1010 ROM 引导加载器(通过 sdphost 从主机访问)只能将代码加载到 RAM 中。要对外部 FlexSPI 闪存编程,必须首先通过该机制将临时闪存加载器下载到 RAM 中。然后,闪存加载器执行实际的闪存编程,通常是与主机端的 blhost 一起进行。 使用安全配置工具时,内部似乎使用了预先构建的 flashloader 二进制文件来实现此目的。 我已经看过在这种情况下提到的 KBOO T和McuBoot 这两个术语,但我不清楚后者是指NXP特定的元器件,还是指来自可信固件的开源McuBoot项目(https://www.trustedfirmware.org)。 我还查看了 SDK 示例 bootloader_examples/flashloader,遗憾的是,该示例的文档非常少。从实验来看,它的作用似乎与安全配置工具使用的预建闪存加载器相同:编程完成后,我可以使用该工具刷新应用程序映像,而无需先加载预先构建的闪存加载器。 不过,对于实际产品来说,似乎应该在外部闪存中设置一个持久的闪存驻留引导加载程序。所提供的 SDK 闪存程序示例似乎没有实现这一点。 所以我的问题是 我对 RT1010 启动/闪存加载程序流程的总体理解是否正确? 如果是,RT1010 通常如何实现持久闪存驻留引导加载程序? 为了与这样的引导加载程序配合使用,应用程序方面需要做哪些更改(链接器设置、向量表重置等)? 在以前的基于 PIC 的项目中,我可以将预编译的引导加载程序作为 "额外可加载程序 "与主应用程序一起加载。我认为这里需要一种概念上类似的方法,但实施方式不同。 如能提供任何指导或说明,将不胜感激。 i.MX RT101x Re: i.MX RT1010 Bootloader / Flashloader 您好 查看: https://www.utasker.com/iMX/RT1010.html https://www.utasker.com/iMX/developers.html https://www.utasker.com/docs/iMX/Loader.pdf https://www.utasker.com/docs/uTasker/uTaskerSerialLoader.pdf 视频网址:https://www.youtube.com/watch?v=GXztWg9m6_8&list=PLWKlVb_MqDQEOCnsNOJO8gd3jDCwiyKKe 您可能会发现一些您可以使用的东西,包括简化和集成的加密解决方案。 Regards Mark Re: i.MX RT1010 Bootloader / Flashloader 顺便提一下,由于恩智浦提供的引导加载程序存在问题,我使用了下面提到的马克基于 utasker 的引导加载程序(在 RT1024 上)。支持非常好,对我的应用也很有效。这里的用例是从 U 盘启动到具有完全安全性的 RT1024 内部闪存中(加密发行版加载到进一步加密的 XIP 内部闪存中)。 希望对您有所帮助! 最美好的祝愿,戴夫 Re: i.MX RT1010 Bootloader / Flashloader 您好, 本主题中分享的信息是否有助于您了解 i.MX RT1010 的引导加载程序/闪存加载程序,或者您还有什么问题? 敬上, Pablo Re: i.MX RT1010 Bootloader / Flashloader @Pablo_Ramos- 你在说什么? 恩智浦完全没有回答上述任何问题。
View full article
JTAG security in S32K311 about Security levels and Mass erase Hi,  May I know about the steps for locking and unlocking process. Is it possible to mass erase and unlocking mechanism in S32K311 microcontroller ? Re: JTAG security in S32K311 about Security levels and Mass erase Hi @truptikavadi1  If you don’t have HSE firmware installed, it is possible to protect the JTAG interface by password. You can follow this document for details: https://community.nxp.com/t5/S32K-Knowledge-Base/S32K3-Restrict-the-debug-access-with-a-password-when-HSE-is-not/ta-p/1735073 If you have HSE firmware installed, you have two options – either use a password (static authentication method) or a key for challenge-response method (dynamic authentication method). See please HSE Firmware reference manual for details, section 2.6.1.4.2  Host debug. You can find an example in HSE DemoExamples: https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples   After installation, search for this one: c:\NXP\S32K3_HSE_DemoExamples_1_0_0\S32K3_HSE_DemoExamples\Device_Configuration\S32K344_CQC_DEMO\ It shows how to select between static and dynamic method, how to program ADKP (password/key) – it must be done by HSE service and how to advance life cycle to enable secure debug. Once secure debug is enabled, authentication is required by a debugger. If you have Pemicro tools, follow the document mentioned above. If you use debugger from Lauterbach, you can take a look at scripts in HSE DemoApp at path like: c:\NXP\HSE_DEMOAPP_S32K3XX_0_2_40_0\demo_security_installer\scripts\   See the files like: debug_App_ADKP.py debug_authorization.cmm adkp_key_input.txt HSE DemoApp can be found in “Automotive SW - S32K3 - HSE Firmware” section in: https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K3-STDSW-D It is not possible to permanently disable JTAG interface on S32K3 devices. There were some references about this in previous versions of HSE Firmware reference manual but all of them were already removed because it is not possible on S32K3 devices. It is not possible remove the security by mass erase. This was possible on some older devices like S12 or S32K1 but this does not work on S32K3. Regards, Lukas
View full article
Doing I/O from an interrupt handler The relevant parameters for this question are as follows: 1. IDE: S32 DS for ARM v 2.2 (Yes, I know this is old, but so is the product in question; we need to support the existing code) 2. Chip: S32K148 3. OS: Windows 11 4. System OS: Bare metal Attempting to do any kind of SPI Master transfer in an ISR hangs, and usually the API that was interrupted is a blocking I/O (I2C or SPI) call. On a blocking call (to LPSPI_DRV_MasterTransferBlocking() ), the call hangs because sysTick interrupts do not seem to be happening, so the MCU does not get a sense of elapsing time. On a non-blocking call (LPSPI_DRV_MasterTransfer() followed by LPSPI_DRV_MasterGetTransferStatus(SPI1, &byte_remaining) ), byte_remaining stays at the original value. I have attempted to add a call to  LPSPI_DRV_MasterAbortTransfer(SPI1) before calling LPSPI_DRV_MasterTransfer() for the async transfer, but the result is the same. On a semi-related question, what triggers the SysTick_Handler() ? My intuition says it should be running all the time increasing the tick count every 1ms, but putting a break point in the body of it seems to hit only some time. Strangely, it is sometimes not hit even when a blocking SPI transfer is successful, which should be arming the system timer if it was unarmed before. Another semi-related question is that in the S32 Cookbook example code for SPI, there are no use of the SDK provided APIs; the examples do all the register bit banging directly. Are there any examples that are closer to production worthy code, in that they at least call the NXP APIs instead of re-inventing the wheel? Re: Doing I/O from an interrupt handler Hello @PetrS  Thank you very much. The interrupt priority indeed solved the problem. However, I do have a question: I agree that blocking inside an ISR is not a good idea, but what is the alternative in a single threaded application? I could spin in the application context until the SPI transfer is done. That will allow other I/O interrupts to happen (my understanding is that negative priority interrupts will fire anyway; they are not disabled when a positive priority ISR is entered). But in my situation doing overlapping I/O is neither possible nor desirable. 1. It is not possible because the S32K148 is the bus master for all the buses. So if it is doing a SPI transfer in an ISR, it cannot possibly drive another I/O bus and therefore cannot trigger interrupts. 2. It is not desirable because there could be shared globals between the ISRs, so I don't want to start a new I/O until the current one is complete. For a single threaded bare metal application, what would be your recommendation to handle this situation? Re: Doing I/O from an interrupt handler Hi, OK, then simply interrupts priorities could cause this behavior. The blocking API hangs simply because the LPSPI ISR cannot run while the GPIO ISR is active if both interrupts have the same priority. The blocking call waits for the ISR to finish the transfer and post the semaphore - but that ISR never gets CPU time until the GPIO ISR exits. The SDK’s driver indeed finishes transfers in the LPSPI interrupt, and only then posts the semaphore to release the blocking call, so equal‑priority ISRs will deadlock the transfer this way.  The non‑blocking API behaves the same: if called from a GPIO ISR of equal priority, the LPSPI ISR cannot preempt it, so byte_remaining never changes because the driver state machine is never serviced by the LPSPI IRQ. Only after raising LPSPI to a higher priority (numerically lower value) will the LPSPI interrupt fire immediately, complete the transfer, and allow both blocking and non‑blocking APIs to work as expected. Try  /* Smaller number = higher priority on Cortex-M */ INT_SYS_SetPriority(SysTick_IRQn, 0);     // if you rely on tick timeouts INT_SYS_SetPriority(LPSPI1_IRQn, 1);      // must be higher than GPIO INT_SYS_SetPriority(PORTC_IRQn, 2);       // your button’s PORTx IRQ   Note: regardless of the priority fix, it’s still advisable not to use the blocking SPI API inside an ISR, and likewise not to wait inside an ISR for a non‑blocking transfer to finish. The S32K LPSPI driver progresses transfers in its interrupt handler, and long ISRs can prevent other interrupts from running.   BR, Petr Re: Doing I/O from an interrupt handler Hello @PetrS  Thank you for your response, but I am afraid I don't really understand it. What you seem to be saying is that doing blocking I/O inside an ISR is a bad idea, and I agree. But why should it not work? The tick counter increments in an interrupt handler that priority -1, that is higher than any I/O interrupt priority. And I am not changing any interrupt mask in my code; does the driver change it under the hood? Our application is bare metal (single threaded), so waiting in an ISR context and application context is pretty much the same thing. The only difference is that in an ISR context, other I/O interrupts will be blocked. But this is exactly what I want anyway. The timer ISR, however, should not be blocked because of the higher priority. I have tried adding a call to ENABLE_INTERRPUTS() on the first line of the ISR, but it made no difference. I have tried the non-blocking version also, and that also hangs, in a different way. On a non-blocking call (LPSPI_DRV_MasterTransfer() followed by LPSPI_DRV_MasterGetTransferStatus(SPI1, &byte_remaining) ), byte_remaining stays at the original value. I have attempted to add a call to  LPSPI_DRV_MasterAbortTransfer(SPI1) before calling LPSPI_DRV_MasterTransfer() for the async transfer, but the result is the same. Both of the above API calls are made from the ISR. The use case is that if the user presses a button, a GPIO interrupt is fired and it wants to read a value over SPI. One thing worth pointing out again is that the API that the ISR is interrupting is a blocking SPI transfer. Adding a call to LPSPI_DRV_MasterAbortTransfer() in the ISR before starting the new transfer also did not help. I am on a very tight deadline on this issue; any help is greatly appreciated. Re: Doing I/O from an interrupt handler Hi, Blocking I/O from an ISR won’t work with the S32K1 SDK. LPSPI_DRV_MasterTransferBlocking() waits on an OSIF semaphore; in ISR context there’s no place to block and no tick/time base to advance, so it hangs. Use the non‑blocking API (LPSPI_DRV_MasterTransfer) and complete the transfer in the LPSPI ISR/callback, then signal a task/main loop. Also, SysTick fires on timer wrap, but its handler only runs when not masked and with sufficient NVIC priority—so if PRIMASK is set or you’re in a higher‑priority ISR, it will be deferred.  The cookbook projects are deliberately lightweight, showing peripheral use directly without the higher‑level driver abstractions; they’re intended as learning starting points, not production usage. If you want NXP driver‑style examples, look to SDK, or rather RTD driver/example projects rather than the cookbook.   BR, Petr Re: Doing I/O from an interrupt handler Hi, even though it now “works” you should still discourage doing the SPI transfer inside the ISR.  If you ever change priorities later, or add another peripheral, you can easily re‑create the deadlock condition you just diagnosed. The safest design would be always to keep ISRs short and defer real work to the main loop. Use the ISR only as a trigger; perform the SPI transfer synchronously in main() or as a non‑blocking transfer initiated in the ISR but completed by the LPSPI ISR, and main waits for the completion flag. BR, Petr
View full article
iMX RT700 EVK 访问 SDIO 卡 尝试访问 RT700 EVK 上的 1.8V SDIO 卡。使用带调试语句的增强型示例,将跳线 JP65 和 JP66 设置为 1-2。 SDCARD fatfs freertos 示例。 已插卡。 SDCARD fatfs freertos 示例。 已插卡。 --- SD 卡初始化 --- SD 卡初始化失败!状态:1834 可能的原因: - 卡不支持 1.8V 信号 - 电压开关故障 - 卡通信错误 正在尝试基本的卡片检测... 过流调节(OCR):0x 0 标志:0x 0 Re: iMX RT700 EVK accessing SDIO Card 嗨,@MikeAtPhantom、 非常感谢您关注我们的产品并使用我们的社区。 请仔细查看自述文件。 我为你做了一个测试,SDK 演示运行正常。 硬件:MIMXRT700-EVKJP65 1-2 已连接 SW: mimxrt700evk_sdcard_fatfs_freertos_cm33_core0 SD: 闪迪至尊高速 32G 请使用推荐的 SD 卡,并尝试重新运行示例。 顺祝商祺! MayLiu
View full article
i.MX RT1060 API's LPSPI_MasterTransferEDMA does not support 24bit framesize? I’m trying to write 24bit frames via DMA with LPSPI. The application is not important but for my example it is to send data from memory to an external DAC. I want to get this working with DMA because I will eventually use a link-list of TCD’s together with PIT to update the DAC continuously w/o CPU overhead. This is a common application with external ADC and DAC. It is also common that 16bit DAC/ADC’s have 24bit frame requirements (top byte is for command, lower bytes for data). I don’t want to use uint8_t data and split the transfer into 3 bytes, I want to use uint32_t data and send with 24bits frame size, the top byte to be ignored. Now, onto the LPSPI and DMA configuration. 1. The lpspi_master_config_t structure of the imxRT1060 SDK’s API LPSPI_MasterInit function allows me to set bitsPerFrame to 24. This is no problem when doing a standard transfer w/o DMA. 2. However, when using DMA w/ the API's LPSPI_MasterTransferEDMA function, the case for 24-bits frame size is not handled or supported by the eDMA hardware? In LPSPI_MasterTransferEDMALite the DMA transfer width is set in the edma_transfer_config_t struct. Specifically, the srcTransferSize and destTransferSize fields are configured based on the bytesEachRead and bytesLastWrite values, which are derived from the SPI frame size (bytesPerFrame) by…. /* LPSPI_MasterTransferPrepareEDMALite */ uint32_t bytesPerFrame = ((base->TCR & LPSPI_TCR_FRAMESZ_MASK) >> LPSPI_TCR_FRAMESZ_SHIFT) / 8U + 1U; if (bytesPerFrame <= 4U) { handle->bytesEachWrite = (uint8_t)bytesPerFrame; // for 24bit frames = 3 handle->bytesEachRead = (uint8_t)bytesPerFrame; // .... handle->bytesLastRead = (uint8_t)bytesPerFrame; // .... } /* now back in LPSPI_MasterTransferEDMALite */ switch (handle->bytesEachRead) //bytes each transfer { case (1U): transferConfigRx.srcTransferSize = kEDMA_TransferSize1Bytes; transferConfigRx.minorLoopBytes = 1; if (handle->isByteSwap) { addrOffset = 3; } break; case (2U): transferConfigRx.srcTransferSize = kEDMA_TransferSize2Bytes; transferConfigRx.minorLoopBytes = 2; if (handle->isByteSwap) { addrOffset = 2; } break; case (4U): transferConfigRx.srcTransferSize = kEDMA_TransferSize4Bytes; transferConfigRx.minorLoopBytes = 4; break; default: transferConfigRx.srcTransferSize = kEDMA_TransferSize1Bytes; transferConfigRx.minorLoopBytes = 1; assert(false); break; } We get the default case and an error as the case of 3 bytes is not handled. Does the EDMA hardware support 3-byte transfers? Basically I want to use uint32_t data and frame as 3 bytes and transfer via DMA, ignoring the most significant byte. Is it possible? Re: i.MX RT1060 API's LPSPI_MasterTransferEDMA does not support 24bit framesize? ok thank you for confirmation, so I don't waste time trying to get it to work! So the only way really is to use make everything uint8_t data and send as three bytes w/ kLPSPI_MasterPcsContinuous. This is ok, as this is how we do it for all other peripherals, but it adds unnecessary overhead in the case of the 16-bit DAC implementation. Thank you.  Re: i.MX RT1060 API's LPSPI_MasterTransferEDMA does not support 24bit framesize? Hi @azone , Thank you so much for your interest in our products and for using our community. Please check the following link, it describe that eDMA support transfer sizes of  1, 2, 4, 8, 16, 32, 64 bytes, it does not support 24bit(3 bytes) transfer size. MCUXpresso SDK API Reference Manual: EDMA: Enhanced Direct Memory Access (eDMA) Controller Driver Best Regards MayLiu
View full article
プロトタイプ段階でのPBLベースのプラットフォームでのセキュアブートの設定 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> このドキュメントでは、QorIQ PBLベースのPowerPCおよびARMアーキテクチャ・プラットフォームのセキュア・ブート設定方法と手順について説明します。セキュアブートの基本概念について説明します。セキュアブート用のPBL、CSFヘッダー、およびESBCイメージの作成方法について説明します。セキュアブート関連のイメージをターゲットにデプロイする方法と、プロトタイプ段階でOTPMKをブローしてSRKハッシュキーをミラーレジスタに書き込む方法を紹介します。セキュアブートが失敗し、UARTコンソールにメッセージが出力されない場合のトラブルシューティング方法をステップバイステップで提供します。 このドキュメントでは、LS1043を例に挙げていますが、ユーザーが異なるプロセッサを使用する場合は、プロセッサリファレンスマニュアルおよびQorIQ SDKユーザーマニュアルに従ってレジスタとイメージのデプロイメントアドレスを変更する必要があります。 1. PBLベースプラットフォームでのセキュアブートの基本概念 2. セキュアブート用のイメージの準備 2.1 セキュアブートをサポートするRCWを作成する           2.1.1 Linux SDKでセキュアブートRCWを作成する 2.1.2QCVSツールでセキュアブートRCWを作成    2.2 RSAキーと署名イメージを生成して、CSTツールでCSFヘッダーを作成する 3. セキュア ブート イメージをターゲットにデプロイし、SRKH ミラー レジスタを書き込みます 4.セキュアブートのトラブルシューティング。 Qonverge Re: プロトタイプ段階でのPBLベースプラットフォームでのセキュアブートの設定 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Codewarrior自体でコード署名ツールを使用する方法はありますか? Re: プロトタイプ段階でのPBLベースプラットフォームでのセキュアブートの設定 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちはジェリー、 私たちのシステムでカスタマーサービスリクエストを作成するか、コミュニティで新しいスレッドを作成して、手順をより詳細に説明していただけませんか? 私があなたのためにもっと調査をします。 ありがとうございます イーピン Re: プロトタイプ段階でのPBLベースプラットフォームでのセキュアブートの設定 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、LS1043ARDBでのセキュアブートのためにこのプロセスを実行しました。ブート ホールドオフは機能しており、コアをリリースする前にすべての値が適切に設定されていることを確認できます。コアが解放された後、u-boot は起動せず、スクラッチ レジスタ 2 のエラー コードが0x00000101
View full article