Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
i.MX8MNano (m815S) DDR Register Programming Aid (RPA) This is a detailed programming aid for the registers associated with i.MX 8MNano (m815S) DDR initialization.  For more details, refer to the main mScale DDR tools page: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/1104467 Please note that this page is only intended to store the RPA spreadsheets. For questions, please create a new community thread. Re: i.MX8MNano (m815S) DDR Register Programming Aid (RPA) Hello @Rodrigue , in case of the mScale processors, the training is performed for each of the frequency points - there are separate register sets that hold the calibration values for each frequency. Please note that this page is only meant to store the RPAs. For the future questions about the RPAs, please setup a separate community thread. Best Regards, Jan Re: i.MX8MNano (m815S) DDR Register Programming Aid (RPA) Hi @jan_spurek , May you please indicate some details with respect to the second Frequency Point? How is this handled by the DDR Stress test? As far as I understand the tool only check the calibration around one frequency point since it only verifies against a typical DDR register setting. Or just there for further helping validating the design at lower bus frequency with the vTSA tool? Thanks and best regards
View full article
i.MX8M (m850D) DDR 寄存器编程辅助工具 (RPA) 这是针对与 i.MX 8M (m850D) DDR初始化相关寄存器的详细编程辅助工具。如需更多详细信息,请参阅 mScale DDR 工具主页面: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/1104467 请注意,此页面仅用于存储 RPA 电子表格。如有疑问,请创建新的社区主题。
View full article
i.MX 8M系列 DDR 工具发布 Important: If you have any questions or would like to report any issues with the DDR tools or supporting documents please create a support ticket in the  i.MX community. Please note that any private messages or direct emails are not monitored and will not receive a response. 注意: 请注意,i.MX 8M 系列已添加 DDR 支持,并且此功能也已在Config Tools for i.MX Applications Processors | NXP Semiconductors中添加。请考虑使用此工具以获取更多增强功能。 i.MX 8M系列 DDR 工具概览 i.MX 8M 系列 DDR 工具是一款基于 Windows 的软件,旨在帮助用户进行 LPDDR4/DDR4/DDR3L 培训、压力测试以及为 u-boot SPL 生成 DDR 初始代码。 本页面包含 i.MX 8M 系列 DDR 工具的最新版本,支持以下 SoC: i.MX 8M Quad及其衍生产品i.MX 8M Quadlite和i.MX 8M Dual i.MX 8M Mini Quad 及其衍生产品 i.MX 8M Mini Quadlite/Dual/DualLite/Solo/SoloLite i.MX 8M Nano Quad 及其衍生产品 i.MX 8M Nano Quadlite/Dual/DualLite/Solo/SoloLite i.MX 8M Plus NOTE: For the i.MX 8/8X Family of DDR tools please refer to the: i.MX 8/8X Family DDR Tools Release   i.MX 8M 系列 DDR 工具旨在让用户能够根据设备配置(密度、芯片选择数量等)和板布局(数据总线位切换等)生成和测试自定义 DRAM 初始化。此过程使用户能够继续进行引导加载程序和操作系统的启动。操作系统启动后,建议运行基于操作系统的内存测试(如 Linux memtester)以进一步验证和测试 DDR 内存接口。   i.MX 8M 系列 DDR 工具包括: DDR 寄存器编程辅助工具 (RPA) MSCALE DDR 工具   有关这些 DDR 工具及其使用的更多详细信息,请参阅 i.MX 8M DDR Tools 用户指南。   i.MX 8M系列DDR工具 i.MX 8M 系列 DDR 压力测试工具是一款基于 Windows 的软件工具,用于验证 DDR 初始化是否正常工作,以便与 u-boot 和操作系统启动过程配合使用。要安装 DDR 压力测试,您需要保存并解压缩 zip 文件 mscale_ddr_tool_vXXX_setup.exe.zip  (其中“xxx”为当前版本号)并按照屏幕上的安装说明进行操作。 i.MX 8M 系列 DDR 工具 需求 该工具需要访问Windows注册表,因此用户必须以管理员模式运行它。 当用户设计新的 i.MX 8M 系列开发板时,请务必遵循《硬件开发指南》和《MSCALE_DDR_Tool_User_Guide》中所述的规则,这将有助于用户在各自的 i.MX 8M 开发板上启动 DDR 设备。 i.MX 8M 系列 DDR 工具 用户指南 i.MX 8M DDR 工具包含以下文档:MSCALE_DDR_Tool_User_Guide NOTE: Please read the MSCALE_DDR_Tool_User_Guide inside the package carefully before you use this tool. i.MX8M DDR工具修订历史 版本 主要变更*(特性) 备注 3.31 集成针对 8MQ ERR051273 的解决方案   3.30 修复所有 i.MX 8M 系列的 DBI 启用问题 自动识别 i.MX 8M Nano 板上的 ROHM 和 PCA9450 电源管理IC (PMIC) 修复 4GB/8GB 内存测试工具问题   3.20 为 i.MX 8M Plus 添加支持   3.10 修复PC软件与目标板之间某些特定字符的UART通信问题。 在生成的C代码中微调DDRPHY寄存器。   3.00 为 i.MX8M-nano 添加支持 添加对不同PMIC或PMIC配置的支持 为所有DDR频率点添加压力测试支持 Nano 版 RPA 工具新增对 DDR3L 和 DDR4 的支持 请注意:DDR3L 和 LPDDR4 的 RPA 文件中包含"preliminary"标识,仅表示这些 RPA 基于 NXP 内部验证板开发,而 DDR4 RPA 则基于已发布的 EVK 开发。 2.10 更改 DDR4 容量计算方法   2.00 添加对 i.MX8M-mini 的支持   * 更多详细信息请参阅发行说明 i.MX 8M 调试 UART2 的.ds 脚本示例配置: ################step 0: configure debug uart port. Assumes use of UART IO Pads.   ##### ##### If using non-UART pads (i.e. using other pads to mux out the UART signals), ##### ##### then it is up to the user to overwrite the following IO register settings   ##### memory set 0x3033023C 32 0x00000000 #IOMUXC_SW_MUX_UART2_RXD memory set 0x30330240 32 0x00000000 #IOMUXC_SW_MUX_UART2_TXD memory set 0x303304A4 32 0x0000000E #IOMUXC_SW_PAD_UART2_RXD memory set 0x303304A8 32 0x0000000E #IOMUXC_SW_PAD_UART2_TXD memory set 0x303304FC 32 0x00000000 #IOMUXC_SW_MUX_UART2_SEL_RXD sysparam set debug_uart   1 #UART index from 0 ('0' = UART1, '1' = UART2, '2' = UART3, '3' = UART4) i.MX 8M 调试 UART3 的.ds 脚本开头示例配置 ################step 0: configure debug uart port. Assumes use of UART IO Pads.   ##### ##### If using non-UART pads (i.e. using other pads to mux out the UART signals), ##### ##### then it is up to the user to overwrite the following IO register settings   ##### memory set 0x30330244 32 0x00000000 #IOMUXC_SW_MUX_UART3_RXD memory set 0x30330248 32 0x00000000 #IOMUXC_SW_MUX_UART3_TXD memory set 0x303304AC 32 0x0000000E #IOMUXC_SW_PAD_UART3_RXD memory set 0x303304B0 32 0x0000000E #IOMUXC_SW_PAD_UART3_TXD memory set 0x30330504 32 0x00000002 #IOMUXC_SW_MUX_UART3_SEL_RXD sysparam set debug_uart   2 #UART index from 0 ('0' = UART1, '1' = UART2, '2' = UART3, '3' = UART4) i.MX 8M Mini PMIC 配置的.ds 脚本开头示例配置 ##############step 0.5: configure I2C port IO pads according to your PCB design.   ##### ########### You can modify the following instructions to adapt to your board PMIC ####### memory set 0x30330214 32 0x00000010  #IOMUXC_SW_MUX_I2C1_SCL memory set 0x30330218 32 0x00000010  #IOMUXC_SW_MUX_I2C1_SDA memory set 0x3033047C 32 0x000000C6 #IOMUXC_SW_PAD_I2C1_SCL memory set 0x30330480 32 0x000000C6  #IOMUXC_SW_PAD_I2C1_SDA sysparam set pmic_cfg 0x004B #bit[7:0] = PMIC addr,bit[15:8]=I2C Bus. Bus index from 0 ('0' = I2C1, '1' = I2C2, '2' = I2C3, '3' = I2C4) sysparam set pmic_set 0x2F01 #bit[7:0] = Reg val, bit[15:8]=Reg addr. #REG(0x2F) = 0x01 sysparam set pmic_set 0x0C02   #REG(0x0C) = 0x02 sysparam set pmic_set 0x171E   #REG(0x17) = 0x1E sysparam set pmic_set 0x0C00   #REG(0x0C) = 0x00 sysparam set pmic_set 0x2F11    #REG(0x2F)=0x11 i.MX 8M 系列 DDR 寄存器编程辅助工具 (RPA) i.MX 8M DDR RPA(或简称为 RPA)是一款用于为用户特定的 DDR 配置(如 DDR 设备类型、密度等)开发 DDR 初始化的 Excel 电子表格工具。RPA 生成 DDR 初始化(在单独的 Excel 工作表标签中):   DDR 压力测试脚本:此格式专用于 DDR 压力测试,首先将本工作表中的内容复制到文本文件中,然后将该文件命名为“.ds”文件扩展名的文档。用户在执行DDR压力测试时将选择此文件。 《如何使用Excel工作表》选项卡提供了使用 RPA 的说明。   i.MX 8M 系列 DDR 寄存器编程辅助 (RPA):当前版本 要获取最新的 RPA,请参考以下链接(注意,现有的 RPA 已从本主页面移除,并移至下方特定于 SoC)的链接中): i.MX 8M Quad: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8M-m850D-DDR-Register-Programming-Aid-RPA/ta-p/1172441 i.MX 8M Mini : https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8MMini-m845S-DDR-Register-Programming-Aid-RPA/ta-p/1172443 i.MX 8M Nano: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8MNano-m815S-DDR-Register-Programming-Aid-RPA/ta-p/1172444 i.MX 8M Plus: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8MPlus-m865S-DDR-Register-Programming-Aids-RPA/ta-p/1235352   处理器 掩模版本 支持的存储器 最新 RPA 版本 * i.MX 8M Quad & Derivatives 全部 LPDDR4 启示录 33 i.MX 8M Quad & Derivatives 全部 DDR4 版本 18 i.MX 8M Quad & Derivatives 全部 DDR3L Rev 9 i.MX 8M Mini& 衍生产品 A0 LPDDR4 启示录 22 i.MX 8M Mini及衍生产品 A0 DDR4 版本 21 i.MX 8M Mini & 衍生产品 A0 DDR3L 版本 10 i.MX 8M Nano & 衍生产品 A0 LPDDR4 Rev 9 i.MX 8M Nano及其衍生产品 A0 DDR4 版本 12 i.MX 8M Nano及其衍生产品 A0 DDR3L Rev 6 i.MX 8M Plus 及其衍生产品 A1 LPDDR4 Rev 9 i.MX 8M Plus 及其衍生产品 A1 DDR4 Rev 9 * 有关更新的详细信息,请参阅相应 RPA 的“修订记录”选项卡。 要修改自定义设置的 DRAM 频率,请参阅iMX 8M Mini 寄存器编程辅助工具 DRAM PLL 配置 相关资源链接: i.MX 应用处理器的配置工具 | NXP 半导体 i.MX 8M Mini 寄存器编程辅助工具 DRAM PLL 设置 i.MX 8/8X 系列 DDR 工具发布 i.MX 6/7 DDR 压力测试 GUI 工具 i.MX 8M 应用处理器相关资源 i.MX8M (m850D) DDR 寄存器编程辅助工具 (RPA) i.MX8MMini (m845S) DDR 寄存器编程辅助 (RPA) i.MX8MNano (m815S) DDR 寄存器编程辅助 (RPA) i.MX 8MPlus (m865S) DDR 寄存器编程辅助工具 (RPA) i.MX 8ULP DDR 工具:i.MX 软件和开发工具 | NXP Semiconductors 向下滚动到“其他资源 --> 工具 --> DDR 工具” i.MX 8M | i.MX 8M Mini | i.MX 8M Nano 回复:i.MX 8M 系列 DDR工具发布 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 太好了。谢谢!
View full article
i.MX8M (m850D) DDRレジスタプログラミング支援 (RPA) これは、i.MX 8M (m850D) DDR 初期化に関連するレジスタの詳細なプログラミング補助資料です。詳細については、mScale DDRツールのメインページをご参照ください。 https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/1104467 このページは、RPAスプレッドシートの保存のみを目的としていることに注意してください。ご不明な点がございましたら、新しいコミュニティスレッドを作成してください。
View full article
i.MX8MNano (m815S) DDRレジスタプログラミング支援 (RPA) これは、i.MX 8MNano (m815S) DDR初期化に関連するレジスタの詳細なプログラミング支援資料です。詳細については、mScale DDRツールのメインページをご参照ください。 https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/1104467 このページは、RPAスプレッドシートの保存のみを目的としていることに注意してください。ご不明な点がございましたら、新しいコミュニティスレッドを作成してください。 Re: i.MX8MNano (m815S) DDRレジスタプログラミング支援 (RPA) こんにちは、@Rodrigueさん mScaleプロセッサでは、各周波数ポイントでトレーニングが実施されます。各周波数のキャリブレーション値を保持する個別のレジスタ・セットがあります。 このページの目的はRPAの保存に限定されることにご注意ください。RPAに関する今後の質問については、別のコミュニティ・スレッドを作成してください。 よろしくお願いいたします。 Jan Re: i.MX8MNano (m815S) DDR Register Programming Aid (RPA) こんにちは@jan_spurek 、 2番目の周波数ポイントに関して詳細を教えていただけますか? DDRストレステストでは、これはどのように処理されますか? 私が知る限り、このツールは一般的なDDRレジスタ設定のみを検証するため、確認するのは1つの周波数ポイント付近のキャリブレーションに限られます。 それとも、vTSAツールを使用して、低いバス周波数での設計をさらに検証するためにお手伝いが必要ですか? お返事をよろしくお願いいたします。
View full article
i.MX8MNano (m815S) DDR 寄存器编程辅助 (RPA) 这是关于与 i.MX 8MNano (m815S) DDR 初始化相关的寄存器的详细编程指南。如需更多详细信息,请参阅 mScale DDR 工具主页面: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/1104467 请注意,此页面仅用于存储 RPA 电子表格。如有疑问,请创建新的社区主题。 回复:i.MX8MNano (m815S) DDR 寄存器编程辅助 (RPA) 您好,@Rodrigue, 对于 mScale 处理器,将针对每个频率点执行训练 - 有单独的寄存器集保存每个频率的校准值。 请注意,此页面仅用于存储 RPA。对于有关 RPA 的未来问题,请设置单独的社区主题。 顺祝商祺! Jan Re: i.MX8MNano (m815S) DDR Register Programming Aid (RPA) 你好@jan_spurek、 请您提供有关第二个频率点的详细信息吗? DDR 压力测试如何处理这种情况? 据我所知,该工具仅在某个频率点附近检查校准,因为它仅与典型的 DDR 寄存器设置进行验证。 或者只是为了进一步帮助使用 vTSA 工具在较低总线频率下验证设计吗? 谢谢并致以最诚挚的问候
View full article
i.MX 8M Family DDR Tool Release Important: If you have any questions or would like to report any issues with the DDR tools or supporting documents please create a support ticket in the  i.MX community. Please note that any private messages or direct emails are not monitored and will not receive a response. NOTE: Please note that DDR support for the i.MX 8M Family and has also been added in the Config Tools for i.MX Applications Processors | NXP Semiconductors Please consider using this tool with more enhanced features. i.MX 8M Family DDR Tools Overview The i.MX 8M Family DDR Tool is a Windows-based software to help users to do LPDDR4/DDR4/DDR3L training, stress test and DDR initial code generation for u-boot SPL. This page contains the latest releases for the i.MX 8M Family DDR Tools and cover the following SoCs : i.MX 8M Quad and its derivatives i.MX 8M Quadlite and i.MX 8M Dual i.MX 8M Mini Quad and its derivatives i.MX 8M Mini Quadlite/Dual/DualLite/Solo/SoloLite  i.MX 8M Nano Quad and its derivatives i.MX 8M Nano Quadlite/Dual/DualLite/Solo/SoloLite  i.MX 8M Plus NOTE: For the i.MX 8/8X Family of DDR tools please refer to the: i.MX 8/8X Family DDR Tools Release   The purpose of the i.MX 8M Family DDR Tools is to enable users to generate and test a custom DRAM initialization based on their device configuration (density, number of chip selects, etc.) and board layout (data bus bit swizzling, etc.).  This process equips the user to then proceed with the bring-up of a boot loader and an OS.  Once the OS is brought up, it is recommended to run an OS-based memory test (like Linux memtester) to further verify and test the DDR memory interface.     The i.MX 8M Family DDR Tools consist of: DDR Register Programming Aid (RPA) MSCALE DDR Tool   For more details regarding these DDR tools and their usage, refer to the i.MX 8M DDR Tools User Guide.   i.MX 8M Family DDR Tool  The i.MX 8M Family DDR stress test tool is a Windows-based software tool that is used as a mechanism to verify that the DDR initialization is operational for use with u-boot and OS bring-up. To install the DDR Stress Test, save and extract the zip file mscale_ddr_tool_vXXX_setup.exe.zip   (where 'xxx' is the current version number) and follow the on-screen installation instructions. i.MX 8M Family DDR Tool Requirements The tool requires access to the Windows registry, hence users must run it in administrator mode. When users design new i.MX 8M Family boards, please make sure to follow the rules outlined in the respective Hardware Developers Guide and the MSCALE_DDR_Tool_User_Guide, which can help users bring up DDR devices on their respective i.MX 8M boards. i.MX 8M Family DDR Tool User Guide The i.MX 8M DDR tool includes the document: MSCALE_DDR_Tool_User_Guide NOTE: Please read the MSCALE_DDR_Tool_User_Guide inside the package carefully before you use this tool. i.MX8M DDR Tool Revision History Rev Major Changes* (Features) Comments 3.31 Integration of the workaround for 8MQ ERR051273   3.30 Fix DBI enabled issue for all i.MX 8M series Automatically identify ROHM and PCA9450 PMICs on i.MX 8M Nano board Fix 4GB/8GB memory tester issues   3.20 Add support to i.MX 8M Plus   3.10 Fixe UART communication issues for some specific characters between the PC software and the target board. Fine-tune DDRPHY registers in generated C code.   3.00 Add support to i.MX8M-nano Add support to different PMIC or PMIC configuration Add support to stress test for all DDR frequency points RPA tools for Nano include support for DDR3L, DDR4, and LPDDR4.   Note that the DDR3L and LPDDR4 RPAs contain the name preliminary only to denote that these RPAs are based on internal NXP validation boards where the DDR4 RPA is based on the released EVK.   2.10 Change DDR4 capacity computing method   2.00 Add support to i.MX8M-mini   * Further details available in the release notes Sample configuration in the .ds script for i.MX 8M debug UART2: ################step 0: configure debug uart port. Assumes use of UART IO Pads.   ##### ##### If using non-UART pads (i.e. using other pads to mux out the UART signals), ##### ##### then it is up to the user to overwrite the following IO register settings   ##### memory set 0x3033023C 32 0x00000000 #IOMUXC_SW_MUX_UART2_RXD memory set 0x30330240 32 0x00000000 #IOMUXC_SW_MUX_UART2_TXD memory set 0x303304A4 32 0x0000000E #IOMUXC_SW_PAD_UART2_RXD memory set 0x303304A8 32 0x0000000E #IOMUXC_SW_PAD_UART2_TXD memory set 0x303304FC 32 0x00000000 #IOMUXC_SW_MUX_UART2_SEL_RXD sysparam set debug_uart   1 #UART index from 0 ('0' = UART1, '1' = UART2, '2' = UART3, '3' = UART4) Sample configuration in the front of the .ds script for i.MX 8M debug UART3  ################step 0: configure debug uart port. Assumes use of UART IO Pads.   ##### ##### If using non-UART pads (i.e. using other pads to mux out the UART signals), ##### ##### then it is up to the user to overwrite the following IO register settings   ##### memory set 0x30330244 32 0x00000000 #IOMUXC_SW_MUX_UART3_RXD memory set 0x30330248 32 0x00000000 #IOMUXC_SW_MUX_UART3_TXD memory set 0x303304AC 32 0x0000000E #IOMUXC_SW_PAD_UART3_RXD memory set 0x303304B0 32 0x0000000E #IOMUXC_SW_PAD_UART3_TXD memory set 0x30330504 32 0x00000002 #IOMUXC_SW_MUX_UART3_SEL_RXD sysparam set debug_uart   2 #UART index from 0 ('0' = UART1, '1' = UART2, '2' = UART3, '3' = UART4) Sample configuration in the front of the .ds script for i.MX 8M Mini PMIC configuration: ##############step 0.5: configure I2C port IO pads according to your PCB design.   ##### ########### You can modify the following instructions to adapt to your board PMIC ####### memory set 0x30330214 32 0x00000010  #IOMUXC_SW_MUX_I2C1_SCL memory set 0x30330218 32 0x00000010  #IOMUXC_SW_MUX_I2C1_SDA memory set 0x3033047C 32 0x000000C6 #IOMUXC_SW_PAD_I2C1_SCL memory set 0x30330480 32 0x000000C6  #IOMUXC_SW_PAD_I2C1_SDA sysparam set pmic_cfg 0x004B #bit[7:0] = PMIC addr,bit[15:8]=I2C Bus. Bus index from 0 ('0' = I2C1, '1' = I2C2, '2' = I2C3, '3' = I2C4) sysparam set pmic_set 0x2F01 #bit[7:0] = Reg val, bit[15:8]=Reg addr. #REG(0x2F) = 0x01 sysparam set pmic_set 0x0C02   #REG(0x0C) = 0x02 sysparam set pmic_set 0x171E   #REG(0x17) = 0x1E sysparam set pmic_set 0x0C00   #REG(0x0C) = 0x00 sysparam set pmic_set 0x2F11    #REG(0x2F)=0x11 i.MX 8M Family DDR Register Programming Aid (RPA) The i.MX 8M DDR RPA (or simply RPA) is an Excel spreadsheet tool used to develop DDR initialization for a user’s specific DDR configuration (DDR device type, density, etc.). The RPA generates the DDR initialization(in a separate Excel worksheet tab):   DDR Stress Test Script: This format is used specifically with the DDR stress test by first copying the contents in this worksheet tab and then pasting it to a text file, naming the document with the “.ds” file extension. The user will select this file when executing the DDR stress test. The How to Use Excel worksheet tab provides instructions on using the RPA   i.MX 8M Family DDR Register Programming Aid (RPA): Current Versions To obtain the latest RPAs, please refer to the following links (note, existing RPAs have been removed from this main page and moved to the SoC specific links below): i.MX 8M Quad : https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8M-m850D-DDR-Register-Programming-Aid-RPA/ta-p/1172441 i.MX 8M Mini : https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8MMini-m845S-DDR-Register-Programming-Aid-RPA/ta-p/1172443 i.MX 8M Nano: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8MNano-m815S-DDR-Register-Programming-Aid-RPA/ta-p/1172444 i.MX 8M Plus: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8MPlus-m865S-DDR-Register-Programming-Aids-RPA/ta-p/1235352   Processor Mask Revisions Memory Supported Latest RPA Version * i.MX 8M Quad & Derivatives All LPDDR4 Rev 36 i.MX 8M Quad & Derivatives All DDR4 Rev 20 i.MX 8M Quad & Derivatives All DDR3L Rev 12 i.MX 8M Mini & Derivatives A0 LPDDR4 Rev 25 i.MX 8M Mini & Derivatives A0 DDR4 Rev 23 i.MX 8M Mini & Derivatives A0 DDR3L Rev 12 i.MX 8M Nano & Derivatives A0 LPDDR4 Rev 12 i.MX 8M Nano & Derivatives A0 DDR4 Rev 14 i.MX 8M Nano & Derivatives A0 DDR3L Rev 8 i.MX 8M Plus & Derivatives A1 LPDDR4 Rev 11 i.MX 8M Plus & Derivatives A1 DDR4 Rev 11 * For the details about the updates, please refer to the Revision History tab of the respective RPA.  To modify the DRAM Frequency for a custom setting refer to iMX 8M Mini Register Programming Aid DRAM PLL setting  Related Resources Links: Config Tools for i.MX Applications Processors | NXP Semiconductors i.MX 8M Mini Register Programming Aid DRAM PLL setting  i.MX 8/8X Series DDR Tool Release  i.MX 6/7 DDR Stress test GUI Tool i.MX 8M Application Processor Related Resources i.MX8M (m850D) DDR Register Programming Aid (RPA)  i.MX8MMini (m845S) DDR Register Programming Aid (RPA)  i.MX8MNano (m815S) DDR Register Programming Aid (RPA) i.MX 8MPlus (m865S) DDR Register Programming Aids (RPA)   i.MX 8ULP DDR tools: i.MX Software and Development Tools | NXP Semiconductors Scroll down to “Other Resources --> Tools --> DDR Tools” i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: i.MX 8M Family DDR Tool Release Great. Thank You
View full article
i.MX8M (m850D) DDR Register Programming Aid (RPA) This is a detailed programming aid for the registers associated with i.MX 8M (m850D) DDR initialization.  For more details, refer to the main mScale DDR tools page: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/1104467 Please note that this page is only intended to store the RPA spreadsheets. For questions, please create a new community thread.
View full article
i.MX8MMini (m845S) DDR Register Programming Aid (RPA) This is a detailed programming aid for the registers associated with i.MX 8MMini (m845S) DDR initialization.  For more details, refer to the main mScale DDR tools page: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/1104467 Please note that this page is only intended to store the RPA spreadsheets. For questions, please create a new community thread.
View full article
i.MX 8MファミリーDDRツールリリース Important: If you have any questions or would like to report any issues with the DDR tools or supporting documents please create a support ticket in the  i.MX community. Please note that any private messages or direct emails are not monitored and will not receive a response. 注:i.MX 8Mファミリ向けのDDRサポートは、 i.MXアプリケーション・プロセッサ向け構成ツールにも追加されています | NXP Semiconductors 機能が強化されているこのツールの使用をご検討ください。 i.MX 8M ファミリー DDR ツールの概要 i.MX 8MファミリDDRツールは、LPDDR4/DDR4/DDR3Lのトレーニング、ストレス・テスト、U-Boot SPL用のDDR初期コード生成が実行可能なWindowsベースのソフトウェアです。このページでは、i.MX 8MファミリDDRツールの最新リリースおよび以下のSoCを取りあげています。 i.MX 8M クアッドとその派生型 i.MX 8M クアッドライトおよび i.MX 8M デュアル i.MX 8M Nano Quadおよびその派生製品であるi.MX 8M Nano Quadlite/Dual/DualLite/Solo/SoloLite i.MX 8M Nano Quad および その派生品 i.MX 8M Nano Quadlite/Dual/DualLite/Solo/SoloLite i.MX 8M Plus NOTE: For the i.MX 8/8X Family of DDR tools please refer to the: i.MX 8/8X Family DDR Tools Release   i.MX 8/8X DDRツールの目的は、デバイス構成(密度、チップ・セレクト数など)およびボードのレイアウト(データ・バス・ビットのスウィズリングなど)に基づいて、カスタムDRAM初期化を生成およびテストできるようにすることにあります。このプロセスにより、ユーザーはブート・ローダとOSの立ち上げを進めることができるようになります。OSが起動したら、OSベースのメモリ・テスト(Linux memtesterなど)を実行して、DDRメモリ・インターフェースをさらに検証およびテストすることをお勧めします。   i.MX 8MファミリDDRツールの構成要素は以下のとおりです。 DDRレジスタプログラミングエイド(RPA) MSCALE DDRツール   これらのDDRツールとその使用方法の詳細については、i.MX 8M DDRツールのユーザーガイドを参照してください。   i.MX 8MファミリーDDRツール i.MX 8MファミリのDDRストレス・テスト・ツールは、U-BootおよびOSの起動に伴うDDR初期化が正常に動作することを検証するためのWindowsベースのソフトウェア・ツールです。DDRストレス・テストをインストールするには、zipファイルmscale_ddr_tool_vXXX_setup.exe.zip(「xxx」は現在のバージョン番号)を保存、解凍してから、画面上のインストール手順に従います。 i.MX 8M ファミリー DDR ツール 要件 このツールは Windows レジストリへのアクセスを必要とするため、ユーザーは管理者モードで実行する必要があります。 新しいi.MX 8Mファミリ・ボードを設計する際は、該当ハードウェアの開発者ガイドとMSCALE_DDR_Tool_User_Guideに記載されているルールに忠実に従うと、対象となるi.MX 8MボードでDDRデバイスを起動するのに役立ちます。 i.MX 8MファミリDDRツール・ユーザーガイド i.MX 8M DDRツールには、ドキュメント「MSCALE_DDR_Tool_User_Guide」が付属します。 NOTE: Please read the MSCALE_DDR_Tool_User_Guide inside the package carefully before you use this tool. i.MX8M DDRツール変更履歴 Rev 主な変更*(機能) コメント 3.31 8MQ ERR051273の回避策の組み込み   3.30 i.MX 8Mの全シリーズに共通するDBI有効化の問題を修正 i.MX 8M Nanoボード上でROHMとPCA9450 PMICの識別を自動化 4GB/8GBメモリ・テスタの問題を修正   3.20 i.MX 8M Plusにサポートを追加   3.10 PCソフトウェアとターゲット・ボード間の特定の文字に関するUART通信の問題を修正 生成されたCコード内のDDRPHYレジスタを微調整   3.00 i.MX8M-nanoにサポートを追加 異なるPMICまたはPMIC構成にサポートを追加 すべてのDDR周波数ポイントでストレス・テストのサポートを追加 Nano 用の RPA ツールには、DDR3L、DDR4、および LPDDR4 のサポートが含まれています。 DDR3LとLPDDR4のRPAに「暫定版」という名称が含まれるのは、これらRPAが内部NXP検証ボードを基盤にしていることを示すためのみであり、DDR4 RPAはリリースされたEVKに基づきます。   2.10 DDR4容量計算方法を変更   2.00 i.MX8M Miniのサポートを追加   *詳細については、リリース・ノートを参照してください i.MX 8MデバッグUART2向けの.dsスクリプトのサンプル構成: ################step 0: configure debug uart port. Assumes use of UART IO Pads.   ##### ##### If using non-UART pads (i.e. using other pads to mux out the UART signals), ##### ##### then it is up to the user to overwrite the following IO register settings   ##### memory set 0x3033023C 32 0x00000000 #IOMUXC_SW_MUX_UART2_RXD memory set 0x30330240 32 0x00000000 #IOMUXC_SW_MUX_UART2_TXD memory set 0x303304A4 32 0x0000000E #IOMUXC_SW_PAD_UART2_RXD memory set 0x303304A8 32 0x0000000E #IOMUXC_SW_PAD_UART2_TXD memory set 0x303304FC 32 0x00000000 #IOMUXC_SW_MUX_UART2_SEL_RXD sysparam set debug_uart   1 #UART index from 0 ('0' = UART1, '1' = UART2, '2' = UART3, '3' = UART4) i.MX 8MデバッグUART2向けの.dsスクリプトの前のサンプル構成: ################step 0: configure debug uart port. Assumes use of UART IO Pads.   ##### ##### If using non-UART pads (i.e. using other pads to mux out the UART signals), ##### ##### then it is up to the user to overwrite the following IO register settings   ##### memory set 0x30330244 32 0x00000000 #IOMUXC_SW_MUX_UART3_RXD memory set 0x30330248 32 0x00000000 #IOMUXC_SW_MUX_UART3_TXD memory set 0x303304AC 32 0x0000000E #IOMUXC_SW_PAD_UART3_RXD memory set 0x303304B0 32 0x0000000E #IOMUXC_SW_PAD_UART3_TXD memory set 0x30330504 32 0x00000002 #IOMUXC_SW_MUX_UART3_SEL_RXD sysparam set debug_uart   2 #UART index from 0 ('0' = UART1, '1' = UART2, '2' = UART3, '3' = UART4) i.MX 8M Mini PMIC構成向けの.dsスクリプトの前のサンプル構成: ##############step 0.5: configure I2C port IO pads according to your PCB design.   ##### ########### You can modify the following instructions to adapt to your board PMIC ####### memory set 0x30330214 32 0x00000010  #IOMUXC_SW_MUX_I2C1_SCL memory set 0x30330218 32 0x00000010  #IOMUXC_SW_MUX_I2C1_SDA memory set 0x3033047C 32 0x000000C6 #IOMUXC_SW_PAD_I2C1_SCL memory set 0x30330480 32 0x000000C6  #IOMUXC_SW_PAD_I2C1_SDA sysparam set pmic_cfg 0x004B #bit[7:0] = PMIC addr,bit[15:8]=I2C Bus. Bus index from 0 ('0' = I2C1, '1' = I2C2, '2' = I2C3, '3' = I2C4) sysparam set pmic_set 0x2F01 #bit[7:0] = Reg val, bit[15:8]=Reg addr. #REG(0x2F) = 0x01 sysparam set pmic_set 0x0C02   #REG(0x0C) = 0x02 sysparam set pmic_set 0x171E   #REG(0x17) = 0x1E sysparam set pmic_set 0x0C00   #REG(0x0C) = 0x00 sysparam set pmic_set 0x2F11    #REG(0x2F)=0x11 i.MX 8Mファミリー DDRレジスタプログラミングエイド (RPA) i.MX 8M DDR RPA(または単にRPA)は、ユーザーが特定のDDR構成(DDRデバイス・タイプ、密度など)向けのDDR初期化を練り上げるために使用するExcelスプレッドシート・ツールです。RPAは、DDR初期化を(別々のExcelワークシート・タブに)生成します。   DDRストレス・テスト・スクリプト:こちらはDDRストレス・テスト専用の形式です。まず、このワークシート・タブの内容をコピーしてテキスト・ファイルに貼り付け、ドキュメントに「.ds」というファイル拡張子を付けます。このファイルはユーザーがDDRストレス・テストを実行する際に選択されます。 「How to Use Excel worksheet(Excelワークシートの使用方法)」タブにはRPAの使用手順が記載されています。   i.MX 8/8X DDRレジスタ・プログラミング支援(RPA):現在のバージョン 最新の RPA を入手するには、以下のリンクをご参照ください (既存の RPA はこのメインページから削除され、以下の SoC 固有のリンクに移動していることにご注意ください)。 i.MX 8M Quad : https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8M-m850D-DDR-Register-Programming-Aid-RPA/ta-p/1172441 i.MX 8M Mini : https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8MMini-m845S-DDR-Register-Programming-Aid-RPA/ta-p/1172443 i.MX 8M Nano: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8MNano-m815S-DDR-Register-Programming-Aid-RPA/ta-p/1172444 i.MX 8M Plus: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8MPlus-m865S-DDR-Register-Programming-Aids-RPA/ta-p/1235352   プロセッサ マスクのリビジョン メモリがサポートされています 最新の RPA バージョン * i.MX 8M Quad & デリバティブ すべて LPDDR4 Rev 33 i.MX 8M Quadと派生製品 すべて DDR4 Rev 18 i.MX 8M Quadと派生製品 すべて DDR3L Rev 9 i.MX 8M Mini& 派生製品 A0 LPDDR4 黙示録22章 i.MX 8M Miniと派生製品 A0 DDR4 Rev 21 i.MX 8M Miniと派生製品 A0 DDR3L Rev 10 i.MX 8M Nanoと派生製品 A0 LPDDR4 Rev 9 i.MX 8M Nanoと派生製品 A0 DDR4 Rev 12 i.MX 8M Nanoと派生製品 A0 DDR3L Rev6 i.MX 8M Plusと派生製品 A1 LPDDR4 Rev 9 i.MX 8M Plusと派生製品 A1 DDR4 Rev 9 * 更新内容の詳細については、該当するRPAの「変更履歴」タブを参照してください。 DRAM周波数をカスタム設定に変更するには、i.MX 8M Miniレジスタ・プログラミング支援DRAM PLL設定を参照してください。 関連リソースのリンク: i.MXアプリケーション・プロセッサ用Config Tool | NXP Semiconductors i.MX 8M Miniレジスタ・プログラミング支援DRAM PLL設定 i.MX 8/8XシリーズDDRツールのリリース  i.MX 6/7 DDRストレステストGUIツール i.MX 8M アプリケーションプロセッサ関連リソース i.MX8M(m850D)DDRレジスタ・プログラミング支援ツール(RPA) i.MX8MMini(m845S)DDRレジスタ・プログラミング支援(RPA)  i.MX8MNano (m815S) DDRレジスタプログラミング支援 (RPA) i.MX 8MPlus(m865S)DDRレジスタ・プログラミング支援(RPA)   i.MX 8ULP DDR ツール: i.MX ソフトウェアおよび開発ツール | NXP Semiconductors 「その他のリソース --> ツール --> DDR ツール」までスクロールしてください i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: i.MX 8MファミリーDDRツールリリース <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> どうもありがとうございます。
View full article
i.MX8MMini (m845S) DDR 寄存器编程辅助 (RPA) 这是与 i.MX 8MMini (m845S) DDR 初始化相关的寄存器的详细编程辅助。有关更多详细信息,请参阅 mScale DDR 工具主页面: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/1104467 请注意,此页面仅用于存储 RPA 电子表格。如有疑问,请创建新的社区主题。
View full article
[MCX A153] LPCMP入門ガイド(日本語ブログ) 1. はじめに 本記事では、NXP MCX A シリーズ (MCX A153) に搭載されている LPCMP (Low-Power Comparator) を、MCUXpresso SDK の frdmmcxa153_lpcmp_interrupt サンプルと、FRDM-MCXA153ボードを題材に解説します。 LPCMP は 2 つのアナログ入力の大小関係を比較し、結果をデジタル出力として得る周辺機能で、しきい値検出、ゼロクロス検出、電源監視、タッチ入力など幅広い用途に使われます。MCX A153 の LPCMP は内蔵 8bit DAC と 8ch アナログマルチプレクサを備えており、外付け部品を増やすことなくしきい値比較が可能です。 本サンプルは、CMP0 の正入力 (P2_2 / CMP0_IN0) に外部電圧 (VDD または GND)、負入力に内蔵 DAC 出力 (≒ VREFI/2 = VDD/2) を割り当て、比較結果の立ち上がり/立ち下がりエッジ割り込みで LED_RED を点灯/消灯させます。 (読了:20分) 2. LPCMP の概要 LPCMP は以下のサブブロックで構成されます。 コンパレータコア: プラス入力 / マイナス入力を比較しデジタル出力 (COUT) を生成 8bit DAC: 256 タップの抵抗ラダーで Vin を分圧。VREFH0 (VDD) または VREFH1 (VREFI 入力) を Vin として選択可能 出力式: DACO = Vin / 256 × (DAC_DATA + 1) 、DAC_DATA = 0〜255 出力範囲: Vin × 1/256 〜 Vin × 256/256 (= Vin) の 256 段階 (0V は出力できない) ANMUX (PMUX / MMUX): 8:1 のアナログセレクタ。外部ピン (IN0〜IN5)、内部 DAC 出力、Reservedセレクタを正/負入力に割り当て可能 ウィンドウ / サンプリング / フィルタ: チャタリング除去、タイミング制御 出力ピン / 割り込み: CFR (立ち上がり)、CFF (立ち下がり)、RRF (出力変化) の 3 フラグ 3. 内部ブロック図   3.1 入力セレクタとコア   3.2 内蔵 DAC VRSEL = 0 で VREFH0 (VDD)、VRSEL = 1 で VREFH1 (VREFI 入力) が Vin となります。   4. MCX A153 における固有情報 項目 内容 インスタンス CMP0 (本サンプル使用), CMP1 アナログ入力ピン CMP0_IN0〜IN5 内蔵 DAC 分解能 8bit (256 段階) DAC 基準電圧 VDD (VREFH0) または VREFI 外部入力 (VREFH1) 割り込みフラグ CFR (立ち上がり), CFF (立ち下がり), RRF (出力変化) 機能クロック源 FRO12M, FRO HF, CLK_1M 等から CLOCK_AttachClk で選択 アナログ電源 SPC0 ACTIVE_CFG1 で CMP / DAC 用アナログ電源を有効化   5. サンプルの動作   5.1 配線 FRDM-MCXA153 のピンヘッダで以下のように接続します。 信号 ピン Board Location 接続先 役割 VREFI P2_7 J3-1 JP8-2 (VDD) DAC 基準電圧 Vin (= VDD) CMP0_IN0 P2_2 J2-9 VDD または GND を手動で切替 プラス入力 LED_RED P3_12 オンボード ― 比較結果の表示 J3-1 を JP8-2 (VDD) にジャンパすることで VREFI = VDD となり、内蔵 DAC の Vin が VDD になります。DAC_DATA は ((LPCMP_DCR_DAC_DATA_MASK >> SHIFT) >> 1) = 127 が設定されるため、DACO ≒ VDD/2 です。J2-9 (CMP0_IN0) を VDD に繋ぐと LED_RED 点灯、GND に繋ぐと消灯します。   5.2 シーケンス   5.3 比較結果の挙動   6. クロック設定 LPCMP はバスクロックとは別に、サンプリング/フィルタ用の機能クロック (CMP_FUNC) を要求します。また、アナログ回路のため SPC (System Power Controller) で CMP / DAC 用アナログ電源を有効化する必要があります。 hardware_init.c の該当コードは以下の 3 行です。 CLOCK_AttachClk(kFRO12M_to_CMP0); /* 1) 機能クロックソースを選択 */ CLOCK_SetClockDiv(kCLOCK_DivCMP0_FUNC, 1U); /* 2) 分周を 1 に設定 (12MHz のまま) */ SPC0->ACTIVE_CFG1 |= ((1U << 16U) | (1U << 20U)); /* 3) CMP0/DAC0 アナログ電源 ON */ SPC0->ACTIVE_CFG1 レジスタの構造 6.1 クロックツリー MCX A153 リファレンスマニュアル Figure 46参照。 6.2 SPC ACTIVE_CFG1 の該当ビット ビット 内容 bit16 (CMP0_AEN) Active モードで CMP0 アナログ回路を有効化 bit20 (CMP0_DAC_AEN) Active モードで CMP0 内蔵 DAC を有効化 この 2 ビットを立て忘れると、 LPCMP_Init() 自体はエラーにならないものの、比較結果が常に 0 のまま、あるいは DAC 出力が立ち上がらないという症状になります。 7. PINMUX 設定 pin_mux.c では以下 4 系統 (計 5 ピン) をセットアップしています。 ピン 機能 ALT 設定ポイント P2_2 CMP0_IN0 (アナログ入力) ALT0 Pull-Down、Input Buffer Disable P2_7 VREFI (DAC 基準電圧) ALT0 Pull-Disable、Input Buffer Disable P3_12 GPIO (LED_RED) ALT0 出力、初期値 1 (消灯) P0_2 LPUART0_RX ALT2 Pull-Up P0_3 LPUART0_TX ALT2 Pull-Up   7.1 アナログピンでの注意点 アナログ入力として使う P2_2 / P2_7 では、必ずデジタル Input Buffer を Disable にします。これを有効のままにすると、入力電圧がロジック閾値付近を通過するたびにシュートスルー電流が流れ、消費電流増加や発熱、さらにアナログ信号の歪みに繋がります。 const port_pin_config_t port2_2_pin16_config = { kPORT_PullDown, kPORT_LowPullResistor, kPORT_FastSlewRate, kPORT_PassiveFilterDisable, kPORT_OpenDrainDisable, kPORT_LowDriveStrength, kPORT_NormalDriveStrength, kPORT_MuxAlt0, kPORT_InputBufferDisable, /* <-- 必須 */ kPORT_UnlockRegister, }; PORT_SetPinConfig(PORT2, 2U, &port2_2_pin16_config);   7.2 PORT / GPIO クロックとリセット解除 PINMUX を触る前に、使用する PORT と GPIO にクロックを供給し、リセットを解除する必要があります。 CLOCK_EnableClock(kCLOCK_GatePORT0); CLOCK_EnableClock(kCLOCK_GatePORT2); CLOCK_EnableClock(kCLOCK_GatePORT3); CLOCK_EnableClock(kCLOCK_GateGPIO3); RESET_ReleasePeripheralReset(kPORT0_RST_SHIFT_RSTn); RESET_ReleasePeripheralReset(kPORT2_RST_SHIFT_RSTn); RESET_ReleasePeripheralReset(kPORT3_RST_SHIFT_RSTn); RESET_ReleasePeripheralReset(kGPIO3_RST_SHIFT_RSTn); これを忘れると GPIOレジスタへの書き込みでフォルトが発生する、または書いても反映されない現象が起こります。 8. SDK API を用いたコード解説   8.1 app.h の定義 #define DEMO_LPCMP_BASE CMP0 #define DEMO_LPCMP_USER_CHANNEL 0U /* CMP0_IN0 */ #define DEMO_LPCMP_DAC_CHANNEL 7U /* 内蔵 DAC 出力の MUX チャネル */ #define DEMO_LPCMP_IRQ_ID CMP0_IRQn #define DEMO_LPCMP_IRQ_HANDLER_FUNC CMP0_IRQHandler   8.2 main() 中の初期化シーケンス lpcmp_config_t mLpcmpConfigStruct; lpcmp_dac_config_t mLpcmpDacConfigStruct; BOARD_InitHardware(); /* clocks + pinmux + console */ /* 1) デフォルト設定を取得し、必要箇所だけ上書き */ LPCMP_GetDefaultConfig(&mLpcmpConfigStruct); /* 2) コンパレータ初期化 */ LPCMP_Init(DEMO_LPCMP_BASE, &mLpcmpConfigStruct); /* 3) 内蔵 DAC 設定: Vin = VREFI(=VDD), DAC_DATA = 127 (フルスケールの半分) * DACO = VREFI / 256 * (127 + 1) = VREFI * 128/256 = VREFI/2 */ mLpcmpDacConfigStruct.enableLowPowerMode = false; mLpcmpDacConfigStruct.referenceVoltageSource = kLPCMP_VrefSourceVin2; /* VREFI */ mLpcmpDacConfigStruct.DACValue = ((LPCMP_DCR_DAC_DATA_MASK >> LPCMP_DCR_DAC_DATA_SHIFT) >> 1U); /* = 127 */ LPCMP_SetDACConfig(DEMO_LPCMP_BASE, &mLpcmpDacConfigStruct); /* 4) PMUX = IN0, MMUX = DAC ch7 */ LPCMP_SetInputChannels(DEMO_LPCMP_BASE, DEMO_LPCMP_USER_CHANNEL, DEMO_LPCMP_DAC_CHANNEL); /* 5) 立ち上がり/立ち下がり両エッジ割り込みを有効化 */ LPCMP_EnableInterrupts(DEMO_LPCMP_BASE, kLPCMP_OutputRisingInterruptEnable | kLPCMP_OutputFallingInterruptEnable); EnableIRQ(DEMO_LPCMP_IRQ_ID); while (1) { } /* あとは割り込み駆動 */   8.3 割り込みハンドラ void DEMO_LPCMP_IRQ_HANDLER_FUNC(void) { LPCMP_ClearStatusFlags(DEMO_LPCMP_BASE, kLPCMP_OutputRisingEventFlag | kLPCMP_OutputFallingEventFlag); if (kLPCMP_OutputAssertEventFlag == (kLPCMP_OutputAssertEventFlag & LPCMP_GetStatusFlags(DEMO_LPCMP_BASE))) { LED_ON(); /* V+ > V- (COUT=1) : LED 点灯 */ } else { LED_OFF(); /* V+ < V- (COUT=0) : LED 消灯 */ } SDK_ISR_EXIT_BARRIER; } Rising / Falling どちらの割り込みでも一旦両方のフラグをクリアし、その後 kLPCMP_OutputAssertEventFlag (= 現在の COUT) を見て LED をオン/オフ分岐します。   9. 動かし方 frdmmcxa153_lpcmp_interrupt を IDE で開きビルド J3-1 (P2_7 / VREFI) を JP8-2 (VDD) にジャンパ して VREFI = VDD にする ターゲットに書き込み、ターミナル (115200 bps) を開く J2-9 (P2_2 / CMP0_IN0) をジャンパ線で VDD に接続 → LED_RED 点灯 同ピンを GND に繋ぎ替え → LED_RED 消灯   10. よくあるつまずき 症状 原因 対処 LPCMPの出力が切り替わらない SPC0 ACTIVE_CFG1 の CMP0/DAC アナログ電源有効化忘れ SPC0->ACTIVE_CFG1 |= (1<<16) 割り込みが入らない LPCMP_EnableInterrupts または EnableIRQ(CMP0_IRQn) 漏れ 両方の呼び出しを確認 DAC 出力が立ち上がらない VRSEL と VREFI 入力ピンの不一致、VREFI 未接続 kLPCMP_VrefSourceVin2 使用時は P2_7 に基準電圧を印加 しきい値付近でチャタリング ヒステリシス 0、フィルタ無効 hysteresisMode を Level1〜3 に、またはフィルタ有効化 GPIOレジスタ書き込みでフォルト PORT クロック未供給 / リセット未解除 CLOCK_EnableClock() と RESET_ReleasePeripheralReset() の呼び出しを確認   11. まとめ MCX A153 の LPCMP は、以下の特徴を持ちます。 8 入力 ANMUX + 内蔵 8bit DAC により外付け回路最小でしきい値比較が可能 DAC 出力は DACO = Vin/256 × (DAC_DATA + 1) (DAC_DATA = 0〜255) で、Vin×1/256 〜 Vin の 256 段階 低消費電力モードやヒステリシス、フィルタ機能を SDK API 1 行で設定可能 使用するには  (1) 機能クロック Attach + Divider  (2) SPC アナログ電源 Enable  (3) アナログピンの Input Buffer Disable の 3 点が必須 本サンプルは最小構成ですが、しきい値を DAC で動的に変える、ウィンドウモードを使う、割り込みの代わりに DMA / 外部トリガとして使用するといった拡張も可能です。LPCMP を使うアプリ開発の出発点として本記事がお役に立てば幸いです。 ========================= 本投稿の「Comment」欄にコメントをいただいても、現在返信に対応しておりません。 お手数をおかけしますが、お問い合わせの際には「NXPへの技術質問 - 問い合わせ方法 (日本語ブログ)」をご参照ください。 (既に弊社NXP代理店、もしくはNXPとお付き合いのある方は、直接担当者へご質問いただいてもかまいません。) 本記事では、NXP MCX A シリーズ (MCX A153) に搭載されている LPCMP (Low-Power Comparator) を、MCUXpresso SDK の frdmmcxa153_lpcmp_interrupt サンプルと、FRDM-MCXA153ボードを題材に解説します。 LPCMP は 2 つのアナログ入力の大小関係を比較し、結果をデジタル出力として得る周辺機能で、しきい値検出、ゼロクロス検出、電源監視、タッチ入力など幅広い用途に使われます。MCX A153 の LPCMP は内蔵 8bit DAC と 8ch アナログマルチプレクサを備えており、外付け部品を増やすことなくしきい値比較が可能です。 本サンプルは、CMP0 の正入力 (P2_2 / CMP0_IN0) に外部電圧 (VDD または GND)、負入力に内蔵 DAC 出力 (≒ VREFI/2 = VDD/2) を割り当て、比較結果の立ち上がり/立ち下がりエッジ割り込みで LED_RED を点灯/消灯させます。 (読了:20分) MCUXpresso SDK MCX 日本語ブログ
View full article
[MCX A153] LPCMP Beginner's Guide (Japanese Blog) 1. Introduction This article explains the LPCMP ( Low - Power Compulator ) included in the NXP MCX A series ( MCX A153 ), using the sample from the MCUXpresso SDK frdmmcxa153_lpcmp_interrupt and the FRDM-MCXA153 board as examples. LPCMP is a peripheral function that compares the relative magnitudes of two analog inputs and obtains the result as a digital output. It is used in a wide range of applications, including threshold detection, zero-crossing detection, power supply monitoring, and touch input. The MCX A153's LPCMP features a built-in 8-bit DAC and 8-channel analog multiplexer, enabling threshold comparison without the need for additional external components. This sample assigns an external voltage (VDD or GND) to the positive input (P2_2 / CMP0_IN0) of CMP0 and the internal DAC output (≒ VREFI/2 = VDD/2) to the negative input, and turns the LED_RED on/off using rising/falling edge interrupts of the comparison result. (Reading time: 20 minutes) 2. Overview of LPCMP LPCMP consists of the following subblocks: Comparator core : Compares positive and negative inputs to generate a digital output (COUT). 8-bit DAC : Vin is divided using a 256-tap resistor ladder. VREFH0 (VDD) or VREFH1 (VREFI input) can be selected as Vin. Output formula: DACO = Vin / 256 × (DAC_DATA + 1) , DAC_DATA = 0 to 255 Output range: 256 levels from Vin × 1/256 to Vin × 256/256 (= Vin) (0V cannot be output) ANMUX (PMUX / MMUX) : 8:1 analog selector. External pins (IN0-IN5), internal DAC output, and Reserved selector can be assigned to positive/negative inputs. Window / Sampling / Filter : Debouncing, Timing Control Output pin / Interrupt : Three flags: CFR (rising edge), CFF (falling edge), RRF (output change). 3. Internal Block Diagram   3.1 Input Selector and Core   3.2 Built-in DAC When VRSEL = 0, VREFH0 (VDD) becomes Vin, and when VRSEL = 1, VREFH1 (VREFI input) becomes Vin.   4. Unique information in MCX A153 item Content instance CMP0 (used in this sample), CMP1 Analog input pins CMP0_IN0~IN5 Built-in DAC resolution 8-bit (256 levels) DAC reference voltage VDD (VREFH0) or VREFI external input (VREFH1) Interrupt flag CFR (Climate Change), CFF (Climate Fall), RRF (Reduced Output Frequency) Functional clock source Select from FRO12M, FRO HF, CLK_1M, etc. using CLOCK_AttachClk Analog power supply Enable the analog power supply for the CMP/DAC using SPC0 ACTIVE_CFG1.   5. Sample Operation   5.1 Wiring Connect the FRDM-MCXA153 pin headers as follows: signal pin Board Location Destination role VREFI P2_7 J3-1 JP8-2 (VDD) DAC reference voltage Vin (= VDD) CMP0_IN0 P2_2 J2-9 Manually switch between VDD and GND. Plus input LED_RED P3_12 Onboard ― Displaying comparison results By jumpering J3-1 to JP8-2 (VDD), VREFI = VDD, and the Vin of the built-in DAC becomes VDD. DAC_DATA is set to ((LPCMP_DCR_DAC_DATA_MASK >> SHIFT) >> 1) = 127, so DACO ≈ VDD/2. Connecting J2-9 (CMP0_IN0) to VDD lights up LED_RED, and connecting it to GND turns it off.   5.2 Sequence   5.3 Behavior of Comparison Results   6. Clock settings The LPCMP requires a separate function clock (CMP_FUNC) for sampling/filtering, in addition to the bus clock. Furthermore, because it's an analog circuit, the analog power supply for the CMP/DAC must be enabled in the SPC (System Power Controller). hardware_init.c The relevant code is the following three lines: CLOCK_AttachClk(kFRO12M_to_CMP0); /* 1) 機能クロックソースを選択 */ CLOCK_SetClockDiv(kCLOCK_DivCMP0_FUNC, 1U); /* 2) 分周を 1 に設定 (12MHz のまま) */ SPC0->ACTIVE_CFG1 |= ((1U << 16U) | (1U << 20U)); /* 3) CMP0/DAC0 アナログ電源 ON */ Structure of the SPC0->ACTIVE_CFG1 register 6.1 Clock Tree Refer to Figure 46 in the MCX A153 Reference Manual . 6.2 The corresponding bit of SPC ACTIVE_CFG1 bit Content bit16 (CMP0_AEN) Enable the CMP0 analog circuit in Active mode. bit20 (CMP0_DAC_AEN) Enable the CMP0's built-in DAC in Active mode. If you forget to set these two bits, LPCMP_Init() itself won't cause an error, but the comparison result will always remain 0, or the DAC output will not start up. 7. PINMUX Settings pin_mux.c We have set up the following four systems (a total of 5 pins). pin function ALT Setting points P2_2 CMP0_IN0 (analog input) ALT0 Pull-Down, Input Buffer Disable P2_7 VREFI (DAC Reference Voltage) ALT0 Pull-Disable, Input Buffer Disable P3_12 GPIO (LED_RED) ALT0 Output, initial value 1 (light off) P0_2 LPUART0_RX ALT2 Pull-Up P0_3 LPUART0_TX ALT2 Pull-Up   7.1 Precautions when using analog pins When using P2_2 / P2_7 as analog inputs, be sure to disable the digital input buffer . If it is left enabled, a shoot-through current will flow every time the input voltage passes near the logic threshold, leading to increased current consumption, heat generation, and distortion of the analog signal. const port_pin_config_t port2_2_pin16_config = { kPORT_PullDown, kPORT_LowPullResistor, kPORT_FastSlewRate, kPORT_PassiveFilterDisable, kPORT_OpenDrainDisable, kPORT_LowDriveStrength, kPORT_NormalDriveStrength, kPORT_MuxAlt0, kPORT_InputBufferDisable, /* <-- 必須 */ kPORT_UnlockRegister, }; PORT_SetPinConfig(PORT2, 2U, &port2_2_pin16_config);   7.2 PORT / GPIO Clock and Reset Release Before touching PINMUX, you need to supply a clock to the PORT and GPIO you will be using and disable the reset. CLOCK_EnableClock(kCLOCK_GatePORT0); CLOCK_EnableClock(kCLOCK_GatePORT2); CLOCK_EnableClock(kCLOCK_GatePORT3); CLOCK_EnableClock(kCLOCK_GateGPIO3); RESET_ReleasePeripheralReset(kPORT0_RST_SHIFT_RSTn); RESET_ReleasePeripheralReset(kPORT2_RST_SHIFT_RSTn); RESET_ReleasePeripheralReset(kPORT3_RST_SHIFT_RSTn); RESET_ReleasePeripheralReset(kGPIO3_RST_SHIFT_RSTn); Forgetting this will result in a fault occurring when writing to the GPIO register, or the changes being written not being reflected. 8. Code Explanation Using the SDK API   8.1 Definition of app.h #define DEMO_LPCMP_BASE CMP0 #define DEMO_LPCMP_USER_CHANNEL 0U /* CMP0_IN0 */ #define DEMO_LPCMP_DAC_CHANNEL 7U /* 内蔵 DAC 出力の MUX チャネル */ #define DEMO_LPCMP_IRQ_ID CMP0_IRQn #define DEMO_LPCMP_IRQ_HANDLER_FUNC CMP0_IRQHandler   8.2 Initialization Sequence in main() lpcmp_config_t mLpcmpConfigStruct; lpcmp_dac_config_t mLpcmpDacConfigStruct; BOARD_InitHardware(); /* clocks + pinmux + console */ /* 1) デフォルト設定を取得し、必要箇所だけ上書き */ LPCMP_GetDefaultConfig(&mLpcmpConfigStruct); /* 2) コンパレータ初期化 */ LPCMP_Init(DEMO_LPCMP_BASE, &mLpcmpConfigStruct); /* 3) 内蔵 DAC 設定: Vin = VREFI(=VDD), DAC_DATA = 127 (フルスケールの半分) * DACO = VREFI / 256 * (127 + 1) = VREFI * 128/256 = VREFI/2 */ mLpcmpDacConfigStruct.enableLowPowerMode = false; mLpcmpDacConfigStruct.referenceVoltageSource = kLPCMP_VrefSourceVin2; /* VREFI */ mLpcmpDacConfigStruct.DACValue = ((LPCMP_DCR_DAC_DATA_MASK >> LPCMP_DCR_DAC_DATA_SHIFT) >> 1U); /* = 127 */ LPCMP_SetDACConfig(DEMO_LPCMP_BASE, &mLpcmpDacConfigStruct); /* 4) PMUX = IN0, MMUX = DAC ch7 */ LPCMP_SetInputChannels(DEMO_LPCMP_BASE, DEMO_LPCMP_USER_CHANNEL, DEMO_LPCMP_DAC_CHANNEL); /* 5) 立ち上がり/立ち下がり両エッジ割り込みを有効化 */ LPCMP_EnableInterrupts(DEMO_LPCMP_BASE, kLPCMP_OutputRisingInterruptEnable | kLPCMP_OutputFallingInterruptEnable); EnableIRQ(DEMO_LPCMP_IRQ_ID); while (1) { } /* あとは割り込み駆動 */   8.3 Interrupt Handlers void DEMO_LPCMP_IRQ_HANDLER_FUNC(void) { LPCMP_ClearStatusFlags(DEMO_LPCMP_BASE, kLPCMP_OutputRisingEventFlag | kLPCMP_OutputFallingEventFlag); if (kLPCMP_OutputAssertEventFlag == (kLPCMP_OutputAssertEventFlag & LPCMP_GetStatusFlags(DEMO_LPCMP_BASE))) { LED_ON(); /* V+ > V- (COUT=1) : LED 点灯 */ } else { LED_OFF(); /* V+ < V- (COUT=0) : LED 消灯 */ } SDK_ISR_EXIT_BARRIER; } In both rising and falling interrupts, both flags are cleared first, and then the LED is branched on/off based on kLPCMP_OutputAssertEventFlag (= current COUT).   9. How to operate frdmmcxa153_lpcmp_interrupt Open it in the IDE and build it. Jumper J3-1 (P2_7 / VREFI) to JP8-2 (VDD) to set VREFI = VDD. Write to the target and open a terminal (115200 bps). Connect J2-9 (P2_2 / CMP0_IN0) to VDD with a jumper wire → LED_RED lights up. Reconnect the same pin to GND → LED_RED turns off   10. Common stumbling blocks Symptoms cause handle The LPCMP output is not switching. Forgot to enable the analog power supply for CMP0/DAC in SPC0 ACTIVE_CFG1. SPC0->ACTIVE_CFG1 |= (1<<16) No interruption LPCMP_EnableInterrupts or EnableIRQ(CMP0_IRQn) leak Check both calls DAC output does not start up. VRSEL and VREFI input pin mismatch, VREFI not connected kLPCMP_VrefSourceVin2 When in use, apply the reference voltage to P2_7. Chattering near the threshold Hysteresis 0, filter disabled hysteresisMode Set to Level 1-3, or enable filtering. Fault when writing to GPIO registers PORT clock not supplied / Reset not released CLOCK_EnableClock() And confirm the call to RESET_ReleasePeripheralReset()   11. Summary The LPCMP in the MCX A153 has the following characteristics: With 8 ANMUX inputs and a built-in 8-bit DAC, threshold comparison is possible with minimal external circuitry. The DAC output is DACO = Vin/256 × (DAC_DATA + 1) (DAC_DATA = 0 to 255), with 256 steps ranging from Vin × 1/256 to Vin. Low-power mode, hysteresis, and filtering functions can be configured with a single line of SDK API code. To use (1) Functional Clock Attachment + Divider (2) SPC Analog Power Supply Enable (3) Disable the Input Buffer for analog pins These three points are essential. This sample uses a minimal configuration, but it can be extended to dynamically change thresholds with a DAC, use window mode, or use DMA/external triggers instead of interrupts. We hope this article will be helpful as a starting point for developing applications that use LPCMP. ========================= We are currently unable to respond to comments left in the "Comment" section of this post. We apologize for the inconvenience, but please refer to " Technical Questions to NXP - How to Contact Us( Japanese Blog) " when making an inquiry. (If you are already an NXP distributor or have a relationship with NXP, you may ask your representative directly.) This article explains the LPCMP ( Low - Power Compulator ) included in the NXP MCX A series ( MCX A153 ), using the sample from the MCUXpresso SDK frdmmcxa153_lpcmp_interrupt and the FRDM-MCXA153 board as examples. LPCMP is a peripheral function that compares the relative magnitudes of two analog inputs and obtains the result as a digital output. It is used in a wide range of applications, including threshold detection, zero-crossing detection, power supply monitoring, and touch input. The MCX A153's LPCMP features a built-in 8-bit DAC and 8-channel analog multiplexer, enabling threshold comparison without the need for additional external components. This sample assigns an external voltage (VDD or GND) to the positive input (P2_2 / CMP0_IN0) of CMP0 and the internal DAC output (≒ VREFI/2 = VDD/2) to the negative input, and turns the LED_RED on/off using rising/falling edge interrupts of the comparison result. (Reading time: 20 minutes) MCUXpresso SDK MCX Japanese Blog
View full article
[MCX A153] LPCMP 新手指南(日语博客) 1. 引言 本文以 MCUXpresso SDK 中的 示例和 frdmmcxa153_lpcmp_interrupt FRDM-MCXA153 板为例,解释了 NXP MCX A 系列( MCX A153 ) 中包含的 LPCMP( 低 功耗 计算器 )。 LPCMP 是一种外设功能,用于比较两个模拟输入信号的相对幅度,并将结果以数字输出的形式呈现。它广泛应用于各种场景,包括阈值检测、过零检测、电源监控和触摸输入。MCX A153 的 LPCMP 内置 8 位 DAC 和 8 通道模拟多路复用器,无需额外的外部元件即可实现阈值比较。 此示例将外部电压(VDD 或 GND)分配给 CMP0 的正输入端(P2_2 / CMP0_IN0),将内部 DAC 输出(≒ VREFI/2 = VDD/2)分配给负输入端,并使用比较结果的上升沿/下降沿中断来打开/关闭 LED_RED。 (阅读时间:20分钟) 2. LPCMP概述 LPCMP由以下子模块组成: 比较器核心:比较正负输入以生成数字输出(COUT)。 8 位 DAC :输入电压 Vin 通过 256 抽头电阻梯形电路进行分压。VREFH0 (VDD) 或 VREFH1 (VREFI 输入) 可选择作为输入电压 Vin。 输出公式: DACO = Vin / 256 × (DAC_DATA + 1) ,DAC_DATA = 0 到 255 输出范围:256 级,从 Vin × 1/256 到 Vin × 256/256 (= Vin) (不能输出 0V) ANMUX(PMUX / MMUX) :8:1 模拟选择器。外部引脚(IN0-IN5)、内部 DAC 输出和保留选择器可分配给正/负输入。 窗口/采样/滤波器:去抖动、时序控制 输出引脚/中断:三个标志:CFR(上升沿)、CFF(下降沿)、RRF(输出变化)。 3. 内部框图   3.1 输入选择器和核心   3.2 内置DAC 当 VRSEL = 0 时,VREFH0 (VDD) 变为 Vin;当 VRSEL = 1 时,VREFH1 (VREFI 输入) 变为 Vin。   4. MCX A153 中的独特信息 项目 内容 实例 CMP0(本样本中使用),CMP1 模拟输入引脚 CMP0_IN0~IN5 内置DAC分辨率 8 位(256 级) DAC参考电压 VDD (VREFH0) 或 VREFI 外部输入 (VREFH1) 中断标志 CFR(气候变化)、CFF(气候下降)、RRF(降低输出频率) 功能时钟源 使用 CLOCK_AttachClk 模拟电源 使用 SPC0 ACTIVE_CFG1 启用 CMP/DAC 的模拟电源。   5. 示例操作   5.1 接线 按如下方式连接 FRDM-MCXA153 引脚接头: 信号 别针 董事会位置 目的地 角色 VREFI P2_7 J3-1 JP8-2(VDD) DAC参考电压Vin(= VDD) CMP0_IN0 P2_2 J2-9 手动切换VDD和GND。 加输入 红色 LED P3_12 机上 — 显示对比结果 将 J3-1 跳线连接到 JP8-2 (VDD) 后,VREFI = VDD,内置 DAC 的输入电压 (Vin) 变为 VDD。DAC_DATA 设置为 ((LPCMP_DCR_DAC_DATA_MASK >> SHIFT) >> 1) = 127,因此 DACO ≈ VDD/2。将 J2-9 (CMP0_IN0) 连接到 VDD 会点亮 LED_RED,将其连接到 GND 则会熄灭 LED_RED。   5.2 序列   5.3 对比结果的行为   6. 时钟设置 除了总线时钟外,LPCMP 还需要一个单独的功能时钟 (CMP_FUNC) 用于采样/滤波。此外,由于它是模拟电路,因此必须在 SPC(系统电源控制器)中启用 CMP/DAC 的模拟电源。 hardware_init.c 相关代码如下三行: CLOCK_AttachClk(kFRO12M_to_CMP0); /* 1) 機能クロックソースを選択 */ CLOCK_SetClockDiv(kCLOCK_DivCMP0_FUNC, 1U); /* 2) 分周を 1 に設定 (12MHz のまま) */ SPC0->ACTIVE_CFG1 |= ((1U << 16U) | (1U << 20U)); /* 3) CMP0/DAC0 アナログ電源 ON */ SPC0->ACTIVE_CFG1 寄存器的结构 6.1 时钟树 请参阅MCX A153 参考手册中的图 46。 6.2 SPC ACTIVE_CFG1 的对应位 少量 内容 bit16 (CMP0_AEN) 使 CMP0 模拟电路处于激活状态。 bit20 (CMP0_DAC_AEN) 启用 CMP0 的内置 DAC 并进入激活模式。 如果忘记设置这两个位, LPCMP_Init() 本身不会导致错误,但比较结果将始终为 0,或者 DAC 输出将不会启动。 7. 引脚复用设置 pin_mux.c 我们设置了以下四个系统(共 5 个引脚)。 别针 功能 备用 设置要点 P2_2 CMP0_IN0(模拟输入) 谷丙转氨酶0 下拉输入缓冲区禁用 P2_7 VREFI(DAC 参考电压) 谷丙转氨酶0 拉取禁用,输入缓冲区禁用 P3_12 GPIO(LED_RED) 谷丙转氨酶0 输出,初始值为 1(灯灭) P0_2 LPUART0_RX ALT2 引体向上 P0_3 LPUART0_TX ALT2 引体向上   7.1 使用模拟引脚时的注意事项 当使用 P2_2 / P2_7 作为模拟输入时,请务必禁用数字输入缓冲器。如果启用该缓冲器,则每次输入电压接近逻辑阈值时都会产生直通电流,导致电流消耗增加、发热增多以及模拟信号失真。 const port_pin_config_t port2_2_pin16_config = { kPORT_PullDown, kPORT_LowPullResistor, kPORT_FastSlewRate, kPORT_PassiveFilterDisable, kPORT_OpenDrainDisable, kPORT_LowDriveStrength, kPORT_NormalDriveStrength, kPORT_MuxAlt0, kPORT_InputBufferDisable, /* <-- 必須 */ kPORT_UnlockRegister, }; PORT_SetPinConfig(PORT2, 2U, &port2_2_pin16_config);   7.2 端口/GPIO 时钟和复位释放 在操作 PINMUX 之前,需要为要使用的端口和 GPIO 提供时钟信号,并禁用复位功能。 CLOCK_EnableClock(kCLOCK_GatePORT0); CLOCK_EnableClock(kCLOCK_GatePORT2); CLOCK_EnableClock(kCLOCK_GatePORT3); CLOCK_EnableClock(kCLOCK_GateGPIO3); RESET_ReleasePeripheralReset(kPORT0_RST_SHIFT_RSTn); RESET_ReleasePeripheralReset(kPORT2_RST_SHIFT_RSTn); RESET_ReleasePeripheralReset(kPORT3_RST_SHIFT_RSTn); RESET_ReleasePeripheralReset(kGPIO3_RST_SHIFT_RSTn); 如果忘记这一点,在写入 GPIO 寄存器时将会出现故障,或者写入的更改不会反映出来。 8. 使用 SDK API 的代码说明   8.1 app.h 的定义 #define DEMO_LPCMP_BASE CMP0 #define DEMO_LPCMP_USER_CHANNEL 0U /* CMP0_IN0 */ #define DEMO_LPCMP_DAC_CHANNEL 7U /* 内蔵 DAC 出力の MUX チャネル */ #define DEMO_LPCMP_IRQ_ID CMP0_IRQn #define DEMO_LPCMP_IRQ_HANDLER_FUNC CMP0_IRQHandler   8.2 main() 函数中的初始化顺序 lpcmp_config_t mLpcmpConfigStruct; lpcmp_dac_config_t mLpcmpDacConfigStruct; BOARD_InitHardware(); /* clocks + pinmux + console */ /* 1) デフォルト設定を取得し、必要箇所だけ上書き */ LPCMP_GetDefaultConfig(&mLpcmpConfigStruct); /* 2) コンパレータ初期化 */ LPCMP_Init(DEMO_LPCMP_BASE, &mLpcmpConfigStruct); /* 3) 内蔵 DAC 設定: Vin = VREFI(=VDD), DAC_DATA = 127 (フルスケールの半分) * DACO = VREFI / 256 * (127 + 1) = VREFI * 128/256 = VREFI/2 */ mLpcmpDacConfigStruct.enableLowPowerMode = false; mLpcmpDacConfigStruct.referenceVoltageSource = kLPCMP_VrefSourceVin2; /* VREFI */ mLpcmpDacConfigStruct.DACValue = ((LPCMP_DCR_DAC_DATA_MASK >> LPCMP_DCR_DAC_DATA_SHIFT) >> 1U); /* = 127 */ LPCMP_SetDACConfig(DEMO_LPCMP_BASE, &mLpcmpDacConfigStruct); /* 4) PMUX = IN0, MMUX = DAC ch7 */ LPCMP_SetInputChannels(DEMO_LPCMP_BASE, DEMO_LPCMP_USER_CHANNEL, DEMO_LPCMP_DAC_CHANNEL); /* 5) 立ち上がり/立ち下がり両エッジ割り込みを有効化 */ LPCMP_EnableInterrupts(DEMO_LPCMP_BASE, kLPCMP_OutputRisingInterruptEnable | kLPCMP_OutputFallingInterruptEnable); EnableIRQ(DEMO_LPCMP_IRQ_ID); while (1) { } /* あとは割り込み駆動 */   8.3 中断处理程序 void DEMO_LPCMP_IRQ_HANDLER_FUNC(void) { LPCMP_ClearStatusFlags(DEMO_LPCMP_BASE, kLPCMP_OutputRisingEventFlag | kLPCMP_OutputFallingEventFlag); if (kLPCMP_OutputAssertEventFlag == (kLPCMP_OutputAssertEventFlag & LPCMP_GetStatusFlags(DEMO_LPCMP_BASE))) { LED_ON(); /* V+ > V- (COUT=1) : LED 点灯 */ } else { LED_OFF(); /* V+ < V- (COUT=0) : LED 消灯 */ } SDK_ISR_EXIT_BARRIER; } 在上升沿和下降沿中断中,两个标志位都会被清除,然后根据 kLPCMP_OutputAssertEventFlag (= 当前 COUT)来控制 LED 的开/关状态。   9. 如何操作 frdmmcxa153_lpcmp_interrupt 在 IDE 中打开并构建。 将跳线 J3-1 (P2_7 / VREFI) 连接到 JP8-2 (VDD)以设置 VREFI = VDD。 向目标写入数据并打开终端(115200 bps)。 用跳线将 J2-9 (P2_2 / CMP0_IN0) 连接到 VDD → LED_RED 亮起。 将同一引脚重新连接到 GND → 红色 LED 熄灭   10. 常见的绊脚石 症状 原因 处理 LPCMP 输出未切换。 忘记在 SPC0 ACTIVE_CFG1 中启用 CMP0/DAC 的模拟电源。 SPC0->ACTIVE_CFG1 |= (1<<16) 无中断 LPCMP_EnableInterrupts 或 EnableIRQ(CMP0_IRQn) 泄漏 检查这两个电话 DAC 输出无法启动。 VRSEL 和 VREFI 输入引脚不匹配,VREFI 未连接 kLPCMP_VrefSourceVin2 使用时,将参考电压施加到 P2_7。 门槛附近传来一阵嘈杂声 滞后为 0,滤波器已禁用 hysteresisMode 设置为 1-3 级,或启用筛选功能。 写入GPIO寄存器时发生故障 端口时钟未提供/复位未释放 CLOCK_EnableClock() 并确认对 RESET_ReleasePeripheralReset() 调用   11. 总结 MCX A153 中的 LPCMP 具有以下特点: 它具有 8 个 ANMUX 输入和一个内置的 8 位 DAC,只需极少的外部电路即可进行阈值比较。 DAC 输出为 DACO = Vin/256 × (DAC_DATA + 1) (DAC_DATA = 0 到 255),有 256 个步长,范围从 Vin × 1/256 到 Vin。 低功耗模式、迟滞和滤波功能可以通过一行 SDK API 代码进行配置。 使用 (1)功能性时钟附件+分隔线 (2)SPC模拟电源使能 (3)禁用模拟引脚的输入缓冲器 这三点至关重要。 本示例采用最小配置,但可以扩展以实现以下功能:使用数模转换器 (DAC) 动态更改阈值、使用窗口模式,或使用 DMA/外部触发器代替中断。我们希望本文能为开发使用 LPCMP 的应用程序提供起点。 ========================= 即使您在本文的“评论”栏留言,我们目前也无法回复。 给您带来不便,我们深感抱歉。请在询问时参阅“NXP技术问题-联系方式(日本博客)”。 (如果您已经是NXP的代理商或与其有合作关系,可以直接向负责人咨询。) 本文以 MCUXpresso SDK 中的 示例和 frdmmcxa153_lpcmp_interrupt FRDM-MCXA153 板为例,解释了 NXP MCX A 系列( MCX A153 ) 中包含的 LPCMP( 低 功耗 计算器 )。 LPCMP 是一种外设功能,用于比较两个模拟输入信号的相对幅度,并将结果以数字输出的形式呈现。它广泛应用于各种场景,包括阈值检测、过零检测、电源监控和触摸输入。MCX A153 的 LPCMP 内置 8 位 DAC 和 8 通道模拟多路复用器,无需额外的外部元件即可实现阈值比较。 此示例将外部电压(VDD 或 GND)分配给 CMP0 的正输入端(P2_2 / CMP0_IN0),将内部 DAC 输出(≒ VREFI/2 = VDD/2)分配给负输入端,并使用比较结果的上升沿/下降沿中断来打开/关闭 LED_RED。 (阅读时间:20分钟) MCUXpresso SDK MCX 日本博客
View full article
S32プラットフォーム上のS32 Design Studioバージョン3.4のライセンスが期限切れになりました。 私のS32 Design Studio(S32プラットフォーム用)v.3.4の有効期限が切れました。 アクティベーションコードの有効期限を延長していただけますか? S32デザインスタジオ バージョンv.3.4 注文番号: S32DS-3-4_188376977 発注番号 ライセンス総数: 101 アクティベーションコード:7EEF-99B6-BDC8-8692 Re: S32平台S32 Design Studio 3.4版本的许可证已过期。 こんにちは、 お客様のS32DSライセンスが延長されました。以前のコードを使用して、S32DSを再度有効化してください。 回复: S32平台S32 Design Studio 3.4版本的许可证已过期。 よろしくお願い申し上げます。
View full article
EB tresos activation code failed Hello,  i'm trying to use EBtresos for AUTOSAR, but i failed to activated. activation Code : C6FC-BE23-0D7C-6AFD (valid until 12/31/2026) ERROR: flxActAppActivationSend (50040,41147,10248) The quantity specified exceeds maximum quantity allowed (0). Connection to FlexNet Operations Server failed. so i need the the other activate code to use the EBtresos. thank you. Re: EB tresos activation code failed Hi @yaweijiao  Sorry for the inconvenience we bring you! I have reported this issue to the relevant team; please wait for them to update the activation code on the webpage. By the way, NXP provides free evaluation license for EB Tresos. Production license needs to be ordered from Elektrobit. Best Regards, Robin Re: EB tresos activation code failed Hi @yaweijiao  The activation code on the EB tresos Studio download page has been updated. Best Regards, Robin Re: EB tresos activation code failed It's been resolved, thank you.
View full article
GUI Guider 2.0.1 imageConfig 同时设 RGB565A8 和 RLE,保存后重开工程即卡死 GUI Guider 2.0.1 imageConfig 同时设 RGB565A8 和 RLE,生成代码即卡住,然后退出重开工程即卡死,一直Loading无法进入 Re: GUI Guider 2.0.1 imageConfig 同时设 RGB565A8 和 RLE,保存后重开工程即卡死 Hi @Mike22 , 感谢您关注恩智浦,感谢您反馈此问题。 我们已经知悉 GUI Guider 2.0.1 中的这个问题。当启用 RLE 压缩,并且图片的宽度和高度同时为奇数时,可能会导致代码生成过程卡住,并且重新打开工程后一直停留在 Loading 状态。 作为临时解决方案,如果工程已经无法正常打开,请手动编辑本地的 .guiguider 工程文件,将 ImageConfig 中的 compress 配置从: "compress": "RLE" 修改为: "compress": "" 修改后,工程应该可以正常打开。 此外,在使用 RLE 压缩时,请确保图片的宽度和高度不要同时为奇数,即可避免触发该问题。 此问题将在下一个版本中修复。 对此给您带来的不便,我们深表歉意,也感谢您的理解与配合。 Best Regards May Liu
View full article
Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? I have a question that is same as the title. I have an object detection tasks, and I want to deploy on i.MXRT700. Before I have seen the example with tflm_cifar or tflm_label_image. It is good example to follow and there is a guideline to switch the classification model with NPU or CPU. An It also supports static image and from the camera. The model was the tflite model. Now with object detection task, do you have an example for object detection task? I am interesting about it, and it is good if there is an example for object detection that support: - NPU/CPU runntime - Static image / webcam - tflite or glow These features are same as in the tflm_cifar or tflm_label. I am looking forward for your support. Thank you. Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? Hi @nnxxpp , Thank you so much for your interest in our products and for using our community. For your object detection application on the i.MX RT700, I would recommend referring to the following documents for more information about Vision AI/ML applications and the object detection example:  1: Vision AI/ML with i.MX RT700 2:  AN14718: USB Camera Object Detection Pipeline on i.MX RT700 I hope these resources will be helpful for your development. Best Regards May Liu Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? @mayliu1  Thank you for your support. For your object detection application on the i.MX RT700, I would recommend referring to the following documents for more information about Vision AI/ML applications and the object detection example:  1: Vision AI/ML with i.MX RT700 2:  AN14718:USB Camera Object Detection Pipeline on i.MX RT700 I have read these 2 items for i.MX RT700. It is for USB camera and specific LCD. I saw that, it mentions about source code for this example, but I did not see where I could download this source code. I also checked in MCUXpresso IDE 25.6, but in the eiq examples, there is not this one. There is not the example in the Application Hub https://mcuxpresso.nxp.com/appcodehub?category=vision Could you please give me a link to download source code for this example? Currently I am using MCUXpresso IDE. Moreover, I have question, in this example: - It uses USB camera, it means that, I can use any USB camera. There is not limitation. Is that right? - About LCD, I do not have the LCD that is mentioned on the guide. Could I modify the source code to run without LCD and print results on the my PC via Serial port (same as tflm_cifar classification example)? - In this example, the model is FastDet, it is converted to tflite model. Does NXP have an example with ONNX/GLow model? - FastDet model here is trained with Pytorch in the original version https://github.com/dog-qiuqiu/FastestDet . But NXP released tflite FastestDet. I think that NXP has procedure and example to get tflite FastestDet from the original repo. Does NXP share it? Because with custom dataset, we need to finetune model and do many things to get tflite FastestDet. If not, it is difficult to reproduce results and to use new models. Thank you. Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? @mayliu1  Thank you for sharing the link Let's me confirm some points: A1: Not every USB camera is guaranteed to work without modification.  It means that we need to check for each USB camera. Is that right? A2:Yes. Section 7.3 describes a dual-core application and explicitly states: This application does not use the display. Yes. Thank you. The example with single core still need LCD. Is that right? A3:AN14718 uses an INT8-quantized TFLite FastestDet model optimized for the RT700 NPU, not a directly executed ONNX/Glow model. An ONNX model would require conversion and compatibility evaluation.  A4:We understand your concern about reproducing the example with a custom dataset. We need to investigate this further internally. It means that, currently NXP does not example for object detection with ONNX/Glow model and NXP also does not provide documentation how to get FastestDet tflite from float32 model. Is that right? I am concerning about this problem, because the original repo use Pytorch (not Tensorflow) and NXP provides header file of tflite model (not .tflite model). Thank you for sharing this information. It is very good if NXP investigate internernally and provide details to user easy follow and reproduce results. I have other questions: - Could I run object detection with CPU (not using NPU)? Before I saw that with tflm_cifar, there is the guideline that I could switch between CPU and NPU. - Because currently, I want to check with single core and this example needs specific LCD, but I have not this one. I intend to use tflm_cifar example (for classification), modify it based on object detection model of the example for single core. The reason is that I only need to load static images, run inference and see prediction results on my PC (via Serial Port). Is this possible? and do you have any recommendations for me? - About .zip file that you attach in the above link, I saw that there is "common" folder. It means that we need to copy all files + subfolders in this folder into 3 others folder. Is that right? Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? Hi @nnxxpp , Thanks for your updated information and patience.  The source code is provided separately as the application-note software package for AN14718: https://www.nxp.com/docs/en/application-note-software/AN14718SW.zip Regarding your additional questions: A1: Not every USB camera is guaranteed to work without modification.  A2:Yes. Section 7.3 describes a dual-core application and explicitly states: This application does not use the display. A3:AN14718 uses an INT8-quantized TFLite FastestDet model optimized for the RT700 NPU, not a directly executed ONNX/Glow model. An ONNX model would require conversion and compatibility evaluation.  A4:We understand your concern about reproducing the example with a custom dataset. We need to investigate this further internally. Wish you a good day. Best Regards May Liu
View full article
NXPは、CPU/NPU上で動作するiMXRT700向けの物体検出のサンプルを提供していますか? タイトルと同じ質問があります。 私は物体検出タスクを持っており、それをi.MXRT700にデプロイしたいと考えています。以前にtflm_cifarまたはtflm_label_imageの例を見たことがあります。これは参考になる良い例であり、分類モデルを NPUまたはCPUに切り替えるためのガイドラインもあります。また、 静止画像やカメラからの映像もサポートしています。そのモデルは tfliteモデルでした。 さて、物体検出タスクについてですが、物体検出タスクの例はありますか? 私はこの点に興味がありますし、以下 のようなオブジェクト検出をサポートする例があれば良いと思います。 - NPU/CPU ランタイム - 静止画像/ウェブカメラ - tflite または glow これらの機能は、tflm_cifar または tflm_label と同じです。 皆さまのサポートを心よりお待ちしています。ありがとう。 Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? こんにちは、 @nnxxpp さん。 私たちの製品にご関心を寄せ、コミュニティをご利用いただき、本当にありがとうございます。 i.MX RT700のオブジェクト検出アプリケーションについては、ビジョン AI/MLアプリケーションやオブジェクト検出の例について詳しく知りたいのは、以下のドキュメントを参照することをおすすめします。 1:RT700 i.MX ビジョン AI/ML 2:AN14718: i.MX RT700におけるUSBカメラ物体検出パイプライン これらの資料があなたの成長に役立つことを願っています。 よろしくお願いいたします。 メイ・リウ Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? @mayliu1 再開まで今しばらくお待ちください。 i.MX RT700のオブジェクト検出アプリケーションについては、ビジョン AI/MLアプリケーションやオブジェクト検出の例について詳しく知りたいのは、以下のドキュメントを参照することをおすすめします。 1:RT700 i.MX ビジョン AI/ML 2:AN14718: i.MX RT700におけるUSBカメラ物体検出パイプライン i.MX RT700に関する以下の2つの記事を読みました。USBカメラと特定の液晶ディスプレイに対応しています。この例のソースコードについて言及されているのは見ましたが、どこでソースコードをダウンロードできるかは見当たりませんでした。 MCUXpresso IDE 25.6でも確認しましたが、eiqの例にはこの例はありませんでした。アプリケーションハブにはそのような例はありません https://mcuxpresso.nxp.com/appcodehub?category=vision この例のソースコードをダウンロードするためのリンクを教えていただけますか?現在はMCUXpresso IDEを使っています。 さらに、この例に関して疑問があります。 - USBカメラを使っているから、どんなUSBカメラでも使えるってこと。制限はありません。それで合っていますか? - LCDについてですが、ガイドに記載されているLCDは持っていません。ソースコードをLCDなしで動作させ、シリアルポート経由でPC上で結果を印刷することは可能でしょうか(分類の例と同じように)tflm_cifar? - この例では、モデルはFastDetで、tfliteモデルに変換されます。NXPはONNX/GLowモデルの例はありますか? - FastDetモデルは、元のバージョン https://github.com/dog-qiuqiu/FastestDet でPytorchで訓練されています。しかし、NXPはtflite FastestDetをリリースしました。NXPには、オリジナルのリポジトリからtflite FastestDetを取得するための手順と例があると思います。NXPはそれを共有していますか?カスタムデータセットでは、tflite FastestDetを得るために多くのことを細かく調整し、多くのことをする必要があるからです。そうでなければ、結果を再現したり新しいモデルを使用したりするのは困難です。 よろしくお願いします。 Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? こんにちは、 @nnxxpp さん。 最新情報のご提供とご辛抱に感謝いたします。 ソースコードは、AN14718のアプリケーションノートソフトウェアパッケージとして別途提供されています: https://www.nxp.com/docs/en/application-note-software/AN14718SW.zip 追加のご質問について: A1:すべてのUSBカメラが改造なしで動作するとは限りません。 A2:はい。7.3節はデュアルコアアプリケーションについて説明し、明示的に次のように述べています:このアプリケーションはディスプレイを使用しません。 A3:AN14718は、RT700 NPU向けに最適化されたINT8量子化されたTFLite FastestDetモデルを使用しており、直接実行されるONNX/Glowモデルではありません。ONNXモデルは変換と互換性評価を必要とします。 A4:カスタムデータセットを使用して例を再現することに関するお客様のご懸念は理解しております。この件については、社内でさらに調査する必要があります。 良い一日をお過ごしください。 よろしくお願いいたします。 メイ・リウ Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? @mayliu1 リンクを共有していただきありがとうございます。 いくつか確認させてください。 A1:すべてのUSBカメラが改造なしで動作するとは限りません。 つまり、USBカメラを一つずつ確認する必要があるということです。それで合っていますか? A2:はい。7.3節はデュアルコアアプリケーションについて説明し、明示的に次のように述べています:このアプリケーションはディスプレイを使用しません。 はい。ありがとうございます。シングルコアの例でもLCDは必要です。それで合っていますか? A3:AN14718は、RT700 NPU向けに最適化されたINT8量子化されたTFLite FastestDetモデルを使用しており、直接実行されるONNX/Glowモデルではありません。ONNXモデルは変換と互換性評価を必要とします。 A4:カスタムデータセットを使用して例を再現することに関するお客様のご懸念は理解しております。この件については、社内でさらに調査する必要があります。 つまり、現在NXPはONNX/Glowモデルによるオブジェクト検出の例を作っておらず、またfloat32モデルからFastestDet tfliteを取得する方法のドキュメントも提供していません。それで合っていますか? この問題について懸念しているのは、元のリポジトリはPytorch(Tensorflowではなく)を使っており、NXPはtfliteモデルのヘッダーファイル(.tfliteではありません)を提供しているからですモデル)。この情報を共有していただきありがとうございます。NXPが内部調査を行い、ユーザーが簡単に追跡・再現できる詳細を提供しれば非常に良いです。 他にも質問があります。 - NPUを使わずにCPUでオブジェクト検出を実行できますか?以前はtflm_cifarでCPUとNPUを切り替えられるというガイドラインがありました。 - 現状はシングルコアで確認したいので、この例には専用のLCDが必要ですが、これは持っていません。tflm_cifar例(分類用)を使い、シングルコアのオブジェクト検出モデルに基づいて修正するつもりです。理由は、静止画像を読み込み、推論を実行し、予測結果を(シリアルポート経由で)PC上で確認するだけでよいからです。これは可能でしょうか?何かおすすめはありますか? - .zipについて上記リンクに添付されているファイルの中に「common」フォルダがあるのを確認しました。つまり、このフォルダ内のすべてのファイルとサブフォルダを、他の3つのフォルダにコピーする必要があるということです。それで合っていますか?
View full article
NXP是否有基于CPU/NPU的iMXRT700目标检测示例? 我的问题与标题相同。 我有一个目标检测任务,我想将其部署在 i.MXRT700 上。之前我从未见过使用 tflm_cifar 或 tflm_label_image 的例子。这是一个很好的例子,可以遵循,并且有指导方针来切换使用NPU 或 CPU 的分类模型。它还支持静态图像和来自摄像头的图像。该模型是tflite 模型。 现在我们来谈谈目标检测任务,您能举个目标检测任务的例子吗? 我对此很感兴趣,如果能有一个支持以下功能的目标检测示例就更好了: - NPU/CPU运行时 - 静态图像/网络摄像头 - tflite 或 glow 这些特征与 tflm_cifar 或 tflm_label 中的特征相同。 我期待您的支持。谢谢。 Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? 嗨@nnxxpp , 非常感谢您对我们产品的关注以及对我们社区的使用。 对于您在 i.MX RT700 上的目标检测应用,我建议您参考以下文档,以获取有关视觉 AI/ML 应用和目标检测示例的更多信息: 1:基于 i.MX RT700 的视觉 AI/ML 2:AN14718: i.MX RT700 上的 USB 摄像头目标检测流程 希望这些资源对你的发展有所帮助。 顺祝商祺! 刘梅 Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? @mayliu1 感谢您的支持。 对于您在 i.MX RT700 上的目标检测应用,我建议您参考以下文档,以获取有关视觉 AI/ML 应用和目标检测示例的更多信息: 1:基于 i.MX RT700 的视觉 AI/ML 2:AN14718: i.MX RT700 上的 USB 摄像头目标检测流程 我已阅读了关于 i.MX RT700 的这两篇文章。它适用于USB摄像头和特定的液晶显示屏。我看到它提到了这个示例的源代码,但我没找到可以下载源代码的地方。 我也查看了 MCUXpresso IDE 25.6,但在 eiq 示例中没有这个。应用中心(https://mcuxpresso.nxp.com/appcodehub?category=vision )中没有该示例。 请问能否提供该示例的源代码下载链接?目前我使用的是MCUXpresso IDE。 此外,我还有一个问题,在这个例子中: 它使用USB摄像头,这意味着我可以使用任何USB摄像头。没有限制。是这样吗? - 关于液晶显示屏,我没有指南中提到的那种液晶显示屏。我能否修改源代码,使其无需 LCD 显示屏即可运行,并通过串口将结果打印到我的 PC 上(与 tflm_cifar 分类示例相同)? - 在这个例子中,模型是 FastDet,它被转换为 tflite 模型。NXP是否有ONNX/GLow模型的示例? - 此处的 FastDet 模型是在原始版本https://github.com/dog-qiuqiu/FastestDet中使用 Pytorch 训练的。但 NXP 版本了tflite FastestDet。我认为 NXP 有从原始仓库中获取 tflite FastestDet 的步骤和示例。恩智浦也持有这种观点吗?因为使用自定义数据集,我们需要微调模型并做很多事情才能获得 tflite FastestDet。否则,就很难重现结果和使用新模型。 谢谢! Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? @mayliu1 谢谢你分享链接 让我确认几点: A1:并非所有USB摄像头都能保证无需改装即可使用。 这意味着我们需要检查每个USB摄像头。是这样吗? A2:是的。第 7.3 节描述了一个双核应用程序,并明确指出:此应用程序不使用显示器。 是的,谢谢。即使是单核处理器,也仍然需要液晶显示屏。是这样吗? A3:AN14718 使用的是针对 RT700 NPU 优化的 INT8 量化 TFLite FastestDet 模型,而不是直接执行的 ONNX/Glow 模型。ONNX模型需要进行转换和兼容性评估。 A4:我们理解您对使用自定义数据集重现示例的担忧。我们需要对此事进行内部进一步调查。 这意味着,目前 NXP 没有使用 ONNX/Glow 模型进行目标检测的示例,也没有提供如何从 float32 模型获取 FastestDet tflite 的文档。是这样吗? 我担心这个问题,因为原始仓库使用的是 PyTorch(而不是 TensorFlow),而 NXP 提供的是 tflite 模型的头文件(而不是 .tflite 文件)。模型)。感谢您分享这些信息。如果恩智浦进行内部调查并提供详细信息,以便用户轻松理解和重现结果,那就非常好了。 我还有个问题: - 我能否使用 CPU(不使用 NPU)运行目标检测?在我看到 tflm_cifar 之前,我了解到可以在 CPU 和 NPU 之间切换。 - 因为目前我想用单核处理器进行测试,而这个例子需要特定的液晶显示屏,但我没有这种显示屏。我打算使用 tflm_cifar 示例(用于分类),并根据该示例的单核目标检测模型对其进行修改。原因是,我只需要在我的电脑上(通过串口)加载静态图像、运行推理并查看预测结果。这有可能吗?您有什么建议吗? 关于 .zip 文件我看到您在上面的链接中附加的文件中有一个“common”文件夹。这意味着我们需要将此文件夹中的所有文件和子文件夹复制到其他 3 个文件夹中。是这样吗? Re: Does NXP have an example of object detection for iMXRT700 that run on CPU/NPU? 嗨@nnxxpp , 感谢您提供最新信息并耐心等待。 源代码作为应用笔记软件包单独提供,编号为 AN14718: https://www.nxp.com/docs/en/application-note-software/AN14718SW.zip 关于您提出的其他问题: A1:并非所有USB摄像头都能保证无需改装即可使用。 A2:是的。第 7.3 节描述了一个双核应用程序,并明确指出:此应用程序不使用显示器。 A3:AN14718 使用的是针对 RT700 NPU 优化的 INT8 量化 TFLite FastestDet 模型,而不是直接执行的 ONNX/Glow 模型。ONNX模型需要进行转换和兼容性评估。 A4:我们理解您对使用自定义数据集重现示例的担忧。我们需要对此事进行内部进一步调查。 祝你今天过得愉快。 顺祝商祺! 刘梅
View full article