Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
LPI2Cグリッチフィルタ幅の不一致 こんにちは、 私は最新のリリースされたSDK(バージョン26.09)のMCXN947を使っています。 MCUxpressoでLPI2Cペリフェラルを設定していたとき、lpi2c_master_config_tとlpi2c_slave_config_tがグリッチフィルターの長さを格納するために異なるデータ型の幅を持っていることに気づきました。 つまり、スレーブ設定で使っていた長さが、同じペリフェラルのマスター設定で切り詰められていたのです。 fsl_lpi2c.h typedef struct _lpi2c_master_config { ... uint8_t sdaGlitchFilterWidth_ns; /*!< Width in nanoseconds of glitch filter on SDA pin. Set to 0 to disable. */ uint8_t sclGlitchFilterWidth_ns; /*!< Width in nanoseconds of glitch filter on SCL pin. Set to 0 to disable. */ ... } lpi2c_master_config_t; ... typedef struct _lpi2c_slave_config { ... uint32_t sdaGlitchFilterWidth_ns; /*!< Width in nanoseconds of the digital filter on the SDA signal. Set to 0 to disable. */ uint32_t sclGlitchFilterWidth_ns; /*!< Width in nanoseconds of the digital filter on the SCL signal. Set to 0 to disable. */ ... } lpi2c_slave_config_t; MCFGR2。FILDSDAおよびMCFGR2。これらの値から引き出すレジスタであるFILTSDLは、リファレンスマニュアルでは固定4ビットのようです。 私のリファレンス・マニュアルはMCXNX4XRM Rev。2025-03-05 6日なので、少し古いかもしれません。新しいリリースを見つけるのに苦労していました。もし新しいリリースがあれば、ぜひ教えていただきたいです。 fsl_lpi2c.cc void LPI2C_MasterInit(...) { ... cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sdaGlitchFilterWidth_ns, 0U, (LPI2C_MCFGR2_FILTSDA_MASK >> LPI2C_MCFGR2_FILTSDA_SHIFT), 0U); ... cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sclGlitchFilterWidth_ns, 0U, (LPI2C_MCFGR2_FILTSCL_MASK >> LPI2C_MCFGR2_FILTSCL_SHIFT), 0U); ... } マスターとスレーブの設定にこのような相違があるのはなぜでしょうか? お時間をいただきありがとうございました。 JC 通信・制御(I3C |I2C |SPI |FlexCAN |イーサネット |FlexIO) Re: LPI2C glitch filter width discrepancy 訂正します。スレーブコードはSCFGR2.FILTSDAとSCFGR2.FILTSCLを更新します。 ただし、コード上では、MCFGR2とSCFGR2のマスクとオフセットは同じように見えます。 #define LPI2C_MCFGR2_FILTSCL_MASK (0xF0000U) #define LPI2C_MCFGR2_FILTSCL_SHIFT (16U) /*! FILTSCL - グリッチフィルターSCL */ #define LPI2C_MCFGR2_FILTSCL(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_MCFGR2_FILTSCL_SHIFT)) & LPI2C_MCFGR2_FILTSCL_MASK) #define LPI2C_SCFGR2_FILTSCL_MASK (0xF0000U) #define LPI2C_SCFGR2_FILTSCL_SHIFT (16U) /*! FILTSCL - グリッチフィルターSCL */ #define LPI2C_SCFGR2_FILTSCL(x) (((uint32_t)(((uint32_t)(x)) << LPI2C_SCFGR2_FILTSCL_SHIFT)) & LPI2C_SCFGR2_FILTSCL_MASK) 回复: LPI2C glitch filter width discrepancy こんにちは、 @jcallonさん ご報告ありがとうございます。LPI2Cレジスタの定義とドライバ実装を確認したところ、これはSDKsのドライバの問題のようです。 FILTSDAおよびFILTSCLフィールドはコントローラとターゲットの両方で4ビット幅で、LPI2C_GetCyclesForWidth()はすでにuint32_tナノ秒の値を受け入れ、その結果得られるサイクルカウントをサポートレジスタの範囲内に制限しています。したがって、lpi2c_master_config_t でグリッチフィルタ幅に uint8_t を使用すると、入力が不必要に 255 ns に制限されますが、lpi2c_slave_config_t では uint32_t を使用します。 この不整合はSDKチームに報告し、確認と訂正を依頼します。ご指摘いただきありがとうございます。 BR ハリー
View full article
外围设备 DMA TCD“开始”字段 S32Z2 参考手册第 5 版第 1399 页第 1 点规定: “1.用户向TCDn_CSR[START]字段写入请求通道服务。” 同一文档第 1354 页的 TCD CSR 内存映射中,没有显示名为“START”的 CSR 的任何字段。TCDn_CSR 的哪一位是起始位?我正在尝试从SW发起手动转账。 Re: Peripheral DMA TCD "START" FIELD 嗨,罗伯特, 谢谢你指出这一点。 寄存器映射表标识了 TCDn_CSR 寄存器及其偏移量,但没有列出各个位字段。有关字段定义,请参阅同一 S32Z2 参考手册第 1383-1385 页的第 45.3.2.18 节“TCD 控制和状态 (TCD0_CSR - TCD31_CSR)”。 本节表明 START 字段是 TCDn_CSR 的第 0 位,即 TCDn_CSR[0] 。 我希望这能澄清登记册地图和详细登记册描述之间的明显区别。 此致, 阿尔多。 Re: Peripheral DMA TCD "START" FIELD 啊,明白了。谢谢你的解释。
View full article
芯片 我谨代表位于哥斯达黎加的 CR Soluciones GLN S.A. 公司致函。我们是数字签名卡读卡器的代理商——具体来说是 Rocketek CR317、CR336A 和 CR336C 型号——我想知道这些读卡器是否与 NXP JCOP4 芯片兼容。 Re: CHIP 你好@Lilliam 希望你一切都好。 JCOP 4 是一个支持 ISO 7816-3 T=0、T=1 和 ISO 14443(最高 848kbps)的操作系统。 不过,与第三方读卡器的兼容性仍需向制造商确认。请您联系阅读器制造商以获取更多信息? 问候, 爱德华多。 Re: CHIP 您好, 我很抱歉。遗憾的是,我无法确认与特定第三方读卡器的兼容性,读卡器制造商必须确认其产品是否已使用运行 JCOP 4 的安全智能卡进行测试和验证。 给您带来的不便,敬请谅解。 问候, 爱德华多。
View full article
RT-DETR cannot fully convert to Ara240 .dvm on AraSDK 2.1.1 — unsupported ops + hybrid workaround Hello NXP community, I am converting RT-DETR object detectors for Ara240 DNPU on FRDM i.MX95, targeting AraSDK / runtime 2.1.1 only (not 3.0). I want to share findings and ask whether there is a recommended / supported path for full .dvm conversion of DETR-style models with multi-scale deformable attention. Environment ItemValue Board FRDM i.MX95 + Ara240 Runtime imx-nxp-ara2 2.1.1 (must match compiler) Compiler AraSDK 2.1.1 (ara-sdk-cnn:2.1.1, dvrun) Models tried Ultralytics rtdetr-l / rtdetr-x (HGNetv2); also reviewed HF PekingU/rtdetr_r50vd (ResNet-50-VD) ONNX export Ultralytics RTDETR.export(format="onnx", imgsz=640, batch=1, dynamic=False, opset=17) → FP32 static ONNX Quantization Done inside AraSDK (analyzer + calib images) → INT8 .dvm (not Ultralytics INT8 ONNX) Goal Full end-to-end conversion: FP32 ONNX → dvconvert → dryrun estimate → quantize → estimate → emit → .dvm that loads on runtime 2.1.1 and runs entirely on the Ara240 DNPU. Observation vs NXP HuggingFace Ara240 models Published Ara240 models such as Qwen2.5-VL / Qwen2.5-Coder convert successfully even though they are much larger. Those graphs are dominated by static MatMul / Norm / Softmax stacks and appear first-party ported. RT-DETR fails not because of size (~33–43M params), but because of operator coverage: the detection decoder uses multi-scale deformable attention and dynamic query selection. Unsupported / problematic layers (same class on Ultralytics and HF RT-DETR) PatternWhereEffect on AraSDK 2.1.1 GridSample / F.grid_sample Decoder MS deformable attention (n_points=4, 3 levels, 6 layers) Not a DNPU op; ONNX export produces many GridSample nodes (18 on Ultralytics rtdetr-l) TopK + gather / mask ops Uncertainty-minimal query selection (num_queries=300) Data-dependent indexing; converter falls back or schedule/emit fails AIFI self-attention Hybrid encoder Schedules as BDOT; estimator can crash (total_wgs: 0) Opset-17 ReduceSum (axes as input) Decoder attention path Converter rename_ReduceSum IndexError → DV_ATen (CPU) Identity / depth broadcasts e.g. Expand for GatherElements mask IR serialize abort (DVEEIR Broadcast layer is not needed / depth-dim broadcast) HuggingFace PekingU/rtdetr_r50vd uses the same deformable decoder + AIFI pattern (RTDetrMultiscaleDeformableAttention + grid_sample + topk in Transformers source). Only the backbone differs (ResNet-50-VD vs HGNet). Switching to HF does not make full DNPU conversion possible. Failures I hit (stage by stage) IR serialize (full graph) DVEEIR Broadcast layer is not needed at all … BCST … 300 Source: /model.28/Expand_1 (TopK mask expand). After Expand→Concat rewrite DVEEIR broadcast case is not supported in depth dimension along with other dims yet Still on the GatherElements / broadcast path. Full reconvert ReduceSum opset-17 → DV_ATen; Mod/Less/Xor/And → DV_ATen; conversion validation EMAX > 1e-4. Note: cannot drop to opset 13 because GridSample needs opset ≥ 16. Hybrid: backbone + encoder (exclude decoder only) Dryrun estimator: DVESIT Total WGs are not calculated properly at SINIT … BDOT,400,400,32 … total_wgs: 0 (AIFI). Emitter: DVEMCU Unknown CP kernels present in model … exit 139 (dummy/generic kernels after tolerating dryrun crash → no real .dvm). Hybrid: backbone only (pure CNN) Dryruns reach DVEQIR Serializing IR completed — this path is viable for a DNPU .dvm of the CNN backbone; AIFI + CCFM + decoder stay on CPU (onnxruntime). How I convert (working approach: hybrid) Because a full RT-DETR .dvm is not achievable on 2.1.1 with current op support, I use a parity-exact hybrid: Step 1 — Export FP32 static ONNX (Ultralytics) from ultralytics import RTDETR model = RTDETR("rtdetr-l.pt") model.export(format="onnx", imgsz=640, batch=1, dynamic=False, simplify=True, opset=17) dvrun takes this FP32 ONNX as inet/iwt. INT8 is produced later by AraSDK quantizer + calibration set. Step 2 — Extract FP32 subgraphs (ONNX extract_model) Cut at the backbone outputs (Ultralytics RT-DETR-L): Inputs: images [1,3,640,640] Outputs (DNPU / Part A): /model.3/ec/act/Relu_output_0 → [1,512,80,80] /model.7/Add_output_0 → [1,1024,40,40] /model.10/conv/Conv_output_0 → [1,256,20,20] Rest (CPU / Part B): those 3 tensors → output0 [1,300,6] from onnx import utils as onnx_utils BOUNDARY = [ "/model.3/ec/act/Relu_output_0", "/model.7/Add_output_0", "/model.10/conv/Conv_output_0", ] onnx_utils.extract_model("rtdetr-l.onnx", "partA_backbone.onnx", ["images"], BOUNDARY) onnx_utils.extract_model("rtdetr-l.onnx", "partB_rest.onnx", BOUNDARY, ["output0"]) Part A is pure CNN (Conv/Relu/MaxPool/Concat) — no GridSample / TopK / AIFI. I verified: full(images) == partB(partA(images)) with max_abs = 0 (bit-exact). Step 3 — Compile Part A with AraSDK 2.1.1 (dvrun) YAML: srcfw: onnx, inet/iwt = partA_backbone.onnx, dim 3,640,640, calib folder, ignore_mse: true if needed Host: enough RAM/swap for estimator (I used a 32 GiB RAM / ~100 GiB swap server; 16 Gi desktop OOMs easily) Keep compiler and board runtime both on 2.1.1 Success criteria: schedule serializes, emitter reports Ara2 Processor compatibility, non-empty .dvm / assets (not 0-byte kernel.lib) Step 4 — Deploy hybrid inference Load Part A .dvm on Ara240 (runtime 2.1.1). Run Part B (partB_rest.onnx) on ARM with onnxruntime. Feed DNPU feature maps into Part B → detections. Model Part A is converted into .dvm so i have tested Part A on DNPU + PART B on CPU but it give false output low detection with zero class output but both PART A onnx and PART B onnx work on A55 cpu and gives correct output. I am attaching images for reference. ORT A + B Image Hybrid A + B Questions for NXP / Kinara Is RT-DETR / Deformable DETR on the supported / validated model list for Ara240 2.1.1? Is there a planned kernel or conversion path for GridSample / multi-scale deformable attention? For AIFI-like attention, is there a recommended ONNX rewrite or constraint so BDOT schedules without total_wgs: 0? Is a hybrid (DNPU backbone + CPU decoder) the intended pattern for this architecture until kernels exist? Any official guidance on opset (16/17) vs converter ReduceSum attribute form for DETR graphs? If others have successfully produced a full RT-DETR .dvm on Ara240 2.1.1 (or 3.x), please share: export settings (Ultralytics vs HF / lyuwenyu) YAML / dvrun flags whether deformable attention was rewritten or offloaded Happy to share more logs (estimator BCST / BDOT / emitter CP-kernel messages) if useful. Thanks,          Vijay Rana Re: RT-DETR cannot fully convert to Ara240 .dvm on AraSDK 2.1.1 — unsupported ops + hybrid workaroun Hi @vijayranaACL  1. Is RT-DETR / Deformable DETR on the supported / validated model list for Ara240 2.1.1? >>>No, This model is not currently included in the support list for Ara240. 2. Is there a planned kernel or conversion path for GridSample / multi-scale deformable attention? >>>There are no plans at the moment. I need to confirm with internal team regarding the other questions before getting back to you. Could you please share the model file you tested? I can then run some tests on my i.MX95 FRDM board. B.R Re: RT-DETR cannot fully convert to Ara240 .dvm on AraSDK 2.1.1 — unsupported ops + hybrid workaroun These are the all level of model conversion files from .pt -> .onnx -> hybrid A + B -> DVM of A + int8 onnx B.  model link: https://drive.google.com/file/d/1YhxLetVxP0T85gv0qK1GT1r_T1i25f7P/view?usp=sharing
View full article
请求提供“AES_ACCEL子系统参考手册” 您好,恩智浦 我目前正在分析项目中的 AES_ACCEL(AES 加速器)模块。 文档中提到可以参考“AES_ACCEL 子系统参考手册” ,但我无法从产品页面找到或下载该手册。 请问您能否告知我在哪里可以获取这份手册,或者如何才能下载它? 顺祝商祺! Re: Request for "AES_ACCEL Subsystem Reference Manual" 该文件为安全文件。请按照此处所述的安全访问注册流程进行操作,除非您已完成该流程: NXP 安全访问权限注册 更多信息,请参阅: NXP 安全访问权限 由于该文件具有较高的保密级别,因此需要人工批准才能访问。如果您已经完成了注册,但文件仍然不可用,请联系您的 恩智浦代表或代理商,并要求他们为您申请所需的访问权限。
View full article
TAA3033AT – 400 V DCリンクプリチャージ適用の適性 こんにちは、NXPコミュニティの皆さん、 現在、DCリンクのプリチャージ用途向けにTAA3033ATアクティブプリチャージコントローラーを評価しています。 当システムの仕様は以下のとおりです。 直流入力電圧:24 Vから400 V 直流リンクの静電容量:1.5 mF 定格動作電流:25A プリチャージ後にDCリンクを接続するために使用されるメインコンタクタ このTAA3033ATがこのアプリケーションに適しているか、特に広い入力電圧範囲と電流制限に関して確認したいと思います。 いくつか質問があります。 TAA3033ATは24〜400Vの入力範囲全体で動作できますか? TAA3033DB1649評価ボードは、大幅な修正なしにこれらの条件を試験するのに適しているのでしょうか? コントローラは低電圧制御システムと高電圧電源回路の間に追加のガルバニック絶縁を必要としますか? ご協力ありがとうございました。 よろしくお願いいたします。 Re: TAA3033AT – Suitability for 400 V DC-Link Precharge Application こんにちは、 @sayf さん。 1.原則的には、そうです。TAA3033ATは調整電流コントローラとして動作し、サポートされる高電圧入力範囲は主に外部MOSFET、ダイオード、インダクタ、センス抵抗、そして設定可能なタイミングおよび電流センスパラメータによって決まります。しかし、24Vまでの動作については公開されたドキュメントでは明確に記述されていません。 2. TAA3033DB1649は出発点として使用できますが、400Vおよび800Vの動作に特化しています。したがって、24Vでのテストは構成や部品の変更が必要になることがあり、別途検証されるべきです。 3. TAA3033ATにはガルバニック絶縁が含まれていません。ローサイドトポロジーでは、その制御インターフェースはHVバッテリーの負極子を参照されます。低電圧コントローラがこの領域からガルバティックアイソレータを保つ必要がある場合、外部アイソレータが必要です。ハイサイドトポロジーでは、フローティング電源とレベルシフトが必要となる。 よろしくお願いいたします。 パベル
View full article
LInux CAAM driver compiled =y instead of =m It was ok up to Linux 6.18.2_1.0.0 to compile CAAM driver in CONFIG =y mode. With more recent Linux 6.18.20_2.0.0 and Linux 6.18.37_2.1.0 this leads to kernel build-in certificates errors.  I tried changing CAAM settings like CRYPTO_DEV_FSL_CAAM_PKC, secure, trusted keys on/off, which should make certificates part independent of CAAM, but sill certificates are broken until I turn CAAM driver to =m mode.  Is it possible to use CAAM driver as =y? I'm using i.MX7. Thanks Re: LInux CAAM driver compiled =y instead of =m Please disable "CONFIG_TRUSTED_KEYS_CAAM" to configure it as "n" to check whether this problem exists. In SDK default build configuration, I found the following. # CONFIG_TRUSTED_KEYS_CAAM is not set Re: LInux CAAM driver compiled =y instead of =m Perhaps it wasn't working already with 6.18.2, I'm not sure. I'm sure it worked with 6.12.x.  With enabled CAAM_DEBUG and zcat /proc/config.gz | grep CAAM # CONFIG_CRYPTO_DEV_FSL_CAAM_DMA is not set CONFIG_TRUSTED_KEYS_CAAM=y CONFIG_CRYPTO_DEV_FSL_CAAM_COMMON=y CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC=y CONFIG_CRYPTO_DEV_FSL_CAAM_KEYBLOB_API_DESC=y CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO=y CONFIG_CRYPTO_DEV_FSL_CAAM=y CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG=y CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9 # CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y CONFIG_CRYPTO_DEV_FSL_CAAM_PRNG_API=y CONFIG_CRYPTO_DEV_FSL_CAAM_BLOB_GEN=y CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y # CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API_TEST is not set # CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST is not set CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y CONFIG_CRYPTO_DEV_FSL_CAAM_SM_SLOTSIZE=7 CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST=m I get this in dmesg [ 0.600724] caam 30900000.crypto: entropy-delay property missing in DT [ 0.600757] caam 30900000.crypto: device ID = 0x0a16030000000000 (Era 8) [ 0.600776] caam 30900000.crypto: job rings = 3, qi = 0 [ 0.609580] sdhci-esdhc-imx 30b40000.mmc: Got CD GPIO [ 0.614915] caam algorithms registered in /proc/crypto [ 0.615107] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto [ 0.615138] caam 30900000.crypto: rng crypto API alg registered prng-caam [ 0.615157] caam 30900000.crypto: registering rng-caam [ 0.615184] 01: operation [ 0.615198] 02: fifo_store [ 0.615217] rng job desc@: (ptrval): b0800004 82500002 60340010 81cf2500 ......P...4`.%.. [ 0.615405] 01: operation [ 0.615423] 02: fifo_store [ 0.615440] rng job desc@: (ptrval): b0800004 82500002 60340010 8126fac0 ......P...4`..&. [ 0.616325] Device caam-keygen registered [ 0.620411] caam-snvs 30370000.caam-snvs: ipid matched - 0x3e [ 0.620477] caam-snvs 30370000.caam-snvs: violation handlers armed - non-secure state [ 0.621041] hid: raw HID events driver (C) Jiri Kosina [ 0.621217] usbcore: registered new interface driver usbhid [ 0.621230] usbhid: USB HID core driver [ 0.624128] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 (8000000f) counters available [ 0.627983] NET: Registered PF_INET6 protocol family [ 0.629380] Segment Routing with IPv6 [ 0.629471] In-situ OAM (IOAM) with IPv6 [ 0.629630] NET: Registered PF_PACKET protocol family [ 0.629705] Bridge firewalling registered [ 0.629717] can: controller area network core [ 0.629795] NET: Registered PF_CAN protocol family [ 0.629810] can: raw protocol [ 0.630378] Key type dns_resolver registered [ 0.637395] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 2 mkt segment 1 supported-hw 0x4 0x2 [ 0.638671] Registering SWP/SWPB emulation handler [ 0.649825] Loading compiled-in X.509 certificates [ 0.650591] 07: operation [ 0.651164] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA [ 0.674771] 01: operation [ 0.674791] 02: fifo_store [ 0.674811] rng job desc@: (ptrval): b0800004 82500002 60340010 8126fac0 ......P...4`..&. [ 0.679492] Problem loading in-kernel X.509 certificate (-22) Re: LInux CAAM driver compiled =y instead of =m Yes, CAAM can in principle be =y on i.MX7. I would treat the =m workaround as evidence of a dependency/build regression, not as an i.MX7 CAAM requirement. If you paste the exact first certificate error from the LF6.18.20_2.0.0 build, I can trace which Kconfig/Makefile dependency is causing it and determine whether there is a specific NXP/upstream patch that needs to be backported. Re: LInux CAAM driver compiled =y instead of =m I've tried changing all related settings including trusted keys on/off, no change until switching CAAM to =m mode.  Re: LInux CAAM driver compiled =y instead of =m If so, please configure CAAM driver =m, just like the Yocto SDK doing. Re: LInux CAAM driver compiled =y instead of =m The question was about =y issues. Clearly something got broken between 6.12 aand 6.18 kernels.
View full article
s32k396 Basic Secure Boot qeustion 32K396 上使用 HSE FW 0.2.50.0 FULL_MEM,当前生命周期为 CUST_DEL。 测试过程:原始运行正常,现在修改认证范围内的地址 0x00453FF0 从 0xFF 修改为 0xFE,保持 AppBL Header、认证标签和 IVT 不变,IVT bootCfgWord 为 0x00000009。板卡断电重新上电后,使用 J-Link Attach 连接,不下载镜像,并通过空 SetupTarget 禁用了连接时的 RAM/ECC 初始化。此时 PC 停在 0x2040012E,0x2040012C~0x2040012E 的指令为 WFI 和跳回 WFI 的分支,符合 JTAG Recovery 等待循环,目前未配置用户 Secure Recovery 应用。 问题:请确认该版本在 BSB 认证失败后的完整处理流程及可靠判据:为什么已经进入 JTAG Recovery 等待循环,GPR3 bit5 仍为 0,是否与该位仅表示“SBAF 引导应用核进入 Recovery”、而本次恢复路径由 HSE FW 触发有关,以及应该通过哪个状态位或错误信息明确确认失败原因是 AppBL 认证不通过? Re: s32k396 Basic Secure Boot qeustion 感谢您提供的详细测试说明。这里需要指出的是,没有配置任何用户安全恢复应用程序。 请问您能否详细说明一下在您的配置中,恢复流程是如何工作的?尤其: 如果未配置安全恢复应用程序,AppBL 身份验证失败后预期会采取什么恢复措施? 是否已明确配置并启用 JTAG 恢复功能? 观察到的 WFI 回路本身是否被认为是意外的,还是仅仅担心 GPR3[5] 仍然被清除? 请提供与 J-Link 连接后立即读取的相关恢复配置和 HSE/SBAF 状态信息。 如果没有配置用户安全恢复应用程序,则可能会出现 WFI 循环。因此,请先明确AppBL认证失败后的预期恢复流程和设备预期行为。 Re: s32k396 Basic Secure Boot qeustion 观察到这个gpr3的bit5没有置位,这是个标志位,手册里面写的恢复模式会置1,为啥没回复?具体测试为附件
View full article
关于 CW 3.1 谁能提供可在 Windows XP 系统上运行的 CodeWarrior 3.1 的下载链接?文件名可能是Codewarrior-HC(S)08-v3.1.iso。非常感谢。 Re: About CW 3.1 对此给您带来的不便,我深感抱歉,但此软件版本的资料和文件已不再提供下载,我需要澄清一下,CodeWarrior 3.1 是一个过时的产品。搜索结果显示,某些特定设备的 CodeWarrior 版本已经多年未得到支持,NXP 也已停止维护某些旧版 CodeWarrior 实现。   您可以升级到更新的版本。用于操作 8 位设备的软件工具是CodeWarrior for MCUs (Eclipse IDE) v11.1,适用于 Windows 10/11;如果您感兴趣,可以使用此工具测试各种 8 位设备。 顺祝商祺!
View full article
imx219 camera integration issue with IMX95-15x15 frdm Hi all, I'm trying to bring up a Sony IMX219 camera on the FRDM-IMX95 (imx95-15x15-lpddr4x-frdm) using AN15033 (i.MX Camera Software Pack, BSP LF6.18.2-1.0.0), section 3.2 (precompiled binaries). The camera is not detected. **What I did** - Booted the prebuilt LF6.18.2-1.0.0 image - Ran copy_binaries.sh from the IMX219 binaries directory (i.MX95-15x15-FRDM-LPDDR4x) - In U-Boot: setenv fdtfile imx95-15x15-frdm-imx219-isp.dtb; saveenv; boot - Camera: standard 15-pin IMX219 module (the module and FPC cable both are connected and pin to pin match and the camera is working with STM32mp2 and Rpi). **What I see** -nxp-neo-uguzzi/ and cam -l (with LIBCAMERA_IPA_MODULE_PATH=/usr/lib/libcamera/ipaLIBCAMERA_PIPELINES_MATCH_LIST='nxp/neo,imx8-isi,uvc' exported): libcamera v0.0.0+6489-lf-6.18.2-1.0.0 Available cameras: (empty) dmesg: root@imx95-15x15-lpddr4x-frdm:~# dmesg | grep "imx219" [ 0.479570] /soc/bus@42000000/i2c@42540000/imx219@10: Fixed dependency cycle(s) with /soc/csi@4ad30000 [ 0.533110] /soc/csi@4ad30000: Fixed dependency cycle(s) with /soc/bus@42000000/i2c@42540000/imx219@10 [ 0.670857] /soc/bus@42000000/i2c@42540000/imx219@10: Fixed dependency cycle(s) with /soc/csi@4ad30000 [ 0.712509] /soc/bus@42000000/i2c@42540000/imx219@10: Fixed dependency cycle(s) with /soc/csi@4ad30000 [ 0.784500] /soc/bus@42000000/i2c@42540000/imx219@10: Fixed dependency cycle(s) with /soc/csi@4ad30000 [ 0.802395] /soc/csi@4ad30000: Fixed dependency cycle(s) with /soc/bus@42000000/i2c@42540000/imx219@10 [ 3.664050] /soc/csi@4ad30000: Fixed dependency cycle(s) with /soc/bus@42000000/i2c@42540000/imx219@10 [ 3.673513] /soc/bus@42000000/i2c@42540000/imx219@10: Fixed dependency cycle(s) with /soc/csi@4ad30000 [ 9.425624] imx219 3-0010: supply VANA not found, using dummy regulator [ 9.436000] imx219 3-0010: supply VDIG not found, using dummy regulator [ 9.443871] imx219 3-0010: supply VDDL not found, using dummy regulator [ 9.462659] imx219 3-0010: Error reading reg 0x0000: -5 [ 9.468287] imx219 3-0010: error -EIO: failed to read chip id 219 [ 9.478088] imx219 3-0010: probe with driver imx219 failed with error -5 After reseating the camera the error changed to -5 (-EIO), same "failed to read chip id". i2cdetect: nothing at 0x10 on i2c-2 (42530000.i2c) or i2c-3 (42540000.i2c). Only unrelated devices show up (UU at 0x33, 0x4c, 0x62 on bus 3; 0x50 and 0x52 on bus 2). The imx219 module is loaded, the DT node exists, and the neoisp probe succeeds, so this looks like the sensor is not reachable/powered rather than a libcamera or driver issue. **Observations** - The DT node is imx219@10 under /soc/bus@42000000/i2c@42540000 (i2c-3). AN15033 section 3.4 shows the path as .../i2c@42530000/imx219@10, which doesn't match what I have. Is this a typo in the note? - The node has reset-gpios. gpioinfo shows "MIPI-CSI camera reset" (line 19) as an output with no consumer after the probe fails. **Questions** 1. AN15033 connects the camera via the RPI-CAM-MINISAS adaptor plus a 22-pin to 15-pin FPC cable. Is that adaptor required, or is a plain 15-to-22-pin cable enough? Note: Pin to pin matched. 2. Has anyone gotten the IMX219 working on the FRDM-IMX95 with this software pack, and if so, with which exact module and cable? Here is the camera im using : https://probots.co.in/8mp-imx219-camera-module-77-fov-raspberry-pi-5.html BR  Aman Sharma Yocto Project Re: imx219 camera integration issue with IMX95-15x15 frdm Hello,  yes, the adaptor is required, connect RPI-CAM-MINISAS adaptor to IMX 219 camera connector to MIPI-CSI connector on i.MX 95 15 mm x 15 mm FRDM; use the 22 pin (0.5 mm pitch) to 15 pin (1 mm pitch) FPC cable. Please refer to the following link:  https://docs.nxp.com/bundle/AN15033/page/topics/enable_sony_imx_219_camera_module.html Re: imx219 camera integration issue with IMX95-15x15 frdm Hello, Thank you for the clarification regarding the RPI-CAM-MINISAS adaptor and the FPC cable. I followed AN15033 and used the recommended setup. My Sony IMX219 camera is now working on the FRDM-i.MX95, but I am facing an issue with camera detection during boot and after a hardware reset. 1. Camera detection issue during boot and hardware reset Currently, the camera behaves differently depending on how the board is started or rebooted: First boot: When I power on the board for the first time, the camera is not detected. Software reboot: When I reboot the board using the reboot command from the terminal, the camera is detected successfully. Hardware reset: When I reset the board using the hardware reset pin, the camera is not detected. Manual workaround: After a hardware reset, I have to manually drive the camera reset GPIO high and bind the IMX219 driver again from the user space to get the camera working. I have already configured the camera reset GPIO with a pull-up in the device tree. Could this issue be related to the reset GPIO's initial state, GPIO pinmux configuration, sensor power sequencing, or reset timing during boot? What would be the recommended way to resolve this issue permanently through the device tree or driver, so that the camera is detected reliably during the initial boot as well as after hardware resets, without requiring manual GPIO control or driver rebinding? 2. Dual-camera support on FRDM-i.MX95 My next requirement is to use two MIPI-CSI cameras simultaneously on the FRDM-i.MX95 board. Does NXP provide any reference BSP, device-tree configuration, or example implementation for dual-camera operation on the FRDM-i.MX95 using the i.MX Camera Software Pack (BSP LF6.18.2-1.0.0)? Specifically, I would like to know whether there is a recommended reference configuration for operating two Sony IMX219 cameras simultaneously and capturing frames from both cameras through libcamera. I would appreciate any available documentation or working reference implementation for this setup. Thank you for your support. Best regards, Aman Sharma
View full article
CHIP I am writing on behalf of the company CR Soluciones GLN S.A., based in Costa Rica. We are distributors of digital signature card readers—specifically the Rocketek models CR317, CR336A, and CR336C—and I would like to know if these readers are compatible with the NXP JCOP4 chip. Re: CHIP Hello @Lilliam Hope you are doing well. JCOP 4 is an OS that supports ISO 7816-3 T=0, T=1; and ISO 14443 (up to 848kbps). Still, compatibility with third-party readers must be confirmed with the manufacturer. Could you please contact the reader manufacturer for more information on this? Regards, Eduardo. Re: CHIP Hi, My apologies. Unfortunately, I cannot confirm compatibility with specific third-party readers, the reader manufacturer must confirm whether their products have been tested and validated with secure smart cards running JCOP 4. I apologize for the inconvenience. Regards, Eduardo.
View full article
Linux CAAM 驱动程序编译为 =y 而不是 =m 在Linux 6.18.2_1.0.0 及更早版本中,以 CONFIG =y 模式编译 CAAM 驱动程序没有问题。但在较新的 Linux 6.18.20_2.0.0 和 Linux 6.18.37_2.1.0 版本中,这样做会导致内核内置证书错误。 我尝试更改 CAAM 设置,例如 CRYPTO_DEV_FSL_CAAM_PKC、安全密钥和受信任密钥的开启/关闭,这些设置应该使证书部分独立于 CAAM,但证书仍然无法正常工作,直到我将 CAAM 驱动程序切换到 =m 模式。 是否可以使用 CAAM 驱动程序作为 =y?我正在使用 i.MX7。谢谢 Re: LInux CAAM driver compiled =y instead of =m 请禁用“ CONFIG_TRUSTED_KEYS_CAAM”并将其配置为“n”,以检查是否存在此问题。 在 SDK 默认版本配置中,我发现了以下内容。 # CONFIG_TRUSTED_KEYS_CAAM 未设置 Re: LInux CAAM driver compiled =y instead of =m 或许在 6.18.2 版本中就已经存在这个问题了。我不知道。我确定它在 6.12.x 版本中可以正常工作。 启用 CAAM_DEBUG 和 zcat /proc/config.gz | grep CAAM # CONFIG_CRYPTO_DEV_FSL_CAAM_DMA 未设置 CONFIG_TRUSTED_KEYS_CAAM=y CONFIG_CRYPTO_DEV_FSL_CAAM_COMMON=y CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC=y CONFIG_CRYPTO_DEV_FSL_CAAM_KEYBLOB_API_DESC=y CONFIG_CRYPTO_DEV_FSL_CAAM_SECVIO=y CONFIG_CRYPTO_DEV_FSL_CAAM=y CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG=y CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9 # CONFIG_CRYPTO_DEV_FSL_CAAM_INTC 未设置 CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y CONFIG_CRYPTO_DEV_FSL_CAAM_PRNG_API=y CONFIG_CRYPTO_DEV_FSL_CAAM_BLOB_GEN=y CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API=y # CONFIG_CRYPTO_DEV_FSL_CAAM_TK_API_TEST 未设置 # CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_TEST 未设置 CONFIG_CRYPTO_DEV_FSL_CAAM_SM=y CONFIG_CRYPTO_DEV_FSL_CAAM_SM_SLOTSIZE=7 CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST=m 我在 dmesg 中看到了这个 [ 0.600724] caam 30900000.crypto: entropy-delay property missing in DT [ 0.600757] caam 30900000.crypto: device ID = 0x0a16030000000000 (Era 8) [ 0.600776] caam 30900000.crypto: job rings = 3, qi = 0 [ 0.609580] sdhci-esdhc-imx 30b40000.mmc: Got CD GPIO [ 0.614915] caam algorithms registered in /proc/crypto [ 0.615107] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto [ 0.615138] caam 30900000.crypto: rng crypto API alg registered prng-caam [ 0.615157] caam 30900000.crypto: registering rng-caam [ 0.615184] 01: operation [ 0.615198] 02: fifo_store [ 0.615217] rng job desc@: (ptrval): b0800004 82500002 60340010 81cf2500 ......P...4`.%.. [ 0.615405] 01: operation [ 0.615423] 02: fifo_store [ 0.615440] rng job desc@: (ptrval): b0800004 82500002 60340010 8126fac0 ......P...4`..&. [ 0.616325] Device caam-keygen registered [ 0.620411] caam-snvs 30370000.caam-snvs: ipid matched - 0x3e [ 0.620477] caam-snvs 30370000.caam-snvs: violation handlers armed - non-secure state [ 0.621041] hid: raw HID events driver (C) Jiri Kosina [ 0.621217] usbcore: registered new interface driver usbhid [ 0.621230] usbhid: USB HID core driver [ 0.624128] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 (8000000f) counters available [ 0.627983] NET: Registered PF_INET6 protocol family [ 0.629380] Segment Routing with IPv6 [ 0.629471] In-situ OAM (IOAM) with IPv6 [ 0.629630] NET: Registered PF_PACKET protocol family [ 0.629705] Bridge firewalling registered [ 0.629717] can: controller area network core [ 0.629795] NET: Registered PF_CAN protocol family [ 0.629810] can: raw protocol [ 0.630378] Key type dns_resolver registered [ 0.637395] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 2 mkt segment 1 supported-hw 0x4 0x2 [ 0.638671] Registering SWP/SWPB emulation handler [ 0.649825] Loading compiled-in X.509 certificates [ 0.650591] 07: operation [ 0.651164] mmc0: SDHCI controller on 30b40000.mmc [30b40000.mmc] using ADMA [ 0.674771] 01: operation [ 0.674791] 02: fifo_store [ 0.674811] rng job desc@: (ptrval): b0800004 82500002 60340010 8126fac0 ......P...4`..&. [ 0.679492] Problem loading in-kernel X.509 certificate (-22) Re: LInux CAAM driver compiled =y instead of =m 是的,CAAM 原则上可以在 i.MX7 上实现。我会将 =m 解决方法视为依赖项/版本回归的证据,而不是 i.MX7 CAAM 的要求。 如果您能粘贴 LF6.18.20_2.0.0 版本中的第一个证书错误,我可以追踪是哪个 Kconfig/Makefile 依赖项导致了这个问题,并确定是否有需要向后移植的特定 NXP/上游补丁。 Re: LInux CAAM driver compiled =y instead of =m 我尝试更改所有相关设置,包括启用/禁用可信密钥,但问题依旧,直到我将 CAAM 切换到 =m 模式。 Re: LInux CAAM driver compiled =y instead of =m 如果是这样,请配置 CAAM 驱动程序 =m,就像 Yocto SDK 所做的那样。 Re: LInux CAAM driver compiled =y instead of =m 问题是关于=y问题的。显然,6.12 内核和 6.18 内核之间出现了一些问题。
View full article
CW 3.1について Windows XPで動作するCodeWarrior 3.1のダウンロードリンクを提供できる人はいますか?ファイル名はCodewarrior-HC(S)08-v3.1.isoかもしれません。どうもありがとうございました。 Re: About CW 3.1 ご不便をおかけして申し訳ありませんが、このソフトウェアバージョンの情報やファイルはもはやダウンロードできません。CodeWarrior 3.1はレガシー製品であることを明確にしておきます。検索結果によると、特定のデバイス向けの一部のCodeWarriorバージョンは長年サポートされておらず、NXPは一部のレガシーCodeWarrior実装の維持から移行しています。   より新しいバージョンに移行することもできます。8ビットデバイスを使用するソフトウェアツールは、Windows 10/11向けに利用可能な CodeWarrior for MCUS (Eclipse IDE) v11.1 です。このツールで様々な8ビットデバイスでテストできます。 よろしくお願いいたします。
View full article
RT-DESTRはAraSDK 2.1.1上でAra240 .dvmに完全に変換できません — サポートされていない運用+ハイブリッドの回避策 こんにちは、NXPコミュニティの皆さん。 私は、 AraSDK / ランタイム 2.1.1をターゲットとして、 FRDM i.MX95上のAra240 DNPU用のRT-DETRオブジェクト検出器を変換しています。(3.0ではない)のみ。調査結果を共有し、完全な.dvmファイルを作成するための推奨/サポートされている方法があるかどうかを尋ねたいと思います。多スケール変形可能な注意を持つDESTRスタイルモデルの変換。 環境 商品の価値 ボード FRDM i.MX95 + Ara240 ランタイム imx-nxp-ara2 2.1.1 (コンパイラと一致する必要があります) コンパイラ AraSDK 2.1.1 (ara-sdk-cnn:2.1.1,dvrun) 試行モデル Ultralytics rtdetr-l / rtdetr-x (HGNetv2);HF PekingU/rtdetr_r50vd (ResNet-50-VD)もレビュー済み ONNXエクスポート Ultralytics RTDETR.export(format="onnx",imgsz=640、batch=1、dynamic=False、opset=17) → FP32 static ONNX 量子化 AraSDK内部で実行(アナライザー+キャリブレーションイメージ)→INT8 .dvm(Ultralytics INT8 ONNXではありません) ゴール 完全なエンドツーエンド変換: FP32 ONNX → dvconvert → dryrun estimate → quantize → estimate → emit → .dvm これはランタイム2.1.1でロードされ、 Ara240 DNPU上で完全に動作します。 オブザベーションとNXP HuggingFace Ara240モデルの比較 Qwen2.5-VL / Qwen2.5-CoderなどのAra240モデルの公開版はるかに大きいファイルでも、正常に変換できます。これらのグラフは静的なMatMul / Norm / Softmaxスタックが主体であり、自社開発の移植版のようです。 RT-DETRが失敗する理由は、サイズ(約3300万~4300万個のパラメータ)ではなく、演算子のカバレッジにある。検出デコーダは、マルチスケール変形可能なアテンションと動的なクエリ選択を使用する。 サポートされていない/問題のあるレイヤー(UltralyticsとHF RT-DETRで同じクラス) AraSDK 2.1.1におけるパターンの影響 GridSample / F.grid_sample デコーダー:MS変形可能アテンション(n_points=4、3レベル、6レイヤー) DNPU操作ではありません。ONNXエクスポートでは多数のGridSampleノードが生成されます(Ultralytics rtdetr-lでは18個)。 TopK + 収集/マスク操作 不確実性を最小限に抑えたクエリ選択(num_queries=300) データ依存のインデックス化;コンバータのフォールバックやスケジュール/エミットの失敗 AIFI自己注意 ハイブリッドエンコーダ スケジュールはBDOTとして;見積もりはクラッシュすることがあります(total_wgs:0) Opset-17 ReduceSum (入力としての軸) デコーダーのアテンションパス コンバータ rename_ReduceSum インデックスエラー→ DV_ATen(CPU) アイデンティティ/深度放送 例えばGatherElementsマスクを展開する IRシリアル化中止(DVEEIRブロードキャストレイヤーは不要/深度ディムブロードキャスト) HuggingFace PekingU/rtdetr_r50vd は、同じ変形デコーダ + AIFI パターン (Transformers ソースの RTDetrMultiscaleDeformableAttention + grid_sample + topk) を使用しています。バックボーン部分のみが異なる(ResNet-50-VDとHGNet)。HFに切り替えても、DNPUの完全な変換は不可能です。 私が経験した失敗(段階別) IRシリアル化(フルグラフ) DVEEIRブロードキャストレイヤーは全く必要ありません…BCST…300 ソース: /model.28/Expand_1(TopKマスク拡張) Expand→Concat の書き換え後 DVEEIR放送ケースは、他のディムと同様に深さ寸法でまだサポートされていません まだGatherElements/ブロードキャストの道を進んでいます。 完全再変換 ReduceSum opset-17 → DV_ATen; Mod/Less/Xor/And → DV_ATen; 変換検証 EMAX > 1e-4。 注意:GridSampleはopset ≥16が必要なため、opset 13に落とすことはできません。 ハイブリッド:バックボーン+エンコーダー(デコーダーのみを除く) ドライラン見積もりツール: DVESIT の総 WG は SINIT で正しく計算されていません… BDOT、400、400、32… total_wgs: 0 (AIFI)。 エミッター: DVEMCUモデルに未知のCPカーネルが存在する...出口139 (ドライランクラッシュを許容した後のダミー/汎用カーネル→実際の.dvmはありません)。 ハイブリッド:バックボーンのみ(純粋なCNN) ドライランは DVEQIR に到達し、IR のシリアル化が完了しました。このパスは CNN バックボーンの DNPU .dvm に対して実行可能です。AIFI + CCFM + デコーダは CPU (onnxruntime) 上に残ります。 私の変換方法(作業アプローチ:ハイブリッド) 現在の運用サポートでは2.1.1では 完全な RT-DETRの.dvmは実現できないため、 パリティ・コンプリートハイブリッドを使用しています。 ステップ1 — FP32静的ONNXのエクスポート(Ultralytics) from ultralytics import RTDETR model = RTDETR("rtdetr-l.pt") model.export(format="onnx", imgsz=640, batch=1, dynamic=False, simplify=True, opset=17) dvrun はこのFP32 ONNX を inet/iwt として扱います。INT8は、AraSDK量子化器とキャリブレーションセットによって後から生成されます。 ステップ2 — FP32サブグラフの抽出(ONNX extract_model) バックボーン出力でカットします(Ultralytics RT-DETR-L): 入力: 画像 [1,3,640,640] 出力(DNPU / パートA): /model.3/ec/act/Relu_output_0 → [1,512,80,80] /model.7/Add_output_0 → [1,1024,40,40] /model.10/conv/Conv_output_0 → [1,256,20,20] 残り(CPU / パートB):これら3つのテンソル → output0 [1,300,6] from onnx import utils as onnx_utils BOUNDARY = [ "/model.3/ec/act/Relu_output_0", "/model.7/Add_output_0", "/model.10/conv/Conv_output_0", ] onnx_utils.extract_model("rtdetr-l.onnx", "partA_backbone.onnx", ["images"], BOUNDARY) onnx_utils.extract_model("rtdetr-l.onnx", "partB_rest.onnx", BOUNDARY, ["output0"]) パートAは純粋なCNN (Conv/Relu/MaxPool/Concat)であり、GridSample/TopK/AIFIは使用していません。 私は、full(images) == partB(partA(images)) を max_abs = 0 (ビット単位) で検証しました。 ステップ3 — AraSDK 2.1.1 (dvrun) を使用してパートAをコンパイルする YAML: srcfw: onnx, inet/iwt = partA_backbone.onnx,dim 3,640,640、calib フォルダー、ignore_mse: 必要に応じて true ホスト:推定器に必要な十分なRAM/スワップ領域(私は32GiB RAM/約100GiBスワップのサーバーを使用しました。16Giのデスクトップでは簡単にメモリ不足になります) コンパイラとボードランタイムの両方を2.1.1のままにしてください。 成功基準:スケジュールシリアライズ、エミッタがAra2プロセッサ互換性を報告、空でない.dvm/ assets (0バイトのkernel.libではない) ステップ4 — ハイブリッド推論の展開 Ara240(ランタイム2.1.1)にPart Aの.dvmファイルをロードします。 ARM上でパートB(partB_rest.onnx)を onnxruntimeで実行します。 DNPUの特徴マップをパートBに入力して検出結果を得る。 モデルパートAは.dvmに変換されますなので、CPUでDNPU+パートBをテストしましたが、誤った検出でクラス出力ゼロでした。一方、AとBのオンクロスはA55 CPUで動作し、正しい出力が得られます。参考のために画像を添付します。 ORT A + B 画像 ハイブリッドA+B NXP/Kinaraへの質問 RT-DETR / Deformable DETRはAra240 2.1.1のサポート/検証済みモデルリストに載っていますか? GridSample / マルチスケール変形可能アテンションのためのカーネルや変換パスは計画されていますか? AIFIのような注意のために、BDOTがtotal_wgs:0なしでスケジュールできるように、推奨されるONNXの書き換えや制約はありますか? カーネルが開発されるまでの間、このアーキテクチャではハイブリッド(DNPUバックボーン+CPUデコーダ)が想定されるパターンなのでしょうか? DESTRグラフにおけるopset(16/17)とコンバーターのReduceSum属性フォームについて公式なガイダンスはありますか? もし他のユーザーがAra240 2.1.1(または3.x)で完全なRT-DETR .dvmファイルを作成することに成功した場合は、ぜひ共有してください。 エクスポート設定(Ultralytics vs HF / lyuwenyu) YAML / dvrunフラグ 変形可能な注意が書き換えられたのか、それともオフロードされたのか 必要であれば、さらにログ(推定器BCST/BDOT/発信器CPカーネルメッセージ)を共有いたします。 ありがとう、 ビジャイ・ラナ Re: RT-DETR cannot fully convert to Ara240 .dvm on AraSDK 2.1.1 — unsupported ops + hybrid workaroun こんにちは、 @vijayranaACL さん。 1. RT-DETR / Deformable DETR はAra240 2.1.1のサポート/検証済みモデルリストに入っていますか? >>>いいえ、このモデルは現在Ara240のサポートリストには含まれていません。 2. GridSample / マルチスケール変形可能アテンションのためのカーネルまたは変換パスは計画されていますか? 現時点では計画はありません。 その他の質問については、社内チームに確認してからご連絡いたします。 テストしたモデルファイルを教えていただけますか?その後、i.MX95 FRDMボードでテストを行えます。 B.R Re: RT-DETR cannot fully convert to Ara240 .dvm on AraSDK 2.1.1 — unsupported ops + hybrid workaroun これらは.ptからの全レベルのモデル変換ファイルです-> .onnx-> A + B -> DVM(A + int8 on nx B)のハイブリッド。 モデルリンク:https://drive.google.com/file/d/1YhxLetVxP0T85gv0qK1GT1r_T1i25f7P/view?usp=sharing
View full article
imx219 相机与 IMX95-15x15 frdm 的集成问题 大家好, 我正在尝试使用 AN15033(i.MX 相机软件包,电路板支持包 LF6.18.2-1.0.0)第 3.2 节(预编译二进制文件)在 FRDM-IMX95(imx95-15x15-lpddr4x-frdm)上启动 Sony IMX219 相机。未检测到摄像头。 我做了什么 - 启动了预编译的 LF6.18.2-1.0.0 镜像 - 从 IMX219 二进制文件目录 (i.MX95-15x15-FRDM-LPDDR4x) 运行 copy_binaries.sh - 在 U-Boot 中:setenv fdtfile imx95-15x15-frdm-imx219-isp.dtb;保存环境变量;启动 - 摄像头:标准 15 针 IMX219 模块(模块和 FPC 电缆均已连接,引脚匹配,摄像头可与 STM32mp2 和 Rpi 配合使用)。 **我所看到的** -nxp-neo-uguzzi/ 和 cam -l(已导出 LIBCAMERA_IPA_MODULE_PATH=/usr/lib/libcamera/ipaLIBCAMERA_PIPELINES_MATCH_LIST='nxp/neo,imx8-isi,uvc'): libcamera v0.0.0+6489-lf-6.18.2-1.0.0 可用摄像头: (空的) dmesg: root@imx95-15x15-lpddr4x-frdm:~# dmesg | grep "imx219" [ 0.479570] /soc/bus@42000000/i2c@42540000/imx219@10:修复了与 /soc/csi@4ad30000 的依赖循环 [ 0.533110] /soc/csi@4ad30000:修复了与 /soc/bus@42000000/i2c@42540000/imx219@10 的依赖循环 [ 0.670857] /soc/bus@42000000/i2c@42540000/imx219@10:修复了与 /soc/csi@4ad30000 的依赖循环 [ 0.712509] /soc/bus@42000000/i2c@42540000/imx219@10:修复了与 /soc/csi@4ad30000 的依赖循环 [ 0.784500] /soc/bus@42000000/i2c@42540000/imx219@10:修复了与 /soc/csi@4ad30000 的依赖循环 [ 0.802395] /soc/csi@4ad30000:修复了与 /soc/bus@42000000/i2c@42540000/imx219@10 的依赖循环 [ 3.664050] /soc/csi@4ad30000:修复了与 /soc/bus@42000000/i2c@42540000/imx219@10 的依赖循环 [ 3.673513] /soc/bus@42000000/i2c@42540000/imx219@10:修复了与 /soc/csi@4ad30000 的依赖循环 [ 9.425624] imx219 3-0010:未找到 VANA 电源,使用虚拟稳压器 [ 9.436000] imx219 3-0010:未找到电源 VDIG,使用虚拟稳压器 [ 9.443871] imx219 3-0010:未找到电源 VDDL,使用虚拟稳压器 [ 9.462659] imx219 3-0010: 读取寄存器 0x0000 时出错:-5 [ 9.468287] imx219 3-0010: 错误 -EIO: 读取芯片 ID 219 失败 [ 9.478088] imx219 3-0010:使用驱动程序 imx219 进行探测失败,错误代码为 -5 重新安装摄像头后,错误变为 -5 (-EIO),仍然显示“无法读取芯片 ID”。 i2cdetect:i2c-2 (42530000.i2c) 上 0x10 处没有信号或 i2c-3 (42540000.i2c)。仅显示不相关的设备(总线 3 上的 UU 为 0x33、0x4c、0x62;总线 2 上的 UU 为 0x50 和 0x52)。 imx219 模块已加载,DT 节点存在,neoisp 探测成功,因此这看起来像是传感器无法访问/供电,而不是 libcamera 或驱动程序问题。 **观察结果** - DT 节点是 imx219@10,位于 /soc/bus@42000000/i2c@42540000 (i2c-3) 下。AN15033 第 3.4 节显示路径为 .../i2c@42530000/imx219@10,这与我的路径不符。这是笔记中的拼写错误吗? - 该节点具有 reset-gpios 功能。gpioinfo 显示“MIPI-CSI 相机重置”(第 19 行)作为输出,但在探测失败后没有使用者。 **问题** 1. AN15033 通过 RPI-CAM-MINISAS 适配器和 22 针至 15 针 FPC 电缆连接相机。是否需要适配器,还是普通的 15 针转 22 针电缆就足够了? 注意:引脚对引脚匹配。 2. 有没有人用这个软件包在 FRDM-IMX95 上成功运行过 IMX219?如果有,使用的是哪个模块和电缆? 这是我使用的摄像头: https://probots.co.in/8mp-imx219-camera-module-77-fov-raspberry-pi-5.html BR 阿曼·夏尔马 Yocto Project Re: imx219 camera integration issue with IMX95-15x15 frdm 你好, 是的,需要适配器,将 RPI-CAM-MINISAS 适配器连接到 IMX 219 相机连接器,再连接到 i.MX 95 15 mm x 15 mm FRDM 上的 MIPI-CSI 连接器;使用 22 针(0.5 mm 引脚间距)至 15 针(1 mm 引脚间距)FPC 电缆。 请参考以下链接: https://docs.nxp.com/bundle/AN15033/page/topics/enable_sony_imx_219_camera_module.html Re: imx219 camera integration issue with IMX95-15x15 frdm 你好, 感谢您对 RPI-CAM-MINISAS 适配器和 FPC 电缆的澄清。我按照 AN15033 的步骤,使用了推荐的配置。我的 Sony IMX219 相机现在可以在 FRDM-i.MX95 上工作,但我遇到了启动时和硬件 RESET 后相机检测出现问题的情况。 1. 启动和硬件 RESET 期间摄像头检测问题 目前,摄像头的运行情况会根据板的启动或重启方式而有所不同: 首次启动:当我第一次给电路板上电时,摄像头未被检测到。 软件重启:当我使用终端上的reboot命令重启电路板时,摄像头被成功检测到。 硬件RESET:当我使用硬件RESET引脚RESET电路板时,摄像头无法被检测到。 手动解决方法:硬件 RESET 后,我必须手动将相机 RESET GPIO 拉高,并从用户空间重新绑定 IMX219 驱动程序,才能使相机工作。 我已经在设备树中配置了带有上拉电阻的相机 RESET GPIO。 这个问题是否与 RESET GPIO 的初始状态、GPIO 引脚复用配置、传感器电源时序或启动期间的复位时序有关? 通过设备树或驱动程序永久解决此问题的推荐方法是什么?以便在初始启动期间以及硬件 RESET 后都能可靠地检测到摄像头,而无需手动 GPIO 控制或驱动程序重新绑定? 2. FRDM-i.MX95 支持双摄像头 我的下一个要求是在 FRDM-i.MX95 板上同时使用两个 MIPI-CSI 摄像头。 NXP 是否为使用 i.MX 相机软件包 (电路板支持包。 LF6.18.2-1.0.0) 在 FRDM-i.MX95 上实现双摄像头操作提供任何参考 电路板支持包。、设备树配置或示例实现? 具体来说,我想知道是否有推荐的参考配置,可以同时操作两台 Sony IMX219 相机,并通过 libcamera 从两台相机捕获帧。 我非常感谢您能提供任何关于此设置的文档或可运行的参考实现。 感谢您的支持。 此致, 阿曼·夏尔马
View full article
TAA3033AT – 适用于 400 V 直流链路预充电应用 NXP社区的各位朋友,大家好! 我目前正在评估 TAA3033AT 有源预充电控制器在直流链路预充电应用中的性能。 我们的系统具有以下规格: 直流输入电压:24V 至 400V 直流母线电容:1.5 mF 额定工作电流:25 A 主接触器用于预充电后连接直流链路。 我想确认一下 TAA3033AT 是否适合此应用,特别是关于其宽输入电压范围和电流限制方面。 我还有几个问题: TAA3033AT 能否在 24–400 V 的整个输入范围内工作? TAA3033DB1649 评估板是否适合在不进行重大修改的情况下测试这些条件? 控制器是否需要在低压控制系统和高压电源电路之间增加额外的电气隔离? 谢谢你的帮助。 顺祝商祺! Re: TAA3033AT – Suitability for 400 V DC-Link Precharge Application 你好@sayf , 1.原则上,是的。TAA3033AT 用作稳压电流控制器,其支持的高压输入范围主要由外部 MOSFET、二极管、电感器、检测电阻以及可配置的定时和电流检测参数决定。然而,已发布的文档中并未明确描述低至 24 V 的工作电压。 2. TAA3033DB1649 可用作起点,但其特性适用于 400 V 和 800 V 的工作电压。因此,在 24 V 电压下进行测试可能需要更改配置或元器件,并且应该单独进行验证。 3. TAA3033AT 不包含电气隔离。在低侧拓扑结构中,其控制接口以高压电池负极为参考。如果低压控制器必须与该功能域保持电气隔离,则需要外部隔离。在高侧拓扑结构中,需要浮空电源和电平转换。 顺祝商祺! 帕维尔
View full article
TAA3033AT – Suitability for 400 V DC-Link Precharge Application Hello NXP COMMUNITY , I am currently evaluating the TAA3033AT active precharge controller for a DC-link precharge application. Our system has the following specifications: DC input voltage: 24 V to 400 V DC-link capacitance: 1.5 mF Nominal operating current: 25 A Main contactors used to connect the DC link after precharge I would like to confirm whether the TAA3033AT is suitable for this application, particularly regarding the wide input voltage range and current limitation. I also have a few questions: Can the TAA3033AT operate across the full 24–400 V input range? Is the TAA3033DB1649 evaluation board suitable for testing these conditions without significant modifications? Does the controller require additional galvanic isolation between the low-voltage control system and the high-voltage power circuit? Thank you for your assistance. Best regards, Re: TAA3033AT – Suitability for 400 V DC-Link Precharge Application Hello @sayf , 1. In principle, yes. The TAA3033AT operates as a regulated current controller, while the supported HV input range is primarily determined by the external MOSFET, diode, inductor, sense resistor, and the configurable timing and current-sense parameters. However, operation down to 24 V is not explicitly characterized in the published documentation. 2. The TAA3033DB1649 can be used as a starting point, but it is characterized for 400 V and 800 V operation. Testing at 24 V may therefore require configuration or component changes and should be validated separately. 3. The TAA3033AT does not include galvanic isolation. In the low-side topology, its control interface is referenced to the HV battery negative terminal. If the low-voltage controller must remain galvanically isolated from this domain, external isolation is required. In the high-side topology, a floating supply and level shifting are required. Best regards, Pavel
View full article
IMX219カメラとIMX95-15x15 FRDMの統合に関する問題 こんにちは、皆さん。 私はFRDM-IMX95(IMX95-15x15-lpddr4x-frdm)でSony IMX219カメラをAN15033(i.MX Camera ソフトウェア Pack, BSP LF6.18.2-1.0.0)、セクション3.2(事前コンパイル済みバイナリ)を使って起動しようとしています。カメラが検出されません。 **私がしたこと** - 事前に構築されたLF6.18.2-1.0.0イメージを起動しました - IMX219バイナリディレクトリ(i.MX95-15x15-FRDM-LPDDR4x)からcopy_binaries.shを実行しました。 - U-Boot で: setenv fdtfile imx95-15x15-frdm-imx219-isp.dtb;saveenv;ブート - カメラ:標準の15ピンIMX219モジュール(モジュールとFPCケーブルはピン同士で接続されピン同士で、カメラはSTM32mp2およびRpiで動作)。 **私が見たもの** -nxp-neo-uguzzi/ および cam -l (LIBCAMERA_IPA_MODULE_PATH=/usr/lib/libcamera/ipaLIBCAMERA_PIPELINES_MATCH_LIST='nxp/neo,imx8-isi,uvc' をエクスポートした場合): libcamera v0.0.0+6489-lf-6.18.2-1.0.0 利用可能なカメラ: (空の) DMESG: root@imx95-15x15-LPDDR4x-frdm:~# DMESG |grep "IMX219" [ 0.479570] /soc/bus@42000000/i2c@42540000/imx219@10:/soc/csi@4ad30000 を含む固定依存サイクル [ 0.533110] /soc/csi@4ad30000: /soc/bus@42000000/i2c@42540000/imx219@10 の固定依存サイクル [ 0.670857] /soc/bus@42000000/i2c@42540000/imx219@10:/soc/csi@4ad30000 を含む固定依存サイクル [ 0.712509] /soc/bus@42000000/i2c@42540000/imx219@10:/soc/csi@4ad30000 を含む固定依存サイクル [ 0.784500] /soc/bus@42000000/i2c@42540000/imx219@10:/soc/csi@4ad30000 を含む固定依存サイクル [ 0.802395] /soc/csi@4ad30000: /soc/bus@42000000/i2c@42540000/imx219@10 を含む固定依存サイクル [ 3.664050] /soc/csi@4ad30000: /soc/bus@42000000/i2c@42540000/imx219@10 を含む固定依存サイクル [ 3.673513] /soc/bus@42000000/i2c@42540000/imx219@10:/soc/csi@4ad30000 を含む固定依存サイクル [ 9.425624] IMX219 3-0010: ダミーレギュレーター使用中、供給VANAが見つかりません [ 9.436000] IMX219 3-0010: ダミーレギュレーター使用中、供給VDIGが見つかりません [ 9.443871] IMX219 3-0010: ダミーレギュレーター使用中、供給VDDLが見つかりません [ 9.462659 imx219 3-0010: エラー読み取り reg 0x0000: -5 [ 9.468287] IMX219 3-0010: エラー -EIO: チップID 219を読み取れなかった [ 9.478088] IMX219 3-0010: ドライバー付きIMX219のプローブがエラー-5で失敗 カメラを再装着した後、エラーは-5(-EIO)に変わり、「チップIDの読み取りに失敗しました」という同じメッセージが表示されました。 i2cdetect: i2c-2 (42530000.i2c) の 0x10 には何もありませんでしたまたは i2c-3 (42540000.i2c)。関連性のないデバイスのみが表示されます(バス3の0x33、0x4c、0x62、バス2の0x50、0x52にあるUU)。 imx219モジュールは読み込まれ、DTノードも存在し、neoispプローブも成功しているので、センサーが届かない/電源が入っていない可能性があり、libcameraやドライバーの問題ではないようです。 **観察結果** - DTノードは/soc/bus@42000000/i2c@42540000 (i2c-3)の下にあるimx219@10です。AN15033のセクション3.4では、パスが.../i2c@42530000/imx219@10と示されていますが、これは私のものと一致しません。これはメモの誤植ですか? - ノードにreset-gpiosがあります。gpioinfo は、プローブが失敗した後に、出力として「MIPI-CSI カメラリセット」(19 行目) を表示し、コンシューマーは表示されません。 **質問** 1. AN15033は、RPI-CAM-MINISASアダプタと22ピン-15ピンFPCケーブルを介してカメラを接続します。そのアダプターは必須ですか?それとも、通常の15ピンから22ピンへの変換ケーブルで十分ですか? 注:ピン同士が一致しています。 2. このソフトウェアパックでFRDM-IMX95でIMX219を動かした方はいらっしゃいますか?もしそうなら、どのモジュールとケーブルで使ったのでしょうか? 私が使用しているカメラはこちらです: https://probots.co.in/8mp-imx219-camera-module-77-fov-raspberry-pi-5.html BR アマン・シャルマ Yocto Project Re: imx219 camera integration issue with IMX95-15x15 frdm こんにちは、 はい、アダプタが必要です。RPI-CAM-MINISASアダプタをIMX 219カメラコネクタに接続し、それをi.MX 95 15 mm x 15 mm FRDMのMIPI-CSIコネクタに接続します。22ピン(0.5 mmピッチ)から15ピン(1 mmピッチ)のFPCケーブルを使用します。 以下のリンクをご参照ください。 https://docs.nxp.com/bundle/AN15033/page/topics/enable_sony_imx_219_camera_module.html Re: imx219 camera integration issue with IMX95-15x15 frdm こんにちは、 RPI-CAM-MINISASアダプタとFPCケーブルに関するご説明、ありがとうございました。私はAN15033の手順に従って、推奨されている設定を使用しました。私のSony IMX219カメラは現在FRDM-i.MX95で動作していますが、起動時およびハードウェアリセット後にカメラの検出に問題が発生しています。 1. 起動時およびハードウェアリセット時のカメラ検出の問題 現在、カメラの動作は、ボードの起動方法や再起動方法によって異なります。 初回起動時:ボードの電源を初めてオンにしたとき、カメラが検出されません。 ソフトウェア再起動: ターミナルの 再起動 コマンドでボードを再起動すると、カメラは正常に検出されます。 ハードウェアリセット:ハードウェアリセットピンを使用してボードをリセットしても、カメラが検出されません。 手動での回避策: ハードウェアリセット後、カメラのリセットGPIOを手動で高くドライブし、ユーザー空間からIMX219ドライバーを再度バインドしてカメラを動かさなければなりません。 デバイスツリーで、カメラのリセット用GPIOにプルアップ抵抗を既に設定済みです。 この問題はリセットされたGPIOの初期状態、GPIOピンマックスの設定、センサの電源順序、または起動時のリセットタイミングに関連している可能性はありますか? この問題をデバイスツリーやドライバを通じて恒久的に解決し、初期起動時やハードウェアリセット後もカメラを確実に検出し、手動のGPIO制御やドライバの再割り当てを必要とせずに行う推奨方法は何でしょうか? 2. FRDM-i.MX95でのデュアルカメラサポート 次に必要なのは、FRDM-i.MX95ボード上で2台のMIPI-CSIカメラを同時に使用することです。 NXPは i.MX カメラソフトウェアパック(BSP LF6.18.2-1.0.0)を用いたFRDM-i.MX95上のデュアルカメラ動作のための参照BSP、デバイスツリー構成、または例の実装を提供していますか? 具体的には、2台のSony IMX219カメラを同時に動作させ、libcameraを介して両方のカメラからフレームをキャプチャするための推奨リファレンス構成があるかどうかを知りたいです。 このセットアップに関する利用可能なドキュメントや参考文献の実装があれば教えていただけるとありがたいです。 再開まで今しばらくお待ちください。 よろしくお願いします、 アマン・シャルマ
View full article
デバイス 私はコスタリカに拠点を置くCR Soluciones GLN S.A.社を代表してこの手紙を書いています。私たちはデジタル署名カードリーダー、特にRocketekモデルのCR317、CR336A、CR336Cの代理店であり、これらのリーダーがNXP JCOP4チップに対応しているかどうかを知りたいです。 Re: CHIP こんにちは、 @Lilliam さん あなたの調子が良いといいのですが。 JCOP 4はISO 7816-3 T=0、T=1をサポートするOSです。およびISO 14443(最大848kbps)をサポートします。 ただし、サードパーティ製リーダーとの互換性については、製造元に確認する必要があります。この件について詳しく知りたい場合は、リーダーメーカーにお問い合わせください。 よろしくお願いいたします。 エドゥアルド。 Re: CHIP こんにちは、 申し訳ありません。残念ながら、特定のサードパーティリーダーとの互換性は確認できず、リーダーメーカーが自社製品がJCOP 4を搭載した安全なスマートカードでテスト・検証されているかどうかを確認する必要があります。 ご迷惑をおかけして申し訳ございません。 よろしくお願いいたします。 エドゥアルド。
View full article
在 AraSDK 2.1.1 上,RT-DETR 无法完全转换为 Ara240 .dvm 格式——不支持的操作 + 混合变通方案 NXP社区的各位好, 我正在将RT-DETR目标检测器转换为适用于FRDM i.MX95上的Ara240 DNPU ,目标版本为AraSDK / runtime 2.1.1。仅限(非 3.0)。我想分享一些发现,并询问是否有推荐/支持的获取完整 .dvm 文件的路径。将 DETR 风格模型转换为多尺度可变形注意力模型。 环境 物品价值 电路板 FRDM i.MX95 + Ara240 运行时 imx-nxp-ara2 2.1.1 (必须与编译器匹配) 编译器 AraSDK 2.1.1 (ara-sdk-cnn:2.1.1,dvrun) 尝试过的模型 Ultralytics rtdetr-l / rtdetr-x (HGNetv2);也评测了 HF PekingU/rtdetr_r50vd (ResNet-50-VD) ONNX导出 Ultralytics RTDETR.export(format="onnx",imgsz=640, batch=1, dynamic=False, opset=17) → FP32 静态ONNX 量子化 在 AraSDK 内部完成(分析器 + 校准镜像)→ INT8 .dvm(非 Ultralytics INT8 ONNX) 目标 完整的端到端转换: FP32 ONNX → dvconvert → 试运行估计 → 量化 → 估计 → 发送 → .dvm 该程序在运行时 2.1.1 上加载,并且完全在 Ara240 DNPU 上运行。 观察结果与 NXP HuggingFace Ara240 模型对比 已发布的 Ara240 型号,例如Qwen2.5-VL / Qwen2.5-Coder即使体积大得多,也能成功转换。这些图表主要由静态的 MatMul / Norm / Softmax堆栈构成,并且看起来像是官方移植的。 RT-DETR 失败的原因不是规模(~33-43M 个参数),而是运算符覆盖范围:检测解码器使用多尺度可变形注意力和动态查询选择。 不支持/有问题的层(Ultralytics 和 HF RT-DETR 上的同一类) 模式影响AraSDK 2.1.1 网格样本 / F.grid_sample 解码器 MS 可变形注意力(n_points=4,3 级,6 层) 这不是 DNPU 操作;ONNX 导出会生成许多 GridSample 节点(在 Ultralytics rtdetr-l 上为 18 个)。 TopK + 集结/掩护行动 不确定性最小查询选择(查询数=300) 数据相关索引;变流器回退或调度/发出失败 AIFI 自我关注 混合编码器 按 BDOT 计划;估算器可能崩溃(总工时:0) Opset-17ReduceSum(轴作为输入) 解码器注意力路径 变流器 rename_ReduceSum IndexError → DV_ATen (CPU) 身份/深度广播 例如展开以查看 GatherElements 掩码 红外序列化中止(不需要DVEEIR广播层/深度-色散广播) HuggingFace PekingU/rtdetr_r50vd 使用相同的可变形解码器 + AIFI 模式(Transformers 源代码中的 RTDetrMultiscaleDeformableAttention + grid_sample + topk)。只有骨干网不同(ResNet-50-VD 与 HGNet)。切换到高频模式并不能实现完全的DNPU转换。 我遇到的失败(逐一分析) IR 序列化(完整图表) DVEEIR 广播层完全不需要……BCST……300 来源:/model.28/Expand_1(TopK 掩码展开)。 在 Expand→Concat 重写之后 DVEEIR 广播案例目前尚不支持深度维度以及其他维度。 仍在 GatherElements / 广播路径上。 完全转换 ReduceSum opset-17 → DV_ATen;Mod/Less/异或/And → DV_ATen;转换验证 EMAX > 1e-4。 注意:不能降至 opset 13,因为 GridSample 需要 opset ≥ 16。 混合型:主干网 + 编码器(不包括解码器) 试运行估算器: DVESIT 总 WG 在 SINIT 处计算不正确…BDOT,400,400,32…total_wgs: 0 (AIFI)。 发射器: DVEMCU 模型中存在未知 CP 内核……退出代码 139 (容忍空运行崩溃后的虚拟/通用内核 → 没有真正的 .dvm 文件)。 混合模式:仅骨干网络(纯 CNN) Dryruns 达到 DVEQIR 序列化 IR 完成 — 此路径对于 CNN 主干网的 DNPU .dvm 是可行的;AIFI + CCFM + 解码器留在 CPU 上 (onnxruntime)。 我的转换方法(工作方法:混合式) 由于在当前操作系统支持下,2.1.1 版本无法实现完整的RT-DETR .dvm 文件,所以我使用了一种奇偶校验精确的混合格式: 步骤 1 — 导出 FP32 静态 ONNX(Ultralytics) from ultralytics import RTDETR model = RTDETR("rtdetr-l.pt") model.export(format="onnx", imgsz=640, batch=1, dynamic=False, simplify=True, opset=17) dvrun 将此FP32 ONNX 视为 inet/iwt。INT8 随后由 AraSDK 量化器 + 校准集生成。 步骤 2 — 提取 FP32 子图 (ONNX extract_model) 在主干输出端切断(Ultralytics RT-DETR-L): 输入:图像 [1,3,640,640] 输出(DNPU / A 部分): /model.3/ec/act/Relu_output_0 → [1,512,80,80] /model.7/Add_output_0 → [1,1024,40,40] /model.10/conv/Conv_output_0 → [1,256,20,20] 其余部分(CPU / B 部分):这 3 个张量 → 输出 0 [1,300,6] from onnx import utils as onnx_utils BOUNDARY = [ "/model.3/ec/act/Relu_output_0", "/model.7/Add_output_0", "/model.10/conv/Conv_output_0", ] onnx_utils.extract_model("rtdetr-l.onnx", "partA_backbone.onnx", ["images"], BOUNDARY) onnx_utils.extract_model("rtdetr-l.onnx", "partB_rest.onnx", BOUNDARY, ["output0"]) A 部分是纯 CNN (卷积/Relu/最大池化/连接)——没有 GridSample / TopK / AIFI。 我验证了:full(images) == partB(partA(images)),其中 max_abs = 0(位精确)。 步骤 3 — 使用 AraSDK 2.1.1 (dvrun) 编译 A 部分 YAML:srcfw:onnx,inet/iwt = partA_backbone.onnx,dim 3,640,640,calib 文件夹,ignore_mse:如果需要则为 true 主机:内存/交换空间足够用于估算器(我使用的是 32GiB 内存/约 100GiB 交换空间的服务器;16Gi 桌面很容易出现内存溢出) 保持编译器和板级运行时都使用2.1.1 版本。 成功标准:调度序列化、发射器报告 Ara2 处理器兼容性、非空 .dvm 文件/ assets(非 0 字节的 kernel.lib) 步骤 4 — 部署混合推理 在 Ara240 上加载 Part A .dvm(运行时 2.1.1)。 在 ARM 上使用onnxruntime运行 Part B (partB_rest.onnx)。 将 DNPU 特征图输入到 B 部分 → 检测中。 模型部件 A 已转换为 .dvm 格式我已经在 DNPU 上测试了 Part A,在 CPU 上测试了 Part B,但是它给出了错误的低检测输出,类别输出为零,但是 Part A onnx 和 Part B onnx 在 A55 CPU 上都能正常工作并给出正确的输出。我附上图片供您参考,引用。 ORT A + B 图像 混合A+B NXP/Kinara 的问题 RT-DETR / Deformable DETR是否在 Ara240 2.1.1的支持/验证模型列表中? 是否有针对 GridSample / 多尺度可变形注意力机制的计划内核或转换路径? 对于类似 AIFI 的关注,是否有推荐的 ONNX 重写或约束,以便 BDOT 调度不包含 total_wgs: 0? 在内核出现之前,混合模式(DNPU 主干网 + CPU 解码器)是否是该架构的预期模式? 关于 DETR 图的 opset (16/17) 与变流器 ReduceSum 属性形式,是否有官方指南? 如果其他人已成功在 Ara240 2.1.1(或 3.x)上生成完整的RT-DETR .dvm 文件,请分享: 导出设置(Ultralytics vs HF / lyuwenyu) YAML / dvrun 标志 可变形注意力是被重写还是被卸载了? 如果需要,我很乐意分享更多日志(估计器 BCST / BDOT / 发射器 CP-kernel 消息)。 谢谢, 维杰·拉纳 Re: RT-DETR cannot fully convert to Ara240 .dvm on AraSDK 2.1.1 — unsupported ops + hybrid workaroun 嗨@vijayranaACL 1. RT-DETR / Deformable DETR是否在 Ara240 2.1.1的支持/验证模型列表中? >>>不,该型号目前不在 Ara240 的支持列表中。 2. 是否有针对 GridSample / 多尺度可变形注意力机制的计划内核或转换路径? 目前还没有相关计划。 其他问题我需要先和内部团队确认一下,才能回复你。 请问您能否分享一下您测试用的模型文件?然后我就可以在我的 i.MX95 FRDM 板上进行一些测试了。 B.R Re: RT-DETR cannot fully convert to Ara240 .dvm on AraSDK 2.1.1 — unsupported ops + hybrid workaroun 这些是所有级别的模型转换文件,格式为 .pt。-> .onnx-> 混合 A + B -> A + int8 onnx B 的 DVM。 模型链接: https://drive.google.com/file/d/1YhxLetVxP0T85gv0qK1GT1r_T1i25f7P/view?usp =sharing
View full article