NXP Designs Knowledge Base

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

NXP Designs Knowledge Base

Discussions

Sort by:
Overview The QorIQ® communications processors include single-, dual-, quad- and multicore processor architectures with integrated support for communications protocols such as EtherCAT. The new programmable logic controller (PLC) reference platform is equipped to ease development of industrial control systems PLC reference platform implements the KPA (koenig-pa GmbH) EtherCAT Master protocol with ISaGRAF Firmware and QNX Neutrino® RTOS on the high-performance QorIQ P1025 processor Supported by powerful development tools from all four companies, including the KPA EtherCAT Studio, ISaGRAF 6 Workbench, QNX Momentics® Tool Suite, and CodeWarrior® Development Suit Features Integrated ISaGRAF Firmware, KPA EtherCAT Master stack and QNX Neutrino RTOS on the QorIQ ®  P1 Tower ®  module EtherCAT master protocol and customer control application run simultaneously on a single QorIQ P1025 processor to deliver one millisecond EtherCAT master cycle time QorIQ P1 processors can also provide simultaneous support for complex applications, as well as additional industrial protocols like PROFINET, PROFIBUS and EtherNet/IP ™ Powerful development tools include the KPA EtherCAT Studio, ISaGRAF 6 Workbench, QNX Momentics Tool Suite, and CodeWarrior ®  Development Suite ISaGRAF 6 Workbench and Firmware kernel can fully support all IEC 61499 and IEC 61131-3 standard PLC programming languages Software and hardware developed on TWR-P1025 can be easily deployed on a range of QorIQ P1 processors, including the P1012, P1021, P1016 and P1025 processors QorIQ P1 processor family offers pin-compatible single-core variants for cost reduction, and dual-core variants which scale up to 3,700 million instructions per second (MIPS) for more complex control algorithms. Customers may distribute processing functions across two cores, or isolate real-time control functions on one core while running maintenance and communications functions on the other core. Commercial EtherCAT Master stack available from KPA Commercial Neutrino RTOS available from QNX Block Diagram Platform Requirements One TWR-P1025 QorIQ Tower Module Target slaves required to run the demo: Beckhoff EK1100 EtherCAT coupler Beckhoff EL1004 4-channel digital input terminal 24 V DC, 3 ms Beckhoff EL2004 4-channel digital output terminal 24 V DC, 0.5 A Beckhoff EL9011 end cap An image of the complete PLC Reference Platform run-time software. Download the PLC Reference Platform evaluation software. ISaGRAF 6 Workbench for offline tools Utility Software (Windows) TeraTerm for RS232 communications USB to UART driver for console port TFTP Server to load images to TWR-P1025 Design Resources
View full article
本文说明在STR Resume后,如何解决M 核与A核的GPIO状态冲突的问题,并简单剖 析了Linux GPIO驱动。 目录 1 背景说明与参考资料 .................................................. 2 1.1 背景说明 ................................................................. 2 1.2 参考资料 ................................................................. 2 2 S32G linux GPIO驱动说明 ......................................... 3 2.1 SIUL2 GPO功能说明 .............................................. 3 2.2 Linux GPIO驱动DTS .............................................. 4 2.3 Linux GPIO驱动初始化 ........................................... 6 3 Rework办法 ............................................................... 7 3.1 SIUL2 GPO驱动PM函数 ........................................ 7 3.2 Rework方法 ............................................................ 9 4 测试办法 .................................................................. 10
View full article
本文说明了S32G如何储存mac地址,包括dts保存,systemd指定和fuse保存的办法: 目录 1 需要的软件................................................................. 2 2 背景说明 .................................................................... 2 3 PFE eMAC MAC地址说明 ......................................... 2 3.1 DTS配置 ................................................................. 2 3.2 源代码说明 ............................................................. 3 3.3 测试 ........................................................................ 4 4 GMAC0 MAC地址说明 .............................................. 4 4.1 DTS配置 ................................................................. 4 4.2 源代码说明 ............................................................. 4 4.3 SystemD脚本 ......................................................... 5 4.4 固定GMAC MAC地址的修改办法 ........................... 6 5 用Uboot命令烧写FUSE MAC地址项 .......................... 7 6 修改为从fuse中获得GMAC0 MAC地址 ...................... 9 6.1 Uboot代码修改 ....................................................... 9 6.2 Uboot写MAC寄存器说明 ...................................... 10 6.3 测试 ...................................................................... 10  
View full article
This doc explain how to use S32G design studio and SDK, contributed by Gary.Yuan yuan.yuan@nxp.com.
View full article
Demo WaRP7 is an open source platform backed by the development community, design and manufacturing capabilities of element14. Features: CPU:  NXP i.MX 7Solo applications processor (Cortex TM -A7/Cortex TM –M4) Memory: 8GB eMMC 5.0 and 4Gb LPDDR3 Connectivity: WiFi, Bluetooth, BLE, USB-OTG, NFC Multimedia I/F: Camera, MIPI Display, Audio Sensors: Accelerometer, Barometer, Gyroscope Power: PMIC, Battery charger  BSP: Linux 3.14, Android 5.1 __________________________________________________________________________________________________________________ Featured NXP Products: i.MX7D: i.MX 7Dual Processors - Heterogeneous Processing with dual ARM® Cortex®-A7 cores and Cortex-M4 core Link WaRP7
View full article
Demo Owner Mike Stanley     Features Measuring the output from sensors, then computing the orientation of the device with the KL25 Kinetis Microcontrollers using advanced filtering techniques such as: Kalman filtering, Indirect Kalman filtering Built a representation of the current orientation of the device, linear acceleration Fusion software incorporated in standard OS systems Windows, iOS, Android Software library, visualization tools and full development suite are available for customers Featured NXP Products FXOS8700CQ (6- Axis Accelerometer + Magnetometer) FXAS21002 (3-Axis Gyroscope) Development Hardware Used FRDM- KL25Zhttps://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fsoftware-and-tools%2Fhardware-development-tools%2Ffreedom-development-boards%2Ffreedom-development-platform-for-kinetis-kl14-kl15-kl24-kl25-mcus%3AFRDM-KL25Z FRDM-FXS-MULTI Design Resources Sensor Fusion Library for Kinetis MCUs Sensor Fusion Toolbox for Android Sensor Fusion Toolbox for Windows Training Hands on Workshop: Sensor Fusion Library for Kinetis MCUs Links Sensor Fusion NXP Community: Sensors Best of Sensors Expo (2014 Sensor's Expo)  
View full article
Overview This reference design offers both metering and WiFi capabilities: Metering - used to measure electronic power in single-phase and, WiFi - used for wireless control. Plug status can be checked via a smart-phone application, including current active power, reactive power, grid frequency, history runtime. On/Off setting timer available as well. Features Based on Kinetis MKM14Z64 MCU WIFI module based on QFM2202 220V input voltage, 10A max current Phase current sampling with 25ppm 5 mΩ current sampler by 24Bit SD ADC Phase voltage sampling with 25ppm resistor voltage divider network by 24Bit SD ADC On-chip voltage comparator (for precision grid frequency detection) Single 32.788K crystal input for 5ppm RTC External extendable 64Mb SPI Flash Low-power modes including the use of built-in RTC 3 channel LED pulse outputs for calibration(kWh, kVarh) Provide android application to get active power, reactive power, apparent power, grid frequency and history runtime Android application to set plug ON/Off, set timer for ON/Off at fixed time and set RTC time Android application to set plug wifi module to power save mode Cost-effective bill of materials External extendable WIFI module with UART connection Block Diagram Design Resources
View full article
Demo Advantages of i.MX6 Dual/Quad Plus Features Memory bandwidth utilization greatly improved On-die caches for GPU Multi-source GPU composition Featured NXP Products i.MX6DP i.MX6QP
View full article
Demo We will present Ethernet AVB System Solution Demo running on Vybrid VF6XX or Calypso 6M/3M MPC574XG. Application will show audio playback of multi-channel audio streams received via Ethernet/Broadcom BroadRReach physical interface/, audio data streaming capability from external source or memory, audio sample rate conversion (Vybrid specific), Virtual Autosar Ethernet driver (cross core implementation) and cross core communication module capabilities.   Audio over AVB network—multi-channel audio streaming Syntonized audio playback over multiple audio end nodes Complex AVB solution supporting Power Architecture® and ARM® architecture   Product Link Vybrid Controller Solutions Tower System Module Vybrid VF6xx Tower System Kit with Arm DS-5 | NXP  Evaluation System for MPC574xB/C/G Family Evaluation System for MPC574xB/C/G Family | NXP 
View full article
Demo Owner Mark Middleton Processor Expert Software is a development system to create, configure, optimize, migrate, and deliver software components that generate source code for NXP silicon.       Features Processor expert software for Vybrid and i.MX processors Each component encapsulates a discrete set of functionality designed to accomplish the component's design objectives. When used, it may generate configuration files, header files, and/or source code depending on the type of component. A component may represent a hardware abstraction, a peripheral driver, a software algorithm (such as data encryption), or any logical collection of software function. Featured NXP Products Vybrid i.MX Applications Processors based on ARM® Cores Development Software Used Processor Expert Software and Embedded Components Links Vybrid Controller Solutions based on ARM® Technology ARM® Cortex®-A9 Cores: i.MX 6 Series Multicore Processors  
View full article
About this demo This demo shows the usage of a Neural Network (NN) applied for handwritten digit recognition, the NN model runs on the i.MX RT1060 MCU. The main idea of the demonstration is to show the i.MX RT capability to manage a graphical user interface while applying a NN model to recognize handwritten numbers to determine whether a password is correct or wrong. The demonstration is tested by setting a 4-digit password to a 4.3" LCD Panel, then the user must enter the correct password to unlock device; when the password is provided, the digits recognized by the NN are displayed on the screen. A 'Clear' button will erase the previous numbers for the user to try a new password to unlock the device. Technical Introduction and Acknowledgment The demo is available using two different approaches for the model creation and inference engines: TensorFlow Lite and CMSIS-NN using Caffe Framework.   TensorFlow Lite The application note AN12603 describes handwritten digit recognition on embedded systems through deep learning. The digit recognition is performed by a TensorFlow Lite model trained with the MINST dataset containing 60,000 handwritten grayscale images and 10,000 testing examples. This application note, deep dives into every step to achieve the application using Tensorflow Lite and build a GUI using Embedded Wizard.   CMSIS-NN using Caffee Framework The application note AN12781 explores the usage of Deep Neural Networks created in Caffe Framework, this framework allows creating a model and convert it to CMSIS-NN functions to be exported to the i.MX RT platform as source files. The model is also trained for the digit recognition using the MNIST dataset. The document describes the procedure to create, train and deploy the model; in the final step the model is exported a C source files using CMSIS-NN functions and weights that are exported to the i.MX RT1060 project. Video     Hardware setup   Recommended Products i.MX RT1060 Evaluation Kit | NXP  4.3" LCD Panel RK043FN02H-CT | NXP    Further Information                                           The NXP ® eIQ ™ software environment enables the use of ML algorithms on NXP MCUs, i.MX RT crossover MCUs, and i.MX family SoCs. eIQ software includes inference engines, neural network compilers and optimized libraries. Additionally,  the models can be optimized through techniques like quantization and pruning, AN12781 explores the possibility of optimization by creating a new model using Caffe with a quantization to simplify the floating-point data. By reducing the 32-bit floating-point data to an 8-bit and fixed-point format, the memory allocation got reduced and this resulted in a lower-processing power.   Transfer Learning Transfer learning gives machine learning models the ability to apply past experience to quickly and more accurately learn to solve new problems. This technique has become very important in deep learning. AN12892 describes how to perform transfer learning in TensorFlow and a use case example, which aims to improve the performance of the application from AN12603.    Useful Links   Links  AN12603 AN12603 Software AN12781 AN12781 Software AN12892 AN12892 Software eIQ™ for TensorFlow Lite | NXP  Caffe | Deep Learning Framework  Embedded Wizard | Simplify Your GUI Development  What is a Container? | App Containerization | Docker 
View full article
This NXP demo is a combination of two demos running on the MIMXRT1050-EVK board, showing USB Type-C power delivery and a GUI with touch interface running on the i.MXRT1050 MCU. See video of demo below.   First example is USBPD demo from the MCUXpresso Software Development Kit (SDK) for the kit. This SDK can be downloaded from https://mcuxpresso.nxp.com. The SDK USBPD project is included at \SDK_2.3.0_EVK-MIMXRT1050-OM13588\boards\evkmimxrt1050_om13588\usb_examples\usb_pd. This demo uses the FreeRTOS version. Generic description of this demo is included here in the SDK at \SDK_2.3.0_EVK-MIMXRT1050-OM13588\docs\usb\MCUXpresso SDK USB Type-C PD Stack User's Guide.pdf. Second example is a washing machine GUI using TouchGFX. This example is provided by Draupner Graphics with source code in their TouchGFX release, with more details shared here: https://touchgfx.com/nxp-semiconductors/i-mxrt1050-display-kit/ Here is a video overview of using this combined demo: Hardware Requirements ===================== For the full demo shown in the video, the following hardware is required: MIMXRT1050-EVK - eval kit for i.MXRT1050 MCU LCD - comes with MIMXRT1050-EVK OM13588 (x2) - USB Type-C shield board, two shields required FRDM-K64F - Kinetis K64 Freedom development board 0.1" female headers for Arduino connectors, not included Cables: USB Type-A to male micro-B (2 cables needed) USB Type-C male to Type-C male 9V power supply with barrel connector (2 supplies needed). Come with OM13588 kits Software Details ================ This demo was built with the following software versions: IAR Embedded Workbench for ARM v8.20.2 MCUXpresso SDK_2.3.0_EVK-MIMXRT1050-OM13588, Build Date: 2017-12-11 MCUXpresso SDK_2.3.0_FRDM-K64F-OM13588, Build Date: 2018-01-10 TouchGFX v4.9.0 Setup Video NXP Recommend Product Link USB Type-C Shield Board for Kinetis® Freedom and LPC Boards OM13588: USB Type-C Shield Board | NXP  i.MX RT1050 Evaluation Kit i.MX RT1050 Evaluation Kit | NXP  Freedom Development Platform for Kinetis® K64, K63, and K24 MCUs FRDM-K64F Platform|Freedom Development Board|Kinetis MCUs | NXP 
View full article
MCAT is a graphical tool for automatic calculation and real-time tuning of selected motor control structure parameters. MCAT can be used with fixed or floating point 16- or 32-bit data so can be used for MPC5xxx Microcontrollers, Kinetis Microcontrollers, Digital Signal Controllers, and The specified item was not found.. It also acts as a plug-in tool for Freemaster which allows real-time monitoring, tuning and parameter updating in a target application. This Tool is a HMTL-based user-friendly graphical plug-in tool for NXP's FreeMASTER. It is intended for the development of PMSM FOC applications, real-time control structure parameter tuning, and will aid motor control users in adapting our MC solutions to their motors without a detailed knowledge of PI controller constant calculations. https://community.nxp.com/players.brightcove.net/4089003392001/default_default/index.html?videoId=4282488626001" style="color: #05afc3; background-color: #ffffff; font-size: 14.4px;" target="_blankFeatures Up to three motor application support with independent access to each motor Utilizing a pole placement method for control parameter estimation Real-time tuning and updating of control parameters Preview of the static configuration of tuned parameters Generic output file with static configuration of tuned parameters Plug-in tool for FreeMASTER, not available as a standalone tool Offers basic and expert tuning mode Modular S/W concept, easy configurable Featured NXP Products MC56F84XXX Qorivva MPC56xx ARM® Cortex®-M4 High Performance MCUs: Kinetis K  Series ARM® Cortex®-M0+/M4 Motor Control MCUs: Kinetis V Series
View full article
                                     编写 K32L3A MCU 闪存 IFR 字段 简介 K32L3A60VPJ1AT MCU 是下一代 Kinetis 双核设备。该设备带来了传统 Kinetis 设备不支持 的处理和多任务处理功能。此外, K32L3A60VPJ1AT 还提供了改进的功耗和安全功能。这 些安全功能的一些重要方面在于非易失性信息寄存器(IFR)存储区域以及该区域的编程方 式。 IFR 存储器区域是与主阵列分离的具有受限访问的储器空间,并且由可擦除 IFR 区域和 不可擦除 IFR 区域组成。不可擦除的 IFR 区域包括程序的一种标识符和版本标识符。可擦 除的 IFR 区域具有闪存安全性,闪存选项,批量擦除启用以及控制设备行为的其他此类功 能。在旧版 Knietis 设备中,主闪存阵列的某些字段(闪存地址 0x400-0x40F)在引导时配 置了 IFR。但是,在 K32L3A60VPJ1AT 中,不再以这种方式控制 IFR 存储区。尝试配置这些 设置时,这会带来挑战。 本文档的目的是解释如何更改这些设置,并提供一些有关如何进 行这些更改的选项。 配置 IFR 字段的第一步是了解如何通过硬件对这些字段进行编程。使用称为“程序索引命令” 的特殊闪存命令对 IFR 字段进行编程。编程后,必须先擦除这些字段,才能重新编程闪存 配置值。擦除这些值的唯一方法是通过批量擦除。这提供了安全性,因为在不删除用户代 码的情况下也无法更改 IFR 值。此外,更改用户代码映像不会影响引导加载程序的操作, 从而确保可以执行安全的引导功能。此处描述了写入可擦除 IFR 值的过程: 1.使用程序索引命令(0x43)写入 FCCOB0。 2.用要编程的索引写入 FCCOB1.可能的索引列在“可擦除 IFR 映射”表中(K32L3A6 参考 手册中的表 16.4.1.2)。 3.将 FCCOB2 和 FCCOB3 写入 0x00,因为此命令不使用它们。 4.用所需的值写入 FCCOB4 - FCCOBB。(请注意, 并非所有索引都使用所有 FCCOB 字 段。请确保查阅 Erasable IFR Map 表,其中 FCCOB 字段用于您正在编程的索引。) 5.将 0x70 写入闪存状态寄存器(FSTAT),以清除上一个闪存命令中可能存在的任何错 误。(请注意,此命令必须是字节写操作。) 6.将 0x80 写入闪存状态寄存器(FSTAT)以启动已编程的闪存命令。 7.轮询 FSTAT 寄存器,直到 CCIF 位字段(位字段 7)为 1(‘1’)为止。(请注意, 用您 的脚本语言可能无法执行此操作,或者仅等待 flash 命令完成执行可能会更容易。在这 些情况下,等待时间比典型的 Program Index 命令完成时间 110us 长的多) 对 IFR 进行编程后,应回读 IFR 以验证其是否正确完成。其过程如下: 1.使用读取索引命令(0x41)写入 FCCOB0. 2.将 FCCOB1 写入要读取的索引。可能的索引列在“可擦写 IFR 映射“表中(K32L3A6 参 考手册中的表 16.4.1.2)。 3.用 0 写入 FCCOB2-FCCOBB。结果将存储在 FCCOB4-FCCOBB 中,因此,应清除这 些内容以确保收到正确的结果。 4.将 0x70 写入闪存状态寄存器(FSTAT),以清除上一个闪存命令中可能存在的任何 错误。注意,该命令必须是字节写入。 5.将 0x80 写入闪存状态寄存器(FSTAT)以启动已编程的闪存命令。 6.轮询 FSTAT 寄存器,直到 CCIF 位字段(位字段 7)为 1(‘1’)为止。(请注意,在您 的脚本语言中可能无法执行此操作,或者只是简单地等待 flash 命令完成执行可能会 更容易。在这些情况下,等待时间要比最长的读取索引命令完成时间 35us 长的多) 使用程序索引命令时,必须知道要修改哪个索引才能创建正确的 Flash 命令。索引列表可 以在 K32L3A60VPJ1AT 参考手册的 Flash 章节的 IFR 描述部分中找到。 有几种不同的选项可用于对 FORT 字段进行编程。这些选项是: 1.使用 Kinetis Flash 工具 2.使用 blhost 3.调试器脚本 4.用户软件中的子例程 选项#1: Kinetis Flash 工具 使用 Kinetis Flash Tool 可能是更改 IFR 值的·最方便的方法。 Kinetis 闪存工具使用 UART 或 USB 协议与 K32L3A6 引导加载程序接口并写入所需的 IFR 字段。 Kinetis Flash 工具的最大优 点之一是,它为用户提供了一个图形界面,可以轻松的对 IFR 字段进行编程。下图是 Kinetis Flash 工具的图片,并突出显示了对 IFR 字段进行编程时要使用的重要输入控件和选 项卡: 1.此字段是端口集框。他选择与引导加载程序通信时要使用的接口(UART 或 USB)。此 框还允许配置接口。有关默认配置,请查阅 K32L3A6 参考手册。 2.这是“Flash 实用工具”选项卡。选择此选项卡以查看此图像中显示的控件。 3.这是索引输入字段。应在此处输入要编程的 IFR 的索引。 4.这是十六进制数字字段。该值将在“索引”字段中指示的 IFR 索引处进行编程。此处的 值应为十六进制格式,而不能包含前面的“0x”。 5.这是字节计数字段。这告诉实用程序要编程多少个字节,并且必须是该 IFR 索引的值, 请参考参考手册中的“可擦除 IFR 映射表”。 6.这是程序按钮。填写完所有字段后,单击此按钮可以对所需的 IFR 位置进行编程。 选项#2: BLOHOST MCUBoot 软件包还包括一个命令行可执行文件,可与引导加载程序交互。该工具 blhost 还 可用于对 IFR 字段进行编程。“flash-program-once”命令应用与对所需的 IFR 位置进行编程。 该命令的语法如下: flash-program-once<index><byteCount><data> 因此,例如, 如果要使用 0xFFFFF3FF 编程 FOPT IFR 字段(记录索引 0x84),则使用此命令 的正确语法应为 flash-program-once 0x84 4 FFFFF3FF 编程后,“一次刷新读取”命令可用于回读并验证已编程的 IFR 字段。以下是使用以前的 IFR 位置的示例 flash-read-once 0x84 4 以下是使用 blhost 擦除设备,对 FOPT IFR 进行编程以及从命令行读回 FOPT IFR 的完整示 例。 选项#3:调试器脚本 简单的调试器脚本是写入 IFR 值的另一种便捷方式。调试器脚本在调试会话启动过程的后台 执行(因此是用户的隐藏操作),通常可以使用任何文本编辑器轻松地对其进行编辑。但是, 更改值可能更麻烦,因为这通常必须由用户在每次编程时手动完成。考虑到这一点,最好为 不同的配置使用不同的连接脚本 使用调试器脚本的第一步是编写调试器脚本。调试器脚本的功能和语法取决于您的工具链。 就本文档而言,我们将重点介绍 MCUXpresso IDE。 MCUXpresso IDE 使用与调试器无关的 PokeXX 和 PeekXX 命令(其中 XX 是 8、 16 或 32,具体取决于要对所需寄存器进行字节访 问,半字访问,还是字访问)。因此,无论您使用 JLink 或 CMSIS-DAP 进行调试,还是使用 任何其他调试器,在设备上运行的相同命令将继续起作用。下面是一个 MCUXpresso 连接脚 本示例,该脚本写入 FOPT 寄存器,然后将其读回以打印到调试日志。 5140 REM ====================Program FOPT=================================== 5150 poke32 this 0x40023004 0x43840000 5160 REM Stuff FCCOB registers with desired FOPT value 5170 Poke32 this 0x40023008 v% 5171 Print “New Val “;~s% 5180 Poke32 this 0x4002300c 0x00000000 5180 Poke8 this 0x40023000 0x70 5190 Poke8 this 0x40023000 0x80 5200 wait 1000 6000 REM ================== Read FOPT ===================================== 6001 REM Now read the FOPT back 6010 Poke32 this 0x40023004 0x41840000 6020 Poke32 this 0x40023008 0x00000000 6030 Poke32 this 0x4002300c 0x00000000 6040 Poke8 this 0x40023000 0x70 6050 Poke8 this 0x40023000 0x80 6060 wait 1000 6070 s% = Peek32 this 0x40023008 6080 Print "New FOPT Val ";~s% 请注意,在上面的脚本中, v%是所需的 FOPT 值,并且它已在未显示的脚本部分中定义 (第 164 行)。 162 REM This is the value to be written to the FOPT 164 v% = 0xfffff3ff 编写脚本后,必须告知 MCUXpresso 使用连接脚本。这是在“调试配置”窗口中完成的。假设 已创建调试配置,请单击绿色错误图标旁边的箭头,然后选择“调试配置”。   在出现的对话框中,选择要使用的调试配置,然后选择“Linkserver 调试”选项卡。在“连接脚 本”字段中,将 MCUXpresso 指向连接脚本的位置。 这就是在 IDE 中需要完成的所有工作。现在,所选的调试配置应使用编写的脚本。 一些调试器将允许脚本的独立命令行运行,例如 JLink 调试器。由于 JLink 是我们遇到的最 受欢迎的外部调试器之一,因此下面提供了使用此脚本进行编程的示例。 //现在对 FOPT 进行编程 w4 0x40023004, 0x43840000 //43 选择程序索引命令。 84 选择 FOPT IFR 字段。 //用我们要写入的 FOPT 值填充 FCCOB 寄存器(4-7)。 //**(启动设置) ** w4 0x40023008, 0xfffff3ff //写入 0xFFFF_1FFF 以从内部 Flash 引导 M4。声明 NMI 引 脚将强制从 ROM 引导。 //用伪值写入 FCCOB 寄存器 8-B。 w4 0x4002300c, 0x00000000 //写入 FSTAT 寄存器以清除可能存在的任何错误。 w1 0x40023000, 0x70 //启动 flash 命令。 w1 0x40023000, 0x80 //等待 flash 命令完成。 Sleep1 //现在读回 FOPT w4 0x40023004, 0x41840000 //43 选择程序索引命令。 84 选择 FOPT IFR 字段。 //用我们要写入的 FOPT 值填充 FCCOB 寄存器(4-7)。 //**(启动设置) ** w4 0x40023008, 0x00000000 //写入 0xFFFF_F1FF 以从内部 Flash 引导 M0+。声明 NMI 引脚将强制从 ROM 引导。 //用伪值写入 FCCOB 寄存器 8-B。 w4 0x4002300c, 0x00000000 //写入 FSTAT 寄存器以清除可能存在的任何错误。 w1 0x40023000, 0x70 //启动 flash 命令。 w1 0x40023000, 0x80 //等待 flash 命令完成。 Sleep1 //读回内存以验证重置后应该显示的 FOPT 设置。 mem32 40023000, 4 选项#4: 用户软件中的子例程 有时,系统的要求将阻止实施上述任何方法来对 IFR 值进行编程。在这种情况下,您可能需 要实现自己的子例程来对 IFR 进行编程。这样做的过程与调试器脚本方法基本相同,只是用 代码而不是外部脚本编写。要记住的一个关键是您可能需要擦除整个闪存。因此,此子例程 应放在 RAM 内存中。由于正在执行闪存操作,因此将其置于 RAM 中将防止发生某些闪存 错误。 结论 总之, IFR 寄存器是非易失性信息寄存器,用于控制 K32L3A MCU 的某些行为。 IFR 分为可 擦除 IFR 空间和不可擦除 IFR 空间,它们都不是主闪存阵列的一部分。对这些值进行编程需 要使用特殊的闪存命令,并且要求自上次批量擦除以来尚未写入这些值。通常,有四种不同 的编程 FOPT 寄存器设置的方法。四种方法是: 1.Kinetis Flash 工具 2.BLHost 命令行界面 3.调试器脚本 4.用户软件子程序 每种方法都有其优点,因此,您应该选择一种满足您需求并且最方便的方法。但是,无论选 择哪种方法,在写入可擦除 IFR 字段之前都不能对 IFR 值进行编程。在尝试对任何 IFR 字段 进行编辑之前,最好执行批量擦除(可以使用本文档中介绍的任何方法进行擦除)。
View full article
See how to use the Tower Kinetis 70 development hardware and programmed with PEG GUI, MQX Software Solutions RTOS and processor expert software development tools to create this touch screen controlled, wireless motor control demonstration.   Features Hardware and software modular system that NXP provides for the Kinetis Microcontrollers K series One TWR-K70F120M board communicates with another TWR-K70F120M board wirelessly and then the second TWR-K70F120M board controls a motor Usage of LCD touch panel to control the speed of the motor   Featured NXP Products CodeWarrior Development Tools|NXP Processor Expert Software and Embedded Compon|NXP Kinetis K70 120 MHz Tower System Module|NXP MQX
View full article
Overview The FlexRay Brake-By-Wire reference design shows FlexRay capabilities such as high communication speed and channel fault detection. It uses the NXP® MC9S12XDP512 MCU for the pedal node and MC56F8346 DSC for the brake/wheel node; FlexRay connectivity of both nodes is based on the MFR4200 FlexRay communication controller The braking caliper is controlled by PMSM using Vector Control technique while the spinning wheel representing a real tire is powered by a BLDC motor The boards of the 2 engines are interconnected by a CAN bus Uses FlexRay baud rate of 10Mb/s per channel but both channels carry the same data, which enables demonstration of the FlexRay channel fault detection feature Features PMSM using Vector Control technique FlexRay communication speed 10Mb/s per channel Dual channel connection Channel fault detection Re-connection feature FreeMASTER tool based control pages Block Diagram Board Design Resources
View full article
KINETIS DESIGN STUDIO IS NO LONGER SUPPORTED BY NXP. Follow this link for more information:Kinetis Motor Suite  Demo Kinetis motor suite is a highly intuitive motor control development solution that enables the design of sensored and sensorless BLDC & PMSM motor control applications quickly and efficiently, allowing those with limited or no motor control experience to develop an application. Features: Kinetis Motor Suite (KMS) is a software solution that simplifies the design and accelerates the development of motor control applications. KMS consists of 4 main components: motor tuner, motor manager, motor observer, and an open source reference solution that improves overall motor system performance due to its unique SpinTAC™ enabled motion controller. KMS is designed for developers of all experience levels, enabling rapid development via the graphical user interface and close integration with Kinetis Design Studio, or by directly controlling the function blocks via the natural API interface after initial tuning and configuration. KMS enables speed and position control across the complete operating range of any type of 3-ph PMSM or BLDC motor regardless of power level. Increased Efficiency To increase your motor’s efficiency while further reducing time-to-market, Kinetis Motor Suite streamlines your design by implementing the SpinTAC™ control system from LineStream Technologies that includes Active Disturbance Rejection Control (ADRC) Technology. Kinetis Motor Suite reduces your time to market further with: Active disturbance rejection: Single Parameter tuning: traditional PID loop control is time consuming due to trial and error nature of tuning, and requires in-depth knowledge. KMS uses a single, intuitive variable to tune motor response. Automatic motor parameter identification: identifies motor characteristics and uses these to automatically tune the control loops. Automatic System Inertia Estimation: by measuring and incorporating greater knowledge of the mechanical system, KMS achieves tight control of the system’s motion further improving system performance. _______________________________________________________________________________________________________________________ Featured NXP Products: Product Link Kinetis® V Series https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/kv-series-cortex-m4-m0-plus-m7:KINETIS_V_SERIES?&cof=0&am=0 Freedom Development Platform for Kinetis® KV3x Family MCUs https://www.nxp.com/design/development-boards/freedom-development-boards/mcu-boards/freedom-development-platform-for-kinetis-kv3x-family-mcus:FRDM-KV31F?&lang_cd=en NXP® Freedom Development Platform for Low-Voltage, 3-Phase PMSM Motor Control FRDM-MC-LVPMSM|Freedom Development Platform | NXP  Low-Voltage, 3-Phase Motor Kit for FRDM platform FRDM-MC-LVMTR|Freedom Development Platform | NXP  High-Voltage Development Platform https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/kv-series-cortex-m4-m0-plus-m7/high-voltage-development-platform:HVP-MC3PH?&fsrch=1&sr=1&pageNum=1 Low-Voltage, 3-Phase Motor Control Tower® System Module https://www.nxp.com/design/development-boards/tower-development-boards/peripheral-modules/low-voltage-3-phase-motor-control-tower-system-module:TWR-MC-LV3PH?&lang_cd=en _______________________________________________________________________________________________________________________ Online Training: Kinetis V Series MCU Online Training|NXP Blogs Zero to Hero: BLDC Electric Motor Control Introduction to Kinetis Motor Suite (KMS) _______________________________________________________________________________________________________________________
View full article
LPC55S6x系列最初的硅芯片版本为0A并且该硅芯片已在Revision A1 LPCXpresso55S69评估板上使用。版本1B的硅片已用于版本A2的评估板上。两种版本的芯片都支持新的更加稳定的调试会话请求方式,而1B芯片就需要使用该方式。如果未使用正确版本的IDE和/或调试探驱动程序,调试操作将受到影响或不能工作。 当使用revsion A2 芯片的板子时,需要当前软件版本为: MCUXpresso IDE版本11.0.1或更高版本(建议使用11.1或更高版本) [注意:也可以使用IDE 11.0.1,但在使用A1版本时,此版本需要补丁程序。请参阅https://community.nxp.com/migration-blogpost/11165] 请注意,如果从使用A1版本开发切换到A2版本时(或切换到使用1B版本芯片的任何目标系统),则需要从一个新的工作区(workspace)开始。 IAR Embedded Workbench版本8.40.2或更高版本 Keil uVISION LPC55S6x设备软件包(DFP)12.0.1或更高版本 SEGGER J-Link 应使用J-link 6.54c或更高版本(从SEGGER网站下载),建议使用V6.64或更高版本。将J-link与非SEGGER IDE(MCUXpresso,IAR,Keil)一起使用时,请确保您的IDE配置指向最新的J-Link驱动程序。 如果使用MCUXpresso IDE 11.0.1,则需要将其下安装的J-link驱动程序更新为最新版本,以支持A1版本。更多信息,请参见在Windows上更新SEGGER J-LINK安装包的方法。   有关芯片修订和工具的更多信息,请参考了解LPC55S6x版本和工具。 另请注意,有关电路板版本,芯片的版本和相应工具有中文版本描述,如下所示: http://www.nxpic.org/module/forum/thread-618614-1-1.html http://www.nxpic.org/module/forum/thread-619338-1-1.html
View full article
A reference design using DMA to scan ADC0 and ADC1 channels within FreeRTOS task, trigger interrupt when one scan completes. Hardware FRDM-K22F (https://www.nxp.com/design/development-boards/freedom-development-boards/mcu-boards/nxp-freedom-development-platform-for-kinetis-k22-mcus:FRDM-K22F). IDE IAR8.4.2. SDK The code is based on SDK2.2 (or later version) which can be built and downloaded on nxp website https://MCUXpresso.nxp.com  Function Description K22F MCU support 2 ADC modules, they are configured to do ADC channel scanning at same time. The ADC channels are defined in ADC0_Channel_List and ADC1_Channel_List, and the ADC conversion result will be saved in ADC0_Result and ADC1_Result. DMA and DMA MUX are configured to load the ADC channels and save the ADC conversion result. The DMA interrupt will be triggered when the scanning is completed. The ADC scanning is re-started when current loop is completed. Customer can processing the ADC result. To demonstrate multi-tasks, there are the other two tasks was implemented: I2C task and UART2 task.  The sensor on the FRDM-K22F board will be read in I2C task. Uart2 task recieve the data from UART2 and send the data back. Running the Demo ============================================================ 1) Open the IAR project 2) Build the project and download the code to FRDM-K22F board 3) Running the code 4) Add the arrary ADC0_result, and ADC1_Result to living watch window, the ADC result data will be refreshed. Note: Some ADC inputs are floating, so the conversion result may have great changes. 5) Open the terminal, open the serial port, and configure it with 115200/8bit/1 stop bit, the senor data will be printed in the terminal window
View full article
Demo Watch as the i.MX 8 development vehicle takes data in from the camera and uses one GPU and applies an image segmentation algorithm. The info is then fed to another GPU dedicated to a neural network inference engine which recognizes the traffic sign Products i.MX 8 Series Applications Processors|NXP  Training i.MX 8 Applications Processors Family Overview: i.MX 8, i.MX 8X, i.MX 8M  i.MX 8M Processor Overview and the Road Ahead  Micron’s Memory Solutions for the New i.MX 8 Microprocessor   
View full article