Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
How to compile and run AI models for the i.MX 95 Neutron NPU (Japanese blog) Introduction The eIQ Neutron NPU integrated into the i.MX 95 allows you to offload AI model inference processing to a dedicated accelerator. However, it's not always possible to run the model directly; several preparations are necessary, including quantization, operator compatibility, and version compatibility between the compiler and target runtime. This article outlines the entire process of converting a model created with ONNX or TensorFlow to TFLite, performing INT8 quantization, compiling for Neutron NPUs, deploying to i.MX 95, and evaluating performance using benchmark_model . We will primarily introduce the standard and flexible Flow A , but will also introduce Flow B , which leverages existing ONNX quantization environments. *This article does not specifically limit the use of the AI model; it simply describes the steps involved in the process. The command examples are for Neutron-S. When actually using them, be sure to check the documentation and release notes that come with your installed Neutron SDK , Yocto BSP , and runtime on your target. table of contents overview Host-side tool setup Conversion procedure (Flow A details) Alternative flow: Flow B (ONNX level quantization) Deployment and performance evaluation of the i.MX 95 target. (Optional) Bit-exact verification: neutron-runner Supported Operators and Quantization Constraints Troubleshooting / Common Pitfalls In conclusion   1. Overview This article outlines the conversion procedure for running AI models trained with ONNX or TensorFlow on the eIQ Neutron NPU installed in the i.MX 95. It is based on the official documentation included in the docs folder after installing the Neutron SDK: "Neutron SDK User Guide," "Neutron Compiler User Guide," "TFLite Profiler/Quantizer User Guide," "Neutron Runner User Guide," "Supported Operators (Neutron-S / Neutron-C)," and the i.MX Machine Learning User Guide (UG10166) . ℹ️ Note: The Neutron NPU in the i.MX 95 is classified as the "Neutron-S" architecture (subsystem type). It differs from "Neutron-C" used in MCUs such as the i.MX RT700 in terms of conversion flow and some tool options. This article focuses on the i.MX 95 (Neutron-S).   1.1 Overall Flow (Flow A: Recommended) The standard flow provided by the Neutron SDK involves converting the model to TFLite format, profiling it on a representative dataset, then quantizing it using INT8, and finally compiling it for the NPU with neutron-compiler . ℹ️Supplementary information for first-time users The i.MX 95's Neutron NPU actually runs on INT8 quantized TFLite models compiled for the Neutron NPU . This procedure will ultimately convert your ONNX/TensorFlow model to this format. The starting step will vary depending on the format of the pre-trained model you have prepared. Please use the following as a guide and start from the step that applies to you. INT8 quantized TFLite model: Skip steps 1-3 and start from step 4. FP32 TFLite model: Skip step 1 and start from step 2 onwards. ONNX/TensorFlow FP32 model: Perform steps 1 through 1. For detailed information on each step, please refer to the following chapters. procedure Work details Chapter number ① Convert from ONNX to TFLite FP32 Step 1: Convert the ONNX model to TFLite FP32 format. ② Profiling with representative datasets Step 2: Profiling the FP32 model ③ INT8 quantization based on profile Step 3: INT8 quantization based on profile information ④ Compiled for Neutron NPU Step 4: Compiling for Neutron NPU ⑤ Bit-exact verification as needed 6. (Optional) Bit-exact verification: neutron-runner ⑥ Deploy the converted model to the target. 5.2 Model Deployment ⑦ Inference execution and performance evaluation 5.3 Performance Evaluation (benchmark_model)   1.2 Two Quantization Flows (Flow A / Flow B) The Neutron SDK User Guide defines two flows for obtaining a quantized TFLite model. flow pipeline Quantization tools Features Flow A (Recommended) ONNX FP32 → TFLite FP32 → TFLite INT8 → Neutron conversion tflite-profiler + tflite-quantizer (included with Neutron SDK) It offers a high degree of quantization flexibility. Specific operators can be excluded from quantization, allowing mapping to the Neutron Interpolator while maintaining FP precision. Flow B ONNX FP32 → ONNX INT8 → TFLite INT8 → Neutron conversion onnx2quant (eIQ ONNX2TFLite) Useful when an existing ONNX-based quantization pipeline is in place. Fine-grained operator exclusion control is limited. 💡 Hint: If you're unsure, we recommend Flow A (tflite-profiler + tflite-quantizer). Flow A is essential if you want to map certain operators (such as nonlinear activation functions) to the Neutron Interpolator without quantizing them.   2. Setting up the host-side tools Model conversion will be performed on the development host (Linux/Windows PC). Install the following tools from the NXP eIQ repository. # ONNX → TFLite Conversion Tool pip install eiq-onnx2tflite --index-url https://eiq.nxp.com/repository/ # eIQ Neutron SDK (including tflite-profiler, tflite-quantizer, neutron-compiler, neutron-runner, etc.) pip install eiq-neutron-sdk --index-url https://eiq.nxp.com/repository/ ℹ️ Note: Recommended minimum configuration for development host (neutron-compiler): CPU 2GHz or higher x 8 cores or higher, RAM 4GB or higher. Neutron-S (i.MX 95, etc.) uses a constraint programming solver, so conversion time may take several minutes to several tens of minutes depending on the model. ℹ️If pip install fails If pip install fails to complete in your internal proxy environment, please consider the following options. Using the zip version of eIQ Toolkit — After obtaining and extracting the zip file from the eIQ Toolkit product page , you can run the Neutron tools under bin/ . The zip version uses hyphens, as in tflite-profiler , tflite-quantizer , neutron-compiler , and neutron-runner . On the other hand, the pip/uv version may use underscores, as in tflite_profiler , tflite_quantizer , and neutron_compiler . However, onnx2tflite and onnx2quant are not included in the zip version and must be installed using pip or uv. The following command examples use notation equivalent to the zip version. Install using uv — this may be more successful than pip install depending on your environment. pip install uv uv pip install eiq-onnx2tflite \ --index-url https://eiq.nxp.com/repository/ \ --extra-index-url https://pypi.org/simple/ If a proxy is required, you may need to configure http_proxy / https_proxy (including uppercase environment variables). The configuration method depends on your company's environment.   2.1 Neutron SDK Version and Yocto BSP Compatibility The Neutron Driver, Firmware, and Compiler must all be the same Neutron SDK version. If they are not compatible, the following warning will be output at runtime. Microcode version mismatch! Neutron Driver is 3.1.0-0X359f358d but model converted with 3.0.1-0Xd5d7918e. Runtime (driver, firmware) should be aligned with compiler Compatibility between Yocto BSP versions and Neutron SDK versions (excerpt, based on the latest BSP as of Q3 2026): Yocto BSP Support Release Period Default Neutron SDK LF_6.12.3_1.0.0 Q1/2025 1.2.0 LF_6.12.20_2.0.0 Q2/2025 2.0.2 LF_6.12.34_2.1.0 Q3/2025 2.1.3 LF_6.12.49_2.2.0 Q4/2025 2.2.2 LF_6.18.2_1.0.0 Q1/2026 2.2.3 LF_6.18.20_2.0.0 Q2/2026 3.1.2 LF_6.18.37_2.1.0 Q3/2026 3.2.1 Other Neutron SDK versions can also be used as "Upgradable," but in that case, you will need to update the target runtime (Driver/Firmware/Delegate) to the corresponding version and re-compile the model with the same version of neutron-compiler. For details, please refer to the version compatibility table in the "Neutron SDK User Guide." 3. Conversion Procedure (Flow A Details)   Step 1: Convert the ONNX model to TFLite FP32 format. If your model is already in TFLite FP32 format, this step is unnecessary. Use the onnx2tflite tool to convert your ONNX model to TFLite format. onnx2tflite -o .tflite .onnx ℹ️ Note regarding SDK version -i (Input specification) and -target (FP32/INT8 switching) are deprecated in some SDK versions. The input ONNX file is specified using positional arguments, and check the latest options with onnx2tflite --help before execution. If you change the input/output layout, also check the presence and default values of --keep-io-format / --no-keep-io-format in the SDK you are using.   Step 2: Profiling the FP32 model Using tflite-profiler, we measure the dynamic range (min/max/histogram) of each tensor using a representative input dataset (calibration data). ./tflite-profiler \ --input < my_model_fp32 > .tflite \ --dataset < input_data_dir > \ --output < my_model_fp32_profile > .csv ℹ️Notes regarding input data This contains a .bin file in float32 format that matches the input dimensions of the model. For image models, you can use scripts/serialize_image.py included with the SDK to resize, normalize, and convert to float32 .bin . --use_random_data , used when there is no representative dataset, is for shape verification and communication verification, but is not suitable for accuracy verification. ./tflite-profiler \ --input < my_model_fp32 > .tflite \ --use_random_data \ --random-data-samples 10 \ --output < my_model_fp32_profile > .csv A sample size of 200 to 1000 samples is usually considered sufficient for a representative dataset. For accuracy validation of quantization results, it is recommended to use a separate validation dataset that was not used for calibration.   Step 3: INT8 quantization based on profile information We will use tflite-quantizer to perform INT8 quantization based on the profile (CSV) generated in step 2. ./tflite-quantizer \ --input < my_model_fp32 > .tflite \ --profile < my_model_fp32_profile > .csv \ --output < my_model_quantized > .tflite The main quantization parameters (default values) are as follows: option explanation Default value --quantization-constant-type Weight quantization data type INT8 --quantization-constant-type-bias Quantized data types with bias (Conv2D/FC, etc.) INT32 --quantization-variable-type Quantized data type of activation INT8 --quantization-constant-granularity Granularity of weight quantization (PTQ/PCQ) PCQ (per channel) --quantization-constant-schema Weight quantization schema Symmetric --quantization-variable-schema Activation Quantization Schema Asymmetric --quantization-calibration-method Calibration method (MinMax/Percentile) MinMax To exclude a specific operator from quantization, use --quantize-operator-types-except (e.g., ADD,AVERAGE_POOL_2D ). Quantization-sensitive compound operators like LayerNorm can also be excluded using layernorm . 💡 Hint: After quantization, you can verify the operation with a dummy input using the --run-after-quantize option (only valid for standard INT8 quantization configurations). ℹ️Supplementary information regarding SDK versions Quantization options may vary depending on the SDK. In our verification environment, SDK 3.2.3 has been confirmed to work with the options shown in the table and --quantization-constant-granularity PCQ , but please be sure to verify with tflite-quantizer --help of your target SDK before use.   Step 4: Compiling for Neutron NPU Compile the quantized TFLite model for the i.MX 95 Neutron NPU using neutron-compiler. ./neutron-compiler \ --input < my_model_quantized > .tflite \ --output < my_model_converted > .tflite \ --target imx95 neutron-compiler performs the conversion in the following three stages: step Content ① Optimize Transform the graph into a mathematically equivalent form that conforms to Neutron hardware constraints (graph path). ② Extract Hierarchically mapping corresponding operators from NeutronOperator to custom operators in NeutronGraph. ③ Generate Tile partitioning, scheduling, memory allocation, and binary generation of microcode/weights/kernels. You can check the list of supported targets and operator types using the following command. neutron-compiler --show-targets neutron-compiler --show-operator-types neutron-compiler --target imx95 --show-kernel-kinds   3.1 Major Compiler Options option explanation --target The target Neutron object to be converted (e.g., imx95). If omitted, it defaults to mcxn94x. --output Output file path. If omitted, _compiled will be appended to the input name. --dump-statistics / --dump-statistics-file Output cycle estimation statistics (per NeutronGraph) to console/file. --optimization-level OFast : Fast heuristic (default) / OOpt : Optimal solution using ILP/SAT solver (conversion time is long) --include-operator-types / --exclude-operator-types Specify the operator types to map to/exclude from the NPU. --min-num-ops-per-graph The minimum number of operators to extract as a NeutronGraph. Smaller graphs are optimized for CPU execution. --use-profiling / --use-profiling-tick-trace Enable runtime profiling on actual hardware (kernel level/tick level) --keep-graphs Preserve the intermediate graph (necessary for bit-exact verification in neutron-runner) --force-determinism This suppresses multithreaded contention in the solver and obtains definitive conversion results (conversion time increases by approximately 2-3 times). ℹ️ Note: Because Neutron-S (i.MX 95, etc.) compilers use a constraint programming solver, the generated microcode (especially the TCM address) may differ slightly when the same model is converted multiple times. This is because one of several optimal solutions is selected due to multithreaded contention, and all are correct results. Use --force-determinism when determinism is required.   4. Alternative Flow: Flow B (ONNX Level Quantization) If your existing pipeline relies on ONNX-level quantization ( onnx2quant ), you can also use the following flow. Fine-grained operator exclusion control is more limited than in Flow A. procedure Implementation details Tools used / Main deliverables 1 Quantizing the ONNX FP32 model to INT8 onnx2quant , model_int8.onnx 2 Converting from ONNX INT8 to TFLite INT8 onnx2tflite , model_int8.tflite 3 Compiled for Neutron NPU neutron-compiler --target imx95   # ① ONNXレベルでINT8量子化 # -cには入力テンソル名と.npyキャリブレーションデータのディレクトリを指定 onnx2quant .onnx -o .onnx -c " ; " # ② ONNX INT8 → TFLite INT8変換(QDQ形式の場合) onnx2tflite --qdq-aware-conversion -o .tflite .onnx # ③ Neutron NPU用コンパイル neutron-compiler --input .tflite --output .tflite --target imx95 ℹ️Flow B Notes onnx2quant Then, either -c (calibration data specification) or -u (random calibration data) is required. For multiple input models, specify -c for each input. Use --qdq-aware-conversion when converting ONNX in QDQ format. Before execution, check the options of the SDK being used with onnx2quant --help / onnx2tflite --help .   5. Deployment to the i.MX 95 target and performance evaluation   5.1 Neutron Runtime Configuration The Neutron runtime for i.MX 95 (Neutron-S) consists of the following three components: component file Location Neutron Firmware NeutronFirmware.elf /lib/firmware/ Neutron Driver libNeutronDriver.so /lib/ TensorFlow Neutron Delegate libneutron_delegate.so /lib/ ⚠️ Note: Always back up existing files before updating the runtime. If the driver, firmware, and compiler versions do not match, a "Microcode version mismatch" warning will be displayed, and the system may become unstable.   5.2 Model Deployment Copy the converted TFLite model ( .tflite ) to the i.MX 95 target board (using scp, etc.).   5.3 Performance Evaluation (benchmark_model) We will use the TensorFlow Lite benchmark_model application included in the NXP Yocto BSP and perform performance evaluation via Neutron Delegate. /usr/bin/tensorflow-lite-2.19.0/examples/benchmark_model \ --graph =< my_model_converted > .tflite \ --external_delegate_path = /usr/lib/libneutron_delegate.so \ --enable_op_profiling = true \ --num_threads = 5 Example output (summary by node type): Number of nodes executed: 26 ============================== Summary by node type ============================== [Node type] [count] [avg ms] [avg %] [cdf %] [mem KB] [times called] NeutronDelegate 1 2.882 87.919% 87.919% 0.000 1 Slice (ND, X8) 10 0.175 5.339% 93.258% 0.000 10 CONCATENATION 2 0.096 2.929% 96.187% 0.000 2 Unary Elementwise (NC) 2 0.078 2.379% 98.566% 0.000 2 Copy (NC, X8) 11 0.047 1.434% 100.000% 0.000 11 Timings (microseconds): count=270 first=3372 curr=3303 min=3015 max=3537 avg=3290.54 std=76 26 nodes observed 💡 Hint: A higher avg % in the "NeutronDelegate" row indicates that the majority of the computation is offloaded to the NPU. Other nodes (Slice, Concatenation, etc.) are executed on the CPU. If this ratio is low, unsupported operators may be causing bottlenecks, so check the constraints of each operator in the "Supported Operators" documentation.   6. (Optional) Bit-exact verification: neutron-runner neutron-runner is a tool that verifies whether a model converted by neutron-compiler produces results that perfectly match the Neutron Golden Kernel (reference implementation). It is not used for production deployment, but is useful for verifying the correctness of models during migration. item Neutron Mode Vanilla Mode Target models Model converted with --keep-graphs using neutron-compiler Standard TFLite models (FP32/FP16/INT8) Target IMX95, IMXRT700 N/A the purpose bit-exact verification using Golden Kernel Reference run (baseline for comparison) Typical validation workflow: # ① Compile with --keep-graphs enabled neutron-compiler --input model.tflite --output model_neutron.tflite --target imx95 --keep-graphs # ② Execute using the Neutron runtime (Golden Kernel) neutron-runner --input model_neutron.tflite --dataset inputs/ --use-neutron-runtime = true --target imx95 # ③ Run with Vanilla runtime (reference) neutron-runner --input model.tflite --dataset inputs/ --use-neutron-runtime = false # ④ Compare results diff model_neutron_results_0.bin model_results_0.bin ℹ️ Note: Operators not supported by the Neutron Golden Kernel will automatically fall back to the TFLite Vanilla implementation. After execution is complete, a list of the operators to which it fell back will be displayed in the console. neutron-runner execution path in a pip install environment In the pip/uv version, a Python wrapper for neutron-runner is not generated, and you may need to directly specify the ELF binary within the site package. /eiq_neutron_sdk/bin/neutron-runner \ --input model_neutron.tflite \ --dataset inputs/ \ --use-neutron-runtime=true \ --target imx95 In the zip version of eIQ Toolkit, execute bin/neutron-runner as usual.   7. Supported Operators and Quantization Constraints There are common constraints on the operators that neutron-compiler can map to the NPU. Operators that do not satisfy these constraints will fall back to CPU execution.   7.1 Common constraints (common to Neutron-S / Neutron-C) The shape of the tensor must be static (fixed) (batch size N is fixed at 1; Neutron-C partially supports variable batches). The tensor type is one of UINT8 / INT8 / INT16 / INT32 / INT64. The tensor layout is NHWC (TFLite standard). The quantization scale must be a positive FLOAT32 value. The weights are symmetrically quantized (offset = 0) using PTQ or PCQ. The bias is symmetrically quantized using PTQ or PCQ, and its scale is input_scale × weights_scale Layers that do not meet the above constraints will not be mapped to the NPU.   7.2 Main operators supported by i.MX 95 (Neutron-S) CONV_2D , DEPTHWISE_CONV_2D , FULLY_CONNECTED , ADD , SUB , MUL , AVERAGE_POOL_2D , MAX_POOL_2D , CONCATENATION , PAD , PADV2 , RESHAPE , RESIZE_BILINEAR , RESIZE_NEAREST_NEIGHBOR , MEAN , SUM , LOGISTIC , TANH , HARD_SWISH , PRELU , LEAKY_RELU , RELU systems, TRANSPOSE_CONV , UNIDIRECTIONAL_SEQUENCE_LSTM etc (see SupportedOperatorsS.md for detailed constraints). ⚠️ Note: The list of supported operators is updated with each version of the Neutron Compiler (e.g., Group Conv2D support in 3.2.1, CAST/SELECT/UNIDIRECTIONAL_SEQUENCE_LSTM added in 3.1.1). Be sure to check the release notes for the SDK version you are using.   8. Troubleshooting / Common Pitfalls Symptoms cause handle Microcode version mismatch warning Driver/Firmware/Compiler version mismatch All components are reconverted and rearranged to match the same Neutron SDK version. The average percentage of NeutronDelegate is low (low NPU utilization). The model contains many unsupported operators (such as Resize/Reduce). Check the constraints in Supported Operators, replace them with alternative operators, or manually map the operators to the Interpolator while keeping them as FP. Accuracy decreases significantly after quantization. Calibration data lacks representativeness, or specific operators are sensitive to quantization. Increase the number of calibration samples (200-1000). Exclude LayerNorm and similar values using --quantize-operator-types-except The neutron-compiler conversion is extremely slow. Use OOpt optimization level, or large model First, check with OFast (default). Use OOpt only when maximum performance is required (uses up to 16 cores, increases conversion time). In neutron-runner, some operators fall back to vanilla. There are operators that are not supported by the Golden Kernel. No issues found (expected operation). Check the fallback list to ensure it's not a performance-critical area. Command not found ( command not found ) The command name and location vary depending on the installation method. For pip/uv versions, check for underscore notation and actual paths within the site package; for zip versions, check for hyphen notation and what is under bin/ onnx2tflite Option error with onnx2quant Differences between the included documentation and the SDK version Check the current option name with --help before execution.   In conclusion This article outlined a standard conversion flow for running AI models on the i.MX 95 Neutron-S NPU. Three points are particularly important for practical use: Ensure that the Neutron SDK and the target runtime versions are matched. Inconsistencies between the Driver, Firmware, Delegate, and Compiler will result in Microcode version mismatch . First, use Flow A to check the correspondence between quantization and operators. Profiling with a representative dataset will make it easier to adjust accuracy and mapping to the NPU. Check the results of benchmark_model on an operator-by-operator basis. If there are many operations other than NeutronDelegate , unsupported operators or data conversions may be causing performance bottlenecks. Model accuracy, NPU offload rate, and inference latency vary depending on the model structure, quantization settings, input data, and SDK version. It is recommended to start with a small model, go through the conversion and evaluation on a real device, and then gradually apply it to the target model if there are no problems. The command examples and corresponding information in this article may vary depending on the version of the Neutron SDK you are using. For the latest official specifications, please refer to the documentation and release notes included with your SDK. ========================= 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.) This is a practical guide for running AI models on the i.MX 95 's eIQ Neutron NPU. This document explains the process from converting an ONNX/TensorFlow model to TFLite, quantizing it to INT8, compiling it for Neutron NPUs, deploying it to the target, and evaluating its performance using benchmark_model. (Reading time: 20 minutes) *Actual compilation time will vary depending on the model. i.MX Processors Technology Focus Japanese Blog
View full article
i.MX 95のNeutron NPU向けにAIモデルをコンパイルして実行する方法 (日本語ブログ) はじめに i.MX 95に搭載されたeIQ Neutron NPUを活用すると、AIモデルの推論処理を専用アクセラレータへオフロードできます。一方で、モデルをそのまま実行できるとは限らず、量子化、演算子の対応状況、コンパイラとターゲット側ランタイムのバージョン整合など、いくつかの準備が必要です。 本記事では、ONNXまたはTensorFlowで作成したモデルをTFLiteへ変換し、INT8量子化、Neutron NPU向けコンパイル、i.MX 95への展開、 benchmark_model による性能評価までを一連の流れとして整理します。標準的で柔軟な Flow A を中心に紹介します。また既存のONNX量子化環境を活用できる Flow B も紹介します。 ※本記事では、AIモデルの用途は特に限定しておらず、一連の流れの手順を紹介します。 コマンド例はNeutron-S向けのものです。実際に使用する際は、インストールしたNeutron SDK、Yocto BSP、およびターゲット上のランタイムに付属するドキュメントとリリースノートを必ず確認してください。 目次 概要 ホスト側ツールのセットアップ 変換手順(Flow A 詳細) 代替フロー:Flow B(ONNXレベル量子化) i.MX 95ターゲットへの展開と性能評価 (任意)Bit-exact検証:neutron-runner 対応演算子(Supported Operators)と量子化制約 トラブルシューティング/よくある落とし穴 おわりに   1. 概要 本記事は、ONNXまたはTensorFlowで学習したAIモデルを、i.MX 95に搭載された eIQ Neutron NPU 上で実行するための変換手順をまとめたものです。Neutron SDKをインストールした後のdocsフォルダに含まれる公式ドキュメント「Neutron SDK User Guide」「Neutron Compiler User Guide」「TFLite Profiler/Quantizer User Guide」「Neutron Runner User Guide」「Supported Operators (Neutron-S / Neutron-C)」およびi.MX機械学習ユーザー・ガイド(UG10166)を基に構成しています。 ℹ️ 補足: i.MX 95 の Neutron NPU は「Neutron-S」アーキテクチャ(サブシステム型)に分類されます。i.MX RT700等のMCU向け「Neutron-C」とは変換フローや一部ツールオプションが異なります。本記事は i.MX 95(Neutron-S)を対象とします。   1.1 全体フロー(Flow A:推奨) Neutron SDKが提供する標準フローは、モデルをTFLite形式へ変換し、代表データセットでプロファイリングを行ったうえでINT8量子化し、 neutron-compiler でNPU向けにコンパイルする流れです。 ℹ️ 初めての方向けの補足 i.MX 95のNeutron NPUで実際に動作するのは、Neutron NPU向けにコンパイルされたINT8量子化済みのTFLiteモデルです。本手順では、手元のONNX/TensorFlowモデルを最終的にこの形式へ変換します。 準備した学習済みモデルの形式によって、開始するステップが異なります。以下を目安に、該当するステップから実施してください。 INT8量子化済みTFLiteモデル:ステップ1〜3を省略し、ステップ4以降から開始 FP32 TFLiteモデル:ステップ1を省略し、ステップ2以降から開始 ONNX/TensorFlowのFP32モデル:ステップ1から順に実施  各手順の詳細は以下の章をご参照ください。 手順 作業内容 章番号 ① ONNXからTFLite FP32へ変換 ステップ1:ONNXモデルをTFLite FP32形式に変換 ② 代表データセットでプロファイリング ステップ2:FP32モデルのプロファイリング ③ プロファイルに基づいてINT8量子化 ステップ3:プロファイル情報に基づくINT8量子化 ④ Neutron NPU向けにコンパイル ステップ4:Neutron NPU用コンパイル ⑤ 必要に応じてBit-exact検証 6. (任意)Bit-exact検証:neutron-runner ⑥ 変換済みモデルをターゲットへ展開 5.2 モデルの展開 ⑦ 推論実行と性能評価 5.3 性能評価(benchmark_model)   1.2 2つの量子化フロー(Flow A / Flow B) Neutron SDK User Guide では、量子化済みTFLiteモデルを得るための2つのフローが定義されています。 フロー パイプライン 量子化ツール 特徴 Flow A(推奨) ONNX FP32 → TFLite FP32 → TFLite INT8 → Neutron変換 tflite-profiler + tflite-quantizer(Neutron SDK付属) 量子化の自由度が高い。特定演算子を量子化対象から除外しFP精度のまま Neutron Interpolator にマッピング可能 Flow B ONNX FP32 → ONNX INT8 → TFLite INT8 → Neutron変換 onnx2quant(eIQ ONNX2TFLite) 既存のONNXベース量子化パイプラインがある場合に有用。細かい演算子除外制御は限定的 💡 ヒント: 判断に迷う場合は Flow A(tflite-profiler + tflite-quantizer)を推奨します。特定の演算子(非線形活性化関数など)を量子化せずNeutron Interpolatorへマッピングしたい場合は Flow A が必須です。   2. ホスト側ツールのセットアップ モデル変換は開発ホスト(Linux/Windows PC)上で実施します。NXPのeIQリポジトリから以下のツールをインストールします。 # ONNX → TFLite 変換ツール pip install eiq-onnx2tflite --index-url https://eiq.nxp.com/repository/ # eIQ Neutron SDK(tflite-profiler, tflite-quantizer, neutron-compiler, neutron-runner 等を含む) pip install eiq-neutron-sdk --index-url https://eiq.nxp.com/repository/ ℹ️ 補足: 推奨開発ホスト最小構成(neutron-compiler):CPU 2GHz以上 ×8コア以上、RAM 4GB以上。Neutron-S(i.MX 95等)はconstraint programmingソルバーを使用するため、モデルによって変換時間が数分~数十分かかることがあります。 ℹ️ pip installがうまくいかない場合 社内プロキシ環境などで pip install が完了しない場合は、次の方法を検討してください。 eIQ Toolkitのzip版を使う — eIQ Toolkit製品ページからzipを取得して展開すると、 bin/ 配下のNeutronツールを実行できます。zip版では、 tflite-profiler 、 tflite-quantizer 、 neutron-compiler 、 neutron-runner のようにハイフン表記を使用します。一方、pip/uv版では tflite_profiler 、 tflite_quantizer 、 neutron_compiler のようにアンダースコア表記になる場合があります。ただし、 onnx2tflite / onnx2quant はzip版に含まれないため、pipまたはuvでの導入が必要です。以降のコマンド例はzip版相当の表記です。 uv を使ってインストールする — 環境によっては pip install より成功しやすい場合があります。 pip install uv uv pip install eiq-onnx2tflite \ --index-url https://eiq.nxp.com/repository/ \ --extra-index-url https://pypi.org/simple/ プロキシ経由が必要な場合は、 http_proxy / https_proxy (大文字の環境変数も含む)の設定が必要になる場合があります。設定方法は社内環境に依存します。   2.1 Neutron SDK バージョンと Yocto BSP の整合性 Neutron Driver・Firmware・Compilerは必ず同一のNeutron SDKバージョンに揃える必要があります。整合していない場合、ランタイムに次の警告が出力されます。 Microcode version mismatch! Neutron Driver is 3.1.0-0X359f358d but model converted with 3.0.1-0Xd5d7918e. Runtime (driver, firmware) should be aligned with compiler Yocto BSPバージョンとNeutron SDKバージョンの対応(抜粋、2026年Q3時点の最新BSPを基準): Yocto BSP 対応リリース期 デフォルトNeutron SDK LF_6.12.3_1.0.0 Q1/2025 1.2.0 LF_6.12.20_2.0.0 Q2/2025 2.0.2 LF_6.12.34_2.1.0 Q3/2025 2.1.3 LF_6.12.49_2.2.0 Q4/2025 2.2.2 LF_6.18.2_1.0.0 Q1/2026 2.2.3 LF_6.18.20_2.0.0 Q2/2026 3.1.2 LF_6.18.37_2.1.0 Q3/2026 3.2.1 上記以外のNeutron SDKバージョンも「Upgradable」として使用可能ですが、その場合はターゲット側のランタイム(Driver / Firmware / Delegate)を該当バージョンに更新し、同じバージョンの neutron-compiler でモデルを再変換する必要があります。詳細は「Neutron SDK User Guide」のバージョン互換表を参照してください。 3. 変換手順(Flow A 詳細)   ステップ1:ONNXモデルをTFLite FP32形式に変換 モデルが既にTFLite FP32形式の場合はこのステップは不要です。onnx2tfliteツールを使用してONNXモデルをTFLite形式に変換します。 onnx2tflite -o .tflite .onnx ℹ️ SDKバージョンに関する注意 -i (入力指定)や -target (FP32/INT8の切り替え)は、SDKバージョンによっては廃止されています。入力ONNXファイルは位置引数で指定し、実行前に onnx2tflite --help で最新のオプションを確認してください。入出力レイアウトを変更する場合は、使用中のSDKで --keep-io-format / --no-keep-io-format の有無と既定値も確認します。   ステップ2:FP32モデルのプロファイリング tflite-profilerを使用し、代表的な入力データセット(キャリブレーションデータ)を用いて各テンソルの動的範囲(min/max/ヒストグラム)を計測します。 ./tflite-profiler \ --input <my_model_fp32>.tflite \ --dataset <input_data_dir> \ --output <my_model_fp32_profile>.csv ℹ️ 入力データに関する注意 には、モデルの入力次元に一致するfloat32形式の .bin ファイルを格納します。画像モデルでは、SDKに付属する scripts/serialize_image.py を使って、リサイズ・正規化・float32の .bin 化を行えます。代表データセットがない場合の --use_random_data は、形状確認や疎通確認向けで、精度検証には適しません。 ./tflite-profiler \ --input <my_model_fp32>.tflite \ --use_random_data \ --random-data-samples 10 \ --output <my_model_fp32_profile>.csv 代表データセットのサンプル数は、通常200〜1000サンプルで十分とされています。量子化結果の精度検証には、キャリブレーションに使用していない別の検証用データセットを使用することが推奨されます。   ステップ3:プロファイル情報に基づくINT8量子化 tflite-quantizerを使用して、ステップ2で生成したプロファイル(CSV)に基づきINT8量子化を行います。 ./tflite-quantizer \ --input <my_model_fp32>.tflite \ --profile <my_model_fp32_profile>.csv \ --output <my_model_quantized>.tflite 主な量子化パラメータ(デフォルト値)は以下の通りです。 オプション 説明 デフォルト値 --quantization-constant-type 重みの量子化データ型 INT8 --quantization-constant-type-bias バイアス(Conv2D/FC等)の量子化データ型 INT32 --quantization-variable-type 活性化(アクティベーション)の量子化データ型 INT8 --quantization-constant-granularity 重み量子化の粒度(PTQ/PCQ) PCQ(チャネル単位) --quantization-constant-schema 重みの量子化スキーマ Symmetric --quantization-variable-schema 活性化の量子化スキーマ Asymmetric --quantization-calibration-method キャリブレーション方式(MinMax/Percentile) MinMax 特定の演算子を量子化対象から除外したい場合は --quantize-operator-types-except (例: ADD,AVERAGE_POOL_2D )を使用します。LayerNormのような量子化に敏感な複合演算子も layernorm 指定で除外可能です。 💡 ヒント: 量子化後は --run-after-quantize オプションでダミー入力による動作確認が可能です(標準的なINT8量子化構成の場合のみ有効)。 ℹ️ SDKバージョンに関する補足 量子化オプションはSDKによって異なる場合があります。検証環境のSDK 3.2.3では、表に示したオプションと --quantization-constant-granularity PCQ の実行を確認していますが、使用前に必ず対象SDKの tflite-quantizer --help で確認してください。   ステップ4:Neutron NPU用コンパイル 量子化済みTFLiteモデルをneutron-compilerでi.MX 95のNeutron NPU向けにコンパイルします。 ./neutron-compiler \ --input <my_model_quantized>.tflite \ --output <my_model_converted>.tflite \ --target imx95 neutron-compilerは以下の3段階で変換を行います。 段階 内容 ① Optimize(最適化) グラフをNeutronハードウェア制約に適合するよう数学的に等価な形へ変換(グラフパス) ② Extract(抽出) 対応演算子を NeutronOperator → NeutronGraph のカスタム演算子へ階層的にマッピング ③ Generate(生成) タイル分割、スケジューリング、メモリ割り付け、マイクロコード/重み/カーネルのバイナリ生成 対応ターゲット一覧やオペレータタイプ一覧は以下のコマンドで確認できます。 neutron-compiler --show-targets neutron-compiler --show-operator-types neutron-compiler --target imx95 --show-kernel-kinds   3.1 主要なコンパイラオプション オプション 説明 --target 変換先のNeutronターゲット(例:imx95)。省略時は mcxn94x --output 出力ファイルパス。省略時は入力名に _compiled を付加 --dump-statistics / --dump-statistics-file サイクル推定統計(NeutronGraphごと)をコンソール/ファイルへ出力 --optimization-level OFast :高速ヒューリスティック(デフォルト) / OOpt :ILP/SATソルバーで最適解(変換時間は長い) --include-operator-types / --exclude-operator-types NPUへマッピングする/除外する演算子タイプを指定 --min-num-ops-per-graph NeutronGraphとして抽出する最小演算子数。小さいグラフはCPU実行の方が有利な場合に調整 --use-profiling / --use-profiling-tick-trace 実機でのランタイムプロファイリングを有効化(カーネル単位/ティック単位) --keep-graphs 中間グラフを保持(neutron-runnerでのbit-exact検証に必要) --force-determinism ソルバーのマルチスレッド競合を抑制し決定的な変換結果を得る(変換時間は約2〜3倍に増加) ℹ️ 補足: Neutron-S(i.MX 95等)のコンパイラは制約プログラミングソルバーを使用するため、同一モデルを複数回変換すると生成されるマイクロコード(特にTCMアドレス)がわずかに異なることがあります。これはマルチスレッドの競合による複数の最適解の一つが選ばれるためで、いずれも正しい結果です。決定性が必要な場合は --force-determinism を使用します。   4. 代替フロー:Flow B(ONNXレベル量子化) 既存のパイプラインがONNXレベルの量子化( onnx2quant )に依存している場合は、次のフローも利用できます。細かな演算子除外制御はFlow Aより限定的です。 手順 実施内容 使用ツール/主な成果物 1 ONNX FP32モデルをINT8量子化 onnx2quant 、 model_int8.onnx 2 ONNX INT8からTFLite INT8へ変換 onnx2tflite 、 model_int8.tflite 3 Neutron NPU向けにコンパイル neutron-compiler --target imx95   # ① ONNXレベルでINT8量子化 # -cには入力テンソル名と.npyキャリブレーションデータのディレクトリを指定 onnx2quant .onnx -o .onnx -c " ; " # ② ONNX INT8 → TFLite INT8変換(QDQ形式の場合) onnx2tflite --qdq-aware-conversion -o .tflite .onnx # ③ Neutron NPU用コンパイル neutron-compiler --input .tflite --output .tflite --target imx95 ℹ️ Flow Bの注意 onnx2quant では、 -c (キャリブレーションデータ指定)または -u (ランダムキャリブレーションデータ)のいずれかが必要です。複数入力モデルでは入力ごとに -c を指定します。QDQ形式のONNXを変換する場合は --qdq-aware-conversion を使用します。実行前に onnx2quant --help / onnx2tflite --help で使用中SDKのオプションを確認してください。   5. i.MX 95ターゲットへの展開と性能評価   5.1 Neutronランタイムの構成 i.MX 95(Neutron-S)のNeutronランタイムは以下3つのコンポーネントで構成されます。 コンポーネント ファイル 配置先 Neutron Firmware NeutronFirmware.elf /lib/firmware/ Neutron Driver libNeutronDriver.so /lib/ TensorFlow Neutron Delegate libneutron_delegate.so /lib/ ⚠️ 注意: ランタイム更新前に既存ファイルを必ずバックアップしてください。Driver・Firmware・Compilerのバージョンが一致していないと「Microcode version mismatch」警告が出力され、動作が不安定になる可能性があります。   5.2 モデルの展開 変換済みTFLiteモデル( .tflite )をi.MX 95ターゲットボードへコピーします(scp等)。   5.3 性能評価(benchmark_model) NXP Yocto BSPに含まれるTensorFlow Liteの benchmark_model アプリケーションを使用し、Neutron Delegate経由で性能評価を行います。 /usr/bin/tensorflow-lite-2.19.0/examples/benchmark_model \ --graph=<my_model_converted>.tflite \ --external_delegate_path=/usr/lib/libneutron_delegate.so \ --enable_op_profiling=true \ --num_threads=5 出力例(ノードタイプ別サマリー): Number of nodes executed: 26 ============================== Summary by node type ============================== [Node type] [count] [avg ms] [avg %] [cdf %] [mem KB] [times called] NeutronDelegate 1 2.882 87.919% 87.919% 0.000 1 Slice (ND, X8) 10 0.175 5.339% 93.258% 0.000 10 CONCATENATION 2 0.096 2.929% 96.187% 0.000 2 Unary Elementwise (NC) 2 0.078 2.379% 98.566% 0.000 2 Copy (NC, X8) 11 0.047 1.434% 100.000% 0.000 11 Timings (microseconds): count=270 first=3372 curr=3303 min=3015 max=3537 avg=3290.54 std=76 26 nodes observed 💡 ヒント: 「NeutronDelegate」行の avg % が高いほど、計算の大部分がNPUへオフロードされていることを示します。それ以外のノード(Slice, Concatenation等)はCPU実行です。この比率が低い場合、未対応演算子がボトルネックになっている可能性があるため、「Supported Operators」資料で各演算子の制約を確認してください。   6. (任意)Bit-exact検証:neutron-runner neutron-runnerは、neutron-compilerで変換したモデルがNeutron Golden Kernel(参照実装)と完全に一致した結果を出すかを検証するツールです。本番デプロイには使用しませんが、モデル移行時の正しさの検証に有用です。 項目 Neutron Mode Vanilla Mode 対象モデル neutron-compilerで --keep-graphs 付きで変換したモデル 標準TFLiteモデル(FP32/FP16/INT8) 対応ターゲット imx95, imxrt700 N/A 目的 Golden Kernelによるbit-exact検証 リファレンス実行(比較用ベースライン) 典型的な検証ワークフロー: # ① --keep-graphs付きでコンパイル neutron-compiler --input model.tflite --output model_neutron.tflite --target imx95 --keep-graphs # ② Neutronランタイム(Golden Kernel)で実行 neutron-runner --input model_neutron.tflite --dataset inputs/ --use-neutron-runtime=true --target imx95 # ③ Vanillaランタイム(リファレンス)で実行 neutron-runner --input model.tflite --dataset inputs/ --use-neutron-runtime=false # ④ 結果比較 diff model_neutron_results_0.bin model_results_0.bin ℹ️ 補足: Neutron Golden Kernelが未対応の演算子は自動的にTFLite Vanilla実装にフォールバックします。実行完了後、フォールバックした演算子一覧がコンソールに表示されます。 pip install環境でのneutron-runner実行パス pip/uv版では、 neutron-runner 用のPythonラッパーが生成されず、サイトパッケージ内のELFバイナリを直接指定する場合があります。 /eiq_neutron_sdk/bin/neutron-runner \ --input model_neutron.tflite \ --dataset inputs/ \ --use-neutron-runtime=true \ --target imx95 eIQ Toolkitのzip版では、通常どおり bin/neutron-runner を実行します。   7. 対応演算子(Supported Operators)と量子化制約 neutron-compilerがNPUへマッピング可能な演算子には共通の制約があります。制約を満たさない演算子はCPU実行にフォールバックします。   7.1 共通制約(Neutron-S / Neutron-C 共通) テンソルの形状は静的(固定)でなければならない(バッチサイズNは1固定:Neutron-Cは可変バッチも一部対応) テンソル型は UINT8 / INT8 / INT16 / INT32 / INT64 のいずれか テンソルレイアウトは NHWC(TFLite標準) 量子化スケールは正のFLOAT32値であること 重み(Weights)はPTQまたはPCQで対称量子化(オフセット=0)されていること バイアス(Bias)はPTQまたはPCQで対称量子化され、スケールは input_scale × weights_scale であること 上記制約を満たさない層はNPUへマッピングされません。   7.2 i.MX 95(Neutron-S)で対応する主な演算子 CONV_2D , DEPTHWISE_CONV_2D , FULLY_CONNECTED , ADD , SUB , MUL , AVERAGE_POOL_2D , MAX_POOL_2D , CONCATENATION , PAD , PADV2 , RESHAPE , RESIZE_BILINEAR , RESIZE_NEAREST_NEIGHBOR , MEAN , SUM , LOGISTIC , TANH , HARD_SWISH , PRELU , LEAKY_RELU , RELU系, TRANSPOSE_CONV , UNIDIRECTIONAL_SEQUENCE_LSTM 等(詳細な制約は SupportedOperatorsS.md を参照)。 ⚠️ 注意: 対応演算子リストは Neutron Compiler のバージョンごとに更新されます(例:3.2.1でGroup Conv2D対応、3.1.1でCAST/SELECT/UNIDIRECTIONAL_SEQUENCE_LSTM追加)。使用するSDKバージョンのリリースノートを必ず確認してください。   8. トラブルシューティング/よくある落とし穴 症状 原因 対処 Microcode version mismatch 警告 Driver/Firmware/Compilerのバージョン不一致 全コンポーネントを同一Neutron SDKバージョンに揃えて再変換・再配置 NeutronDelegateのavg%が低い(NPU活用率が低い) モデル内に未対応演算子(Resize/Reduce等)が多く含まれる Supported Operatorsで制約を確認し、代替演算子へ置換、または演算子を手動でFPのままInterpolatorへマッピング 量子化後に精度が大きく低下 キャリブレーションデータが代表性不足、または特定演算子が量子化に敏感 キャリブレーションサンプル数を増やす(200〜1000)。LayerNorm等は --quantize-operator-types-except で除外 neutron-compilerの変換が極端に遅い OOpt最適化レベル使用、または大規模モデル まずOFast(デフォルト)で確認。OOptは最大性能が必要な場合のみ使用(最大16コア使用、変換時間増大) neutron-runnerで一部演算子がVanillaにフォールバック Golden Kernel未対応演算子が存在 問題なし(想定動作)。フォールバック一覧を確認し、性能クリティカルな箇所でないか確認 コマンドが見つからない( command not found ) インストール方法によってコマンド名・配置場所が異なる pip/uv版はアンダースコア表記やサイトパッケージ内の実体パスを確認し、zip版はハイフン表記と bin/ 配下を確認する onnx2tflite / onnx2quant でオプションエラー 付属ドキュメントとSDKバージョンの相違 実行前に --help で現在のオプション名を確認する   おわりに 本記事では、i.MX 95のNeutron-S NPUでAIモデルを実行するための標準的な変換フローを紹介しました。実運用で特に重要なポイントは、次の3点です。 Neutron SDKとターゲット側ランタイムのバージョンを揃えること。 Driver、Firmware、Delegate、Compilerの不整合は、 Microcode version mismatch の原因になります。 まずはFlow Aで量子化と演算子の対応状況を確認すること。 代表データセットを使ったプロファイリングにより、精度とNPUへのマッピングを調整しやすくなります。 benchmark_model の結果を演算子単位で確認すること。 NeutronDelegate 以外の処理が多い場合は、未対応演算子やデータ変換が性能上のボトルネックになっている可能性があります。 モデルの精度、NPUへのオフロード率、推論レイテンシーは、モデル構造、量子化設定、入力データ、SDKバージョンによって変わります。まずは小さなモデルで変換から実機評価までを通し、問題がなければ対象モデルへ段階的に適用する進め方がおすすめです。 本記事のコマンド例および対応情報は、使用するNeutron SDKのバージョンによって変わる場合があります。最新の正式仕様は、利用中のSDKに付属するドキュメントとリリースノートを参照してください。 ========================= 本投稿の「Comment」欄にコメントをいただいても、現在返信に対応しておりません。 お手数をおかけしますが、お問い合わせの際には「NXPへの技術質問 - 問い合わせ方法 (日本語ブログ)」をご参照ください。 (既に弊社NXP代理店、もしくはNXPとお付き合いのある方は、直接担当者へご質問いただいてもかまいません。) i.MX 95のeIQ Neutron NPUでAIモデルを実行するための実践ガイドです。 ONNX/TensorFlowモデルのTFLite変換、INT8量子化、Neutron NPU向けコンパイル、ターゲットへの展開、benchmark_modelによる性能評価までの流れを解説します。 (読了:20分) ※実際に作業する場合は、モデルによってコンパイル時間が変わります。 i.MX Processors Technology Focus 日本語ブログ
View full article
i.MX RT1176: GPTの最大周波数 GPTの最大周波数 #RT1176 を知りたいです。GPTのキャプチャ機能を使って信号の周波数を測定したいと思っています。これまではMCUを使っていましたが、タイマーの最大周波数STM32H7 240MHzで、低く感じます。だから高い周波数タイマーを持つMCUが欲しいです。しかしRT1170のデータシートにはGPTの導入がありません。 Re: i.MX RT1176: Maximum frequency of the GPT @长亭様 i.MX RT1176にご関心をお寄せいただきありがとうございます。 GPTの最大動作クロック周波数は240 MHzで、この情報は i.MX RT1170リファレンスマニュアルで確認できます: よろしくお願いします、 シェリー
View full article
AN15071:在哪里可以下载演示版和工具? 您好,NXP团队, AN15071 Rev 1.0(MCX N947 上的 CMIS over I3C)提到了mcxn947_optical_module_cmis_over_i3c_demo项目及其脚本文件夹中的cmis_test_tool.exe ,但文档中唯一的链接是 USB 转 I3C 桥接存储库。 演示源代码和PC工具在哪里可以下载?或者它们何时发布? 感谢您的支持, 查尔斯·迪亚斯 FRDM 培训 动手实践培训 MCX N Re: AN15071: where to download the demo and tool? 你好@Celeste_Liu , 我会创建工单。 感谢您的帮助! Re: AN15071: where to download the demo and tool? 你好@CharlesDias , 感谢您的帖子。 AN15071 演示和相关工具将上传到应用程序代码中心。上传过程仍在进行中,预计将于 11 月中旬上线。 如果情况紧急,您可以创建私人工单与我们联系。如果演示版已经通过了我们的内部审核,我可以申请在正式版本前发送给您。 希望对您有所帮助。 BR 塞莱斯特
View full article
需要NXP IMX 1050evkb的帮助 我学过C语言编程。现在,我正在尝试学习嵌入式开发的基础知识。我刚买了一套NXP 1050评估套件。但这与 NXP 入门指南中提到的基本步骤并不一致。- 它没有内置加速度计项目。我尝试安装驱动程序,但链接指向构建 SDK 的页面。指南上说要安装SDK,但我找不到任何可安装的文件。里面的视频都太老了。 有人能帮忙吗? Re: Need help with NXP IMX 1050evkb 嗨@achino , 非常感谢您对我们产品的关注以及对我们社区的使用。 SDK 以 ZIP 包的形式下载;没有单独的 SDK 安装程序需要运行。请检查您的板是 MIMXRT1050-EVK 还是 MIMXRT1050-EVKB,并在下载 SDK 时选择匹配的板。 https://mcuxpresso.nxp.com/ 将 SDK ZIP 导入 MCUXpresso IDE 后,使用导入 SDK 示例。对于 MIMXRT1050-EVKB,选择“evkbimxrt1050_flexio_i2c_read_accel_value_transfer”。本示例通过板的虚拟串口将三轴加速度计读数打印到 PC 串口终端。 请检查您的 MCUXpresso IDE 版本、SDK 版本和评估板是否兼容。 希望对你有帮助 顺祝商祺! 刘梅
View full article
使用百分比大小设置图像按钮时存在一个错误。 在使用 GUI Guider 2.0.1 版本绘制用户界面时,我发现使用百分比大小的图像按钮存在一个错误。当我将图像按钮的大小设置为百分比时,自动生成的图像源的大小也将是该百分比,这可能会导致图像显示异常。 回复: There is a bug when using the percentage size for the image buttons. 嗨@Misarac 谢谢你提供的信息。 我会将此事报告给我们的GUIGUIDER团队。 BR 哈里
View full article
FRDM-MCXN947 上的 SWO 数据监视功能无法正常工作 NXP社区的各位朋友,大家好! 我正在使用MCUXpresso IDE 25.6和FRDM-MCXN947开发板。 SWO 的其他所有功能,包括 ITM 控制台输出、中断、性能分析和计数器,均运行正常。但是, SWO 数据监视器不显示实时变量值,也不生成图表。 我测试了一个简单的程序,其中包含持续更新的全局易失性变量。暂停时,这些变量在调试器中显示正确的值,并且在执行过程中持续更新(显示在全局变量中),但 SWO 数据监视器仍然为空或显示零值。 我已附上 SWO 跟踪配置的屏幕截图。SWO 时钟频率设置为12.0 MHz ,并且在时钟配置工具中启用了跟踪时钟。SWO 跟踪统计信息显示只有有效字节,没有坏字节,并且跟踪配置似乎已激活。 这是我使用的简单代码 - #include #include "fsl_common.h" #include "fsl_clock.h" #include "board.h" volatile uint32_t trace_counter = 0 ; volatile uint32_t trace_ramp = 0 ; volatile uint32_t trace_wave = 0 ; int main ( void ) { BOARD_InitBootClocks () ; 当( 1 ) { trace_counter ++; trace_ramp += 10 U ; 如果( trace_ramp >= 1000 U ) { trace_ramp = 0 U ; } trace_wave = ( trace_wave == 0 U ) ?100 U : 0 U ; SDK_DelayAtLeastUs ( 100000U , CLOCK_GetFreq ( kCLOCK_CoreSysClk ) ) ; } } 附上屏幕截图以便更好地说明。 这会不会是 MCUXpresso IDE 25.6 中 MCXN947 上的 SWO 数据监视器存在限制或兼容性问题?要启用实时变量监测,是否需要任何额外的目标、探针或观察点配置? 感谢您的帮助。 FRDM-MCXN947 MCX N Re: SWO Data Watch Not Working on FRDM-MCXN947 你好@sidsal , 感谢您的帖子。 经内部核实,我确认这是MCUXpresso IDE v25.06(arm33内核)中已知的问题。 问题出在DWT单位的不同上。MCXN947 使用 Cortex-M33 内核( Armv8-M )。它的 DWT 比较器寄存器设计与 Cortex-M3/M4 ( Armv7-M ) 上的不同。因此,该核心上的比较器没有正确设置,无法进行数据跟踪。没有生成数据跟踪包,因此 SWO 数据视图保持为空或显示为零。 由于恩智浦目前正集中精力开发基于 VS Code 的 MCUXpresso,并将其作为推荐的开发环境,因此我们暂时无法提供包含此修复程序的 MCUXpresso IDE 新版本发布的具体时间表。由此造成的不便,敬请谅解。 BR 塞莱斯特
View full article
如何在 CodeWarrior 10.6 中使用 CodeWarrior 2.1 生成的 hex 文件对 MPC5607B 进行编程 您好,我遇到一个问题。在CodeWarrior 2.1中编译MPC5607B生成的hex文件可以在CodeWarrior 2.1中正常烧录,但无法在CodeWarrior 10.6中编程。 CodeWarrior 10.6 中的编程配置选择和错误信息如下: 回复: How to program MPC5607B with hex files generated from CodeWarrior 2.1 in CodeWarrior 10.6 我的项目比较老旧,而且包含库,所以只能用 2.1 版本编译,不能用 10.6 版本编译。然后我把它连接到 10.6 系统上,我想直接用 10.6 系统对用 2.1 系统编译的文件进行编程。附件是我的 elf 文件和 hex 文件。 Re: How to program MPC5607B with hex files generated from CodeWarrior 2.1 in CodeWarrior 10.6 你好, 感谢您提供如此详细的信息。 根据日志,闪存擦除操作已成功完成,这表明所选的闪存配置和擦除程序运行正常。 故障发生在编程阶段。具体来说,在地址 0x00000000 处编程成功,但在尝试对地址 0x00007FCC 处的数据进行编程时失败: 由于设备已成功擦除,因此该问题似乎与擦除算法本身无关。相反,它更有可能与故障地址处正在编程的内容有关,或者与 CodeWarrior 10.6 如何处理生成的映像有关。 请提供链接器映射文件,并指出地址 0x00007FCC 附近的段是什么?将生成的 HEX/S19 文件与 CodeWarrior 10.6 中编程的 ELF 图像进行比较也很有用。 顺祝商祺! Peter Re: How to program MPC5607B with hex files generated from CodeWarrior 2.1 in CodeWarrior 10.6 我的项目比较老旧,而且包含库,所以只能用 2.1 版本编译,不能用 10.6 版本编译。然后我把它连接到 10.6 系统上,我想直接用 10.6 系统对用 2.1 系统编译的文件进行编程。附件是我的 elf 文件和 hex 文件。
View full article
2026年版 ベスト個人データ削除サービス:独立機関によるテストと専門家によるランキング上位6社 結論 6か月にわたる実践形式の評価の結果、DeleteMeは 最高の個人データ削除サービスの明確な勝者として浮上しました。750+のブローカーカバレッジと人間のプライバシー専門家を擁し、自動化ツールでは到底及ばない結果を提供します。 個人情報を削除 この2年間、私は数多くのデータ削除サービスを試してみましたが、正直なところ、ほとんどが期待外れでした。私の情報は一時的に消え、数週間後に人検索サイトで再び現れることがありました。まるでお金をドブに捨てたような気分だった。 DeleteMeを知ってから、状況は一変しました。最初は躊躇しましたが、半年間継続して使用した結果、2026年時点で利用できる最高の個人データ削除サービスだと確信しました。信頼できるIncogniの代替サービスを探している場合、またはインターネットから個人情報を完全に削除する方法を知りたい場合は、これが解決策です。 DeleteMeが際立つ理由 永久的な削除:一度限りのクリーンアップを実行する基本的な自動データ削除サービスとは異なり、DeleteMeは継続的な監視を行い、データが再び出現した場合(これは常に発生します)、その都度データを削除します。 人間の介入:ボットが失敗した場合、実際のプライバシー専門家が対応し、抵抗するサイトを管理します。この人的要素こそが、それを真に効果的なデータブローカー削除サービスへと変える要因となるのです。 比類のないカバレッジ:750以上のデータブローカーを監視しており、Incogni(約180ブローカー)のような競合他社やOpteryのような低価格オプションよりもはるかに多い。 透明性の高い報告:四半期ごとの報告書には、発見され、正常に除去された内容が正確に記載されており、文書化された安心感を提供します。 他のトップ6サービスとの比較 公平性を確保するため、調査中に他の人気のあるDeleteMe競合サービスも評価しました。 Incogni:フルオートメーション(~月$6.49)の予算的に堅実な選択肢です。しかし、複雑なシナリオに対する人間のサポートが不足しています。 Optery :スクリーンショットによる確認で視覚的な証明に最適です(月額約3.99ドル)。ただし、その後の対応の積極性はDeleteMeとは一致しない。 Aura :VPN/アンチウイルスとのバンドル削除(月額約12ドル)が可能ですが、専用のブローカーデータベースは限定的です(約100サイト)。 プライバシー Bee:テクノロジーに詳しいユーザー向けに深いカスタマイズを提供します(~月$14.99)、しかし、カジュアルユーザーには複雑すぎる。 Cloaked :既存のデータを削除するのではなく、積極的なエイリアス生成に重点を置いています。代替ではなく、優れた補完機能です。 プレミアム価格は正当化されるのか? DeleteMeは年間10.75ドル/月で、基本的な代替サービスよりも高額です。しかし、人間の専門知識、広範なブローカーネットワーク、そして長期的な情報抑制の保証という組み合わせは、それだけの価値がある。手動での除去は無料だが、膨大な時間がかかり、効果も一時的なものにとどまる。 ウェブ上に個人情報が散乱しているのを見てうんざりしていて、永続的な保護を提供するデータ削除サービスが必要な場合。
View full article
MCXA156VLH ADC内部ダイオード定格 Pg:36 - 図 12. ADC 入力インピーダンス等価図に記載されているダイオードの定格の詳細が必要です。 私たちはアプリケーションを設計するために許容範囲の評価を知りたいと考えています。 アナログ(ADC|CMP|DAC|オペアンプ) ボード設計 Re: MCXA156VLH ADC INTERNAL DIODE RATINGS こんにちは、 @TEMCEFF さん、 投稿ありがとうございます。データシートをご参照ください。 MCXA156の場合、VINがVSS − 0.3 Vを下回るか、VDD + 0.3 Vを上回ると、I/OピンあたりのDC注入電流制限は±3 mAになります。さらに、連続する16本のピンに対する局所的な注入電流制限は±25mAです。入力電圧がこれらの電圧境界を超える場合は、外部の電流制限抵抗器を使用すべきです。 お役に立てば幸いです。 BR セレステ Re: MCXA156VLH ADC INTERNAL DIODE RATINGS ADC注入電流の制限値(I/Oピンあたり±3mA、地域制限値±25mA)をご提供いただきありがとうございます。 私たちはMCXA156 ADC用のアナログフロントエンドを設計しており、ADC入力等価回路(図12/ADC入力インピーダンス等価図)に示される内部保護構造の挙動と制限をよりよく理解したいと考えています。 具体的には、以下の点についてご説明いただければ幸いです。 クランプ動作 ADCの入力電圧がVDD_ANAを超えた場合(例えば、VDD_ANA = 3.3 V、VIN = 5 Vの場合)、内部保護構造は入力電圧をクランプしますか? もしそうなら、クランプ時のADCピンでの典型的な電圧はどれくらいですか?(例えば、およそVDD_ANA + 0.3 V、VDD_ANA + 0.7 Vなど) クランプの特性 以下の項目に関する特性データは入手可能ですか? クランプ電圧対注入電流 保護構造物の動的抵抗 内部クランプ経路の順方向電圧 過電圧耐性 外部注入電流が指定された±3 mAの制限より小さい場合、デバイスに損傷を伴わずに許容できる最大ADC入力電圧はありますか? 例えば、注入電流が指定限界を下回る場合、ADC入力は一時的な5V、12V、またはそれ以上の過渡電圧に安全に耐えられるのでしょうか? 過渡現象およびサージ耐性 以下のような情報はありますか? 最大過渡パルス電流 最大過渡持続時間 内部保護構造が吸収できる最大エネルギー システムレベル保護に関する推奨事項 内部保護ネットワークは、ESD/注入電流保護構造としてのみ考えるべきであり、繰り返し過電圧状態に対しては外部保護部品が必要となるべきでしょうか? 私たちの目標は、故障状態や短時間の過電圧スパイクにさらされる可能性のあるADCチャネルに必要な外部保護回路と抵抗のサイズを決定することです。 Re: MCXA156VLH ADC INTERNAL DIODE RATINGS こんにちは、 @TEMCEFF さん、 詳細なご質問をありがとうございました。 MCXA156の公開ドキュメントを確認しました。ご質問の一部はデータシートに基づいてお答えできますが、内部保護構造の詳細については内部チームによるさらなる確認が必要です。 データシートに基づくと: I/Oピンは、ESD保護構造を介してVSSおよびVDDに内部的にクランプされています。 最大DC注入電流はピンあたり±3mAで、連続する16ピンに対しては±25mAの領域制限があります。 正の注入電流の場合、データシートでは注入条件をVIN > VDD + 0.3 Vと定義しています。 データシートには、正方向注入時の電流制限抵抗を計算するための以下の式が記載されています。          R = (VIN - VDD_MAX) / IICIOmax 過渡電圧の場合、データシートでは、基本式から計算される値よりも約1桁高い抵抗値を使用することを推奨しています。 ただし、 VDD + 0.3 Vは保証されたまたは固定されたクランプ電圧として解釈すべきではありません。公開ドキュメントにはクランプI-V挙動の詳細な特徴付けは提供されていません。 また、以下の項目の公開仕様も見つけられませんでした。 クランプ電圧対注入電流 内部クランプの動的抵抗または詳細な順方向電圧特性 注入電流が3mA未満に制限されている場合、外部から印加できる最大電圧は5V、12V以上です。 最大過渡パルス電流とパルス持続時間 内部保護構造が吸収できる最大エネルギー 内部クランプの反復的なシステムレベル過電圧状態に対する適合性評価 したがって、注入電流の仕様だけに基づいてこれらの制限について憶測を立てることは避けたい。これらの質問は、さらなる確認のため、社内チームにエスカレーションする必要があります。 当社のエスカレーションプロセスに基づき、以下の情報を教えていただけますか? 最終顧客の名前 最終アプリケーション名 この情報が入ったら、エスカレーションに進めます。   BR セレステ Re: MCXA156VLH ADC INTERNAL DIODE RATINGS ご要望に応じて、下記の詳細事項をご検討ください。 最終お客様名 - インド鉄道 最終アプリケーション名 - インテリジェントフィールドデバイス アプリケーションの説明 - 照明、エスカレーター、リフトなどの鉄道資産を監視・制御するIoTデバイス; Re: MCXA156VLH ADC INTERNAL DIODE RATINGS こんにちは、 @TEMCEFF さん、 ご辛抱いただきありがとうございます。社内からの回答をご覧ください。 」 データシートにはピンあたり±3mA、地域別±25mAのDC注入電流制限が記載されていますが、これらの制限はADC/I/O入力電圧の絶対最大定格を上書きするものではありません。したがって、注入電流を3mA以下に抑えるだけでは、一時的な5V、12V、またはそれ以上の電圧入力が安全であることを保証するものではありません。 内部ESDクランプについては、データシートに保証クランプ電圧、I-V特性曲線、動的抵抗、または過渡パルス/エネルギー容量に関する特性は記載されていません。したがって、反復的な障害やシステムレベルの障害に対する保護手段として、内部クランプに頼ることはお勧めしません。 このアプリケーションでは、直列抵抗と適切な低順方向電圧ショットキークランプの組み合わせなどの外部保護を推奨し、ADCピンを指定された電圧制限内に保つことを推奨します。 」 さらに詳しい情報が必要な場合は、お知らせください。 BR セレステ
View full article
AN15071: where to download the demo and tool? Hello NXP team, AN15071 Rev 1.0 (CMIS over I3C on MCX N947) refers to the mcxn947_optical_module_cmis_over_i3c_demo project and to cmis_test_tool.exe in its scripts folder, but the only link in the document is the USB-to-I3C bridge repository. Where can the demo source and the PC tool be downloaded, or when will they be published? Thank you for your support, Charles Dias FRDM-Training Hands-On Training MCXN Re: AN15071: where to download the demo and tool? Hello @Celeste_Liu , I'll create the ticket. Thank you for your help! Re: AN15071: where to download the demo and tool? Hello @CharlesDias , Thanks for your post. The AN15071 demo and related tool will be uploaded to the Application Code Hub. The upload process is still ongoing, and they are expected to be available in mid-November. If this is urgent, you can contact us by creating a private ticket. If the demo has already passed our internal scan, I can request to send to you before the official release. Hope it helps. BR Celeste
View full article
AN15071: デモ版とツールはどこからダウンロードできますか? NXPチームの皆様、こんにちは。 AN15071 Rev 1.0 (MCX N947 上の I3C 経由の CMIS) は、 mcxn947_optical_module_cmis_over_i3c_demoプロジェクトとその scripts フォルダー内のcmis_test_tool.exeを参照していますが、ドキュメント内の唯一のリンクは USB-to-I3C ブリッジのリポジトリです。 デモソースとPCツールはどこでダウンロードできるのか、またいつ公開されるのか? サポートありがとうございます。 チャールズ・ディアス FRDMトレーニング ハンズオン・トレーニング MCX N Re: AN15071: where to download the demo and tool? こんにちは、 @CharlesDias さん、 投稿ありがとうございます。 AN15071デモおよび関連ツールは アプリケーションコードハブにアップロードされます。アップロード作業は現在も進行中であり、11月中旬には利用可能になる予定です。 緊急の場合は 、プライベートチケットを作成してお問い合わせください。デモがすでに内部スキャンを通過している場合は、正式リリース前に送付をお願いできます。 お役に立てば幸いです。 BR セレステ Re: AN15071: where to download the demo and tool? こんにちは、 @Celeste_Liu さん。 チケットを作成します。 助けてくれてありがとう!
View full article
MCXA156VLH ADC INTERNAL DIODE RATINGS we require details of ratings of diodes mentioend in Pg:36 - Figure 12. ADC input impedance equivalency diagram. We want to know tolerable rating to design our application accordingly. Analog(ADC|CMP|DAC|OpAmps) Board Design Re: MCXA156VLH ADC INTERNAL DIODE RATINGS Hello @TEMCEFF , Thanks for your post. Please refer to our datasheet: For MCXA156, the DC injection current limit is ±3 mA per I/O pin when VIN goes below VSS − 0.3 V or above VDD + 0.3 V. In addition, the regional injection-current limit for 16 contiguous pins is ±25 mA. If the input voltage can exceed these voltage boundaries, an external current-limiting resistor should be used. Hope it helps. BR Celeste Re: MCXA156VLH ADC INTERNAL DIODE RATINGS Thank you for providing the ADC injection current limits (±3 mA per I/O pin and ±25 mA regional limit). We are designing an analog front-end for the MCXA156 ADC and would like to better understand the behavior and limitations of the internal protection structure shown in the ADC input equivalent circuit (Figure 12 / ADC input impedance equivalency diagram). Specifically, we would appreciate clarification on the following points: Clamp Behavior When an ADC input voltage exceeds VDD_ANA (for example, VDD_ANA = 3.3 V and VIN = 5 V), does the internal protection structure clamp the input voltage? If so, what is the typical voltage at the ADC pin during clamping (for example, approximately VDD_ANA + 0.3 V, VDD_ANA + 0.7 V, etc.)? Clamp Characteristics Is there any characterization data available for: Clamp voltage versus injection current Dynamic resistance of the protection structure Forward voltage of the internal clamp path Overvoltage / Withstand Capability If the injection current is externally limited to less than the specified ±3 mA limit, is there a maximum ADC input voltage that can be tolerated without device damage? For example, can the ADC input safely withstand temporary 5 V, 12 V, or higher transient voltages provided the injection current remains below the specified limit? Transient and Surge Capability Is there any available information regarding: Maximum transient pulse current Maximum transient duration Maximum energy that the internal protection structure can absorb System-Level Protection Recommendation Should the internal protection network be considered only as an ESD/injection-current protection structure, requiring external protection components for repetitive overvoltage conditions? Our goal is to determine the required external protection circuitry and resistor sizing for ADC channels that may be exposed to fault conditions or short-duration overvoltage spikes. Re: MCXA156VLH ADC INTERNAL DIODE RATINGS Hello @TEMCEFF , Thank you for the detailed questions. I checked the available public documentation for the MCXA156. Some of your questions can be answered based on the datasheet, while the detailed characteristics of the internal protection structure will require further confirmation from our internal team. Based on the datasheet: The I/O pins have internal clamping to VSS and VDD through the ESD protection structure. The maximum DC injection current is ±3 mA per pin, with a ±25 mA regional limit for 16 contiguous pins. For positive injection current, the datasheet defines the injection condition as VIN > VDD + 0.3 V. The datasheet provides the following equation for calculating the current-limiting resistor for positive injection:          R = (VIN - VDD_MAX) / IICIOmax For transient voltages, the datasheet recommends using a resistor value approximately one order of magnitude higher than the value calculated from the basic equation. However, VDD + 0.3 V should not be interpreted as a guaranteed or fixed clamp voltage. The public documentation does not provide detailed characterization of the clamp I-V behavior. I also could not find public specifications for the following items: Clamp voltage versus injection current Dynamic resistance or detailed forward-voltage characteristics of the internal clamp Maximum externally applied voltage, such as 5 V, 12 V, or higher, when the injection current is limited below 3 mA Maximum transient pulse current and pulse duration Maximum energy that the internal protection structure can absorb Qualification of the internal clamp for repetitive system-level overvoltage conditions Therefore, I do not want to make assumptions about these limits based only on the injection-current specification. These questions need to be escalated to our internal team for further confirmation. According to our escalation process, could you please provide the following information? End customer name End application name Once we have this information, we can proceed with the escalation.   BR Celeste Re: MCXA156VLH ADC INTERNAL DIODE RATINGS Consider below mentioned details as requested. End customer name - Indian Railways End application name - Intelligent Field device Application description - IoT device to monitor and control Railway assets like Lighting, Escalators, lift etc; Re: MCXA156VLH ADC INTERNAL DIODE RATINGS Hello @TEMCEFF , Thanks for your patience. Please see the reply from our internal: " Although the datasheet specifies ±3 mA per-pin and ±25 mA regional DC injection-current limits, these limits do not override the ADC/I/O input-voltage Absolute Maximum Rating. Therefore, keeping the injection current below 3 mA alone does not guarantee that temporary 5 V, 12 V, or higher inputs are safe. The internal ESD clamp is not characterized in the datasheet with guaranteed clamp voltage, I-V curve, dynamic resistance, or transient pulse/energy capability. Therefore, we do not recommend relying on the internal clamp for repetitive or system-level fault protection. For this application, we recommend external protection, such as a series resistor combined with a suitable low-forward-voltage Schottky clamp, to keep the ADC pin within the specified voltage limits. " If you need any further details, please let me know. BR Celeste
View full article
MCXA156VLH ADC 内部二极管额定值 我们需要第 36 页 - 图 12 中提到的二极管的额定值的详细信息。ADC 输入阻抗等效图。 我们需要了解可接受的评分标准,以便据此设计我们的应用程序。 模拟(ADC|CMP|DAC|运算放大器) 电路板设计 Re: MCXA156VLH ADC INTERNAL DIODE RATINGS 你好@TEMCEFF , 感谢您的帖子。请参阅我们的产品数据表: 对于 MCXA156,当 VIN 低于 VSS − 0.3 V 或高于 VDD + 0.3 V 时,每个 I/O 引脚的直流注入限流为 ±3 mA。此外,16 个连续引脚的区域注入电流限流为 ±25 mA。如果输入电压可能超过这些电压限制,则应使用外部限流电阻。 希望对您有所帮助。 BR 塞莱斯特 Re: MCXA156VLH ADC INTERNAL DIODE RATINGS 感谢您提供 ADC 注入限流(每个 I/O 引脚 ±3 mA 和 ±25 mA 区域限制)。 我们正在为 MCXA156 ADC 设计模拟前端,并希望更好地了解 ADC 输入等效电路(图 12 / ADC 输入阻抗等效图)中所示的内部保护结构的行为和局限性。 具体而言,我们希望您能就以下几点进行澄清: 钳位行为 当ADC输入电压超过VDD_ANA(例如VDD_ANA = 3.3 V,VIN = 5 V)时,内部保护结构是否会钳位输入电压? 如果是这样,钳位期间 ADC 引脚的典型电压是多少(例如,大约 VDD_ANA + 0.3 V、VDD_ANA + 0.7 V 等)? 夹具特性 是否有以下方面的特征数据: 钳位电压与注入电流的关系 防护结构的动态阻力 内部钳位路径的正向电压 过电压/耐受能力 如果外部将注入电流限制在规定的±3 mA限制以下,是否存在一个最大可承受的ADC输入电压,而不会损坏设备? 例如,在注入电流保持在规定限值以下的情况下,ADC 输入能否安全地承受 5V、12V 或更高的瞬态电压? 瞬态和浪涌能力 是否有关于以下方面的信息: 最大瞬态脉冲电流 最大瞬态持续时间 内部防护结构能够吸收的最大能量 系统级保护建议 内部保护网络是否仅被视为静电放电/注入电流保护结构,而对于重复性过电压情况则需要外部保护元器件? 我们的目标是确定可能暴露于故障情况或短时过电压尖峰的 ADC 通道所需的外部保护电路和电阻器尺寸。 Re: MCXA156VLH ADC INTERNAL DIODE RATINGS 你好@TEMCEFF , 感谢您提出的详细问题。 我查阅了MCXA156的公开文档。根据数据表,您的一些问题可以得到解答,而内部保护结构的详细特性则需要我们内部团队进一步确认。 根据数据表: I/O 引脚通过 ESD 保护结构对 VSS 和 VDD 进行内部钳位。 每个引脚的最大直流注入电流为±3 mA , 16 个连续引脚的区域限制为±25 mA 。 对于正注入电流,数据手册将注入条件定义为VIN > VDD + 0.3 V。 数据手册提供了以下用于计算正向注入限流电阻的公式: R = (VIN - VDD_MAX) / IICIOmax 对于瞬态电压,数据手册建议使用比基本方程计算出的值高一个数量级的电阻值。 然而, VDD + 0.3 V 不应被视为保证的或固定的钳位电压。公开文档并未提供钳位电压 IV 特性的详细描述。 我也找不到以下项目的公开规格说明: 钳位电压与注入电流的关系 内部钳位的动态电阻或详细正向电压特性 当注入电流限制在 3 mA 以下时,最大外部施加电压为 5 V、12 V 或更高。 最大瞬态脉冲电流和脉冲持续时间 内部防护结构能够吸收的最大能量 内部钳位电路在重复系统级过电压条件下的验证 因此,我不想仅仅根据注入电流规格来对这些限制做出假设。这些问题需要上报给内部团队进行进一步确认。 根据我们的升级处理流程,请您提供以下信息? 最终客户姓名 最终应用程序名称 一旦我们掌握了这些信息,就可以启动升级程序。   BR 塞莱斯特 Re: MCXA156VLH ADC INTERNAL DIODE RATINGS 请参考以下所列详情。 最终客户名称 - 印度铁路 最终应用名称 - 智能现场设备 应用描述 - 用于监测和控制铁路资产(如照明、自动扶梯、电梯等)的物联网设备; Re: MCXA156VLH ADC INTERNAL DIODE RATINGS 你好@TEMCEFF , 感谢您的耐心等待。请查看我们内部的回复: ” 虽然数据手册规定每引脚±3 mA和区域±25 mA直流注入电流限流,但这些限制并不会凌驾于ADC/I/O输入电压绝对最大额定值之上。因此,仅将注入电流保持在 3 mA 以下并不能保证临时 5 V、12 V 或更高输入是安全的。 数据手册中没有对内部 ESD 钳位电路进行表征,例如保证钳位电压、I-V 曲线、动态电阻或瞬态脉冲/能量能力。因此,我们不建议依靠内部夹具进行重复性或系统级故障保护。 对于此应用,我们建议采用外部保护,例如串联电阻器与合适的低正向电压肖特基钳位电路相结合,以使 ADC 引脚保持在规定的电压范围内。 ” 如果您需要更多详细信息,请告诉我。 BR 塞莱斯特
View full article
How to program MPC5607B with hex files generated from CodeWarrior 2.1 in CodeWarrior 10.6 Hi,I encountered a problem,The hex file generated by compiling MPC5607B in CodeWarrior 2.1 can be normally burned in CodeWarrior 2.1, but it cannot be programmed in CodeWarrior 10.6 The programming configuration selection and error messages in CodeWarrior 10.6 are as follows: Re: How to program MPC5607B with hex files generated from CodeWarrior 2.1 in CodeWarrior 10.6    My project is quite old and contains libraries, so it can only be compiled with 2.1 and cannot be compiled with 10.6. Then I attach it on 10.6, and I want to directly program the files compiled with 2.1 using 10.6. The attachments are my elf and hex files. Re: How to program MPC5607B with hex files generated from CodeWarrior 2.1 in CodeWarrior 10.6 Hello, Thank you for the detailed information. Based on the log, the flash erase operation completes successfully, which indicates that the selected flash configuration and erase procedure are working correctly. The failure occurs during the programming phase. Specifically, programming succeeds at address 0x00000000 but fails when attempting to program data at address 0x00007FCC: Since the device was erased successfully, the issue does not appear to be related to the erase algorithm itself. Instead, it is more likely associated with the contents being programmed at the failing address or with how CodeWarrior 10.6 handles the generated image. Could you please provide the linker map file and identify which section is located around address 0x00007FCC? It would also be useful to compare the generated HEX/S19 file and the ELF image being programmed in CodeWarrior 10.6. Best regards, Peter 回复: How to program MPC5607B with hex files generated from CodeWarrior 2.1 in CodeWarrior 10.6    My project is quite old and contains libraries, so it can only be compiled with 2.1 and cannot be compiled with 10.6. Then I attach it on 10.6, and I want to directly program the files compiled with 2.1 using 10.6. The attachments are my elf and hex files.
View full article
NXP IMX 1050evkb に関するヘルプが必要です 私はC言語プログラミングの経験があります。今は、組み込み開発の基礎を学ぼうとしています。NXP 1050の評価キットを購入しました。しかし、これはNXPの入門ガイドに記載されている基本的な手順とは一致しません。- 加速度センサのプロジェクトは作られていない。ドライバをインストールしようとしましたが、LinkはSDKsの作成を指示します。ガイドにはSDKをインストールするように書かれていますが、インストール可能なファイルが見つかりません。そこにある動画はどれも古すぎる。 誰か助けてくれませんか? Re: Need help with NXP IMX 1050evkb こんにちは、 @achino さん。 私たちの製品にご関心を寄せ、コミュニティをご利用いただき、本当にありがとうございます。 SDKはZIPパッケージとしてダウンロードされます。別のSDKインストーラーは実行できません。お使いのボードがMIMXRT1050-EVKかMIMXRT1050-EVKBかを確認し、SDKをダウンロードする際に対応するボードを選択してください。 https://mcuxpresso.nxp.com/ SDK ZIPをMCUXpresso IDEにインポートした後、Import SDKの例を使いましょう。MIMXRT1050-EVKB の場合は、「evkbimxrt1050_flexio_i2c_read_accel_value_transfer」を選択してください。この例では、3軸加速度センサの読み取り値をボードの仮想シリアルポートを通じてPCのシリアル端末に印刷しています。 MCUXpresso IDEバージョン、SDKバージョン、評価ボードが互換性があるか必ず確認してください。 お役に立てれば幸いです。 よろしくお願いいたします。 メイ・リウ
View full article
SWOデータウォッチがFRDM-MCXN947で動作しない こんにちは、NXPコミュニティの皆さん、 私は MCUXpresso IDE 25.6 と FRDM-MCXN947 開発ボード を使っています 。 ITMコンソール出力、割り込み、プロファイリング、カウンタなど、その他のSWO機能はすべて正常に動作しています。しかし、 SWOデータウォッチでは、リアルタイムの変数値が表示されず、グラフも生成されません。 継続的に更新されるグローバルな揮発性変数を含むシンプルなプログラムをテストしました。これらの変数は、一時停止中はデバッガで正しい値を表示し、実行中も更新され続けます(グローバル変数に表示されます)。しかし、SWO Data Watchは空のままか、ゼロ値を表示します。 SWOトレース設定のスクリーンショットを添付しました。SWOのクロック速度は12.0MHzに設定されており、クロック設定ツールでトレースクロックが有効になっています。SWOトレース統計では、不良バイトはなく、正常バイトのみが表示され、トレース設定は有効になっているようです。 これが私が使用しているシンプルなコードです。 #include #include "fsl_common.h" #include "fsl_clock.h" #include "board.h" volatile uint32_t trace_counter = 0 ; volatile uint32_t trace_ramp = 0 ; volatile uint32_t trace_wave = 0 ; int main ( void ) { BOARD_InitBootClocks () ; ( 1 )​ { trace_counter ++; trace_ramp += 10 U ; if ( trace_ramp >= 1000 U ) { trace_ramp = 0 U ; } trace_wave = ( trace_wave == 0 U ) ?100 U : 0 U ; SDK_DelayAtLeastUs ( 100000 U , CLOCK_GetFreq ( kCLOCK_CoreSysClk )) ; } } より分かりやすくするために、スクリーンショットを添付しました。 これはMCUXpresso IDE 25.6のMCXN947上のSWO Data Watchとの制限や互換性の問題でしょうか?リアルタイム変数監視を有効にするために、追加のターゲット、プローブ、またはウォッチポイントの設定が必要ですか? 助けてくれてありがとう。 FRDM-MCXN947 MCX N Re: SWO Data Watch Not Working on FRDM-MCXN947 こんにちは、 @sidsal さん、 投稿ありがとうございます。 内部で確認したところ、これはMCUXpresso IDE v25.06のarm33コアで既知の問題であることが確認できました。 問題は、DWT単位の違いに起因する。MCXN947はCortex-M33コア(Armv8-M)を使用しています。DWTコンパレータレジスタはCortex-M3/M4(Armv7-M)のものとは異なる設計です。そのため、このコア上のデータトレース用にコンパレータが正しく設定されていません。データトレースパケットは生成されないため、SWOデータビューは空のままかゼロのままになります。 NXPは現在、推奨開発環境として MCUXpresso for VS Code の開発に注力しているため、修正を含む新しいMCUXpresso IDEリリースの確定スケジュールは現時点で提供できません。ご不便をおかけして申し訳ありません。 BR セレステ
View full article
Need help with NXP IMX 1050evkb I’ve done C Programming. Now, I’m trying to learn basics of embedded development. I just bought an NXP 1050 evaluation kit. But it does not align with the basic steps mentioned on the NXP Getting Started guide. - It doesn’t have an accelerometer project in built. I tried installing the driver but the Link takes me to build an SDK. And the guide says to install the SDK but I can’t find any installable files there. All the videos in there are too old. Can somebody help? Re: Need help with NXP IMX 1050evkb Hi @achino , Thank you so much for your interest in our products and for using our community. The SDK is downloaded as a ZIP package; there is no separate SDK installer to run. Please check whether your board is the MIMXRT1050-EVK or MIMXRT1050-EVKB , and select the matching board when downloading the SDK. https://mcuxpresso.nxp.com/ After importing the SDK ZIP into MCUXpresso IDE, use Import SDK example(s) . For the MIMXRT1050-EVKB , select "evkbimxrt1050_flexio_i2c_read_accel_value_transfer ". This example prints the three-axis accelerometer readings to a PC serial terminal through the board’s virtual serial port. Please check that your MCUXpresso IDE version, SDK version, and evaluation board are compatible. Wish it helps you Best Regards, May Liu
View full article
画像ボタンのサイズをパーセンテージで指定すると、バグが発生します。 GUI Guider 2.0.1 バージョンで UI を描画していた際に、画像ボタンにパーセンテージサイズを使用するとバグが発生することに気づきました。画像ボタンのサイズをパーセンテージに設定すると、自動生成される画像ソースのサイズもそのパーセンテージになるため、異常な画像表示の原因になることがあります。 回复: There is a bug when using the percentage size for the image buttons. こんにちは、 @Misarac さん。 情報ありがとうございます。 GUIGUIDERチームに報告します。 BR ハリー
View full article
i.MX RT1176:GPT 的最大频率 我想知道RT1176的GPT最大频率。我想使用GPT的捕获功能来测量信号频率。之前我用的是STM32H7单片机,但它的定时器最大频率只有240MHz,我觉得太低了。所以我需要一个定时器频率更高的单片机。但是RT1170的数据手册里没有提到GPT。 Re: i.MX RT1176: Maximum frequency of the GPT 亲爱的@长亭, 感谢您对 i.MX RT1176 的关注。 GPT 的最大工作时钟频率为 240 MHz,您可以在 i.MX RT1170 参考手册中找到此信息: 此致, 雪莉
View full article