Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
i.MX 8X VPU H.264エンコーディング 固定ビットレート こんにちは、 当社では、i.MX 8X(Digi ConnectCore 8X Proに搭載)を使用して、gstreamerで一定のビットレートでビデオをエンコードしています。BSPをアップデートした後、エンコーダーが要求されたビットレートに達していないことが判明しました。 これは、gstreamerの「ball」テストソースで再現可能です(300フレーム、30fpsの場合、4000Kbpsで約5MBのファイルサイズになると予想されます)。 gst-launch-1.0 -e videotestsrc pattern=ball num-buffers=300 ! video/x-raw,format=NV12,width=640,height=512,framerate=30/1 ! v4l2h264enc extra-controls="controls,video_bitrate_mode=1,video_bitrate=4000000,video_b_frames=0" ! "video/x-h264,profile=baseline,level=(string)4" ! h264parse ! filesink location=out.h264 エンコーダーファームウェアバージョン1.3.0では、その結果、ファイルサイズは4980939バイト(約5MB)となるが、バージョン1.4.5ではわずか102994バイト(約0.1MB)となる。 これはファームウェアの既知の回帰現象であり、一定ビットレートを使う回避策があるかどうか確認してもらえますか? テスト済みプラットフォームの詳細: Kernel 6.6.52 (Digi Embedded Yocto) gstreamer 1.24.7 i.MX 8ファミリ | i.MX 8QuadMax (8QM) | 8QuadPlus Linux Re: i.MX 8X VPU H.264 Encoding Constant Bitrate 別のテストによると、これはエンコーダーバージョン1.4.1では動作していると思いますが、1.4.5では動作していないので、これらのバージョン間の回帰だと思います
View full article
i.MX 8X VPU H.264 编码恒定比特率 您好, 我们使用 i.MX 8X(在 Digi ConnectCore 8X Pro 上)通过 gstreamer 以恒定比特率对视频进行编码。更新 BSP 后,我们发现编码器无法达到要求的比特率。 使用 gstreamer 中的“ball”测试源可以重现此问题(300 帧,30fps,4000Kbps 时,我们预计文件大小约为 5MB)。 gst-launch-1.0 -e videotestsrc pattern=ball num-buffers=300 ! video/x-raw,format=NV12,width=640,height=512,framerate=30/1 ! v4l2h264enc extra-controls="controls,video_bitrate_mode=1,video_bitrate=4000000,video_b_frames=0" ! "video/x-h264,profile=baseline,level=(string)4" ! h264parse ! filesink location=out.h264 编码器固件版本 1.3.0,这导致文件大小为 4980939 字节(约 5MB),而 1.4.5 版本的结果仅为 102994 字节(约 0.1MB)。 能否确认这是固件中已知的回归问题,以及是否有办法使用恒定比特率? 测试平台详情: 内核 6.6.52(数字嵌入式 yocto) gstreamer 1.24.7 i.MX 8 系列 | i.MX 8QuadMax (8QM) | 8QuadPlus Linux Re: i.MX 8X VPU H.264 Encoding Constant Bitrate 根据我做的另一次测试,我认为它在编码器版本 1.4.1 下可以正常工作,但在 1.4.5 下则不行,所以我推测这是这两个版本之间的一个回归问题。
View full article
When the TJA1445 is in sleep mode, CANH and CANL are at low levels. Hi, When testing the TJA1445 in Sleep mode, with the wake-up source mode set to WUF, VBATVCC defaulted to 0, CPNC configured to 1, and PNCOK configured to 1, why are CANH and CANL at a low level (0V) instead of 2.5V after entering Sleep mode? Is the CAN state "CAN Offline" at this time? How can I configure it so that CANH and CANL are at 2.5V when the TJA1445 enters Sleep mode? Because in the current testing environment, sending only one CAN message is insufficient to wake the TJA1445. liugaosong_0-1788782128664.pngliugaosong_0-1788782128664.pngliugaosong_0-1788782128664.png CH1 is the INH pin, and CH2 is the CANH pin. As you can see, the sleep mode is at a low level. Re: TJA1445 休眠时CANH和CANL为低电平 If the PN-related registers are set before power failure, VCC/VIO can be turned off, leaving only BAT.  Then, if a message matching WUP is found on the bus, it can enter CAN OfflineBias from CAN Offline. Upon receiving another message matching WUF, PN wake-up can be initiated. The requirements of WUP messages are generally met by most messages; that is, sending two specific frames consecutively is sufficient to wake up the device.     Re: TJA1445 休眠时CANH和CANL为低电平 Hi, When the board is in sleep mode and VCC is off, can't the TJA1445 wake up in one frame? Is it necessary to go through the CAN Offline to CAN OfflineBias process? At this time, can CANH and CANL be 2.5V, or does the TJA1445 enter Sleep mode while the CAN status is always in CAN Offline mode?
View full article
TJA1445 休眠时CANH和CANL为低电平 Hi,     测试TJA1445进入Sleep模式时,唤醒源模式为WUF,VBATVCC默认为0,CPNC配置为1,PNCOK配置为1,为什么进入Sleep模式后,CANH和CANL为低电平0v,不是2.5V,此时CAN state是CAN Offline吗?如何配置可以当TJA1445进入Sleep后,CANH和CANL为2.5V,因为当前环境测试下来,CAN唤醒时,只发一帧CAN报文,是无法唤醒TJA1445的, liugaosong_0-1788782128664.pngliugaosong_0-1788782128664.pngliugaosong_0-1788782128664.png CH1是INH引脚,CH2是CANH,可以看到休眠是低电平。 Re: TJA1445 休眠时CANH和CANL为低电平 如果在掉电前设置好PN相关的寄存器,是可以关掉VCC/VIO,只保留BAT的。  然后总线上如果有满足WUP的报文,可以从CAN Offline进入CAN OfflinBias。再收到符合WUF的报文就可以PN唤醒了, WUP报文的要求正常一般报文都能满足,相当于连续发两帧特定帧报文就能唤醒     Re: TJA1445 休眠时CANH和CANL为低电平 Hi, 板子休眠,VCC是关了的,TJA1445做不到一帧唤醒吗?必须要要经过从CAN Offline进入CAN OfflinBias吗?这时候CANH和CANL能不能是2.5V,还是说TJA1445进入Sleep模式,CAN状态一定是在CAN Offline模式。
View full article
i.MX 8X VPU H.264 Encoding Constant Bitrate Hi there, We are using the i.MX 8X (On a Digi ConnectCore 8X Pro) to encode video at a constant bitrate with gstreamer. After updating our BSP, we have found that the encoder is not reaching the requested bitrate. This is reproducible with the 'ball' test source in gstreamer (with 300 frames and 30fps we would expect a filesize of around 5MB at 4000Kbps) gst-launch-1.0 -e videotestsrc pattern=ball num-buffers=300 ! video/x-raw,format=NV12,width=640,height=512,framerate=30/1 ! v4l2h264enc extra-controls="controls,video_bitrate_mode=1,video_bitrate=4000000,video_b_frames=0" ! "video/x-h264,profile=baseline,level=(string)4" ! h264parse ! filesink location=out.h264 On encoder firmware version 1.3.0, this results in a file size of 4980939 bytes (~5MB), vs on 1.4.5 the result is only 102994 bytes (~0.1MB).  Could you confirm that this is a known regression in the firmware and whether there is a workaround to use constant bitrate? Tested platform details: kernel 6.6.52 (digi embedded yocto) gstreamer 1.24.7 i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus Linux Re: i.MX 8X VPU H.264 Encoding Constant Bitrate Based on another test I've done, I believe this to be working with encoder version 1.4.1 but not 1.4.5, so I assume it is a regression between these versions
View full article
i.MX95 PCIe connection with FPGA This article describes a Full-Bridge PCIe reference design that connects an NXP i.MX95 SoC (acting as PCIe Root Complex) to a Lattice CertusPro-NX / Certus-NX FPGA endpoint, together with a Linux kernel driver. Updating the FPGA bitstream over PCIe is demonstrated as the reference use case, built on top of a general-purpose PCIe data-transfer, register-access and MSI-completion interface. Hardware Host / Root Complex: NXP i.MX95 SoC running Linux (DesignWare PCIe controller) FPGA target / endpoint: Lattice CertusPro-NX PCIe Bridge board (Device ID  0x9C25 ) or Certus-NX (Device ID  0x9C1D ) — Lattice Vendor ID  0x1204 PCIe link: 1-lane (x1), single BAR (BAR1) design Interrupt: 1 MSI vector, EP→Host completion signalling   Board ConnectionBoard Connection Architecture The host application talks to the FPGA through the  kernel driver. The driver exposes BAR1 as a character device and manages two host-side DMA-coherent buffers. Because the design is a full bridge, both sides can initiate PCIe transactions: the host issues MWr/MRd to BAR1, and the FPGA (as bus master) issues its own MWr/MRd back into host memory. Driver ArchitectureDriver Architecture Block Role Application (userspace) Issues IOCTLs; supplies payload and DMA target addresses Driver  lattice_nxp_pcie_ep.c BAR1 MMIO window, SRC/DST DMA buffers, MSI completion, char device  /dev/lattice_nxp_pcie_bar1 FPGA (CertusPro-NX / Certus-NX) PCIe endpoint; executes command, performs MRd/MWr, raises MSI on completion Host memory DMA-coherent SRC and DST buffers   What the driver covers The kernel module is a general-purpose PCIe endpoint transport, not a bitstream-specific driver. It contains no bitstream or image parsing — bitstream update is simply the reference application layered on top of these primitives. It provides three planes: FPGA→Host DMA path (EP-initiated bulk transfer): two host DMA-coherent buffers (SRC/DST, default 4 KB, tunable up to 1 MB). The host fills SRC, programs the FPGA SRC/DST mailbox registers and rings a doorbell; the FPGA (bus master) then moves data via its own MRd/MWr and writes results into the host DST buffer. Usable for any payload. Host↔FPGA BAR1 MMIO window: the char-device  read() / write()  path exposes the whole BAR1 aperture as an 8-byte-granular, byte-addressable window ( readq / writeq , or paired  readl / writel  on 32-bit) for register/RAM access and MWr+MRd readback tests. Control + completion plane: arbitrary 32-bit BAR1 register read/write by offset (the "command" and "doorbell" registers are conventions the application chooses), plus MSI-based completion notification (atomic counter + wait/poll IOCTLs). In short, it is a generic data-transfer + register-access + interrupt-notification interface. Bitstream loading is one application built on it; any host↔FPGA bulk transfer or register-control workflow uses the same primitives. Driver overview —  Probe & init: enable the PCIe device and set bus master → configure the DMA mask (32-bit default, 64-bit fallback) → map BAR1 MMIO → allocate SRC + DST coherent DMA buffers → allocate 1 MSI vector → register  /dev/lattice_nxp_pcie_bar1 . IOCTL interface (9 commands): Command Di r  Description IOCTL_GET_INFO R Return BAR1 size, SRC/DST DMA handles, MSI IRQ number IOCTL_FILL_SRC W Copy userspace buffer into the SRC DMA buffer IOCTL_CLEAR_DMA – Zero the DST DMA buffer before a transfer IOCTL_READ_DMA R Read back bytes from the DST DMA buffer after the FPGA copy IOCTL_WAIT_MSI W Block until the next MSI fires (with  timeout_ms ) IOCTL_WAIT_MSI_SINCE W Block until  msi_count  exceeds a given baseline (race-free) IOCTL_GET_MSI_COUNT R Read the current MSI interrupt counter (atomic u64) IOCTL_WRITE_REG W Write one 32-bit MMIO register in BAR1 by offset IOCTL_READ_REG R Read one 32-bit MMIO register from BAR1 by offset   Driver internals BAR1 read/write paths:  pcie_read()  /  pcie_write()  expose BAR1 as a char device. Accesses must be 8-byte aligned; 64-bit uses  readq / writeq , 32-bit uses paired  readl / writel . MSI ISR:  pcie_isr()  atomically increments  msi_count  and wakes the wait-queue, unblocking  WAIT_MSI  /  WAIT_MSI_SINCE  callers. Verbosity level 2 logs each interrupt with its running count. iATU resync workaround ( FORCE_SYNC_IATU  on probe, the driver clears and then restores the root-port Memory Base/Limit registers to force the DesignWare PCIe block to rebuild its inbound iATU translation table. This is required after an FPGA reconfiguration + PCIe remove + rescan cycle. The macro can be commented out if the workaround is not needed. Note that this alters the upstream port and can affect other PCIe devices on the same bus. Vendor ID:  0x1204   |  Device IDs:  0x9C25  (CertusPro-NX),  0x9C1D  (Certus-NX). Module parameters Parameter Type / default / perm Description verbose int / 1 / 0644 0 = minimal (critical errors only); 1 = info (probe steps, DMA sizes, MSI events); 2 = chatty (all IOCTL calls, read/write rejections, MSI interrupts) dma_bits int / 32 / 0644 DMA address width for coherent-buffer allocation. 32 = default (most platforms); 64 = use if probe fails with  -ENOMEM  (-12) on a 32-bit mask dma_buf_bytes uint / 4096 / 0644 Size (bytes) of each DMA coherent buffer (SRC and DST). Min 256, default 4096 All three parameters are adjustable at load time;  verbose  and  dma_bits  can also be changed at runtime via sysfs.   Known limitations — unsupported PCIe transaction types Configuration Read (CfgRd0 / CfgRd1) — PCIe TLP Type 0/1 config reads are not supported Configuration Write (CfgWr0 / CfgWr1) — PCIe TLP Type 0/1 config writes are not supported Legacy I/O Read (IORd) — x86-style I/O reads are not supported; no I/O BARs are mapped Legacy I/O Write (IOWr) — x86-style I/O writes are not supported; all access goes through BAR1 MMIO Supported: Memory Read (MRd), Memory Write (MWr), and MSI interrupt signalling via the BAR1 mailbox. Reference lattice_nxp_pcie_ep.c  — Linux kernel PCIe EP driver IMX95EVK
View full article
NXP Trimension® SR250で始めるUWB入門 第1回:UWBの基礎とSR250の概要 (日本語ブログ) はじめに   「スマホをポケットに入れたままドアが開く」「部屋に入ったら自動で照明がつく」「ソファに座った瞬間、サウンドバーが自分の位置に合わせて音場を自動調整してくれる」── こんな体験を実現できるデバイスが NXP Trimension® SR250 です。 SR250は、超高精度な無線測距技術「UWB (Ultra-Wideband:超広帯域無線)」と、相手デバイスなしで人や物体を感知できる「UWBレーダー」を、IoT向けとして世界初となるオンチップ処理付きで1チップに統合したICです。 そんな様々な可能性を秘めたこのSR250が、2026年3月、ついにマスマーケット向けリリースされました!評価ボード SR250UWBSHIELD が NXPのeコマースで購入できます。 「面白そうだけど、難しそうかな?」と思っていたあなた、今が試してみるチャンスです。 第1回はUWBとはそもそも何かという基礎から、SR250の特徴までをお届けします。本稿を読んで想像をふくらませ、ぜひ評価ボードを入手して一緒にUWBを体験しましょう! UWBって、昔どこかで聞いたことがある?   「UWBって、昔の高速データ転送技術では?」と思った方、鋭いです! 2000年代初頭、UWBは高速ワイヤレスデータ転送技術として大きな注目を集めました。WiMediaアライアンスが標準化を進めましたが、Wi-FiやBluetoothの急速な進化に押され、普及しないまま終わりました。 ところが2010年代後半、UWBは全く別の顔で復活します。精密測距・測位の技術として再定義され、IEEE 802.15.4zとして標準化。2019年 iPhone 11への搭載を機に、一気に注目度が高まりました。 UWBが広い帯域幅を持つという本質は変わっていません。ただ、その特性を「通信速度」ではなく「時間分解能」として使うことで、まったく新しい用途が生まれたのです。 UWBとは? ─ センチメートルの世界へ   UWB (Ultra-Wideband) は、名前の通り周波数軸で見れば超広帯域、逆に時間軸で見ると非常に短いパルス信号を使った無線技術です。IEEE 802.15.4z規格として標準化されており、近距離高精度測位の分野で今まさに急速に普及しています。 Wi-FiやBluetoothの位置精度が±1〜2mであるのに対して、UWBは±5〜10cmのセンチメートル精度を実現できます。これは「どこかにいる」ではなく「ここにいる」を検知できる技術です。 このセンチメートル精度と高いセキュリティの組み合わせが、スマートカーアクセスや精密な屋内測位を可能にしています。Androidスマートフォン・AirTagに加え、*Google Pixel Tagへの搭載も発表され、今後さらなる普及が期待されています。 *Google Pixel Tagは2026年11月発売予定 なぜUWBはマルチパスに強く、セキュアなのか? ─ 他無線技術との比較   マルチパスとは?   電波は光のように直進するだけでなく、壁・天井・家具などに反射しながら伝わります。受信側には「直進してきた電波」と「あちこちで反射してから届いた電波」が混ざって届きます。これがマルチパスです。特に屋内では反射が多く、マルチパスの環境となります。 BLEやWi-FiのようなRSSI (受信強度) ベースの測距は、この「混ざった電波の強さ」を使って距離を推定するため、反射波に大きく左右されてしまいます。 UWBは非常に短いパルス信号 (数ナノ秒幅) を使っているため、直接届いた信号と反射して後から届いた信号を時間的に分離して識別できます。   なぜUWBの測距はセキュアなのか? UWBは、 STS (Scrambled Timestamp Sequence:スクランブルされたタイムスタンプシーケンス) と呼ばれる暗号化された信号列を使用しています。STSはAES-128ベースの乱数生成器によって毎回異なる値が生成されます。受信側は事前に共有した鍵から同じSTSを計算し、受信値と照合することで、正規の送信元かどうかを検証します。 STSは毎回異なる値が生成されるため、傍受した信号をそのまま再送したり(リプレイアタック)、中継・偽装して距離を誤認識させたりする攻撃が成立しません。さらにセキュアレンジングでは、STS生成に使うセッション鍵をセキュアな環境で管理し、定期的に再計算します。仮に特定時点の鍵情報が漏洩しても被害範囲を限定できます。これらにより、UWBはBLEやWi-Fiベースのレンジングよりも強固なセキュリティを実現しています。   測距技術の比較   技術 精度 マルチパス耐性 セキュリティ 主な用途 UWB ±5~10 cm 高 (パルスで直接波を分離) 高 (STS暗号化) 精密測位・スマートアクセス BLE Channel Sounding ±0.5 m 中 (位相測定で改善) 中 (RTT+位相で保護) スマートアクセス・IoT Wi-Fi RTT (FTM) ±1〜2 m 低〜中 低 屋内ナビ・フロア判定 BLE RSSI ±1〜5 m 低 (強度ベース) 低 近接検知・ビーコン BLE Channel Soundingなど他技術はコスト・消費電力面での利点もあるため、用途に応じた使い分けやUWBとのハイブリッド構成も増えています。 UWBの測距原理:ToF と AoA   ToF (Time of Flight:飛行時間) TWR (Two Way Ranging) では、InitiatorがパルスをResponderに送り、Responderが折り返すことで、Initiatorが電波の往復時間を計測し距離を算出します。電波は光速で伝わるため、わずかな時間誤差が距離誤差に直結します。広帯域であるほど時間分解能が上がり、距離精度が向上するのです。 また、複数デバイスを組み合わせたTDOA (Time Difference of Arrival) にも対応しており、広いエリアのリアルタイム測位も可能です。 AoA (Angle of Arrival:到達角度) 複数のアンテナで受信した信号の位相差(PDOA, Phase Difference of Arrival)から、デバイスが存在する角度を算出します。SR250は3つの受信ポートを持つため、水平方向と垂直方向を同時に算出する3シングルショット3D AoA が可能です。   UWBレーダーとは?   測距 (Ranging) は2台のUWBデバイスが通信し合うことで距離を測りますが、レーダーはまったく異なるアプローチをとります。送信したパルスが人や物体に当たって反射してくる信号を解析することで、相手がUWBデバイスを持っていなくても距離・方向・存在を検知できるのです。 UWBレーダーは人体のわずかな動きを捉えることができ、プライバシーを守りながら「その場に人がいるか」「動いているか」を感知できます。 レーダー処理はSR250にお任せ!オンチップ・レーダー処理   レーダーのアルゴリズムは複雑で、独自に構築するのは容易ではありません。SR250は、単一ターゲットの存在・距離・角度検知まではオンチップで処理できるよう設計されており、アルゴリズム開発無しでレーダー機能を使うことができます。もっと複雑なレーダー処理をしたい場合は、反射はデータをホストに送ることでAI/MLを使用した応用も可能です。 SR250が切り拓くアプリケーション   測距とレーダーを1チップに統合したSR250は、スマートロック・スマートスピーカーといった民生機器から、工場・倉庫でのAGV (無人搬送車) やフォークリフトと作業者の衝突防止といった産業用途まで、幅広い分野での活用が期待されています。 「位置を知る」「存在を知る」「動きを知る」─ この3つがカメラなしでできるとしたら、どんな機器が作れるでしょうか。ぜひ想像しながら連載を読み進めてください。 連載の予定   本連載は全4回を予定しています。 第1回(本記事) UWBの基礎とSR250の概要 第2回 SR250評価ボード (SR250UWBSHIELD) のセットアップ 第3回 UWB測距 (Ranging) を試してみる 第4回 UWBレーダー (Radar)を試してみる 次回は評価ボードの入手方法・ハードウェア・ソフトウェア環境の構築を解説します。UWBを動かす準備を一緒に整えましょう! 参考リンク Trimension SR250 製品ページ(日本語) SR250 評価ボード(TRIMENSION-SR250) UWB Radar Fundamentals (AN13989) UWB Convergence Radar ホワイトペーパー Introducing The Trimension SR250 トレーニング(英語・24分) ========================= 本投稿の「Comment」欄にコメントをいただいても、現在返信に対応しておりません。 お手数をおかけしますが、お問い合わせの際には「NXPへの技術質問 - 問い合わせ方法 (日本語ブログ)」をご参照ください。 (既に弊社NXP代理店、もしくはNXPとお付き合いのある方は、直接担当者へご質問いただいてもかまいません。) センチメートル精度の測距と、相手デバイス不要のUWBレーダーを1チップに統合したNXP Trimension® SR250が、2026年3月にマスマーケット向けにリリースされました。本記事では、UWBの基礎原理からSR250の特徴を解説します。 (読了:10分) Security 日本語ブログ
View full article
Getting Started with UWB Using NXP Trimension® SR250 - Part 1: UWB Basics and an Overview of the SR250 (Japanese Blog) Introduction   "Doors open with your smartphone still in your pocket," "Lights turn on automatically when you enter a room," "The moment you sit down on the sofa, the soundbar automatically adjusts the sound field to your position"—the NXP Trimension ® SR250 is a device that can make these experiences a reality. The SR250 is the world's first IC for IoT applications to integrate ultra-high-precision wireless ranging technology " UWB (Ultra-Wideband) " and " UWB radar " that can detect people and objects without an external device, all on a single chip with on-chip processing. This SR250, which holds so much potential, was finally released to the mass market in March 2026! The evaluation board SR250UWBSHIELD is available for purchase from NXP's e-commerce site . If you've been thinking, "That sounds interesting, but it might be difficult," now's your chance to give it a try. In this first installment, we'll cover everything from the basics of what UWB is to the features of the SR250. Read this article to expand your imagination, and then get your hands on an evaluation board and experience UWB together! Have you heard of UWB somewhere before?   If you're thinking, "Isn't UWB an old high-speed data transfer technology?", you're very perceptive! In the early 2000s, UWB attracted considerable attention as a high-speed wireless data transfer technology . The WiMedia Alliance worked to standardize it, but it ultimately failed to gain widespread adoption due to the rapid evolution of Wi-Fi and Bluetooth. However, in the late 2010s, UWB made a comeback in a completely different form. It was redefined as a precision distance measurement and positioning technology and standardized as IEEE 802.15.4z. Its inclusion in the iPhone 11 in 2019 brought it a surge in popularity. The fundamental characteristic of UWB—its wide bandwidth—remains unchanged. However, by using this characteristic not as "communication speed" but as "temporal resolution," entirely new applications have emerged. What is UWB? — Into the world of centimeters   UWB (Ultra-Wideband), as its name suggests, is a wireless technology that uses extremely wide bandwidth in terms of frequency, and conversely, very short pulse signals in terms of time. It has been standardized as the IEEE 802.15.4z standard and is currently rapidly gaining popularity in the field of short-range high-precision positioning. While Wi-Fi and Bluetooth have a positioning accuracy of ±1-2m, UWB can achieve centimeter-level accuracy of ±5-10cm. This technology can detect "here" rather than "somewhere." This combination of centimeter-level accuracy and high security enables smart car access and precise indoor positioning. In addition to Android smartphones and AirTag, it has also been announced that it will be integrated into Google Pixel Tag, and further widespread adoption is expected in the future. *Google Pixel Tag is scheduled for release in November 2026. Why is UWB so robust against multipath interference and secure? — A comparison with other wireless technologies   What is multipathing?   Radio waves don't just travel in a straight line like light; they also propagate by reflecting off walls, ceilings, furniture, and other objects. The receiver receives a mixture of radio waves that traveled in a straight line and those that have reflected from various points. This is called multipath. Indoors, in particular, there are many reflections, creating a multipath environment. RSSI (Radio Speed Indicator) based ranging methods like BLE and Wi-Fi estimate distance using the "strength of mixed radio waves," making them highly susceptible to reflected waves. Because UWB uses very short pulse signals (a few nanoseconds wide), it can temporally separate and distinguish signals that arrive directly from signals that are reflected and arrive later.   Why is UWB ranging secure? UWB uses an encrypted signal sequence called STS (Scrambled Timestamp Sequence). The STS is generated each time by an AES-128-based random number generator, producing a different value each time . The receiver calculates the same STS using a pre-shared key and verifies the legitimacy of the sender by comparing it with the received value. Because a different STS value is generated each time, attacks that involve retransmitting intercepted signals (replay attacks) or relaying/spoofing signals to misinterpret distance are impossible. Furthermore, in secure ranging, the session key used to generate the STS is managed in a secure environment and recalculated periodically. Even if the key information at a specific point in time is leaked, the scope of damage can be limited. As a result, UWB achieves stronger security than BLE or Wi-Fi-based ranging.   Comparison of distance measurement technologies   technology accuracy Multipath resistance security Main uses UWB ±5~10 cm High ( separates waves directly with pulses) High (STS encryption) Precision positioning and smart access BLE Channel Sounding ±0.5 m Medium (improved by phase measurement) Medium (Protected by RTT+ phase) Smart Access IoT Wi-Fi RTT (FTM) ±1 to 2 m low to medium low Indoor navigation and floor detection BLE RSSI ±1 to 5 m Low (intensity-based) low Proximity detection and beacons Other technologies, such as BLE Channel Sounding, offer advantages in terms of cost and power consumption, leading to an increase in their use depending on the application, as well as hybrid configurations with UWB. UWB ranging principle: ToF and AoA   ToF (Time of Flight) In TWR (Two-Way Ranging), the Initiator sends a pulse to the Responder, which then returns it. The Initiator measures the round-trip time of the radio waves and calculates the distance. Because radio waves travel at the speed of light, even a small time error directly translates to a distance error. The wider the bandwidth, the higher the time resolution and the better the distance accuracy. Furthermore, it supports TDOA (Time Difference of Arrival) by combining multiple devices, enabling real-time positioning over a wide area. AoA (Angle of Arrival) The angle at which a device is located is calculated from the phase difference of arrival (PDOA) of signals received by multiple antennas. Because the SR250 has three receiving ports, it can perform 3-single-shot 3D AoA , simultaneously calculating horizontal and vertical angles.   What is UWB radar?   While ranging measures distance through communication between two UWB devices, radar takes a completely different approach. By analyzing the signals reflected from pulses that hit people or objects, it can detect distance, direction, and presence even if the other party does not have a UWB device . UWB radar can detect even the slightest movement of the human body, allowing you to sense whether there is a person present and whether they are moving, while protecting privacy. Leave radar processing to the SR250! On-chip radar processing   Radar algorithms are complex and not easy to develop from scratch. The SR250 is designed to handle the detection of a single target's presence, distance, and angle on-chip , allowing you to use radar functionality without developing your own algorithms. For more complex radar processing, reflections can be sent to a host, enabling AI/ML applications. Applications pioneered by the SR250   The SR250, which integrates ranging and radar into a single chip, is expected to be used in a wide range of fields, from consumer devices such as smart locks and smart speakers to industrial applications such as collision prevention between AGVs (automated guided vehicles) and forklifts and workers in factories and warehouses. "Knowing location," "Knowing presence," and "Knowing movement"—what kind of devices could be created if these three things were possible without a camera? Please read the series while imagining these possibilities. Scheduled serialization   This series is planned to consist of four parts. Part 1 (This article) Basics of UWB and an overview of the SR250 2nd time Setting up the SR250 evaluation board (SR250UWBSHIELD) 3rd Let's try UWB ranging. 4th Try out UWB radar. Next time, we'll explain how to obtain an evaluation board and how to set up the hardware and software environment. Let's get ready to run UWB together! Reference links Trimension SR250 Product Page (Japanese) SR250 Evaluation Board (TRIMENSION-SR250) UWB Radar Fundamentals (AN13989) UWB Convergence Radar White Paper Introducing the Trimension SR250 Training (English, 24 minutes) ========================= We are currently unable to respond to comments left in the "Comment" section of this post. We apologize for the inconvenience, but please refer to " Technical Questions to NXP - How to Contact Us( Japanese Blog) " when making an inquiry. (If you are already an NXP distributor or have a relationship with NXP, you may ask your representative directly.) The NXP Trimension® SR250, which integrates centimeter-precision ranging and a UWB radar that does not require a separate device onto a single chip, was released for the mass market in March 2026. This article explains the basic principles of UWB and the features of the SR250. (Reading time: 10 minutes) Security Japanese Blog
View full article
使用 NXP Trimension® SR250 入门 UWB - 第一部分:UWB 基础知识和 SR250 概述(日语博客) 介绍   “智能手机还在口袋里时,门就会打开”、“当你进入房间时,灯会自动打开”、“当你坐在沙发上时,条形音箱会自动调整声场以适应你的位置”——NXP Trimension ® SR250是一款能够将这些体验变为现实的设备。 SR250 是世界上首款用于物联网应用的集成电路,它集成了超高精度无线测距技术“ UWB(超宽带) ”和“ UWB 雷达”,无需外部设备即可在单个芯片上通过片上处理检测人和物体。 这款极具潜力的 SR250 终于在 2026 年 3 月面向大众市场发布!评估板SR250UWBSHIELD可从NXP 的电子商务网站购买。 如果你一直在想,“这听起来很有趣,但可能很难”,那么现在就是你尝试的机会。 在本系列文章的第一部分,我们将涵盖从UWB基础知识到SR250特性的所有内容。阅读本文,拓展您的想象力,然后入手一块评估板,一起体验UWB的魅力吧! 你之前听说过UWB吗?   如果你在想,“UWB 不是一种老旧的高速数据传输技术吗?”,那你真是太有洞察力了! 21世纪初,超宽带(UWB)作为一种高速无线数据传输技术引起了广泛关注。WiMedia联盟致力于将其标准化,但由于Wi-Fi和蓝牙的快速发展,最终未能得到广泛应用。 然而,在2010年代后期,UWB以一种截然不同的形式卷土重来。它被重新定义为一种精密距离测量和定位技术,并被标准化为IEEE 802.15.4z标准。2019年,iPhone 11搭载了这项技术,使其人气飙升。 超宽带(UWB)的基本特性——宽带宽——依然不变。然而,通过不再将这一特性视为“通信速度”,而是将其视为“时间分辨率”,全新的应用场景应运而生。 什么是UWB?——走进厘米的世界   超宽带(UWB)顾名思义,是一种无线技术,它使用极宽的频率带宽,相应地,使用极短的脉冲信号。该技术已被标准化为IEEE 802.15.4z标准,目前在短距离高精度定位领域正迅速普及。 虽然 Wi-Fi 和蓝牙的定位精度为 ±1-2 米,但 UWB 可以达到厘米级精度,为 ±5-10 厘米。这项技术可以检测“这里”,而不是“某个地方”。 厘米级的精度和高安全性相结合,实现了智能汽车门禁和精准的室内定位。除了安卓智能手机和AirTag之外,该技术还将集成到谷歌Pixel Tag中,预计未来将得到更广泛的应用。 *谷歌Pixel Tag计划于2026年11月发布。 为什么UWB对多径干扰的抵抗力如此之强且安全性如此之高?——与其他无线技术的比较   什么是多路径?   无线电波的传播方式并非像光一样沿直线传播;它们还会通过墙壁、天花板、家具和其他物体的反射而传播。在接收端,接收到的无线电波既有“沿直线传播的无线电波”,也有“从不同位置反射的无线电波”。这种现象被称为多径效应。尤其是在室内,反射现象更为普遍,从而形成多径环境。 基于 RSSI(无线电速度指示器)的测距方法,如 BLE 和 Wi-Fi,利用“混合无线电波的强度”来估算距离,因此极易受到反射波的影响。 由于超宽带使用非常短的脉冲信号(几纳秒宽),因此它可以将直接到达的信号与反射后稍后到达的信号在时间上分离和区分。   为什么UWB测距是安全的? 超宽带 (UWB) 使用一种称为STS (加扰时间戳序列)的加密信号序列。STS 每次都由基于 AES-128 的随机数生成器生成,每次生成的值都不同。接收方使用预共享密钥计算相同的 STS,并通过将其与接收到的值进行比较来验证发送方的合法性。 由于每次都会生成不同的STS值,因此涉及重传截获信号(重放攻击)或中继/欺骗信号以错误解读距离的攻击都无法实施。此外,在安全测距中,用于生成STS的会话密钥在安全环境中进行管理并定期重新计算。即使在特定时间点密钥信息泄露,造成的损失范围也有限。因此,UWB测距比基于BLE或Wi-Fi的测距具有更高的安全性。   距离测量技术比较   技术 准确性 多路径电阻 安全 主要用途 超宽带 ±5~10 厘米 高(直接用脉冲分离波) 高(STS加密) 精准定位和智能访问 BLE通道探测 ±0.5 米 介质(通过相位测量改进) 介质(受 RTT+ 相保护) 智能接入物联网 Wi-Fi RTT(FTM) ±1 至 2 米 低至中等 低的 室内导航和楼层检测 BLE RSSI ±1 至 5 米 低(基于强度) 低的 近距离检测和信标 其他技术,如 BLE 通道探测,在成本和功耗方面具有优势,因此根据应用的不同,其使用量有所增加,还可以与 UWB 进行混合配置。 UWB测距原理:飞行时间(ToF)和迎角(AoA)   飞行时间 (ToF) 在双向测距(TWR)中,发起方向响应方发送脉冲信号,响应方随后返回该信号。发起方测量无线电波的往返时间并计算距离。由于无线电波以光速传播,即使是很小的时间误差也会直接转化为距离误差。带宽越宽,时间分辨率越高,距离精度也越高。 此外,它通过组合多个设备支持 TDOA(到达时间差),从而实现大范围的实时定位。 到达角 (AoA) 设备所在位置的角度是通过多个天线接收到的信号的到达相位差 (PDOA) 计算得出的。由于 SR250 具有三个接收端口,因此可以执行3 次单次拍摄的 3D 到达角 (AoA)计算,同时计算水平角和垂直角。   什么是超宽带雷达?   测距是通过两个超宽带(UWB)设备之间的通信来测量距离,而雷达则采用完全不同的方法。它通过分析照射到人或物体上的脉冲反射信号,即使对方没有超宽带设备,也能探测到距离、方向和目标是否存在。 UWB 雷达甚至可以探测到人体最轻微的动作,让您能够感知周围是否有人以及他们是否在移动,同时保护隐私。 把雷达处理交给SR250吧!片上雷达处理   雷达算法复杂,从零开始开发并非易事。SR250芯片旨在处理单个目标的存在、距离和角度检测,无需自行开发算法即可使用雷达功能。对于更复杂的雷达处理,反射信号可以发送到主机,从而支持人工智能/机器学习应用。 SR250 开创的应用   SR250 将测距和雷达功能集成到单个芯片中,预计将广泛应用于各个领域,从智能锁和智能音箱等消费电子产品到工厂和仓库中 AGV(自动导引车)与叉车和工人之间的碰撞预防等工业应用。 “感知位置”、“感知存在”和“感知移动”——如果无需摄像头就能实现这三件事,那么可以创造出什么样的设备?请在阅读本系列文章的同时,畅想这些可能性。 计划序列化   本系列计划分为四部分。 第一部分(本文) UWB基础知识及SR250概述 第二次 设置 SR250 评估板 (SR250UWBSHIELD) 第三 我们来试试超宽带测距。 第四 试试超宽带雷达。 下次,我们将讲解如何获取评估板以及如何搭建硬件和软件环境。让我们一起准备运行UWB吧! 参考链接 Trimension SR250 产品页面(日语) SR250 评估板 (TRIMENSION-SR250) 超宽带雷达基础知识(AN13989) 超宽带融合雷达白皮书 Trimension SR250 培训介绍(英语,24 分钟) ========================= 即使您在本文的“评论”栏留言,我们目前也无法回复。 给您带来不便,我们深感抱歉。请在询问时参阅“NXP技术问题-联系方式(日本博客)”。 (如果您已经是NXP的代理商或与其有合作关系,可以直接向负责人咨询。) NXP Trimension® SR250 将厘米级精度的测距和无需单独设备的超宽带雷达集成到单个芯片上,于 2026 年 3 月面向大众市场发布。本文将解释超宽带的基本原理和 SR250 的特性。 (阅读时间:10分钟) 安全 日本博客
View full article
i.mx8mp GPU 和 GTK4 应用程序:GUI/窗口呈现延迟和阻塞 Vivante /dev/galcore ioctl 在配备 Vivante GPU 的 i.MX8MP 上,GTK4 窗口启动延迟约为 10 秒。 使用默认的 GTK4 GL 渲染器时: gtk_window_present(window);​ 大约需要9-10 秒才能看到窗口。 证据(见附件)强烈表明,启动延迟并非由 GTK 应用程序代码引起。 延迟似乎与 GL 渲染路径中的 Vivante /dev/galcore ioctl 阻塞有关。软件渲染(GSK_RENDERER=cairo)可以避免这个问题。 我们正在寻找有关 i.MX8MP 搭载 Vivante GPU 堆栈时 GTK4/OpenGL 启动延迟的已知问题、调试方法、配置更改或修复方案的指导。 Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl 嗨@jim777 感谢您分享如此详细的信息。能否提供一个最小的、可复现的 GTK4 源代码示例?我需要对 NXP BSP 进行进一步测试。 此致, 志明 Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl 嗨志明, 感谢您的快速回复! 附件是一个小型但完整的源文件框架,供测试使用。 以及运行前设置的环境变量: #!/bin/sh export XDG_RUNTIME_DIR=/run/user/0 export WAYLAND_DISPLAY=wayland-1 export GDK_BACKEND=wayland export GSK_RENDERER=gl 来自 weston.ini 的相关内容: root@nitrogen8mp:~# cat /etc/xdg/weston/weston.ini [core] #gbm-format=argb8888 use-g2d=true repaint-window=16 idle-time=0 xwayland=true #enable-overlay-view=1 [shell] panel-position=none [libinput] touchscreen_calibrator=true #[output] #name=HDMI-A-1 #mode=1920x1080@60 #transform=rotate-90 #[output] #name=HDMI-A-2 #mode=off # WIDTHxHEIGHT Resolution size width and height in pixels # off Disables the output # preferred Uses the preferred mode # current Uses the current crt controller mode #transform=rotate-90 [screen-share] command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize #start-on-startup=true [input-method] path=/usr/libexec/ibus-wayland 在没有GPU支持的台式机上,gtk_window_present的运行时间需要几百毫秒(< 1秒);而在i.mx8mp设备上,则需要9970毫秒: root@nitrogen8mp:~# gtk4-test A: activate: before _present: 47333 ms B: activate: after _present: 57303 ms, takes: 9970 ms C: activate: after idele_add: 57303 ms D: startup_task_cb: 57315 ms ^C root@nitrogen8mp:~# 我尝试过 render: ngl,但会导致图像/控件/视频模糊;而Vulkan 会导致严重错误:加载器消息:vkCreateDevice:验证列表中的扩展失败;无法为表面“GdkWaylandToplevel”实现类型为“GskVulkanRenderer”的渲染器:找不到具有所需功能的 Vulkan 设备。 由于我们的应用程序需要 GPU 支持,而 Wayland/Weston 下推荐的渲染器仍然是 GL(UG10159 11.3.2.1 GL 渲染器),希望您能帮忙找到解决方案。 此致, Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl 嗨@Zhiming_Liu 除了已经分享的信息之外,还有什么我可以帮忙解决这个问题的吗? 如果有什么方法可以显著缩短启动时间,例如更改配置、设置环境变量、使用不同的版本,或者修复/修补 GPU 驱动程序,请告诉我。 谢谢, Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl 嗨@jim777 GPU团队正在调查此问题,这需要一些时间。有最新消息我会第一时间通知你。 此致, 志明 Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl 这是GPU团队的总结: “gdb debug 显示应用程序在 Vivante 用户空间着色器编译器优化引擎 ( libVSC.so ) 内部停滞。根据卡顿日志,在第一个 GTK 帧之前有很多着色器参与其中。当 GTK4 在实际运行中执行 glLinkProgram 时,它会将繁重且实时的客户端应用程序状态矩阵附加到管道,包括活动顶点属性指针映射到实时控件数据以及大量的嵌套统一缓冲区对象和内存块。摊位会很大。卡顿是由于vivante的旧着色器中间件造成的。表示法(维万特中间表示法)。 需要 VSI 将着色器从 VIR 优化为 NIR(新的中间表示)。看来我们将继续使用 6.4.11.p4 版本。我认为VSI不会愿意优化他们的着色器。 看来VSI无法在短时间内优化着色器。
View full article
QNX 7.1のPFEに関するPTP/IEEE 1588のサポートおよび設定ガイダンスS32G274A要請 こんにちは、専門家の皆さん。 カスタムS32G274AボードのPFEイーサネットインターフェースにIEEE 1588/PTPの時間同期を実装する計画です。 現在のソフトウェア構成は以下の通りです: - SoC:NXP S32G274A - ボード:お客様ボードS32G274A - オペレーティングシステム:QNX 7.1 - PFEドライバ:PFE-DRV_S32G_A53_QNX 1.9.0、io-pktバージョン - PFEファームウェア:PFE-FW_S32G 1.12.0 - テスト中のPFEインターフェース:PFE EMAC0およびPFE EMAC2 - PFE EMAC1は外部AQR113C PHYのファームウェアがまだプログラムされていないため、現在のテストには含まれていません。 PFEドライバーのソースコードを確認したところ、IEEE 1588に対応しており、以下のQNXドライバー固有のPTPコマンドが実装されていることがわかりました。 - PTP_GET_TIME - PTP_SET_TIME - PTP_GET_TX_TIMESTAMP - PTP_GET_RX_TIMESTAMP - PTP_SET_COMPENSATION - PTP_GET_COMPENSATION 現在のデフォルトのビルド構成では、この機能が無効になっています: PFE_CFG_IEEE1588_SUPPORT=0 PFE_CFG_IEEE1588_I_CLK_HZ=0 PFE_CFG_IEEE1588_EMAC0_O_CLK_HZ=0 PFE_CFG_IEEE1588_EMAC1_O_CLK_HZ=0 PFE_CFG_IEEE1588_EMAC2_O_CLK_HZ=0 当社のスタートコードはすでにSCMIを通じてPFE_TSクロックを有効にしていますが、PFEドライバーでIEEE 1588の入出力クロック周波数はまだ設定していません。 以下の質問についてアドバイスをいただけますか? 1.PFE EMAC0/EMAC1/EMAC2 on S32G274Aは、QNX 7.1のPFE-DRV 1.9.0およびPFE-FW 1.12.0でIEEE 1588ハードウェアの送信およびRXタイムスタンプを公式にサポートしていますか? 2. S32G274Aの期待されるSCMI PFE_TSクロック周波数は? 3. 以下のビルドパラメータに推奨される値は? PFE_CFG_IEEE1588_I_CLK_HZ PFE_CFG_IEEE1588_EMAC0_O_CLK_HZ PFE_CFG_IEEE1588_EMAC1_O_CLK_HZ PFE_CFG_IEEE1588_EMAC2_O_CLK_HZ 4. 3台のPFE EMACはすべて同じPTPハードウェアクロックを共有しているのか、それともそれぞれ独立したPTPシステムタイムカウンタを持っているのか? 5. このドライバがサポートしているPTPトランスポートモードは? - レイヤ2 PTP、EtherType 0x88F7 - UDP/IPv4 - UDP/IPv6 - ワンステップタイムスタンプ - 2段階タイムスタンプ - エンドツーエンド遅延メカニズム -ピアツーピア遅延メカニズム 6.PTPを有効にするには、追加のPFEファームウェア設定、ファームウェア機能、FCI設定、または起動初期化が必要ですか? 7. このPFEドライバーにはNXPやQNXが推奨するユーザー空間のPTPデーモンやサンプルアプリケーションはありますか?現在のドライバーはnetdrvr/ptp.hを通じてPTP機能を公開していますそしてLinuxスタイルの/dev/ptpX PHCデバイスではなく、SIOCGDRVSPEC/SIOCSDRVSPECです。 8. 既知のエラー、制限事項、または必要な初期化シーケンスはありますか? - PFEタイムスタンプクロックの初期化。 - HIFを介したTX/RXタイムスタンプの配信。 - タイムスタンプ補正; - 複数のPFE EMAC上でPTPを同時に運用できますか? もし可能であれば、QNXのPFE上でIEEE 1588の参照構成、サンプルアプリケーション、または検証手順S32G274A提供していただけますか? ごサポートありがとうございます。 BR、 ワイテワン Re: Request for PTP/IEEE 1588 Support and Configuration Guidance for S32G274A PFE on QNX 7.1 こんにちは、エキスパートさん。 詳細な情報を提供していただきありがとうございます。PFE-DRV 1.9.0およびPFE-FW 1.12.0で、PTPの時間および補償インターフェースがPFE0およびPFE2で正しく動作することを確認しました。 このNXP PFEサポートケースを終了する前に、S32G274Aに特化した3点を明確にしていただけますか? 1. 現在、有効になっているEMACには、PFE_CFG_IEEE1588_I_CLK_HZ = 200 MHzおよび50 MHzの出力クロックを使用しています。この構成は公式にサポートされ推奨されていますか? 2. 各PFE EMACは独立したIEEE 1588タイマーを持っているのか、それともEMACが他のEMACからタイムベースを共有するように設定できるのか? 3.必要な400 MHzのXBARクロックはどこで設定されており、それを検証するためにどのレジスタやランタイム表示が使えるのか? Re: Request for PTP/IEEE 1588 Support and Configuration Guidance for S32G274A PFE on QNX 7.1 こんにちは、ウェイトワン お問い合わせいただきありがとうございます。以下の情報がお役に立てば幸いです! 1.IEEE 1588タイムスタンプ機能(AAVB-2500)は、BETA_0.9.0で初めて導入されました。元の記録は[PFE_QNX_DRIVER] IEEE1588タイムスタンプのサポートを追加してください。(PFE-FW_S32G_1.12.0_ReleaseNotes.pdf を参照してください。)ソフトウェアの互換性は要件を満たしています。 Joey_z_1-1788772191193.pngJoey_z_1-1788772191193.png Joey_z_0-1788772167682.pngJoey_z_0-1788772167682.png 2. PFE_TSのクロックはGMAC_TS_CLKによって供給され、その範囲は5~200MHzです。最小値は、設定モードに基づいて決定する必要があります。 Joey_z_2-1788772339124.pngJoey_z_2-1788772339124.png Joey_z_3-1788772351660.pngJoey_z_3-1788772351660.png 3. GMAC0_TS_CLKの値に応じて設定する必要があります。以下の内容を参照してください。 Joey_z_4-1788772395380.pngJoey_z_4-1788772395380.png 4. はい、以下の図を参照できます。 Joey_z_5-1788772417926.pngJoey_z_5-1788772417926.png 5. コードおよびドキュメントの開始から、技術的にはPTPは一様にトランスポート層を識別し、(UDP/IPv4、UDP/IPv6、レイヤー2 PTP)、ツーステップおよびE2E/P2Pをサポートします。 6. 以下の点にご注意ください:タイムスタンプ機能が安定して動作するためにXBARクロックは400 MHzに設定されており、S32Gリファレンスマニュアルを参照してください。PFE_CFG_IEEE1588_EMACn_O_CLK_HZ値はPFE_CFG_IEEE1588_I_CLK_HZ未満でなければなりません。ロードプロセスを起動する前に、以下のことを確認する必要があります:関連するすべてのクロック、電源/リセット、PFEのピンがS32G RMに従って設定されており、ファームウェアのバイナリs32g_pfe_class.fwがターゲットボードに展開されています。 7. NXPはQNX PFEドライバー用の既成のPTPデーモンやサンプルアプリケーションを提供していないことをお詫びします。 8.添付書類の以下の内容をご参照ください。 PFE-DRV_S32G_QNX_1.9.0_ReleaseNotes.pdf/4既知の問題 PFE-DRV_S32G_QNX_1.9.0_UserManual.pdf/5.2制限事項 PFE-DRV_S32G_QNX_1.9.0_UserManual.pdf/5使用法 現在、専用の応用例は提供していません。以下の文書に記載されている関連情報を参照することをお勧めします。(PFE-DRV_S32G_A53_QNX_1.9.0\doc) BR ジョーイ Re: Request for PTP/IEEE 1588 Support and Configuration Guidance for S32G274A PFE on QNX 7.1 こんにちは、ウェイトワン ご返信よろしくお願いします。 1.入力クロックについては、S32G RM に従って 100MHz が推奨されています。PFE_CFG_IEEE1588_EMACn_O_CLK_HZ の値は PFE_CFG_IEEE1588_I_CLK_HZ より小さくなければなりません。 Joey_z_0-1788848856306.png 2.PFE EMACは、内部タイムスタンプモードと外部タイムスタンプモードの2つのタイムスタンプモードをサポートします。詳細は第6.4.1章「IEEE1588タイマーの設定と有効化」のPFE-DRV_S32G_QNX_1.9.0_UserManual.pdfを参照してください。 3. XBARクロックはATFで設定されます。ubootの「clk dump」の推薦を使って確認できます。 この情報があなたの助けになれば幸いです。 BR ジョーイ
View full article
i.mx8mp GPUとGTK4アプリ:GUI/ウィンドウ表示遅延とVivante /dev/galcore ioctlのブロック Vivante GPUを搭載したi.MX8MPでのGTK4ウィンドウ起動遅延(約10秒) デフォルトのGTK4 GLレンダラーを使用する場合: gtk_window_present(window);​ ウィンドウが表示されるまでには約9~10秒かかります。 証拠(添付ファイル参照)は、起動遅延がGTKアプリケーションコードによるものではないことを強く示唆しています。 この遅延は、GLレンダリングパス内のVivante /dev/galcore ioctlのブロッキングと関連しているようです。ソフトウェアレンダリング(GSK_RENDERER=カイロ)はこの問題を回避します。 Vivante GPUスタックを用いたi.MX8MPでのGTK4/OpenGL起動**レイテンシ**に関する既知の問題、デバッグ方法、設定変更、または修正方法について のガイダン スを探しています。 Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl こんにちは、 @jim777さん 詳細な情報を共有していただき、ありがとうございます。最小限で再現可能なGTK4のソースコード例を教えてもらえますか?NXP BSPでさらにテストを実施する必要があります。 よろしくお願いします、 志明 Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl こんにちは、志明さん 迅速なご対応ありがとうございます! テスト用の、骨組みは小さいながらも完全なソースファイルを添付しました。 実行前に設定された環境変数: #!/bin/sh export XDG_RUNTIME_DIR=/run/user/0 export WAYLAND_DISPLAY=wayland-1 export GDK_BACKEND=wayland export GSK_RENDERER=gl weston.ini からの関連情報: root@nitrogen8mp:~# cat /etc/xdg/weston/weston.ini [core] #gbm-format=argb8888 use-g2d=true repaint-window=16 idle-time=0 xwayland=true #enable-overlay-view=1 [shell] panel-position=none [libinput] touchscreen_calibrator=true #[output] #name=HDMI-A-1 #mode=1920x1080@60 #transform=rotate-90 #[output] #name=HDMI-A-2 #mode=off # WIDTHxHEIGHT Resolution size width and height in pixels # off Disables the output # preferred Uses the preferred mode # current Uses the current crt controller mode #transform=rotate-90 [screen-share] command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize #start-on-startup=true [input-method] path=/usr/libexec/ibus-wayland GPUサポートのないデスクトップでのgtk_window_presentの実行時間は数百ミリ秒(<1秒)かかります。そしてi.mx8MPデバイスでは9970ミリ秒かかります: root@nitrogen8mp:~# gtk4-test A: activate: before _present: 47333 ms B: activate: after _present: 57303 ms, takes: 9970 ms C: activate: after idele_add: 57303 ms D: startup_task_cb: 57315 ms ^C root@nitrogen8mp:~# render: nglを試しましたが、画像やウィジェット、動画のにじみが生じてしまい、 Vulkanが重大なエラーを引き起こす:ローダーメッセージ:vkCreateDevice:リスト内の拡張を検証できません;表面の「GdkWaylandToplevel」に対してタイプ「GskVulkanRenderer」のレンダラーを実装できません:必要な機能を持つVulkanデバイスを見つけられませんでした。 私たちのアプリにはGPUサポートが必要で、Wayland/Westonで推奨されているレンダラーはまだGL(UG10159 11.3.2.1 GLレンダラー)なので、解決策を見つける手助けをいただければ幸いです。 よろしくお願いします、 Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl こんにちは@Zhiming_Liu  すでに共有されたこと以外に、この問題を解決するために私にできることはありますか? もしうまくいく方法があれば、起動時間を大幅に短縮してください。例えば設定の変更、環境変数の設定、バージョンの違い、GPUドライバーの修正やパッチについて教えてください。 ありがとうございます。 Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl こんにちは@jim777  GPUチームがこの問題を調査中で、少し時間がかかります。最新情報が入り次第、お知らせします。 よろしくお願いします、 志明 Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl こちらはGPUチームによるまとめです: 「GDBデバッグによると、Vivanteユーザー空間のシェーダーコンパイラ最適化エンジン( libVSC.so )内でアプリケーションが停止します。停止ログに基づくと、最初のGTKフレームの前に多くのシェーダーが関与している。GTK4が実機でglLinkProgramを実行すると、パイプラインに重いクライアントアプリケーションの状態マトリックスを接続し、アクティブな頂点帰属、ライブウィジェットデータへのポインタマッピング、そして大量にネストされた一様バッファオブジェクトやメモリブロックを含みます。その屋台は巨大になるだろう。この問題の原因は、Vivanteの古いシェーダー中間ファイルにあります。表現(Vivante 中間表現) VSIはシェーダーをVIRからNIR(新しい中間表現)に最適化する必要がある。バージョン6.4.11.p4のままになりそうです。VSIはシェーダーの最適化に積極的ではないと思う。 VSIは短時間ではシェーダーを最適化しないようです
View full article
Request for PTP/IEEE 1588 Support and Configuration Guidance for S32G274A PFE on QNX 7.1 Hi Expert, We are planning to implement IEEE 1588/PTP time synchronization on the PFE Ethernet interfaces of our custom S32G274A board. Our current software configuration is: - SoC: NXP S32G274A - Board: Customer board based on S32G274A - Operating system: QNX 7.1 - PFE driver: PFE-DRV_S32G_A53_QNX 1.9.0, io-pkt version - PFE firmware: PFE-FW_S32G 1.12.0 - PFE interfaces under test: PFE EMAC0 and PFE EMAC2 - PFE EMAC1 is not included in the current test because the firmware of its external AQR113C PHY has not yet been programmed. We checked the PFE driver source code and found that it contains IEEE 1588 support and implements the following QNX driver-specific PTP commands: - PTP_GET_TIME - PTP_SET_TIME - PTP_GET_TX_TIMESTAMP - PTP_GET_RX_TIMESTAMP - PTP_SET_COMPENSATION - PTP_GET_COMPENSATION The current default build configuration disables this feature: PFE_CFG_IEEE1588_SUPPORT=0 PFE_CFG_IEEE1588_I_CLK_HZ=0 PFE_CFG_IEEE1588_EMAC0_O_CLK_HZ=0 PFE_CFG_IEEE1588_EMAC1_O_CLK_HZ=0 PFE_CFG_IEEE1588_EMAC2_O_CLK_HZ=0 Our startup code already enables the PFE_TS clock through SCMI, but we have not yet configured the IEEE 1588 input and output clock frequencies in the PFE driver. Could you please provide guidance on the following questions? 1. Does PFE EMAC0/EMAC1/EMAC2 on S32G274A officially support IEEE 1588 hardware TX and RX timestamping with PFE-DRV 1.9.0 and PFE-FW 1.12.0 on QNX 7.1? 2. What is the expected SCMI PFE_TS clock frequency on S32G274A? 3. What values are recommended for the following build parameters? PFE_CFG_IEEE1588_I_CLK_HZ PFE_CFG_IEEE1588_EMAC0_O_CLK_HZ PFE_CFG_IEEE1588_EMAC1_O_CLK_HZ PFE_CFG_IEEE1588_EMAC2_O_CLK_HZ 4. Do all three PFE EMACs share the same PTP hardware clock, or does each EMAC have an independent PTP system-time counter? 5. Which PTP transport modes are supported by this driver? - Layer-2 PTP, EtherType 0x88F7 - UDP/IPv4 - UDP/IPv6 - One-step timestamping - Two-step timestamping - End-to-End delay mechanism - Peer-to-Peer delay mechanism 6. Does enabling PTP require any additional PFE firmware configuration, firmware feature, FCI configuration, or startup initialization? 7. Is there an NXP- or QNX-recommended user-space PTP daemon or sample application for this PFE driver? The current driver exposes PTP functions through netdrvr/ptp.h and SIOCGDRVSPEC/SIOCSDRVSPEC, rather than a Linux-style /dev/ptpX PHC device. 8. Are there any known errata, limitations, or required initialization sequences related to: - PFE timestamp clock initialization; - TX/RX timestamp delivery through HIF; - timestamp compensation; - simultaneous PTP operation on multiple PFE EMACs? If available, could you also provide a reference configuration, sample application, or validation procedure for IEEE 1588 on S32G274A PFE under QNX? Thank you for your support. BR, Waitewang Re: Request for PTP/IEEE 1588 Support and Configuration Guidance for S32G274A PFE on QNX 7.1 Hello Expert Thank you for the detailed information. We have verified that the PTP time and compensation interfaces work correctly on PFE0 and PFE2 with PFE-DRV 1.9.0 and PFE-FW 1.12.0. Before closing this NXP PFE support case, could you please clarify three S32G274A-specific points? 1. We are currently using PFE_CFG_IEEE1588_I_CLK_HZ = 200 MHz and 50 MHz output clocks for the enabled EMACs. Is this configuration officially supported and recommended? 2. Does each PFE EMAC have an independent IEEE 1588 timer, or can an EMAC be configured to share the time base from another EMAC? 3. Where is the required 400 MHz XBAR clock configured, and which register or runtime indication can be used to verify it? Re: Request for PTP/IEEE 1588 Support and Configuration Guidance for S32G274A PFE on QNX 7.1 Hi,waitewang Thank you for contacting us. The following information is hoped to be helpful to you! 1. The IEEE 1588 timestamping feature (AAVB-2500) was first introduced in BETA_0.9.0. Note that the original record is [PFE_QNX_DRIVER] Add IEEE1588 timestamping support. (Refer to PFE-FW_S32G_1.12.0_ReleaseNotes.pdf.) Your software version compatibility meets the requirements. Joey_z_1-1788772191193.pngJoey_z_1-1788772191193.png Joey_z_0-1788772167682.pngJoey_z_0-1788772167682.png 2. The clock of PFE_TS is provided by GMAC_TS_CLK, with a range of 5-200 MHz. The minimum value needs to be determined based on the set mode. Joey_z_2-1788772339124.pngJoey_z_2-1788772339124.png Joey_z_3-1788772351660.pngJoey_z_3-1788772351660.png 3. It needs to be set according to the value of GMAC0_TS_CLK. Refer to the following content. Joey_z_4-1788772395380.pngJoey_z_4-1788772395380.png 4. Yes, you can refer to the following figure. Joey_z_5-1788772417926.pngJoey_z_5-1788772417926.png 5. From the code and documentation infromation, technically PTP uniformly identifies the transport layer, supporting (UDP/IPv4, UDP/IPv6, Layer-2 PTP), support theTwo-step and E2E/P2P. 6.Please note the following:The XBAR clock set to 400 MHz for timestamping feature to work reliably, refer to S32G Reference Manual.The PFE_CFG_IEEE1588_EMACn_O_CLK_HZ value must be less than PFE_CFG_IEEE1588_I_CLK_HZ. Before driving the loading process, it is necessary to confirm the following: All relevant clocks, power/reset, and pins of PFE have been configured according to the S32G RM, and the firmware binary s32g_pfe_class.fw has been deployed to the target board. 7. We apologize that NXP does not provide a ready-made PTP daemon or sample application for the QNX PFE driver.  8. Please refer to the following contents in the attached documents: PFE-DRV_S32G_QNX_1.9.0_ReleaseNotes.pdf/4 Known Issues PFE-DRV_S32G_QNX_1.9.0_UserManual.pdf/5.2 Limitations PFE-DRV_S32G_QNX_1.9.0_UserManual.pdf/5 Usage We do not currently provide dedicated application examples. It is recommended to refer to the relevant information in the following documents.(PFE-DRV_S32G_A53_QNX_1.9.0\doc) BR Joey Re: Request for PTP/IEEE 1588 Support and Configuration Guidance for S32G274A PFE on QNX 7.1 Hi,waitewang Thank you for your reply. 1.For the input clock, the 100Mhz was suggested according to the S32G RM.The PFE_CFG_IEEE1588_EMACn_O_CLK_HZ value must be less than PFE_CFG_IEEE1588_I_CLK_HZ. Joey_z_0-1788848856306.png 2.PFE EMACs support two timestamping modes, Internal Timestamp Mode and the External Timestamp Mode. The detail information you can refer to the PFE-DRV_S32G_QNX_1.9.0_UserManual.pdf of chapter 6.4.1 Configuring and enabling the IEEE1588 timers. 3.The XBAR clock will be configured in the ATF; you can try to use the commend of "clk dump" in uboot to check it. Hope this information can help you. BR Joey
View full article
i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl GTK4 Window Startup Delay (~10s) on i.MX8MP with Vivante GPU When using the default GTK4 GL renderer: gtk_window_present(window);​ takes approximately 9-10 seconds before the window becomes visible. The evidence (see attached file) strongly suggests that the startup delay is not caused by GTK application code. The delay appears correlated with a blocking Vivante /dev/galcore ioctl within the GL rendering path. Software rendering (GSK_RENDERER=cairo) avoids the issue. We are looking for guidance on known issues, debugging methods, configuration changes, or fixes for GTK4/OpenGL startup latency on i.MX8MP with the Vivante GPU stack. Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl Hi @jim777  Thank you for sharing such detailed information. Could you provide a minimal, reproducible GTK4 source code example? I need to conduct further testing in the NXP BSP. Best Regards, Zhiming Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl Hi Zhiming, Thanks for your quick response! Attached is a small skeleton but complete source file to test. and the environment variables set before running: #!/bin/sh export XDG_RUNTIME_DIR=/run/user/0 export WAYLAND_DISPLAY=wayland-1 export GDK_BACKEND=wayland export GSK_RENDERER=gl  the relevant from weston.ini: root@nitrogen8mp:~# cat /etc/xdg/weston/weston.ini [core] #gbm-format=argb8888 use-g2d=true repaint-window=16 idle-time=0 xwayland=true #enable-overlay-view=1 [shell] panel-position=none [libinput] touchscreen_calibrator=true #[output] #name=HDMI-A-1 #mode=1920x1080@60 #transform=rotate-90 #[output] #name=HDMI-A-2 #mode=off # WIDTHxHEIGHT Resolution size width and height in pixels # off Disables the output # preferred Uses the preferred mode # current Uses the current crt controller mode #transform=rotate-90 [screen-share] command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize #start-on-startup=true [input-method] path=/usr/libexec/ibus-wayland the running time for the gtk_window_present on a desktop w/o GPU support takes some hundreds msec (< 1sec); and on the i.mx8mp device takes 9970 ms : root@nitrogen8mp:~# gtk4-test A: activate: before _present: 47333 ms B: activate: after _present: 57303 ms, takes: 9970 ms C: activate: after idele_add: 57303 ms D: startup_task_cb: 57315 ms ^C root@nitrogen8mp:~# I have tried render: ngl, which leads to smear image/widgetrs/video, and Vulkan leads to critical errors: Loader Message: vkCreateDevice: Failed to validate extensions in list; Failed to realize renderer of type ‘GskVulkanRenderer’ for surface ‘GdkWaylandToplevel’: Could not find a Vulkan device with the required features. Since out app need GPU support, and the recommended renderer under wayland/weston is still gl (UG10159  11.3.2.1 GL renderer)   , I hope you can help to find a solution. Best regards, Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl Hi @Zhiming_Liu  Besides what shared already, is there anything I can help to resolve the issue? If there is any way to make it work - significantly reduce the startup time, such as configuration changes, env variable settings, different versions, or fixes/patches to the GPU driver, please let me know. Thanks, Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl Hi @jim777  The GPU team is checking this issue, this will take a little while. I'll let you know as soon as there's an update. Best Regards, Zhiming Re: i.mx8mp GPU and GTK4 app: GUI/window present delay and blocking Vivante /dev/galcore ioctl this is summary from GPU team: "gdb debug shows that application stalls at inside the Vivante user-space shader compiler optimization engine ( libVSC.so ). Based on the stall log, there are lots of shader involved before first GTK frame. When GTK4 executes glLinkProgram in real lit, it will attach heavy and live client application state matrices to the pipeline including active vertex attributs pointer mapping to live widget data and Massive, nested uniform buffer objects and memory blocks. The stall will be huge. The stall is due to vivante's old shader intermediate. representation(Vivante Intermediate Representation).                                                                   Need VSI optimize shader from VIR to NIR(new intermediate representation). It seems we will stay at 6.4.11.p4 version.  I don't think VSI will be willing to optimize their shader." it seems that VSI wouldn't optimize shader within in short time
View full article
关于 QNX 7.1 上 S32G274A PFE 的 PTP/IEEE 1588 支持和配置指南的请求 专家您好! 我们计划在我们定制的 S32G274A 板的 PFE 以太网接口上实现 IEEE 1588/PTP 时间同步。 我们目前的软件配置如下: - SoC:NXP S32G274A - 电路板:基于 S32G274A 的客户电路板 操作系统:QNX 7.1 - PFE驱动程序:PFE-DRV_S32G_A53_QNX 1.9.0,io-pkt版本 - PFE固件:PFE-FW_S32G 1.12.0 - 正在测试的 PFE 接口:PFE EMAC0 和 PFE EMAC2 - 由于 PFE EMAC1 的外部 AQR113C PHY 的固件尚未编程,因此当前测试中未包含 PFE EMAC1。 我们检查了 PFE 驱动程序源代码,发现它包含 IEEE 1588 支持,并实现了以下 QNX 驱动程序特定的 PTP 命令: - PTP_GET_TIME - PTP_SET_TIME - PTP_GET_TX_TIMESTAMP - PTP_GET_RX_TIMESTAMP - PTP_SET_COMPENSATION - PTP_GET_COMPENSATION 当前默认版本配置禁用了此功能: PFE_CFG_IEEE1588_SUPPORT=0 PFE_CFG_IEEE1588_I_CLK_HZ=0 PFE_CFG_IEEE1588_EMAC0_O_CLK_HZ=0 PFE_CFG_IEEE1588_EMAC1_O_CLK_HZ=0 PFE_CFG_IEEE1588_EMAC2_O_CLK_HZ=0 我们的启动代码已经通过 SCMI 启用了 PFE_TS 时钟,但我们还没有在 PFE 驱动程序中配置 IEEE 1588 输入和输出时钟频率。 请问您能否就以下问题提供指导? 1.在 QNX 7.1 上使用 PFE-DRV 1.9.0 和 PFE-FW 1.12.0 时,S32G274A 上的 PFE EMAC0/EMAC1/EMAC2 是否正式支持 IEEE 1588 硬件 TX 和 RX 时间戳? 2. S32G274A 的预期 SCMI PFE_TS 时钟频率是多少? 3. 以下构建参数建议取哪些值? PFE_CFG_IEEE1588_I_CLK_HZ PFE_CFG_IEEE1588_EMAC0_O_CLK_HZ PFE_CFG_IEEE1588_EMAC1_O_CLK_HZ PFE_CFG_IEEE1588_EMAC2_O_CLK_HZ 4. 这三个 PFE EMAC 是否共享同一个 PTP 硬件时钟,还是每个 EMAC 都有一个独立的 PTP 系统时间计数器? 5. 此驱动程序支持哪些 PTP 传输模式? - 二层点对点传输协议 (PTP),以太网类型 0x88F7 - UDP/IPv4 - UDP/IPv6 一步式时间戳 - 两步时间戳 端到端延迟机制 - 点对点延迟机制 6.启用 PTP 是否需要任何额外的 PFE 固件配置、固件功能、FCI 配置或启动初始化? 7. NXP 或 QNX 是否有推荐的用户空间 PTP 守护程序或适用于此 PFE 驱动程序的示例应用程序?当前驱动程序通过 netdrvr/ptp.h 公开 PTP 功能。并且是 SIOCGDRVSPEC/SIOCSDRVSPEC,而不是 Linux 风格的 /dev/ptpX PHC 设备。 8. 是否存在与以下方面相关的已知勘误、限制或所需的初始化顺序: - PFE 时间戳时钟初始化; - 通过 HIF 进行 TX/RX 时间戳交付; - 时间戳补偿; - 在多个 PFE EMAC 上同时进行 PTP 操作? 如果可以的话,能否提供 QNX 系统下 S32G274A PFE 芯片上符合 IEEE 1588 标准的参考配置、示例应用或验证程序? 感谢您的支持。 BR, 怀特旺 Re: Request for PTP/IEEE 1588 Support and Configuration Guidance for S32G274A PFE on QNX 7.1 您好,专家 感谢您提供如此详细的信息。我们已经验证了 PFE0 和 PFE2 上的 PTP 时间和补偿接口在 PFE-DRV 1.9.0 和 PFE-FW 1.12.0 下能够正常工作。 在关闭此 NXP PFE 支持案例之前,能否请您澄清以下三个与 S32G274A 相关的具体问题? 1. 我们目前对启用的 EMAC 使用 PFE_CFG_IEEE1588_I_CLK_HZ = 200 MHz 和 50 MHz 输出时钟。这种配置是否得到官方支持和推荐? 2. 每个 PFE EMAC 是否有独立的 IEEE 1588 定时器,还是可以将一个 EMAC 配置为与另一个 EMAC 共享时间基准? 3.所需的 400 MHz XBAR 时钟配置在哪里?可以使用哪个寄存器或运行时指示来验证它? Re: Request for PTP/IEEE 1588 Support and Configuration Guidance for S32G274A PFE on QNX 7.1 嗨,韦特旺 感谢您与我们联系。希望以下信息对您有所帮助! 1.IEEE 1588 时间戳功能(AAVB-2500)首次在 BETA_0.9.0 中引入。请注意,原始记录为 [PFE_QNX_DRIVER] 添加 IEEE1588 时间戳支持。(请参阅 PFE-FW_S32G_1.12.0_ReleaseNotes.pdf。)您的软件版本符合兼容性要求。 Joey_z_1-1788772191193.pngJoey_z_1-1788772191193.png Joey_z_0-1788772167682.pngJoey_z_0-1788772167682.png 2. PFE_TS 的时钟由 GMAC_TS_CLK 提供,范围为 5-200 MHz。最小值需要根据设定的模式来确定。 Joey_z_2-1788772339124.pngJoey_z_2-1788772339124.png Joey_z_3-1788772351660.pngJoey_z_3-1788772351660.png 3. 需要根据 GMAC0_TS_CLK 的值进行设置。请参考以下内容。 Joey_z_4-1788772395380.pngJoey_z_4-1788772395380.png 4. 是的,您可以参考下图。 Joey_z_5-1788772417926.pngJoey_z_5-1788772417926.png 5. 从代码和文档信息来看,PTP 在技术上统一标识传输层,支持(UDP/IPv4、UDP/IPv6、第 2 层 PTP),支持两步和 E2E/P2P。 6. 请注意以下事项:为确保时间戳功能可靠运行,XBAR 时钟频率需设置为 400 MHz,具体请参阅 S32G 参考手册。PFE_CFG_IEEE1588_EMACn_O_CLK_HZ 的值必须小于 PFE_CFG_IEEE1588_I_CLK_HZ。在执行加载过程之前,必须确认以下事项:所有相关的时钟、电源/复位以及 PFE 引脚均已按照 S32G 参考手册进行配置,并且固件二进制文件 s32g_pfe_class.fw 已部署到目标板。 7. 我们很抱歉,恩智浦半导体没有为QNX PFE驱动程序提供现成的PTP守护程序或示例应用程序。 8. 请参阅附件中的以下内容: PFE-DRV_S32G_QNX_1.9.0_发行说明.pdf/4已知问题 PFE-DRV_S32G_QNX_1.9.0_UserManual.pdf/5.2局限性 PFE-DRV_S32G_QNX_1.9.0_UserManual.pdf/5用法 我们目前不提供专用的应用示例。建议参考以下文档中的相关信息。(PFE-DRV_S32G_A53_QNX_1.9.0\doc) BR 乔伊 Re: Request for PTP/IEEE 1588 Support and Configuration Guidance for S32G274A PFE on QNX 7.1 嗨,维特旺 感谢您的回复。 1.根据 S32G RM,建议输入时钟为 100MHz。PFE_CFG_IEEE1588_EMACn_O_CLK_HZ 值必须小于 PFE_CFG_IEEE1588_I_CLK_HZ。 Joey_z_0-1788848856306.png 2.PFE EMAC 支持两种时间戳模式,内部时间戳模式和外部时间戳模式。详细信息请参阅 PFE-DRV_S32G_QNX_1.9.0_UserManual.pdf 的第 6.4.1 章“配置和启用 IEEE1588 定时器”。 3. XBAR时钟将在 ATF 中进行配置;您可以使用 uboot 中的“clk dump”命令来检查它。 希望这些信息对您有所帮助。 BR 乔伊
View full article
i.MX95 Triple display Linux Patch i.MX95 Triple Display Patches for LF-6.6.52-2.2.0 BSP. iMX95 19x19 EVK. qiang_limpu_se_0-1739859470230.png   Patches files: 0001-iMX95-EVK-IT6263-LVDS-to-HDMI-bridge-chip-combine-it.patch Combine IT6263 with simple panel driver, no EDID is needed, 720P and 1080P display mode had been added as two examples.   0002-IT6263-Always-reported-connected-for-force-output.patch Let IT6263 always report cable connected to force output HDMI signals.   0003-iMX95-EVK-add-LVDS-clone-mode-based-on-IT6263.patch LVDS clone mode is supported on two LVDS ports, they output same content and same timing from one DPU display engine (1920*1080@60fps).   0004-iMX95-EVK-add-dual-LVDS-interleaver-mode-based-on-IT.patch LVDS interleave mode is supported on two LVDS ports, they output different content and same timing from one DPU display engine (3840*1080@60fps).   0005-iMX95-EVK-add-triple-display-support.patch Triple display is supported, 1 MIPI DSI + 2 LVDS.  imx95-19x19-evk-triple-display-lvds-clone.dtb: the two LVDS is in clone mode. imx95-19x19-evk-triple-display-lvds-interleaver.dtb: the two LVDS is in interleave mode.   For 1 MIPI DSI + 2 LVDS display clone mode: qiang_limpu_se_0-1739858854733.png For 1 MIPI DSI + 2 LVDS Interleave mode: qiang_limpu_se_2-1739859096402.png Know issues:  Due to bridge numbers (3) and DPU engine/Pixel link/Pixel Interleaver number (2) is not aligned, during kernel boot up, there will be followed link error log, but there is no real function impact.   [    3.178741] imx95-ldb 4b0c0000.syscon:ldb@4: Failed to create device link (0x180) with 4b010000.syscon:bridge@8 ... [    4.209299] imx95-pixel-interleaver 4b0d0000.bridge: Failed to create device link (0x180) with 4b400000.display-controller [    4.220355] imx95-pixel-interleaver 4b0d0000.bridge: Failed to create device link (0x180) with 4b400000.display-controller ...     2025-8-19 update: Add the patch for L6.12.20_2.0.0 BSP. lf-6.12.20-2.0.0_triple_display_patches.zip   2026-9-7 update: Add patch for L6.18.37_2.1.0 BSP based on FRDM-IMX95.   BL: Auto BL: non-Auto
View full article
ブートローダーにはfs26インストールパッケージが必要です。 現在、S32K344をベースとしたブートローダープロジェクトの移植と開発にunified_bootloader_demo_v2.1を使用しています。RTDはバージョン2.0で、コントローラーにはFS26チップを使用しています。SBCドライバパッケージは少なくともRTD 3.0と互換性がありますが、RTD 2.0と互換性のあるものを提供していただけませんか?SBCパッケージですか、それとも手書きの実装コードですか?RTD 3.0以降に対応したブートローダープロジェクトを提供していただけるとさらに助かります。 どうもありがとうございます! 回复: bootloader需要fs26安装包 こんにちは。現在ブートローダーv2.1を修正しているのですが、ECCチェックサムの4バイトにエラーがあると表示されます。この関数は... Boot_PowerONClearAllFlag を変更する必要があります。8バイトのチェックを直接実行したところ、起動関数内の ExchangeInfo 領域のみが初期化されていないことがわかりました。この変更は許容範囲内でしょうか? /*電源投入時に、ECC用のRAM内のすべてのフラグをクリアします。*/ void Boot_PowerONClearAllFlag(void) ヤージュ uint16 infoCrc = 0u; uint8 インデックス = 0u; /* ECC用に8バイトでRAMをクリア */ for(index = 0u; index < (gs_stBootInfo.infoDataLen >> 3u); index++) ヤージュ *((uint64 *)gs_stBootInfo.infoStartAddr+ インデックス) = 0u; } infoCrc = Boot_CalculateInfoCRC(); SetInforCRC(infoCrc); } 回复: bootloader需要fs26安装包 こんにちは。画像1で、RAM初期化に関してstartup_cm7.s起動ファイルを変更する必要があります。変更を最小限に抑えるため、ブートローダーv2.1の`extern void Boot_PowerONClearAllFlag ( void );`だけを変更すれば良いでしょうか? 回复: bootloader需要fs26安装包 こんにちは コミュニティから提供された統合ブートローダーのデモは、より新しいS32K3 RTDバージョンの例を含めず「現状のまま」提供されており、ご迷惑をおかけすることを深くお詫び申し上げます。 FS26 SBC Autosar 4.4 バージョン 1.0.0は、 S32K3 RTD 2.0.0で使用するように設計されています。既に社内チームにこの旧バージョンのドライバをリクエスト済みです。お客様のアカウントにこのバージョンのソフトウェアのダウンロード権限が追加されるまでお待ちください。 ちなみに、サンプルコードに注意すべきエラーがあります。S32K3の共通問題チェックリスト、特にセクション3.4.3では、RAMのECC初期化には8バイトの書き込みが必要であると記載されています。 ECC初期化中にRAM(特にスタンバイRAM)が8バイト形式で書き込まれているかどうかを確認してください。 例えば、*(uint64 *)0x20400000 = 0; 規定を遵守しない場合、ECCエラーが発生する可能性があります。 NXPのブートローダーサンプルプロジェクトは、4バイトのゼロフィルECC初期化方式を使用しています。 *(uint32 *)0x20400000 = 0; それは間違いです。その記述は参照しないでください。 S32K3におけるブートローダーとアプリケーション間のデータ共有に関するセクションでも、これについて議論されています。 よろしくお願いします、 ロビン 回复: bootloader需要fs26安装包 Boot_PowerONClearAllFlag() の書き込みを 4 バイトから 8 バイト/64 ビットに変更することが、S32K3 の RAM ECC 初期化の問題を解決する鍵となります。あなたの変更はうまくいったようです。 ExchangeInfoに関連する問題については、s32k312「リセット処理中に SRAM 領域のデータはリセットされませんか?」の議論を参照してください。 1.0 0 FS26 SBC Autosar 4.4 バージョン 1.0.0は既にアカウントに追加されているはずです。
View full article
iMX8M Plus CCコントローラ こんにちは、 iMX8M plusプロセッサをベースにしたカスタムSOMを開発し、専用キャリアボードを搭載しています。この要件では、IDピンでサポートされたUSB1 OTGが必要です。IDピンはGPIO1_IO4から取得しました。 基板スペースの制約とIDピンの要件から、設計には HD3SS3220IRNH - TI(CCコントローラと差分多行 )を使用する予定です。 i.mx8m plusがOTGとしてHD3SS3220IRNHをサポートしているか確認してください。特にフラッシュ目的で、このコントローラーはサポートされているのでしょうか? Re: iMX8M Plus CC Controller こんにちは@Zhiming_Liu  IDピンがサポートされている他のテスト済みCCコントローラをご存知いただけますか? Re: iMX8M Plus CC Controller こんにちは@govind18  i.MX 8M Plusは、TI HD3SS3220と連携してデュアルロールUSBタイプCポートを実装するようシステム設計で設定可能です。ただし、このデバイスはNXPのEVKによって公式に検証またはサポートされているType-Cコントローラではありません。GPIO1_IO4はUboot/LinuxでUSB IDとして使用でき、UUUプログラミングには影響しません。HD3SS3220は、電源投入時にデフォルトでUFP/Sinkに設定することをお勧めします。 よろしくお願いします、 志明 Re: iMX8M Plus CC Controller こんにちは EVKボードでは、i.MX8MPがCCコントローラーとして PTN5110NHQZを使用しています。EVKの設計についてはこちらを参照してください。 Zhiming_Liu_0-1789018946469.pngZhiming_Liu_0-1789018946469.png https://www.nxp.com/design/design-center/development-boards-and-designs/8MPLUSLPD4-EVK よろしくお願いします、 志明 Re: iMX8M Plus CC Controller こんにちは@Zhiming_Liu CCコントローラーをおすすめしてもらえますか?
View full article
I want to know the CCO of MC34PF3000A7E The factory label only shows it was assemblied in PH, but I don't the Chip Country of Original. Could you tell me how I can find out it through label information? Thanks a lot
View full article
我想知道MC34PF3000A7E的CCO值。 工厂标签只显示它是在菲律宾组装的,但我不知道芯片的原始产地。 请问如何通过标签信息找到它?多谢
View full article