Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
SGTL5000音频质量调试 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 现在我们正在i.mx6DL平台上使用sgtl5000调试音频质量。 测试音频曲线已附上,我们现在需要的是在 90Hz 处获得 8dB 以上的增益,在 5KHz 处获得 15dB 以上的增益。 有人能帮忙设置 sgtl5000 编解码器中的 regs 吗?怎么做? 先行致谢。 概述
View full article
TN001_使用LPC-Link2打印MCU存储器.docx
View full article
FDI3250 引导加载程序 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 基于 Future Designs LPC3250 的主板预装了 u-boot。但是,kickstart 加载程序和S1L可以安装在 Future Designs LPC3250 板上。这将允许更轻松地升级引导加载程序以及S1L提供的附加功能和性能。 安装后,kickstart 加载程序驻留在 NAND 块 0 中,并在芯片重置时通过 LPC32x0 启动 ROM 加载到 IRAM 中。加载 kickstart 加载程序后,控制权将转移到 IRAM。然后,kickstart 加载程序将S1L从块 1 和 NAND FLASH 加载到 IRAM 中。一旦S1L被加载,控制权就会转移到S1L 。CDL 引导加载程序 页面中更详细地解释了 kickstart 加载程序概念和 S1L 。 可以设置S1L在 IRAM 或 SDRAM 中加载另一个应用程序。对于 Linux,可以设置 u-boot 在地址 0x81fc0000 的 SDRAM 中加载并运行。但是,不需要S1L ,并且可以构建 kickstart 加载程序以将 u-boot 直接从 NAND FLASH 加载到 SDRAM 中。
View full article
HMB-N1901 ハンズオンワークショップ:NFCアクセス制御の実装方法 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> NFCをドアロックに追加することで、世界で最も貴重なオブジェクトの一部を保護するのと同じスマートカードテクノロジーを、自宅、アパート、ホテルなどの日常的な場所に導入できるようになりました。NFC対応のスマートフォンを使用してロックを構成できるため、住宅所有者は特定の個人またはグループに一時的なアクセスを許可できます。このハンズオンセッションでは、カスタマイズ可能なファームウェアを備えた最新のNFCコントローラソリューションであるPN7462をアクセスアプリケーションに使用する方法を示します。デモでは、PN7462開発キットをソフトウェア例とともに使用して、ドアアクセスアプリケーションを開発します。 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> NFCをドアロックに追加することで、世界で最も貴重なオブジェクトの一部を保護するのと同じスマートカードテクノロジーを、自宅、アパート、ホテルなどの日常的な場所に導入できるようになりました。NFC対応のスマートフォンを使用してロックを構成できるため、住宅所有者は特定の個人またはグループに一時的なアクセスを許可できます。このハンズオンセッションでは、カスタマイズ可能なファームウェアを備えた最新のNFCコントローラソリューションであるPN7462をアクセスアプリケーションに使用する方法を示します。デモでは、PN7462開発キットをソフトウェア例とともに使用して、ドアアクセスアプリケーションを開発します。 スマートホーム&ビル
View full article
ftf-ins-f1222.pdf Accelerometers, Magnetometers, Gyroscopes, Pressure Sensors. Gathering sensor data at 400 samples per second, on 9 axes, results in 700 MB of data per day. This hands-on class will show what information is contained in sensor data and how to reduce the amount of recorded data dramatically without any major loss of targeted information. They will then compare data between dumb and intelligent data loggers, and understand the techniques used to compress the information. Accelerometers, Magnetometers, Gyroscopes, Pressure Sensors. Gathering sensor data at 400 samples per second, on 9 axes, results in 700 MB of data per day. This hands-on class will show what information is contained in sensor data and how to reduce the amount of recorded data dramatically without any major loss of targeted information. They will then compare data between dumb and intelligent data loggers, and understand the techniques used to compress the information.
View full article
使用 BeeKit (802.15.4 MAC、SMAC 和 ZigBee BeeStack) 运行演示 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 大家好, 这次我给大家带来一份文档,讲解如何从 BeeKit 运行一个演示以及如何嗅探它。 开始之前,您需要安装BeeKit 无线连接工具包。 我希望您发现本指南很有用。享受本指南吧!欢迎任何反馈。 顺祝商祺! 奥兰多·拉米雷斯-桑切斯伯爵 技术支持工程师 NXP Semiconductors
View full article
TFC2015 UCDavis 团队 Chucksgon 最终报告 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> TFC2015 UCDavis 团队 Chucksgon 最终报告 感谢LanceHalsted的分享​ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> TFC2015 UCDavis 团队 Chucksgon 最终报告 感谢Lance Halsted的分享​ 飞思卡尔杯内容 学生项目
View full article
Professional Way to solve this HCS12 Dragon12-JR Work with pushbuttons and 7 segment display. Write assembly (ASM) and C programs for the HCS12, as well as to work with the pushbuttons and 7-segment display on the Dragon12-JR board.  The programs find the largest and smallest numbers from an arbitrary list of eight 8-bit unsigned numbers and displays them on the 7-segment display as outlined in the following.   1. Write a program to do the following, in both ASM and C. Do not use MINA, MINM, MAXA, and MAXM instructions.            a. Load an array of eight 8-bit unsigned numbers into RAM.            b. Find the largest of these numbers and store it.            c. Find the smallest of these numbers and store it.            d. Wait for the pushbuttons (S1 or S2) to be pressed.            e. The first time S1 is pressed, display the high nibble of the largest number; the second time S1 is pressed, display the low nibble of the largest number.                For example, if the largest number is 0x3F, the 7-segment display should show “3” the first time S1 is pressed and “F” the second time it is pressed.            f. Do the same for S2, except use the smallest number.  2. Explain why debouncing is used with switches. Optional: Implement software debouncing for switch used above.   Hints: These are unsigned numbers that your program will be searching through.  Make sure you are using the unsigned branch instructions in your ASM code. Your TA will be changing the numbers in your array to make sure it works for arbitrary 8-bit values. Please make sure the array is somewhere near the top of your program file. For interfacing to LEDs, 7 segment Displays, and pushbuttons see the schematic and manual of your development board. The type of the 7-segment LED on the Dragon12-JR board is common anode. All cathodes are driven individually by an output port and all anodes are internally connected together. The Dragon12-JR board uses port H to drive 7-segment cathodes. Skeleton files are provided to help you complete the asseignment. The 7-segment display communicates with the board via Port H whose address is $0260 (PTH).  Its data direction (input or output) is controlled by writing to Data Direction H register whose address is $0262 (DDRH). In order for PTH to be output (i.e. displaying something), you must set DDRH to $FF first (all bits high, all bits output).  The skeleton code does this for you this time. Almost every I/O port on the board works similarly to PTH; that is, you must set the direction of data on a corresponding data direction register before writing to or reading from it. The two pushbuttons (S1 and S2) are connected to PM6 and PM7. S1à PM6, S2à PM7 A subroutine that displays the low nibble of register A is included with the skeleton ASM code. Just store a value in register A and issue jsr seg7_out to display the low nibble of A. You are required to understand how it works and to write a similar routine for the C version of your code.   This document was generated from the following discussion: Professional Way to solve this HCS12 Dragon12-JR,Work with pushbottons and 7 segment display General
View full article
QorIQ处理平台中的DDR基础知识 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 了解 DDR 的基础知识,比较 DDR4 与 DDR3,并发现 QorIQ 产品中 DDR4 的新引脚和功能。本次会议还将提供使用 QorIQ 产品实现 DDR4 硬件和软件的指南。 由 Garry Guske 呈现 2015 年 3 月 26 日在 DwF 硅谷发表 会话 ID:AMF-SNT-T1044 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 了解 DDR 的基础知识,比较 DDR4 与 DDR3,并发现 QorIQ 产品中 DDR4 的新引脚和功能。本次会议还将提供使用 QorIQ 产品实现 DDR4 硬件和软件的指南。 由 Garry Guske 呈现 2015 年 3 月 26 日在 DwF 硅谷发表 会话 ID:AMF-SNT-T1044 Layerscape 处理平台
View full article
EUF-ACC-T1573 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 本次会议将介绍如何区分飞思卡尔电源管理解决方案并将其连接到大多数飞思卡尔 MCU 和 MPU,以实现物联网、汽车和多市场应用中的完整系统支持。凭借针对交通运输、能源管理和楼宇控制领域工业应用的完整 MCU 工具协调策略,我们可以为您的客户提供最快的产品上市时间。演示将包括与 MCU 无关的模拟软件驱动程序的现场演示,以便在您下次拜访客户时更好地定位飞思卡尔模拟系统解决方案。 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 本次会议将介绍如何区分飞思卡尔电源管理解决方案并将其连接到大多数飞思卡尔 MCU 和 MPU,以实现物联网、汽车和多市场应用中的完整系统支持。凭借针对交通运输、能源管理和楼宇控制领域工业应用的完整 MCU 工具协调策略,我们可以为您的客户提供最快的产品上市时间。演示将包括与 MCU 无关的模拟软件驱动程序的现场演示,以便在您下次拜访客户时更好地定位飞思卡尔模拟系统解决方案。
View full article
All Example S32K312 DS3.5 RTD-3.0.0  ------------------------------------------------------------------------------ * Test HW: S32K3X4EVB-Q172 * MCU: S32K312 * Compiler: S32DS3.5 * SDK release: RTD 3.0.0 * Debugger: PE Micro * Target: internal_FLASH ******************************************************************************** For S32K312, please use this correct clock HSE to AIPS clock should be ½. Please make these changes in the below all example code clock setting. HSE clock to 60 MHZ. S32K312 PIT BTCU ADC-1 BCTU_ADC_DATA_REG DMA :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-PIT-BTCU-ADC-1-BCTU-ADC-DATA-REG-DMA-DS3-5/ta-p/1787778 Example S32K312 PIT BTCU parallel ADC FIFO DMA DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-PIT-BTCU-parallel-ADC-FIFO-DMA-DS3-5-RTD300/ta-p/1789908 S32K312 UART Transmit & Receive Using DMA :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-UART-Transmit-amp-Receive-Using-DMA-DS3-5-RTD300/ta-p/1787799 S32K312 EIRQ Interrupt :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-EIRQ-Interrupt-DS3-5-RTD300/ta-p/1787860 S32K312 SPI Transmit & Receive Using DMA :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-SPI-Transmit-amp-Receive-Using-DMA-DS3-5-RTD300/ta-p/1787856 Example S32K31 SPI multiple packet Transmit & Receive : solution for DMA Cache issue :- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K31-SPI-multiple-packet-Transmit-amp-Receive-solution/ta-p/2130091 Example S32K312 SPI Transmit & Receive Using Polling DS3.5 RTD300 :-- Example S32K312 SPI Transmit & Receive Using Polling DS3.5 RTD300 - NXP Community Example S32K312 SPI Transmit & Receive Using Interrupt DS3.5 RTD300 :-- Example S32K312 SPI Transmit & Receive Using Interrupt DS3.5 RTD300 - NXP Community S32K312 CAN Transmit & Receive Using Polling mode :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-CAN-Transmit-amp-Receive-Using-Polling-mode-DS3/ta-p/1789191 S32K312 CAN Transmit & Receive Using MB & FIFO DMA :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-CAN-Transmit-amp-Receive-Using-MB-amp-FIFO-DMA/ta-p/1789196 S32K312 ADC :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-ADC-DS3-5-RTD300/ta-p/1789282 S32K312 Switch Debouncing :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-Switch-Debouncing-DS3-5-RTD300/ta-p/1789290 S32K312 UART Freemaster :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-UART-Freemaster-DS3-5-RTD300/ta-p/1789306 S32K312 PIT BTCU parallel ADC FIFO DMA  :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-PIT-BTCU-parallel-ADC-FIFO-DMA-DS3-5-RTD300/ta-p/1789908 S32K312 placing variables in DTCM & code in ITCM  :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-placing-variables-in-DCTM-amp-code-in-ICTM-DS3-5/ta-p/1790101 Example S32K312 Standby mode & Standby RAM and PAD keeping DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-Standby-mode-amp-Standby-RAM-and-PAD-keeping-DS3/ta-p/1797713 Example S32K312 SWT DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-SWT-DS3-5-RTD300/ta-p/1800559 Example S32K312 Printf Semihosting DS3.5 RTD300 :--- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-Printf-Semihosting-DS3-5-RTD300/ta-p/1801354 Example S32K312 I2C Transmit & Receive Using DMA DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-I2C-Transmit-amp-Receive-Using-DMA-DS3-5-RTD300/ta-p/1801357 Example S32K312 HARDFAULT Handling Interrupt DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-RTD300/ta-p/1806259 Example S32K312 Bootloader to Application Jump DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-Bootloader-to-Application-Jump-DS3-5-RTD300/ta-p/1809810 Example S32K312 PIT timer Toggle LED DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-PIT-timer-Toggle-LED-DS3-5-RTD300/ta-p/1809932 Example S32K312 HARDFAULT Interrupt Handling using a script DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Interrupt-Handling-using-a-script-DS3/ta-p/1818507 Example S32K312 UART Transmit & Receive Using Interrupt DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-UART-Transmit-amp-Receive-Using-Interrupt-DS3-5/ta-p/1818775 Example S32K312 CAN Transmit & Receive Using MB Interrupt DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-CAN-Transmit-amp-Receive-Using-MB-Interrupt-DS3/ta-p/1818790 Example S32K312 STANDBY wake up using CAN-0-RX and GPIO Switch DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-STANDBY-wake-up-using-CAN-0-RX-and-GPIO-Switch/ta-p/1891411 Example S32K312 STANDBY wake up using RTC DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-STANDBY-wake-up-using-RTC-DS3-5-RTD300/ta-p/1930115 S32K312 : ADC Clock selection :-- https://community.nxp.com/t5/S32K-Knowledge-Base/S32K312-ADC-Clock-selection/ta-p/1997759 Example IP S32K312 PWM ICU using EMIOS Custom IRQ DS3.5 RTD300 :-- Example IP S32K312 PWM ICU using EMIOS DS3.5 RTD300 - NXP Community Example IP S32K312 EMIO PWM Generation & Duty capture using Interrupt DS3.5 RTD300 :-- Example IP S32K312 EMIO PWM Generation & Duty capture using Interrupt DS3.5 RTD300 - NXP Community Example IP S32K312 EMIO PWM Generation & Duty capture using Polling DS3.5 RTD300 :-- Example IP S32K312 EMIO PWM Generation & Duty capture using Polling DS3.5 RTD300 - NXP Community Example S32K312 Continuous SPI Transmit & Receive Using DMA DS3.5 RTD300 :-- https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-Continuous-SPI-Transmit-amp-Receive-Using-DMA/ta-p/2024597 S32K312 : HSE Demo project :-- https://community.nxp.com/t5/S32K-Knowledge-Base/S32K312-HSE-Demo-project/ta-p/2112562 S32K312 : FS26 Watchdog trigger using the SBC_FS26 CDD :-- https://community.nxp.com/t5/S32K-Knowledge-Base/S32K312-FS26-Watchdog-trigger-using-the-SBC-FS26-CDD/ta-p/2161357
View full article
S32K1xx Lpuart IDLE detected with DMA transfer What is S32K1‘s IDLE feature: IDLE is set when the LPUART receive line becomes idle for a full character time after a period of activity.When CTRL[ILT] is cleared, the receiver starts counting idle bit times after the start bit. Why write this demo? Because the RTM driver does not support Lpuart's IDLE detect. What needs to be modified? -1.add "UART_EVENT_DMA_IDLE = 0x04U" to “callbacks.h” -2 add "LPUART_DRV_RxIdleCallback" to ".lpuart_driver.c"   -3 Define “LPUART_DRV_RxIdleCallback” function   static void LPUART_DRV_RxIdleCallback(uint32_t instance) { DEV_ASSERT(instance < LPUART_INSTANCE_COUNT); LPUART_Type *base = s_lpuartBase[instance]; lpuart_state_t * lpuartState = (lpuart_state_t *)s_lpuartStatePtr[instance]; LPUART_ClearStatusFlag(base,LPUART_IDLE_LINE_DETECT); if(lpuartState->transferType == LPUART_USING_DMA) { lpuartState->rxSize = EDMA_DRV_GetRemainingMajorIterationsCount(lpuartState->rxDMAChannel); LPUART_DRV_StopRxDma(instance); lpuartState->rxCallback(lpuartState,UART_EVENT_DMA_IDLE,NULL);/*UART_EVENT_DMA_IDLE : 0x04*/ } }   -4 add below code to "LPUART_DRV_IRQHandler" and be sure these code must  be put before "LPUART_DRV_ErrIrqHandler(instance)" /* Handle idle line interrupt */ if (LPUART_GetIntMode(base, LPUART_INT_IDLE_LINE)) { if (LPUART_GetStatusFlag(base, LPUART_IDLE_LINE_DETECT)) { LPUART_DRV_RxIdleCallback(instance); } } -5 configure IDLE releated register in main function. LPUART1->CTRL |= LPUART_CTRL_ILT(1); LPUART1->CTRL |= LPUART_CTRL_IDLECFG(7); LPUART1->CTRL |= LPUART_CTRL_ILIE(1); Test environment: Hardware is base on S32K144EVB-Q100 Software is S32 Design Studio for Arm V 2.2 + RTM 3.0.X Demo Description:           The baud rate of the serial port is set to 19200, and the function implemented is to send back the received data using DMA methods .
View full article
NXP's wireless router Solution: Connecting the Future of Smart Networking Experience In the era of digitization, concepts like smart homes and the Internet of Things (IoT) are continuously evolving. To realize these visions, a robust and efficient network infrastructure becomes crucial. OpenWRT, with its open-source nature, high customizability, and excellent stability, has become a key player in leading the future development of networks. NXP, as a global leader in semiconductor technology innovation, leverages its expertise in embedded systems and communication to introduce an intelligent network solution based on OpenWRT, empowering the flourishing smart home and IoT ecosystems. This article will explore the current status and ways to access NXP's chip support for the wireless router solution, enabling readers to build a solid foundation for the next generation of networks. 1. Unique Features of OpenWRT 1.1. Noble Value of Open Source Freedom OpenWRT stands out with its open-source nature, granting users unlimited freedom to access, modify, and share the source code, unlocking significant innovation potential. This openness not only drives continuous technological advancements but also allows users to take active control of the network direction, saving costs. 1.2. Stable and Reliable Network Foundation Built on a mature Linux kernel, OpenWRT undergoes extensive evolution and fine-tuning, ensuring outstanding system stability. This results in fewer network failures, longer device lifespans, and solid support for various network needs. OpenWRT becomes an ideal choice for building reliable home networks, alleviating concerns about network instability or crashes. 1.3. Powerful Software Package Management OpenWRT's proud software package management system provides users with great flexibility. Users can freely install, update, and uninstall various applications and services based on their needs, achieving a highly personalized network environment for a smarter networking experience. OpenWRT allows users to install various network services and applications such as VPNs and proxy servers to meet specific network requirements, providing greater freedom to create a network environment that suits individual or family needs. 1.4. Strong Community Support The vast OpenWRT community is the source of its powerful driving force. Users can exchange experiences, solve problems, and even participate in project development within the community. This collaborative spirit propels continuous innovation and progress in OpenWRT. 2. Applications of NXP wireless router Solution 2.1. Construction of Smart Home Ecosystem The seamless integration of NXP's wireless router solution with the NXP Matter solution provides an ideal platform for users to build smart home ecosystems. With its powerful customization capabilities, users can easily connect, manage, and control various smart devices, creating a highly intelligent home environment. The solution integrates NXP's Bluetooth and Wi-Fi chip drivers, such as IW612, 88W9098, 88W8997, allowing users to effortlessly build an OpenThread Border Router (OTBR) or Zigbee Bridge based on OpenWRT. 2.2. Customized Network Services The NXP wireless router solution supports the customized installation of various network services and applications. Users can create personalized network services, such as VPNs, proxy servers, home routers, or gateways, based on their individual needs, achieving a more flexible networking experience. 2.3. Transmission of High-Definition Video Streams The transmission of high-definition video streams in smart homes imposes higher demands on network performance. NXP's wireless router solution, with its excellent network performance, combined with NXP's industrial-grade IP Camera solution, ensures users can smoothly enjoy high-definition video streams, providing a superior home entertainment experience. 2.4. Construction of Smart Security Systems Security systems are an essential part of smart homes. NXP's wireless router solution, with its advanced network security features, builds a more reliable and intelligent security system for users, enhancing home security. 3. NXP's Support for OpenWRT Given the numerous advantages and wide-ranging application scenarios of wireless router, NXP early on adapted to support OpenWRT. Full support has been provided for the entire Layerscape series processors, and mainstream IMX processors are also supported. The specific supported IMX platforms and details are as follows: Processor and Board Support         ARMv8                                             ARMv7       I.MX93EVK                                •      I.MX6ULL       I.MX8MPlus       I.MX8MMini       I.MX8MNano       I.MX8MQuad OpenWrt Version  Based on OpenWrt v23.05 from mainline (tag: v23.05.0-rc1) Toolchain: ARMV8: gcc-11.3, binutils-2.37 ARMV7: gcc-12.3, binutils-2.40 U-Boot Boot Loader IMX LF release, tag: lf-5.15.71-2.2.1 v2022.04 Linux Kernel       OpenWrt kernel 5.15.114 based on IMX SDK release kernel v5.15.71_2.2.1 Firmware       firmware-imx-8.18       firmware-sentinel-0.5.1 Main Features       Squashfs rootfs support on SD card.       Supported CLI and web configuation. - U-Boot: lf-5.15.71-2.2.1. - Arm Trusted firmware (TF-A) integration. - Boot from SDHC       Linux Kernel Core - Linux kernel 5.15.114 - Cortex-A53 (AARCH64), little endian for imx8m platform - Cortex-A55 (AARCH64), little endian for imx93 platform - Cortex-A7, little endian for imx6ull platform - 64-bit effective kernel addressing [Cortex-A53/A55]       Linux Kernel Drivers - SDIO 3.0 / eMMC5.1 - USB 3.0/2.0 Dual-Role with PHY type C - 32-bit LPDDR4 - 2x Gigabit Ethernet with AVB, IEEE 1588, EEE   and 1x w/ TSN - PCIe Gen 3 + WIFI - CAN FD - Dual-ch. QuadSPI (XIP) or 1x OctalSPI(XIP) - RTC Licensing The majority of the software included in the OpenWrt release is licensed under a form of open source license (e.g. GPL, BSD). Some software is licensed under the NXP EULA license. 4. How to Start Deploying and Using wireless router? To experience the powerful features of the Layerscape series chips with wireless router, download the source code from the official OpenWRT repository: https://git.openwrt.org/openwrt/openwrt.git. The OpenWRT support code for Layerscape is already integrated into the official OpenWRT codebase. Taking IMX8MMini-EVK as an example, here are the deployment steps for wireless router on the IMX platform using Ubuntu 22.04: 4.1. Get the source code from GitHub: https://github.com/nxp-imx/imx_openwrt (Tag: imx_v23.05_v5.15.114) 4.2. Compile, Install, and Configure wireless router: $ ./scripts/feeds update -a; ./scripts/feeds install -a; cp config.default .config; make -j $ sudo dd if=/mnt/tftpboot/imx8/matter_20230908/openwrt-imx-imx8-imx8mmini-squashfs-sdcard.img of=/dev/sdX bs=1M && sync This way, an wireless router bootable disk for SD card has been generated. You can directly use an SD card to boot and experience wireless router. For more compilation assistance, please refer to the README file in the source code: target/linux/imx/README. 4.3. Configuration and Personalization Users can access the wireless router device through the web interface or SSH to begin configuring and personalizing the network environment. This includes setting network rules, installing software packages, and ensuring that the device operates according to individual needs. The following image shows the interface for installing and removing software. Isn't it simple and convenient! 4.4. What to Do If You Encounter Issues? Firstly, you can seek support in the vibrant OpenWRT community. You can not only get assistance but also share your development or usage experiences and even participate in project development. This open community provides users with more opportunities for learning and growth, collectively driving continuous progress in OpenWRT. You can also participate in the official NXP community at https://community.nxp.com/t5/i-MX-Processors/bd-p/imx-processors to ask questions and share technical insights. Professional engineers are available to help you troubleshoot and overcome challenges. NXP OpenWRT looks forward to your participation! Disclaimer This wireless router release is an NXP's Systems Engineering Initiative and is not part of NXP's Linux base enablement strategy for its MPU platforms. NXP does not vouch for the quality of this release and any follow up releases including adding support to new platforms is at the sole discretion of the Systems Engineering team. For specific requirements or needs please reach out to NXP's systems engineering team on the following email address "[email protected]." Re: NXP's wireless router Solution: Connecting the Future of Smart Networking Experience Upgrade to v2410_v6.6.52: https://github.com/nxp-imx/imx_openwrt.git
View full article
i.MX95 SEMA42 GATEn regiser of Domain ID I am planning to use SEMA42 on the i.MX95 to implement mutual exclusion between the Cortex-M7 and the Cortex-A55. To do this, a domain number (Domain 0–14) needs to be specified in the GTFSM field (bits 3-0) of the SEMA42 GATEn register. Could you please tell me which bus master (Cortex-A55, Cortex-M7, Cortex-M33, DMA, etc.) each of Domain 0–14 corresponds to? I was able to find the domain numbers for the Cortex-M7 and Cortex-M33 from the SEMA42 driver example in the MCUXpresso SDK (APP_CORTEX_M33_DID = 8, APP_CORTEX_M7_DID = 9), and the example works with these values. However, they do not match the TRDC DIDs configured in the System Manager cfg file (did=2 for the M33/SM and did=4 for the M7). In addition, the SEMA42 example for the i.MX943 EVK describes these values as a "Master ID assignment for the SoC", so I assume SEMA42 uses the bus master ID rather than the TRDC DID. However, I could not find the corresponding value for the Cortex-A55 on the i.MX95. If this information (e.g., a master ID assignment table for the i.MX95) is described in any document or on the web, I would also appreciate it if you could point me to it. mcuxpresso-sdk\mcuxsdk\examples\_boards\imx95lpd5evk19\driver_examples\sema42\sm\cm7\app.h --- #define APP_CORTEX_M7_DID 9 #define APP_CORTEX_M33_DID 8 --- Re: i.MX95 SEMA42 GATEn regiser of Domain ID Use DID 9 for the Cortex-M7 in the i.MX95 SEMA42 example, not the System Manager/TRDC DID of 4. They are different identifiers in this configuration: SEMA42 accepts the SDK value, and a gate locked by domain 9 reads back GTFSM = 10 (domain + 1). Re: i.MX95 SEMA42 GATEn regiser of Domain ID Cortex-M7 DID of the System Manager/TRDC configuration in my environment is 4. I first tried this DID. But SEMA42 didn't work. GATEn.GTFSM value of MCUXpressoSDK example only work. Do you have a idea? Re: i.MX95 SEMA42で使用するDomain ID The i.MX95 Reference Manual lists Cortex-A55 as Domain ID 3 by default . Its default IDs for Cortex-M7 and Cortex-M33 are 4 and 2, respectively. Your SDK example instead defines M7 as 9 and M33 as 8. Check the System Manager/TRDC configuration used by that example before using A55 DID 3 for A55–M7 locking. Also, a locked GATEn.GTFSM reads back as DID + 1 ; a readback value of 9 indicates DID 8. i.MX95リファレンスマニュアルでは、 Cortex-A55の既定のDomain ID(DID)は3 です。Cortex-M7とCortex-M33の既定DIDは、それぞれ4と2です。 一方、ご提示のSDK例ではM7を9、M33を8と定義しています。 A55–M7間の排他処理にA55のDID 3を使う前に、その例で使用するSystem Manager/TRDCの設定を確認してください。 また、ロック後の GATEn.GTFSM の読み出し値は DID + 1 です。読み出し値9はDID 8を示します。 Re: i.MX95 SEMA42 GATEn regiser of Domain ID The key point is that GATEn.GTFSM is not a fixed bus-master ID table. It reflects the requester’s configured DID plus one: GTFSM = DID + 1 For the standard i.MX95/System Manager configuration: GTFSM DID Bus master / device 1 0 No standard default assignment 2 1 No standard default assignment 3 2 Cortex-M33 / System Manager 4 3 Cortex-A55 platform — cores 0–5 5 4 Cortex-M7 6–15 5–14 Configuration-dependent; no fixed device assignment Thus, for the default configuration: Cortex-A55 cores 0–5: GTFSM = 4 Cortex-M7: GTFSM = 5 Cortex-M33/System Manager: GTFSM = 3 This explains why A55 cores 0 and 1 both lock with value 4: the six A55 cores share the A55 platform DID; they do not have separate GTFSM values. The System Manager configuration assigns SM/M33 DID 2, A55 DID 3, and M7 DID 4. The MCUXpresso SEMA42 example uses a different configuration: M33 DID 8 and M7 DID 9, therefore the corresponding readback values are 9 and 10. These are not the TRDC DIDs from the default System Manager configuration. Re: i.MX95 SEMA42 GATEn regiser of Domain ID I actually tested SEMA42 on both the Cortex-A55 and the Cortex-M7 by writing values 1 to 15 to GATEn.GTFSM, to check which values can actually lock the gate.   GATEn.GTFSM DID + 1 (*1) Cortex-A55 core 0 1 4 Cortex-A55 core 1 2 4 Cortex-M7 10 (*2) 5 *1 Values based on the DID definitions in the System Manager cfg file *2 Value used in the SEMA42 driver example of the MCUXpresso SDK The value to be written to GATEn.GTFSM is clearly not DID + 1 (*1). According to the i.MX95 SEMA42 specification, which devices (bus masters) correspond to GATEn.GTFSM values 1 to 15? At a minimum, I need the GATEn.GTFSM values corresponding to Cortex-A55 cores 0 to 5 and the Cortex-M7.
View full article
MCX W72 Product Lifecycle and EOL Inquiry Hello NXP Team, We are evaluating the MCX W72 / FRDM-MCXW72 for a new design and would like to request information regarding Current lifecycle status Expected longevity/availability period Any planned EOL or NRND status Existing PCN or EOL notifications Recommended successor devices, if applicable Please share any available lifecycle documentation. FRDM-Training Re: MCX W72 Product Lifecycle and EOL Inquiry Thank you for the clarification and detailed information regarding the MCX W72 product longevity and lifecycle status. Re: MCX W72 Product Lifecycle and EOL Inquiry Hello, hope you are doing well. The MCX W72 is included in NXP’s Product Longevity Program until 2040, and is the recommended product for new designs. This product follow NXP's standard Product Lifecycle: it is fully active today, and any future status change would be communicated through NXP's standard discontinuance notification process, all applicable NXP End of Life and Product Change Notification policies continue to apply. Best regards, Sofia.
View full article
K82 在边界扫描中返回错误的 ID 我有一块带有两个 MK82FN256VDC15 处理器的电路板,我们将使用边界扫描进行测试。 一切运行正常,互连和其他各项测试都通过了。然而,初始基础设施测试失败,因为它返回了错误的 ID。 目前似乎没有适用于 K82 的 BSDL,但是 K80 BSDL 文件显示其内部结构与 K80 相同,因此可以使用 K80 BSDL。 我正在使用文件 K80-121BGA.BSDL。其中包含的ID代码为: 00001000001111011001000000011101 但是,我得到的结果略有不同…… 000 1 10 11 001111011001000000011101 似乎有 3 个额外的 1,一个在版本栏中,两个在零件编号栏中。 虽然我可以通过编辑BSDL文件来隐藏错误,但我需要了解为什么我得到的值与预期值不同。确保元器件是正品非常重要,所以我需要一个非常合理的解释来说明为什么需要修改 BSDL——我可能只是在掩盖假冒元器件的问题。 我们的元器件是通过CEM采购的,而CEM必须通过经批准的渠道采购。 欢迎提供任何见解。 Re: K82 returning incorrect ID in boundary scan 你好@olly12 , 感谢您报告此问题并引起我们的注意。 根据数据手册中的 JTAG ID 寄存器定义,其中 PRN = 0001,BSDL 文件中的 IDCODE 值似乎不正确。 我会将此问题报告给内部团队,以便进一步核实和纠正。为了推进我们的升级流程,请您提供一些关于您最终应用程序的详细信息? 再次感谢! BR 塞莱斯特 Re: K82 returning incorrect ID in boundary scan 你好@olly12 , 内部已确认所报告的 IDCODE 0x1B3D901D与掩膜为 1N03P 的 MK82FN256VDC15 一致。提供的 BSDL 需要 0x083D901D,该值有两个字段不同: DC:文档中记录的值为 0x2C ,而 BSDL 使用 0x20 — K82 参考手册 Rev. 2,§65.3.3,第 177 页。2193–2194。 PRN:掩码 1N03P 使用修订版 1 ,而 BSDL 指定为 0 — K82 数据表修订版 2,第 2 页。 我们还对该设备进行了独立的JTAG检测,得到的ID码为0x1B3D901D。因此,您报告的不匹配可以通过 BSDL IDCODE 定义来解释。单凭这一不匹配并不能断定是假冒设备。 BSDL 文件错误给您带来的不便,敬请谅解。我会继续跟进更正事宜。 BR 塞莱斯特
View full article
GPIO 简介:如何读取微控制器 (MCX A153) 的引脚并控制 LED(日语博客) 目录 介绍 了解MCX A153微控制器的引脚配置 GPIO 使用设置 检查引脚与电路板(FRDM-MCXA153)之间的关系。 演示:执行 GPIO 设置并体验 LED 控制。 额外知识点:了解LED灯的“开/关”原理 附加题——如果将两个LED并联会发生什么?   介绍 作为嵌入式系统开发的初学者,我是在接到撰写一篇关于GPIO文章的邀请后开始学习它的。本文记录了我尝试点亮单个LED灯的过程中,通过反复试验所学到的知识和心得体会。 本文解释了如何使用 GPIO(通用输入/输出),它是微控制器开发中最基本的外部设备之一。 GPIO 是嵌入式系统的基础,用于将微控制器连接到外部电路,实现诸如打开 LED、读取开关状态和接收来自传感器的信号等功能。 另一方面,在实际的微控制器开发中,“使用GPIO”并不仅仅意味着编写程序。微控制器有许多引脚,每个引脚除了GPIO之外还被分配了其他功能,例如定时器和通信接口。 所以, 要使用 GPIO,您需要了解数据手册中的引脚分配和功能。 PinMUX(引脚复用)设置,用于将GPIO分配给引脚 输入/输出方向设置 这件事必须妥善处理。 这次,我们将以FRDM-MCXA153为例,研究 MCX A153 的引脚配置和 PinMUX 机制,使用 Pins Tool 配置 GPIO 设置,最后演示连接到面包板上的 LED 闪烁。   了解MCX A153微控制器的引脚配置 FRDM-MCXA153搭载了一颗型号为 MCXA153VLH 的微控制器。该微控制器采用 LQFP 64 封装,共有 64 个引脚。其中 52 个引脚可用作 GPIO。其余引脚包括电源引脚 (VDD/VSS)、USB 引脚和模拟输入引脚,这些引脚不能用作 GPIO。 然而,即使它标有“52个GPIO”,这并不意味着这52个引脚都专用于GPIO。许多可用于GPIO的引脚也与其他外设功能(例如UART、SPI、I²C和定时器)共享。因此,要真正将它们用作GPIO,您需要使用PinMUX函数将这些引脚配置为GPIO。 让我们从数据手册中查看MCX A153的引脚配置。从第54页开始列出了每个引脚可以分配的功能。 例如,查看引脚名称为 P1_8 的“引脚复用分配”信息,可以看到有六种可能的功能。GPIO 被分配到“ALT0 - P1_8”。其他分配包括“ALT2 - LPUART1_RXD”,表示它将被用作 UART 接收端 (RXD);以及“ALT3 - LPI2C0_SDA”,表示它将被用作 I²C 数据线 (SDA)。 如您所见,一个引脚可以分配给多个功能,不仅包括 GPIO,还包括 UART、I²C 和定时器。   GPIO 使用设置 1. 选择引脚功能(PinMUX) 如前文所述,P1_8 引脚有多种潜在功能,包括 GPIO、UART 和 I²C。但是,同一个引脚不能同时用作 GPIO 和 UART。 因此,典型的微控制器都配备了一种称为 PinMUX 的机制。 PinMUX 就像一个拨动开关,用于将单个物理引脚连接到内部外设。 例如,P1_8 有六个潜在的连接目标。通过使用 PinMUX 选择 GPIO,P1_8 即可用作 GPIO 引脚。 2. 设置引脚的电气特性。 引脚不仅可以配置其功能,还可以配置其电气特性。典型设置包括: • 引体向上 • 下拉 驱动力 明渠 以下是一些示例。例如,开关输入通常会启用上拉电阻,驱动 LED 或高速信号时可以调整驱动强度。即使用作 GPIO,也必须根据应用进行适当的电气设置。 本文将省略对这些电气特性的详细解释。 3. 设置 GPIO 的输入/输出方向。 最后一步是确定信号流的方向。GPIO 有两种主要的工作模式。 • 输入 – 接收来自外部的信号 • 输出 – 向外部发送信号 微控制器内部在输入输出方面究竟发生了什么? MCX A153 是一款工作电压为 3.3V 的微控制器。因此,其 GPIO 引脚基本上处理两种状态:低电平(约 0V)和高电平(约 3.3V)。A153 的工作电压范围为 1.71V 至 3.6V,FRDM 板使用 3.3V。 GPIO输出值 引脚电压 低(0) 大约 0V 高(1) 约3.3伏 例如,如果您将某个 GPIO 引脚设置为输出并连接一个外部 LED,将其设置为高电平(约 3.3V)会在 GPIO 引脚和 GND 之间产生电位差,从而允许电流流过 LED。将其设置为低电平(约 0V)会消除与 GND 之间的电位差,因此没有电流流过。换句话说,LED 的“闪烁”是由于 GPIO 引脚的电压在高电平 (1) 和低电平 (0) 之间反复切换,从而导致 LED 闪烁和熄灭交替发生。 另一方面,在输入模式下,微控制器会监控GPIO引脚的状态。例如,如果从外部电路输入约3.3V电压,则识别为高电平(1);如果输入约0V电压,则识别为低电平(0)。 上述引脚功能选择、电气特性设置和输入/输出设置均可通过 GUI 使用引脚工具(NXP 的免费配置工具中包含)进行配置。   检查引脚与电路板(FRDM-MCXA153)之间的关系。 到目前为止,我们已经了解到,要使用 GPIO,需要配置 PinMUX 设置和输入/输出方向设置。 接下来,让我们确认 FRDM-MCXA153 板上 MCU 引脚的连接位置,同时牢记我们将要进行的演示。 检查原理图,确认上一章中作为示例使用的引脚“P1_8”的布线位置。 查看电路图第 8 页,我们可以看到 P1_8 连接到 FRDM-MCXA153 上的Arduino 接头 J2 的 D18 。 FRDM-MCXA153原理图 那么,Arduino 接头 J2 上的 D18 在哪里呢? 接下来,我们来查阅一下电路板用户手册。 FRDM-MCXA153 开发板用户手册 第 6 页包含板上安装的连接器的示意图,这使我能够确定 Arduino 接头 J2 上的 D18 的位置。 在本练习中,我们将使用面包板上的 D18 引脚连接一个外部 LED。但是,如果您没有面包板或 LED,也可以使用 FRDM-MCXA153 开发板上自带的 RGB LED。 然而,有一点需要注意。当使用板载 RGB LED 时,LED 的阳极 (+) 连接到 VDD_BOARD (3.3V),阴极 (-) 连接到 GPIO。因此,与前面提到的外接 LED 不同,将 GPIO 设置为高电平 (1) 也会使 GPIO 电压达到约 3.3V,LED 两端的电位差几乎消失,导致 LED 熄灭。 另一方面,将 GPIO 设置为低电平 (0) 会在 LED 两端产生电位差,从而导致电流流动并使 LED 点亮。 当你检查电路图中的每个引脚时…… P3_12 是一个红色 LED P3_13 是一个绿色 LED P3_0 是一个蓝色 LED 它支持这些功能。通过配置引脚复用器 (PinMUX) 设置和输入/输出设置,您还可以使用板上的 LED 指示灯来验证其运行情况。 这样,您就可以使用电路图和电路板用户手册来检查微控制器内部的物理引脚在电路板上的连接位置。   演示:执行 GPIO 设置并体验 LED 控制。 在本章中,我们将使用 MCUXpresso 配置工具中的引脚工具来配置 GPIO 并控制面包板上外部连接的 LED。 演示中使用的设备: FRDM-MCXA153 面包板 LED • 电阻器和跳线 本演示将假设您已在 VS Code 环境中安装了 MCUXpresso SDK 和配置工具。 *如果您尚未安装 MCUXpresso SDK 和配置工具,请参阅此博客文章。 MCUXpresso 配置工具:引脚工具的使用方法(日语博客) 注意:虽然博客文章描述了 FRDM-MCXN947 的 SDK 安装,但本文中请安装 FRDM-MCXA153 的 SDK。 我手头有一个红色LED和一个绿色LED,但我不知道它们的型号,所以我先尝试点亮红色LED。我有一个390Ω的电阻。红色LED的正向电压(Vf)通常在1.8~2.2V之间,所以我假设它是2.0V,并计算流过LED的电流。 微控制器的工作电压为3.3V。Vf使用 2.0V 电压和 390Ω 电阻,可以根据欧姆定律计算电流值,如下所示。请注意,LED 具有规定的最大正向电流 (Ifmax),许多通用 LED 的 Ifmax 为 20mA。务必谨慎选择电阻值,因为超过 20mA 的电流可能会损坏 LED。 此外,GPIO引脚的输出电流也有限制。根据数据手册,MCX A153在正常工作状态下的电气特性是基于4mA电流(高驱动引脚为6mA)设定的。因此,当使用GPIO引脚直接点亮LED时,需要选择一个合适的电阻值,该电阻值不仅要考虑LED的电流限制,还要考虑GPIO引脚的电流限制。 电路板和面包板接线 首先,我们要进行线路连接。 在 FRDM 板上,我们将使用之前确定的 Arduino 接头 J2 上的“D18”和“14 GND” 。 下图是根据电路板用户手册绘制的。 FRDM-MCXA153 开发板用户手册 请参考以下视频了解接线说明。 (function() { var wrapper = document.getElementById('lia-vid-6405195304112w960h540r888'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (显示我的视频) 导入示例代码 接下来,我们将从 FRDM-MCXA153 SDK 导入示例代码。 点击左侧面板中的“从存储库导入示例”。 在右侧显示的选项卡中,选择“存储库”下的导入的 FRDM-MCXA153 SDK,然后选择“板”下的 FRDM-MCXA153。 使用的模板是“driver_examples/gpio/gpio_led_output”。 选择所需的工具链,然后单击“导入”。 导入完成后,它将被添加到左侧面板的“项目”部分。 查看源代码 gpio_led_output.c。 这次,我们要使用引脚工具配置 GPIO 输入/输出设置,因此我们将从源代码中删除红色方框内包含的 GPIO 输出设置代码。 使用引脚工具配置GPIO设置。 接下来,打开配置工具。右键单击项目,然后选择“使用 MCUXpresso 配置工具打开”。稍等片刻,配置工具将启动。 打开配置工具后,首先在右侧面板的“概览”中选择“引脚”。 图钉工具现已打开。 启用引脚 P1_8。 点击 P1_8 将打开另一个窗口,如下图所示。在此窗口中找到“GPIO1:GPIO,8(P1_8)”,并勾选其旁边的复选框。 选中该复选框后,将出现以下窗口,但您可以单击“否”将其关闭。 完成这些步骤后,P1_8 将添加到引脚工具底部的布线详细信息中。 接下来,按如下方式更改 GPIO 输入/输出设置。 将输出端的引脚 #38 (P3_12) 连接到未指定端,将未指定端的引脚 #2 (P1_8) 连接到输出端。 GPIO #38 的初始状态将出现错误,请将其从逻辑 0 更改为 n/a。 完成这些步骤后,您就可以重写示例代码了。首先,点击“配置工具”屏幕左上角的“更新代码”。 此时会弹出一个窗口。您可以在这里根据需要查看代码更改。已修改的文件旁边会显示“更改”字样。 返回 VS Code 后,您会在屏幕顶部看到三个复选框。请确保选中它们,然后单击“确定”。 不久之后,源代码的修改就会完成。 接下来,我们将修改源代码 gpio_led_output.c 中的 GPIO 控制目标。 打开 gpio_led_output.c 文件时, 内容如下:   while (1) { delay(); GPIO_PortToggle(BOARD_LED_GPIO, 1u << BOARD_LED_GPIO_PIN); } 按如下方式修改 GPIO_PinInit() 和 GPIO_PortToggle() 的内容: 这里,P1_8 被指定为控制目标,每次调用该函数时,P1_8 的状态都会在高 (1) 和低 (0) 之间切换。 while (1) { delay(); GPIO_PortToggle(GPIO1, 1u << 8); } 更多详情:GPIO 引脚以 Px_y 格式表示,其中x为 GPIO 端口号, y为该端口内的位位置。例如, P1_8表示“GPIO 端口 1 的第 8 位”。 在代码中 GPIO_PortToggle(GPIO1, 1U << 8); 在, GPIO1 1U << 8 表示 GPIO 端口 1, 是一个位掩码,其中只有第 8 位设置为 1。 1U << 8 ↓ 0000 0001 0000 0000 (2進数) 这样就可以只反转(在高电平和低电平之间切换)GPIO 端口 1 中的第 8 位。 将 PC 连接到 FRDM-MCXA153。 调试(构建、编写和运行应用程序)。 调试过程完成后,程序将在断点处停止,因此请点击屏幕顶部的“|▶”图标。 LED灯将开始闪烁。 (function() { var wrapper = document.getElementById('lia-vid-6404528566112w304h540r105'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (显示我的视频) 额外知识——了解 LED 的“开/关”状态 顺便问一下,这个LED灯何时亮起,取决于GPIO输出是高电平(1)还是低电平(0)?我之前提到过,当输出高电平(1)时它会亮起,但我们来验证一下是否正确。 以下是我们之前使用的代码。 `while(1)` 语句表示一个无限循环,重复执行花括号 {} 内的代码。 此外,delay() 函数用于等待特定时间段。GPIO_PortToggle() 是一个 GPIO 控制函数,用于反转高电平 (1) 和低电平 (0)。 while (1) { delay(); GPIO_PortToggle(GPIO1, 1u<<8); } } 但是,这段代码并没有告诉我们,当 LED 为高电平 (1) 或低电平 (0) 时,LED 是亮起还是熄灭。 因此,我们使用不同的函数 GPIO_PinWrite() 来显式控制 GPIO 的状态。 具体来说,代码将修改为在高电平 (1) 状态下等待一次 delay() 调用,然后在低电平 (0) 状态下等待五次 delay() 调用。这样应该能让 LED 保持熄灭状态更长时间。 while (1) { GPIO_PinWrite (GPIO1,8U ,1); delay(); GPIO_PinWrite(GPIO1,8U ,0); delay(); delay(); delay(); delay(); delay(); } 运行调试程序,然后点击屏幕顶部的“|▶”图标。 (function() { var wrapper = document.getElementById('lia-vid-6404528052112w304h540r114'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (显示我的视频) 正如预期的那样,LED灯关闭了更长时间。 这使我们能够验证 LED 在点亮时输出高电平 (1),在熄灭时输出低电平 (0)。 总结一下,当 GPIO 为高电平 (1) 时,设置为 GPIO 引脚的 P1_8 处的电压约为 3.3V。该电压与 GND 之间形成电位差,导致电流流过电阻和 LED。此时,LED 两端施加正向电压(约 2.0V),剩余的约 1.3V 电压施加在电阻两端。因此,LED 点亮。 另一方面,当 GPIO 为低电平 (0) 时,P1_8 端的电压接近 0V。由于 GPIO 引脚与 GND 之间没有电位差,因此没有电流流过,LED 熄灭。 如果你觉得使用大量的 `delay()` 函数看起来很丑陋,你也可以使用循环函数。 while (1) { GPIO_PinWrite(GPIO1, 8U, 1); delay(); GPIO_PinWrite(GPIO1, 8U, 0); for (int i = 0; i < 5; i++) { delay(); } } 附加题——如果将两个LED并联会发生什么? 我尝试将手边的一个绿色LED与一个红色LED并联起来。 由于绿色 LED 的正向电压 (Vf) 一般为 2.0 至 2.2V,我假设它与红色 LED 类似,为 2.0V,并搭建了以下电路。 由于无需更改引脚设置,我使用之前的代码进行调试,红色 LED 闪烁,但绿色 LED 没有闪烁。这是为什么呢? (function() { var wrapper = document.getElementById('lia-vid-6404530194112w304h540r514'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (显示我的视频) LED的特性是,当正向电压(Vf)超过其值时,电流会迅速增加。因此,如果将一个红色LED和一个绿色LED简单地并联,电流会集中在Vf较低的LED上,而另一个LED可能几乎不会发光。在这种情况下,红色LED的Vf低于绿色LED,因此电流集中在红色LED上。 当我用测试仪实际测量 LED 两端的电压时,红色 LED 的电压为 1.765V,绿色 LED 的电压为 1.766V。 在这个电压下,红色LED可以点亮,但绿色LED接收到的电压不足以产生足够的电流。因此,红色LED会亮,而绿色LED不会亮,因为几乎没有电流流过它。 如上图所示,简单地将不同类型的LED并联,即使正向电压(Vf)存在微小差异,也会导致电流出现显著偏差。因此,并联LED时,通常的做法是为每个LED串联一个限流电阻。 添加电阻时,需要考虑 GPIO 的电流限制。如果我们像之前那样直接添加一个 390Ω 的电阻并计算电流,那么施加到 GPIO 上的电流将超过 6mA。因此,为了确保总电流不超过 4mA,我们连接了两个 680Ω 的电阻,并搭建了以下电路。 当我再次调试同一段代码时,红色和绿色 LED 都亮了起来。 (function() { var wrapper = document.getElementById('lia-vid-6405719291112w304h540r698'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (显示我的视频) 测量LED两端的电压时,红色LED的电压为1.750V,绿色LED的电压为1.906V。通过在每个LED上串联一个电阻,可以使合适的电流流过每个LED。 本文解释了嵌入式开发初学者会遇到的“问题”和“障碍”,内容涵盖如何解读各种文档、使用配置工具以及LED的工作原理等。我们希望本文能对那些首次尝试使用NXP微控制器实现LED闪烁的用户有所帮助。 =========================​ 我们目前无法 回复 此帖子“ 评论”部分留下的评论。 对于由此造成的不便,我们深表歉意,但 在进行咨询时, 请 参考“ NXP 技术问题 - 如何联系我们 ( 日语博客 ) ” 。 (如果您已经是 恩智浦的 分销商或 与 恩智浦 有合作关系 ,您可以直接咨询您的代表。) 本文以 LED 闪烁为例,解释了如何使用 GPIO(通用输入/输出),这是微控制器开发中最基本的外部设备之一。 GPIO 是许多微控制器开发人员最先接触的外设之一。很多人想用 GPIO 来点亮 LED,但他们可能不知道如何阅读数据手册或如何配置引脚。本文以 FRDM-MCXA153 为例,讲解 GPIO 的基础知识,面向微控制器开发初学者。我们将学习如何从数据手册和电路图中读取引脚信息,如何使用引脚工具配置设置,并最终体验如何控制外部 LED。 (预计时间:15 分钟)*假设开发环境已安装。 MCUXpresso MCUXpresso 配置工具 MCUXpresso IDE MCUXpresso SDK MCX 日本博客
View full article
我在2026年寻找可靠IPTV服务的经验 在尝试和比较了不同的 IPTV 服务之后,我发现Nexusiptv.live是比较符合我需求的选择之一,尤其是在流媒体稳定性、视频质量以及为美国、英国和加拿大的观众提供内容方面。 当然,性能可能取决于您的网络连接和所在位置,但到目前为止,我的整体体验是积极的。 我写了一篇更详细的文章,介绍了我在2026年选择可靠的IPTV服务时所考虑的因素: 👉 在 Medium 上阅读我的完整经历。
View full article
i.MX95 DPU95:单帧 eDPI 与外部 TE 同步 尊敬的NXP技术支持: 我们正在开发对 iMX95 的 MIPI-DSI 命令模式显示的支持,使用 Android 15.0.0_2.0.0。 连续 eDPI 命令模式输出已经可以正常工作,包括显示管道空闲时面板 RAM 的保留。剩下的问题是如何在每个外部面板 TE 事件中精确传输一个完整的图像。 我们正在使用 DPU95 Linux 驱动程序(`dpu95-framegen.c`)。以及 `dpu95-extdst.c`)。ExtDst 配置为 `SYNC_MODE=SINGLE` 和外部踢帧模式,但这似乎控制的是同步/阴影更新,而不是单帧输出。 我们还测试了启用 FrameGen 并在大约 13.6 微秒后清除 `FGENABLE`。我们仍然观察到: - 两个 `DISENGCFG_FRAMECOMPLETE0` 中断; - FrameGen 帧索引从 0 递增到 2; - `SEQUENCECOMPLETE` / `ENSTS` 在大约 33.4 毫秒后清除。 停止、DSI 排空、重启全部成功。 NXP能否澄清一下: 1. i.MX95 是否支持每次外部 TE 事件传输一个完整的 eDPI 图像? 2. 如果是,推荐的 DPU95/DSI 寄存器序列是什么? 3. 如何启动/停止 FrameGen 以保证只生成一帧? 4. ExtDst `SYNC_MODE=SINGLE` 是否仅与配置同步有关? 5. 外部TE如何路由到DPU95/DSI逻辑? i.MX95 参考手册中没有包含详细的 DPU95 寄存器描述。如果完整的 DPU95 寄存器/编程指南受保密协议或访问限制,请告知如何获取。 如果需要,我们可以提供带有检测功能的源代码和寄存器/中断跟踪信息。 谢谢! 顺祝商祺! 码头 Re: i.MX95 DPU95: Single eDPI Frame Synchronized to External TE 你好, 感谢您提供的详细描述和尺寸信息。 由于这涉及到 DPU95 内部编程顺序和外部 TE 布线,所需的寄存器级信息受限制文档保护,不能在公共社区共享。 请创建支持案例,并提供电路板支持包/内核版本、芯片版本、面板 TE 时序和布线,以及 TE 信号、DSI 流量和帧完成事件的时间相关跟踪。受限文档必须通过您当地的 NXP 办事处共享。请联系他们以获取相关文件。 此致敬礼/Saludos, 阿尔多。 Re: i.MX95 DPU95: Single eDPI Frame Synchronized to External TE 嗨@AldoG , 感谢您的解释。 顺祝商祺! 码头
View full article
S32K344 EVB HDQFP172 的 ADC 配置 您好, 我想执行连接到板载电位器的 ADC 通道ADC0_P7 ,并将转换后的值用于调暗板载 LED( GPIO29 )。 配置完成后,显示如下内容: 错误: platform.driver.pins 此外,在配置完成后构建项目时,我们遇到了以下编译错误:image(error_Adc) 我还附上了下面的配置设置。 注:我已添加了示例中的项目。 请解决此问题。 谢谢! 拉基 Re: ADC Configuration for S32K344 EVB HDQFP172 您好, 请尝试按照提示解决“问题”窗口中显示的错误。 大部分个人驱动程序可能不会添加到工具链中。在较新的 S32DS 中,通常在通过配置工具更新代码后,此功能就会消失。或者您需要通过“管理 SDK 元器件”手动添加它。 请确保已选择使用的元器件,然后再次更新代码。 对于 Siul2_Port 元器件,可能出现 2 个错误。 - Pin 工具配置了 2 个引脚,而 Siul2_port 只配置了 1 个引脚,两者设置不匹配。 对于 ADC 输入,无需进行引脚设置,模拟路径始终启用,您可以从引脚工具中删除它。 - 另一个可能是引脚工具中的功能组命名。 如果遇到问题,请分享您的完整项目。 BR,彼得 Re: ADC Configuration for S32K344 EVB HDQFP172 您好, 添加 Siul2_Port 后出现此错误。 我的引脚配置如下: 非常感谢您抽出时间回复。 BR, 拉基 Re: ADC Configuration for S32K344 EVB HDQFP172 您好, 添加 Siul2_Port 元器件,更新代码,并构建。 BR,彼得 Re: ADC Configuration for S32K344 EVB HDQFP172 嗨@PetrS , 谢谢你的关注。 附件如下。 Br, 拉基 Re: ADC Configuration for S32K344 EVB HDQFP172 您好, 您没有上传任何文件或截图。 您可以参考以下使用电位器进行ADC采样的示例: 示例 S32K312 ADC IP 连续扫描 DMA (S32DS 3.6, RTD 6.0.0) RTD400 LLD K344 ADC 软件/硬件触发示例 BR,Petr Re: ADC Configuration for S32K344 EVB HDQFP172 嗨,Petrs, 感谢您的支持。 您能否提供一些关于AUTOSAR版本的资源供我尝试? 我尝试了示例中的项目。但却不起作用。 请帮忙。 BR, 拉基
View full article