NXP Designs Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

NXP Designs Knowledge Base

Discussions

Sort by:
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: 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
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
A sample refrigerator design with two microcontrollers.  The K70 controls the user touch display and while the MC56F8257 DSC manages and controls the compressor.     Features See how NXP ICs work together in this refrigerator reference design LCD controller Graphics controllers and touch sensing interface Graphics being driven by the Kinetis Microcontrollers K70 Compressor is controlled by a Digital Signal Controller (DSC) driving a sensorless permanent magnet vector control of the motor Featured NXP Products Product Link Kinetis® K7x Graphic LCD Microcontrollers (MCUs) based on Arm® Cortex®-M4 Core Kinetis® K7x Graphic LCD Microcontrollers (MCUs) based on Arm® Cortex®-M4 Core | NXP  Kinetis® K70-120–150 MHz, High-Speed USB, Ethernet, DDR and Anti-Tamper Microcontrollers based on Arm® Cortex®-M4 Core Arm Cortex-M4|Kinetis K70 120-150 MHz 32-bit MCUs | NXP  DSC MC56F8257 Motor Control Tower System Module DSC MC56F8257 Motor Control Tower Module | NXP  Links Digital Signal Controllers Kinetis MCUs based on ARM® Cortex®-M Cores  
View full article
Oracle's James Allen demonstrates a variety of NXP hardware running Java technology, a NXP-based IoT Gateway involved in capturing, analyzing and transmitting healthcare data, and a NXP-based IoT Gateway involved in capturing, filter, analyzing and integrating M2M data to enterprise systems, including business processes.   Featured NXP Products K70 Kinetis i.MX6
View full article
Features Overview of an NXP based IoT demo emulating an HVAC system. See how the cloud IoT can provide value for consumers, service companies and device manufacturers Built around the Kinetis Microcontroller KL25Z The Kinetis Microcontroller drives an Xbee ZigBee radio as a well as a display that simulates the specific thermostat in the residential or commercial building to see the temperature reading and if the fan is running Gateway takes the data and send it via cellular to the device cloud Allows customer to view data and to set points and look operational status and history as well as for preventive maintenance Featured NXP Products Product Link Kinetis® KL2x-72/96MHz, USB Ultra-Low-Power Microcontrollers (MCUs) based on Arm® Cortex®-M0+ Core Arm® Cortex®-M0+|Ultra-Low Power Kinetis® KL2x USB MCU | NXP  Freedom Development Platform for Kinetis® KL14, KL15, KL24, KL25 MCUs FRDM-KL25Z|Freedom Development Platform|Kinetis® MCU | NXP  Links NXP Connect - Digi  
View full article
Demo Owner: Brian Shay Features Learn about enVision online design tool for interactive reference designs Search for NXP and find examples using i.MX6 Block level diagram for reference design for i.MX6 microprocessor Speed up application device with the processor chosen Ability to download the schematics in various popular formats Collaboration between different team members is possible using this tool many different NXP products represented besides the i.MX6   Featured NXP Products ARM® Cortex®-A9 Cores: i.MX 6 Series|NXP Links Arrow enVision for NXP Products  
View full article