NXP Designs Knowledge Base

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

NXP Designs Knowledge Base

Discussions

Sort by:
本文探讨了如何解决i.MX8MP EMC测试遇到的问题,主要针对辐射超标问题。除了硬件方案,着重探讨了LVDS展频等软件方案。
View full article
Memtool is a useful debug tool which can read/write some i.MX register. It is default supported in Linux while not supported in Android. This article describse how to integrate memtool into i.MX8MM Android 12 platform, which is also similar in other i.MX new android platform.  
View full article
Background:  ➢ IP protection is important for most customers, Kinetis, LPC54 series and i.MX RT have necessary security features that help us to win customers and markets. ➢ LPC55 series is a new generation of IoT MCU which is used for consumer and industrial market. LPC55 non-S parts are adopted by most customers due to its low-cost and easy-to-use features, but its secure features are different with S parts and is significantly simplified. ➢ LPC55 is designed for secured IoT application, so it’s supposed to hide the SWD/ISP ports after development work is finished. If the SWD/ISP ports are secured, they couldn’t be used any more. While for LPC54 & Kinetis MCU, mass erase command can be used to recover the MCU after the MCU is secured. ➢ However, Customers need the feature to secure the debugging/ISP ports, but they also need to recover them in some cases: - Reprogramming to update firmware - Investigate and analyze failed parts returned from end market - Rescue the MCU if it’s locked and stuck ➢ According to customers’ requirements, NXP support team raised the proposal to implement a solution which can be used to secure and recover the SWD/ISP ports with an IAP backdoor method. Solution: By Operating PFR region, LPC55 could switch between secure and recovery mode.   lpc5506_debug_isp_test_20220714: demonstrate how to operate this region to lock Debug Port then how to recovery it. The user interaction could be raised by UART or button;         2.hmac_test_20220714: demonstrate one full security flow,      ➢ This is a complete solution to secure & recovery debugging/ISP ports on LPC55, and it uses host machine challenge mechanism to implement security features: ▪ Challenge Host machine against unknown host probe; ▪ Generates dynamic seeds, so that the final encrypt information will be dynamically changed; ▪ The image hash value is device related, that avoids same encrypt info for different image/product; ➢ Customer also could clip the solution to simplify application complexity: ▪ Use UUID for device information only, no seed is needed; ▪ Host machine can use fixed keys instead of image hash values to do info encryption; ▪ Host machine can use UUID lookup table to find out verification key; Every device is programmed with dedicated verification key during production.  Demonstration: The attached demos could run at LPC55S06 EVK, and could easily migrate to other LPC55 series.
View full article
Demo Owner: Eduardo Montanez   Watch how Kinetis K Series and Kinetis L Series MCUs beat out the competition.     Features Latest Kinetis K2 microcontrollers running a CoreMark benchmark from EEMBC 4 different Microcontrollers are put to the test. Running all the same iteration benchmark with same capacity for all of the products Featured NXP Products K22F KL02 Links Kinetis MCUs|ARM® Cortex®-M Cores|NXP Kinetis L Series MCUs: Energy-Efficiency Benchmark Demo Kinetis L Series MCUs Energy Efficiency Benchmark - YouTube  
View full article
第一章 简介 MCU 闪存加载器是一个可配置的闪存烧写实用程序,可通过 MCU 上的串行通讯进行操作。 它可以在整个产品生命周期(包括应用程序开发和最终产品制造等)中对 MCU 进行快速轻 松编程。 MCU 闪存加载器将以高度可配置的二进制或完整源代码形式提供。主机端命令行 和 GUI 工具可用于与闪存加载器进行通信。用户可以利用主机工具通过闪存加载器上传和/ 或下载应用程序代码。 第二章 闪存加载器协议 本节介绍主机和 MCU 闪存加载器之间数据包传输的通用协议。介绍包括不同事务的数据包 传输,例如无数据阶段的命令以及带传入或传出数据阶段的命令。 第三章 闪存加载器数据包类型 MCU 闪存加载器设备以从机模式工作。所有数据通信均由主机发起,该主机可以是 PC 主 机,也可以是嵌入式主机。 MCU 闪存加载器设备是接收命令或数据包的目标机。主机和目 标机之间的所有数据通信均采用分包形式。 第四章 MCU闪存加载器API 所有 MCU 闪存加载器命令 API 均遵循由成帧数据包打包的命令数据包格式,如前几小节所 述。 第五章 支持的外设 本小节介绍 MCU 闪存加载器支持的外设。 第六章 外部存储器的支持 本小节介绍 MCU 闪存加载器支持的外部存储器设备。要正确使用外部存储器设备,必须使 用相应的配置文件启用该设备。闪存加载器无法访问未启用的外部存储设备。 MCU 闪存加 载器使用存储器标识符启用特定的外部存储设备,如下所示。 第七章 安全实用程序 MCU 闪存加载器支持某些安全实用程序,用于轻松生成与安全性相关的块。请注意,必须 首先对闪存加载器本身进行签名才能正确启用安全实用程序。
View full article
1. 引言 众所周知,我们一般使用调试器下载程序或调试设备。 FRDMK64在板上具有OpenSDA调试接口,因此不需要额外的调试器。但是如果我们要设计一个没有调试器但可以下载程序的电路板,则可以使用引导加载程序(Bootloader)。引导加载程序是一个小程序,目的是通过UART,I2C,SPI等接口更新MCU的应用程序。 本文将描述一个基于FRDMK64F的简单SD卡引导程序,使用SD卡更新MCU的应用程序。用户可以将二进制文件放入卡中。卡插入目标板后,板子将自动更新应用程序。本设计提供了对应的引导加载程序和应用程序代码,以便您可以在自己的板上进行测试。 2. Bootloader的实现 SD卡的示意图如下所示。该板使用SDHC模块与SD卡通信。 图1. SD卡示意图 我们使用FRDM-K64F的2.6.0版本的SDK。您可以在我们的网站上下载该SDK。 链接是“mcuxpresso.nxp.com”。 引导加载程序使用SDHC和fafts文件系统,因此我们应该添加文件来支持它。 图2.支持文件 在主代码中,程序将等待直到插入卡。然后它将在SD卡中找到名为“ a000.bin”的文件以更新应用程序。如果文件不存在,则开发板将直接执行该应用程序。如果没有应用程序,程序将结束。 以下代码显示了程序如何等待插入sd卡,此外它还将检查该地址是否包含应用程序的地址。 图3.代码-等待插入卡 以下代码显示了程序如何打开二进制文件,如果sd卡没有该文件,则程序将跳转到该应用程序开始执行。 图4.打开二进制文件 如果程序正常打开文件,则更新将开始,它将从0xa000擦除200k的空间,您可以根据自己的实际代码工程大小进行调整。 现在我将详细说明更新的方法。我们的数据被写入称为“ rBUff”的缓冲区,缓冲区大小为4K,在向其中写入数据之前,需要先将其擦除。 请注意,在擦除和编程闪存之前应该先禁用所有中断,当操作完成后再重新使能中断。 文件大小将决定将数据写入闪存的方式。 1.如果大小小于4k,我们只需读取文件数据进行缓冲,然后判断文件大小是否与8个字节对齐。如果不是,我们增加“readSize”的大小以读取称为“rBuffer”的数据缓冲区中的更多数据,这些多读出来的数据内容为0。 2.如果大小> 4K,我们使用“ remainSize”来记录剩余的数据量。每次读取4k直到其大小小于4k,然后重复步骤1。一次完成操作后,我们应清除缓冲区并增加扇区编号以准备下一次发送。   图5:写Flash操作代码 清除空间的方法如图所示。它将初始化闪存并从给定地址擦除给定大小。 “ SectorNum”用于显示要擦除的扇区。 图6.擦除操作代码 下图显示了如何将数据写入闪存。 图7.程序操作代码 在转到应用程序之前,我们应该修改在引导加载程序中所做的配置。 关闭Systick时钟并清掉其计数; 将VTOR中断向量寄存器恢复为之前的默认值; 我们的引导程序以PEE模式运行。因此,我们应该将其更改为FEI模式; 禁用所有引脚。 运行这些代码时,应禁用全局中断,并且不要忘记重新使能全局中断。 图8. 反初始化代码 然后我们可以转到应用程序。 图9.转到应用程序 3. 内存重定位 FRDMK64具有1M闪存,从0x00000000到0x00100000。如图10所示,我们使用0xa000作为应用程序的起始地址。 图10:内存映射 现在,我将向您展示如何在不同的IDE中为用户应用程序修改链接文件。 在IAR中: 图11:IAR的ICF 在MDK中: 图12.MDK的SCF 在MCUXpresso中: 图13. MCUXpresso的闪存配置 4. 运行演示 1)首先下载引导程序; 2)准备一个用户应用程序。 我们以“led blinky”为例; 3)修改链接文件; 4)用您的IDE生成二进制文件,请将其命名为“a000.bin”; 5)将其放入SD卡中,如图5所示。 图14:SD卡的内容 6)插入卡,并打开电源。请稍等片刻,该应用程序将自动执行。 5. 参考资料 1) Kinetis MCU的bootloader解决方案 2) KEA128_can_bootloader
View full article
Most of the Ethernet PHY support multi-functions and provide much more flexible configure capability to fine tune timing or function enable by configure their registers. Ethernet PHY registers tool provide a simple way to read/write PHY registers by MDC/MDIO. This will help in development or issue debug. 
View full article
Overview With this application we create a proposal to automate the click and collect service in the wholesale warehouses, taking into account the operation as a large vending machine. Working as a vending machine, it has the characteristic of managing inventories, modules for secure connection to a server to receive orders and at the same time make re-stock orders, nfc reader modules to read wholesale customer cards. All this driven internally by a system of conveyor belts managed by motors. With current technologies we can present the evolution of wineries to Industry 4.0 powered by NXP.   We have a control by sections managed by a main controller, we have the following sections: Inventory reception: It consists of a reader of an NFC tag or a QR code to read the product and be able to move it to its corresponding storage section Inventory management: Connection to the cloud to be monitoring in real time to use algorithms handling orders, inputs and outputs Internal logistics: It consists of motor control by section for the mobility and arrangement of articles. It uses sensors for safety in mobility and accident prevention. Customer interface: NFC or QR code reader for package pickup reading indicator, touch screen to display data and customer confirmation. Block Diagram     Products MCU Link i.MX RT1060 i.MX RT1060 Crossover MCU with Arm® Cortex®-M7 Core   Wireless Link Wi-Fi 88W8801: 2.4 GHz Single-Band 1x1 Wi-Fi® 4 (802.11n) Solution NFC Reader PN7462: NFC Cortex®-M0 All-in-One Microcontroller with Optional Contact Interface for Access Control NFC Tag NTAG213F, NTAG216F: NFC Forum Type 2 Tag Compliant IC with 144/888 B User Memory and Field Detection   Secure Element Link EdgeLock™ SE051 EdgeLock™ SE051: Proven, Easy-to-Use IoT Security Solution with Support for Updatability and Custom Applets   Power Management Link PMIC PCA9420: PMIC for Low Power Applications AC-DC Controller TEA19161T: Resonant Power Supply Control IC   Sensors Link Accelerometer MMA8450Q: ±2g/±4g/±8g, Low g, Digital Accelerometer Temperature sensor PCT2075: I2C-Bus Fm+, 1 Degree C Accuracy, Digital Temperature Sensor And Thermal Watchdog   Motor Driver Link HB2001 HB2001: SPI Programmable 10 A H-Bridge Brushed DC Motor Driver   Demo Motor control: Download the software AN12214SW Unzip and install   Open MCUXpresso Import project   Look in the AN12214SW software installation folder   Click on finish Build project Open the freemaster folder in the software installation folder and open the pmsm_ref_sol   Change mode expert a basic   Click on app control and run   Extra links PN710 reader demo Getting Started with NXP Wi-Fi® modules using i.MX RT platform NXP Tech Session - Implementing Graphics in Real-time Industrial HMI Systems with NXP MCUs and Embedded Wizard
View full article
该Demo运行在MIMXRT1062-EVK上。MIMXRT1062跨界处理器 运行FreeRTOS操作系统,系统同时创建 88W8801 wifi stack 任务和 LVGL v7.3 GUI库任务,能够在LCD屏幕上实现GUI输入输出。用户可以通过LCD触摸操作,对WiFi的SSID和密码进行输入,从而完成设备入网Provision的功能。 Product Category NXP Part Number URL MCU   WiFi SoC MIMXRT1060   88W8801 https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/i-mx-rt-crossover-... 88W8801: 2.4 GHz Single-Band 1x1 Wi-Fi 4® (802.11n) Solution | NXP Semiconductors   SDK SDK Version URL MCUXpresso SDK mcuxpresso.nxp.com   Demo Video
View full article
Demo Owner Clark Jarvis   The following demo will show a comprehensive enablement in software. Next-gen Kinetis K series MCUs, new FRDM-K64F development platform, software development kit* and Kinetis Design Studio IDE*, paired with Processor Expert software, MQX RTOS and PEG graphics studio to provide powerful and rapid prototyping. *In beta release now     Features Comprehensive, all in one development software Featured NXP Products Product Link Freedom Development Platform for Kinetis® K64, K63, and K24 MCUs FRDM-K64F Platform|Freedom Development Board|Kinetis MCUs | NXP  Supporting Hardware Dialog Auto Shield Arduino Display
View full article
  i.MXRT系列具有内部ROM,并且ROM中暴露出了一些功能接口可供用户直接使用。 本文介绍了Flexspi Nor ROM APIs, 并且列举了API相关的参数及示例程序。 通过这些API可以很方便的操作外部Flexspi Nor Flash。用户无需关系细节。   Products Product Category NXP Part Number URL MCU MIMXRT1060 https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/i-mx-rt-crossover-... MCU MIMXRT600 https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/i-mx-rt-crossover-...   Tools NXP Development Board URL i.MX RT1060 Evaluation Kit https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/mimxrt1060-evk-... i.MX RT600 Evaluation Kit https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-rt600-eval...   SDK SDK Version URL MCUXpresso SDK Builder https://mcuxpresso.nxp.com/en/welcome
View full article
Overview   Within the industry it is necessary to use different types of motor control in which different ranges of precision or freedom of movement can be obtained. The servo motor control by pwm gives precise control by angles.   Required material   1x Kinetis K70 120 MHz Tower System Module 2x Tower System Elevator Module 5x Potentiometer 5x Servomotor CodeWarrior Video     Connections   Step-by-Step   1. Download the attached file2. Unzip it 3. Upload it to CodeWarrior 4. Compile it 5. Upload it to the TWR-K70 board 6. Make the connections in the diagram 7. Connect to Power Supply 8. The variation in the potentiometers will vary the position of each motor
View full article
Overview   NXP has a proud heritage of supplying solutions for automotive and aerospace applications. Many of these solutions also apply to the rapidly evolving field of mobile robotics. Whether your system operates on the ground, under the sea or in the sky, NXP offers a complete portfolio of sensors, controllers and communications solutions. NXP® processing solutions for transportation systems communication scale from MCUs to multicore MPUs. The transponder is designed to provide high performance and great reliability. Its user-friendly interface enables an intuitive handling of complex features AIS class A delivers. This solution will cover a wide range of uses for vehicular, marine and flight applications. This solution is based on i.MX RT technology. Use Cases Solutions for connecting functional modules within a vehicle or transportation system and connecting them to external networks. Some applications for this could be: Service-Oriented gateways Transponders V2X Communication Ethernet Chassis Switch Block Diagram Products Category MCU Product URL 1 i.MX RT1050 Crossover MCU with Arm® Cortex®-M7 core  Product Description 1 The i.MX RT1050 is the industry's first crossover MCU and combines the high-performance and high level of integration on an applications processors with the ease of use and real-time functionality of a microcontroller. Product URL 2 K22_120: Kinetis® K22-120 MHz, Cost Effective, Full-Speed USB Microcontrollers (MCUs) based on Arm® Cortex®-M4 Core  Product Description 2 Kinetis® K22 MCUs have been optimized for cost-sensitive applications requiring low power flexibility and processing efficiency.   Category Ethernet PHY Product URL TJA1101: 2nd generation Ethernet PHY Transceivers - IEEE 100BASE-T1 compliant  Product Description TJA1101 is a high-performance single port, IEEE 100BASE-T1 compliant Ethernet PHY Transceiver.
View full article
Overview   In the power supply and distribution system, TTU (Transformer Terminal Unit) is used to collect and control the information of the distribution transformer. It can monitor the operation condition of the distribution transformer in real time and transmit the collected information to the main station or other intelligent devices to provide the data needed for the operation control and management of the distribution system. NXP provides many solutions on electricity conversion, including AC to AC, AC to DC and DC to DC converters NXP has a broad portfolio of software and processors for Smart Grid market. Regarding software, NXP has original LSDK Linux with Docker supporting and Edgescale solution for edge computing; Regarding processors, NXP has scalable solution from 1xA53 to 16xA72.   Block Diagram Products Category MPU Product URL Layerscape® 1043A and 1023A Multicore Processors  Product Description The LS1043A processor was NXP's first quad-core, 64-bit Arm®-based processor for embedded networking.   Category Bluetooth Product URL QN9090/30(T): Bluetooth Low Energy MCU with Arm®Cortex®-M4 CPU, Energy efficiency, analog and digital peripherals and NFC Tag option  Product Description The QN9090 and QN9030 are the latest microcontrollers in the QN series of Bluetooth low energy devices that achieve ultra-low-power consumption and integrate an Arm®Cortex®-M4 CPU with a comprehensive mix of analog and digital peripherals.   Category Power Management Product URL MC34VR500: Multi-Output DC/DC Regulator  Product Description The NXP® MC34VR500 power management solution for network processor systems is a high-efficiency, quad buck regulator with up to 4.5 A output and five user-programmable LDOs.   Category Peripherals Product URL 1 PCF85063B: Tiny Real-Time Clock/calendar with alarm function and SPI‑bus  Product Description 1 The PCF85063BTL is a CMOS Real-Time Clock (RTC) and calendar optimized for low power consumption. Product URL 2 SA56004X: SMBus-Compatible, 8-Pin, Remote/Local Digital Temperature Sensor  Product Description 2 The NXP Semiconductors SA56004X is an SMBus compatible, 11-bit remote/local digital temperature sensor with over-temperature alarms. Product URL 3 NTS0101: Dual supply translating transceiver; open drain; auto direction sensing  Product Description 3 The NTS0101 is a 1-bit, dual supply translating transceiver with auto direction sensing, that enables bidirectional voltage level translation.
View full article
iMXRT eLCDIF 时钟参数计算工具,能够根据用户输入的RGB接口LCD Panel的规格书时序数据,快速计算eLCDIF模块和相应的PLL时钟配置参数,并直接用于RT105x和RT106x的SDK代码中,用于方便用户在iMXRT平台上快速适配新的LCD屏幕。 Products Product Category NXP Part Number URL MCU MIMXRT1050 MIMXRT1060 https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/i-mx-rt-crossover-... https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/i-mx-rt-crossover-mcus/i-mx-rt1060-crossover-mcu-with-arm-cortex-m7-core:i.MX-RT1060   SDK SDK Version URL MCUXpresso SDK mcuxpresso.nxp.com
View full article
       YAFFS是第一个在GPL协议下发布的、基于日志的、专门为NAND Flash存储器设计的、适用于大容量的存储设备的嵌入式文件系统。一般MCU系统使用YAFFS系统要求的性能及资源比较多,高性能的i.MXRT系列正好能够满足此要求。     本文基于野火i.MXRT 1052核心板及其上的NandFlash探讨Nand文件系统的原理及实现方式,并探讨了在此基础上如何建立Yaffs文件系统。 Products Product Category NXP Part Number URL MCU MIMXRT1050 https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/i-mx-rt-crossover-mcus/i-mx-rt1050-crossover-mcu-with-arm-cortex-m7-core:i.MX-RT1050   Tools NXP Development Board URL 野火i.MXRT核心板/开发板 https://ebf-products.readthedocs.io/zh_CN/latest/i.mx-rt/ebf_i.mx-rt1052.html   SDK SDK Version URL Yaffs file system https://yaffs.net/ MCUXpresso SDK mcuxpresso.nxp.com  
View full article
ARM's Ronan Synnott demonstrates the Keil Microcontroller Development Kit (MDK) at the 2014 FTF-Americas. The MDK is a complete software development environment for the Kinetis device family.   Features Demonstrating Keil's Microcontroller Development Kit (full feature debug IDE from ARM) solution Connecting via Ulink Pro JTAG connector ARMCC (ARM compiler) View registers, view memory, etc. Values update on the fly, logic analyzer to visualize values in a system and display on a timeline format   Featured NXP Products Kinetis Microcontrollers Links ARM  
View full article
Demo Owner Brian Gildon   Timesys Vice President of Business Development, Brian Gildon demonstrates various NXP based applications for optimized performance devices. Demonstrations include  NXP's Vybrid TWR-VF65GS10 board on Linux, a fast boot demonstration using i.MX 6 platform on Linux and finally a Sabre SDP a multi-touch interface design for designers who want simple branding.   Features Timesys - Linux tools services and training First demo: Vybrid tower board demo RTOS and Linux running simultaneously Second demo: Boot up Android quickly from a cold boot Third demo: Accelerated video demo vs non-accelerated video comparison Fourth demo: QT widget support on a multi-touch interface   Product Link SABRE Board for Smart Devices Based on the i.MX 6Quad Applications Processors i.MX 6Quad SABRE Development Board | NXP  VFxxx Controller Solutions VFxxx Controller Solutions based on Arm® Cortex® A5 and M4 Cores | NXP  Links Tymesys  
View full article
Demo Owner: Juan Antonio Gutierrez Rosas Juan Gutierrez, applications engineer at NXP Semiconductor, demonstrates the 2D graphics responsiveness and versatility of the Vybrid controller.     Features 2D graphics responsiveness and versatility of the Vybrid Processor controller Single Vybrid driving the LCD controller running using interface to control settings for 2 different zones Entire demo does not use any graphics processing unit. The graphics seen are rendered and animated using the Vybrid's display control unit memory accesses done using Direct memory Accesses (DMA) to free most of the ARM core to focus on other tasks Easier to program than a typical graphic processor 1.5 MB of on chip static RAM. The demo does not use external memory Featured NXP Products Product Link VFxxx Controller Solutions https://www.nxp.com/products/processors-and-microcontrollers/legacy-mcu-mpus/vfxxx-controller:VYBRID?&tid=vanVYBRID Vybrid Controller Solutions Tower System Module Vybrid VF6xx Tower System Kit with Arm DS-5 | NXP  Links VF3xx: Vybrid family with ARM® Cortex™-A5, 1.5MB SRAM, LCD, security, 2x Ethernet, L2 switch VF5xx: Vybrid family with ARM® Cortex™-A5, 1.5MB SRAM, LCD, security, 2x Ethernet, L2 switch VF6xx: Vybrid family with ARM® Cortex™-A5 + Cortex-M4, 1.5MB SRAM, LCD, security, 2x Ethernet, L2 switch  
View full article
This in home energy display  and Solar Panel demo illustrates a very low-cost  solution for real-time energy monitoring . A DSC-based dedicated control PV inverter from Future supports the MPPT algorithm for optimal power delivery from the solar panel.   Features This Solar Panel demo illustrates a very low-cost connectivity solution for real-time energy monitoring A DSC-based dedicated control PV inverter from Future supports the MPPT algorithm for optimal power delivery from the solar panel    
View full article