Multi Source Translation Content

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multi Source Translation Content

讨论

排序依据:
FS2643D 可在 24/7 全天候、10 年以上的稳定 24.0 V 电压下运行? 继“适用于 24V 供电的 S32K3 的 SBC”主题之后:我们设计了一款 S32K376 + FS26 控制器,用于固定式电池储能,可 24/7 全天候运行 10 年以上(约 87,600 小时)。FS26 由一个稳压 DIN 导轨 PSU 供电,电压设置为24.0 V (绝不会超过),机柜温度 ≤ 40 °C(Tj ≈ 最高 80 °C)。 MFS2643HMDA0AD (FS2643D)是否符合此任务的 FS26 任务我的,或者即使在 24.0 V 稳压下,FS85/FS86 建议是否适用? 如果不是: FS2633D 搭配 24V → 12V 预稳压器是否适用于相同的电路配置?或者您会推荐MC33FS8510DR用于 24V 的 S32K3 电路? 谢谢! Re: FS2643D at a regulated 24.0 V for 24/7, 10+ year operation? 嗨,乔纳斯 感谢您对恩智浦产品的关注。 1:FS26 并非直接设计用于 24V 系统,您可以从 FS26 功能安全手册中的下图看到,它最初是用于 12V 汽车应用的。 您可以参考以下 FS26 的任务我的: 是的,FS85/FS86 推荐值适用于 24.0 V 稳压电压,FS27 也值得推荐。 2:对于相同的我的,FS2633D 是否适用于 24V → 12V 预稳压器?或者您是否推荐MC33FS8510DR用于 24V 的 S32K3 电路? [gw]是的,前置稳压器可以与 FS26 一起用于 24V 系统,与问题 1 的答案类似,FS85/FS27 也可以推荐用于 24V 应用。 Re: FS2643D at a regulated 24.0 V for 24/7, 10+ year operation? 非常感谢您的回复。 我添加了一个--> 24VDC 转 12VDC 的变流器,方法与您在 SCH-91654.pdf 中实现的方式类似。 我大概还有一到两个月的时间来完成原理图和布局/布线方面的工作,但据我了解,我必须聘请第三方来验证并协助固件开发。为了尽可能降低出现更大错误的风险(这些错误原本可以更早地避免),我应该如何并行开展这部分工作?或许可以在我的工作过程中安排几天,每天8小时的电气工程检查?我目前持绿卡在纽约生活和工作,但我的主要市场将是瑞典和挪威。谢谢。 Re: FS2643D at a regulated 24.0 V for 24/7, 10+ year operation? 我认为向软件工程师介绍SPI 通信机制以及FCCU、FS0B、FS1B 和 RSTB的用法会很有帮助。 基本上,关键在于解释功能安全信号是如何与MCU连接和交互的,以及相应的功能安全逻辑应该如何在MCU端实现。
查看全文
LPC4088 pendrive support Hello. I am implementing USB Host functionality on the LPC4088 for pendrive support. The code works correctly on the LPC QuickStart board, but fails to enumerate devices on our custom hardware. Specifically, `USB_Host_SendControlRequest()` returns `HOST_SENDCONTROL_PipeError` instead of `HOST_SENDCONTROL_Successful` during enumeration. I suspect the issue lies within `HcdControlTransfer()`, possibly related to pipe configuration, but I have been unable to identify the root cause. Any insights would be greatly appreciated. LPC40xx Re: LPC4088 pendrive support Hi @Nipperkin  Since the same firmware works on the LPC4088 QuickStart board, the issue is likely hardware-related rather than in HcdControlTransfer() itself. I would recommend checking: USB VBUS 5V power and power-switch control D+/D− routing and pin configuration USB 48 MHz clock configuration Placement/alignment of USB Host DMA structures (HCCA/ED/TD) in USB-accessible RAM BR Harry
查看全文
机械图纸需求:RK055HDMIPI4MA0 显示屏 PCB 外形图、安装孔和 FPC 连接器 我正在设计一款定制的 i.MX RT1176 板,以 MIMXRT1170-EVKB Rev C3 为参考设计。它将使用 RK055HDMIPI4MA0 5.5 英寸 MIPI DSI 显示套件,通过套件 PCB 上的四个安装孔直接安装到我的板上。因此,我的板外形和安装孔需要与该PCB相匹配。 我找不到这块PCB板的机械图纸。我查看了 RK055HDMIPI4MA0 产品页面、MIMXRT1170-EVKB 用户指南和设计文件,以及 Rocktech RK055MHD091A0-CTG 面板数据手册,但该手册仅涵盖玻璃模块。 请提供 RK055HDMIPI4MA0 PCB 的机械图纸,格式为 DXF 或 PDF,或者提供 STEP 模型,图纸需包含以下内容: 1.PCB外形尺寸和厚度。 2. 安装孔相对于 PCB 边缘的位置、成品孔径、孔是否镀层以及推荐的螺钉或支架。 3. PCB 背面的 FPC 连接器:零件编号、位置、引脚 1 位置、触点侧以及电缆开口朝向。 4. 提供的 FPC 电缆:零件号、长度、触点类型、同侧或异侧。 5.PCB背面最高的元器件,以及任何禁入区域。 如果旧款 RK055HDMIPI4M PCB 在机械结构上有所不同,也请提供其图纸。 作为参考,以下是我目前为止的计算结果: - 在 MIMXRT1170-EVKB 布局中,LCD 安装孔 SS1 至 SS4 形成 147.253 x 72.905 毫米的图案,孔径为 3.53 毫米,并配有 16.1 毫米长的 M3 支架。 - 我测量了显示屏PCB的尺寸,大约为155 x 83.5毫米。 - 在 EVKB 上,显示器的连接器位于 J48 一侧约 8 毫米处,50 毫米长的电缆是能够应对这种偏移的最短电缆。我想把板上的两个连接器对齐。 感谢您的帮助。 NIC Re: Mechanical drawing request: RK055HDMIPI4MA0 display PCB outline, mounting holes and FPC connecto 嗨@nicnewdigate , 感谢您对恩智浦产品的关注。遗憾的是,该PCB的机械图纸并未公开,因此我们无法分享。由此给您带来的不便,我深表歉意,并感谢您的理解。
查看全文
KITPF09FRDMPGM – Wrong Board Included? I ordered a KITPF09FRDMPGM. The delivery included the KITPF09FRDMPGM and a separate FRDM-KL25Z board. However, I don't think the two boards are compatible, or at least I don't see how they are supposed to be connected. For example, the J21 header on the FRDM-KL25Z is mechanically in the way. In addition, the pin headers required to plug the KITPF09FRDMPGM into the FRDM-KL25Z are missing. Could somone please confirm whether the correct board was included with the kit? Shouldn't it look similar to the board supplied with the KITPF7100FRDMPGM? PMIC for i.MX Re: KITPF09FRDMPGM – Wrong Board Included? Hello, The board included with the KITPF09FRDMPGM is the correct board. The KITPF09FRDMPGM and the FRDM-KL25Z are supplied as separate boards and are compatible when assembled as intended. The required pin headers are not included pre-installed and must be purchased separately and soldered onto the boards. Once the appropriate headers are installed, the boards can be connected correctly. I have tested the KITPF09FRDMPGM board without any problems, so the board itself is correct and functional. Hope this helps! Re: KITPF09FRDMPGM – Wrong Board Included? I’m still surprised that it’s supposed to fit. The outline is different, and connector J21 interferes with the board. Should I desolder it? Shouldn't the controller board look more like this?    Re: KITPF09FRDMPGM – Wrong Board Included? Okay, I’ve thought about it again. J21 is probably just a jumper and won't interfere with the top board if the pin headers are installed. I'll give it a try. Re: KITPF09FRDMPGM – Wrong Board Included? I have now soldered on the headers. However, nothing happens when I try to connect the kit using the NXP_GUI. I also found an old kit for the PF8100 with an older FRDM-KL25Z; that one is detected. What could be wrong? Re: KITPF09FRDMPGM – Wrong Board Included? Perhaps I bricked the firmware. Can you tell me if this the correct firmware: OpenSDA/PEMicro/2016-02-08/MSD-DEBUG-FRDM-KL25Z_Pemicro_v118.SDA at master · savoca/OpenSDA · GitHub ...or can you give me the link to the correct firmware? Re: KITPF09FRDMPGM – Wrong Board Included? Hello @ErikaC, as I am a colleague from d_j: Can you please check his question and provide us with information, which firmware is needed for this board? We both can not establish the connection as the "start" button is inactive. We both use Win11, not Win10 as suggested by the documentation. Thank you in advance. Best regards, Florian Re: KITPF09FRDMPGM – Wrong Board Included? @ErikaC can you continue with the support? Re: KITPF09FRDMPGM – Wrong Board Included? Hello @ErikaC, can you please give us any hint or ask other colleagues? Thank you in advance. Best regards, Florian Re: KITPF09FRDMPGM – Wrong Board Included? Hello @d_j @florian_arndt  Let me check and see if I can send you a video! Re: KITPF09FRDMPGM – Wrong Board Included? Please solder female headers onto the KL25 side. Re: KITPF09FRDMPGM – Wrong Board Included? Hello @d_j @florian_arndt  I don’t think a video is necessary at this point. First, please note that connector J21 does not interfere with the PF09 board. Second, please find attached the firmware for the PF09 board. I tested it on my side, and it is working correctly. Hope this helps! Best regards, Erika Re: KITPF09FRDMPGM – Wrong Board Included? Hi Erika, thank you for your answer! Here are my steps: 1. I've checked J21 and can confirm, there ist no contact to the upper board 2. I've downloaded your firmware file 2. I've pressed reset button and connected USB to the OpenSDA connector 3. I've copied the firmware file in the explorer drive BOOTLOADER 4. I've connected USB to KL25Z USB connector Unfortunately, the status in the NXP GUI still keeps switching between "NOT CONNECTED" and "DISCONNECTED," and the Start button remains grayed out.
查看全文
S32K142EVB-Q100 evaluation board with S32 Design Studio 3.6.11 I am having trouble using the S32K142EVB-Q100 evaluation board with S32 Design Studio 3.6.11 I used the S32DS Extensions and Updates to install S32K1xx Development Package and S32K1_S32M24X Real-Time Drivers AUTOSAR R21-11 Version 3.0.0 QLP07 My problem is that when I create a new project with S32K142 I cannot use the S32 Configuration Tools it says there is no data. I can't configure the pins or anything. How can I get started with this setup?   Re: S32K142EVB-Q100 evaluation board with S32 Design Studio 3.6.11 Hi, SW32K1_S32M24x_RTD_R21-11_3.0.0_QLP07_D2606 contains only a few Driver Plugins, refer to package Release note. First install S32K1_S32M24X Real-Time Drivers AUTOSAR R21-11 Version 3.0.0 QLP06 (SW32K1_S32M24x_RTD_R21-11_3.0.0_QLP06_D2603_DesignStudio_updatesite.zip), and then install S32K1_S32M24x Real-Time Drivers AUTOSAR R21-11 Version 3.0.0 QLP07 if needed it. Also don't forget to select GCC v10.2 toolchain when creating new Project. If this is not installed in your S32DS add it as well through Extension&Updates.   BR, Petr Re: S32K142EVB-Q100 evaluation board with S32 Design Studio 3.6.11 Thanks, that did the trick!
查看全文
[lf_v2026.04] uboot-imx patches to fix multi-block transfers in fsl_lpspi Hello, in the uboot-imx on i.MX93 with lf_v2025.04, SPI transfers through fsl_lpspi fail as soon as a full FIFO block follows another block, e.g. with an SPI TPM: => tpm2 get_capability 0x6 0x100 $loadaddr 20 lpspi_xfer_single: RX Timeout! Root cause: spi_xfer_single() queues an extra TCR after every block. The command occupies a TX FIFO entry and is loaded only after a delay. If the next block starts before that, one data word is not accepted and the RX loop waits for it until timeout. The attached series fixes this (applies also to lf_v2026.04): 1/3 widen FSR TXCOUNT/RXCOUNT masks (for parts with deeper FIFOs) 2/3 fix multi-block transfers (the actual fix) 3/3 make spi_xfer_single() a static function (no functional change) Tested on an i.MX93 board with an SPI TPM 2.0 (GPIO chip select). Note: the new code eventually deasserts chipselect only if it is muxed as GPIO, but we did not fully verify this. It would be great if this could be included in a future uboot-imx release. Thanks and Best Regards, Tycho Kirchner -- emlix GmbH Headquarters: Berliner Str. 12, 37073 Göttingen, Germany Phone +49 (0)551 30664-0,[email protected] District Court of Göttingen, Registry Number HR B 3160 Managing Directors: Heike Jordan, Dr. Uwe Kracke VAT ID No. DE 205 198 055 Office Berlin: Panoramastr. 1, 10178 Berlin, Germany Office Bonn: Bachstr. 6, 53115 Bonn, Germany Office München: Am Knie 16, 81241 München, Germany http://www.emlix.com emlix - your embedded Linux partner PS: @xiaoningwang appears to be the original author, maybe you would like to take a look. Re: [lf_v2026.04] uboot-imx patches to fix multi-block transfers in fsl_lpspi I have passed the patches to the development team, thanks for your suggestion.
查看全文
What are the differences between J-Flash and MCUXpress IDE when using OTFAD? What is the difference between J-Flash and MCUXpress IDE when applying OTFAD? I am currently testing OTFAD configuration using an RT1010 EVK. I used the MCUXpress SPT program to configure OTFAD and download the firmware. I set the BOOT mode of the configured EVK to FlexSPI Boot mode. I have a question regarding JTAG access afterward. Although I did not configure any JTAG security settings, the J-Flash program connects to the target, but I cannot read or rewrite the flash memory afterwards. However, if I build the original project in MCUXpress IDE and download it using a feature like "Debug & Download?", I can download a version where OTFAD is not configured. I would like to know the difference between these two programs. Why is access not possible in J-Flash? But why is it possible in the IDE? i.MXRT Security Re: What are the differences between J-Flash and MCUXpress IDE when using OTFAD? Dear @TnseoRnr , 1. Why can't Flash be accessed in J-Flash? J-Flash relies on its own Flash algorithm and J-Link configuration. For external Flash on i.MX RT devices, the programming tool typically needs to first load a Flash driver algorithm into the on-chip RAM and execute it. This RAM-resident code is responsible for FlexSPI initialization, erase operations, and programming. If the SEGGER Flash Loader, JLinkScript, FlexSPI LUT, or FCB configuration used by the current J-Flash project does not match the device state after SPT configuration, you may encounter a situation where the debugger can connect to the core, but cannot reliably read, erase, or program the external Flash. 2. Why can Flash still be accessed from MCUXpresso IDE? The MCUXpresso IDE download and debug flow is typically more than a simple JTAG-based write to external Flash. Instead, it performs a complete target initialization and RAM-resident Flash driver procedure: Downloads a Flash driver into the internal RAM of the i.MX RT device. → Initializes the FlexSPI interface. → Buffers the application image in segments and invokes Flash erase/program APIs. Similarly, LinkServer uses a .cfx Flash driver and performs downloading through a reset → run Flash driver → program sequence. As a result, MCUXpresso IDE may be able to reinitialize the Flash and successfully perform erase/program operations, even when a J-Flash project is not properly configured for the current OTFAD or FlexSPI state. Best Regards, Shelly
查看全文
NXP BMS AFE Recommendation for 250 kW BESS and Future Automotive Applications Hello NXP Team, We are currently looking to upgrade our existing BMS solution from ADI to an NXP-based platform and are excited to explore the AFE options available from NXP. We are developing a 250 kW BESS application with the following system architecture: System Configuration: 5S1P Cell Configuration per Module: 52S BMS Architecture: Master–Slave As part of our design finalization, we are evaluating NXP's BMS AFE portfolio and have shortlisted the following devices: BMA7418 BMA7118 BMI7018 We would greatly appreciate the NXP team's technical guidance in evaluating these devices against our application requirements and recommending the most suitable device for our design. Our Key Selection Criteria Our primary considerations for selecting the AFE are: Cost-effectiveness – The solution should be commercially competitive for BESS applications. Software support – Availability of example code, drivers, reference firmware, and development resources would be a significant advantage. Having these resources would help us accelerate evaluation and reduce development time. Automotive reusability – We would ideally like to use the same AFE platform for future automotive BMS applications targeting ASIL-B. Reusing the same hardware and software platform would allow us to build on the BESS development and significantly reduce firmware development effort and time. Scalability – The selected device should provide a practical path for scaling the same BMS architecture across different battery configurations and applications. Our objective is to finalize the AFE and move into detailed hardware and firmware development as soon as possible. Therefore, your recommendation regarding the most suitable device, along with any relevant reference designs, evaluation boards, application notes, example software, or recommended development approach, would be extremely valuable. If you need any additional information regarding our system architecture, cell configuration, voltage range, communication requirements, or BMS functionality to make the recommendation, we would be happy to provide the details. We are very interested in moving forward with an NXP-based BMS platform and look forward to your valuable technical guidance. Thank you in advance for your support. Regards, Santu R #hvbms #battery-cell-controller Re: NXP BMS AFE Recommendation for 250 kW BESS and Future Automotive Applications For No Industerial application Recommend using BMI7018 as the primary AFE; each 52S module requires three BMI7018s, with pack current measurement implemented separately using the MC33777A/BJB current sensing solution. For automatic application: guoweisun_0-1787535685716.png    
查看全文
SmartMX2 适合我的项目吗? 大家好, 我正在评估独立非接触式支付设备(不是手机)的安全元件选项,该设备需要在一个芯片上存储多个令牌化的支付卡小程序,并且能够在每次交易之前选择哪个小程序处于活动状态/对终端公开。 关于 SmartMX2,我有几个具体问题: 1. 单个 SmartMX2 芯片实际能够支持多少个独立的支付小程序/GlobalPlatform 安全域? 2. 该平台是否支持由外部主机命令触发的运行时 AID 选择——也就是说,主机端固件能否在执行 tap 操作之前告诉芯片要公开哪个已配置的小程序,而不是芯片始终呈现一个静态/优先级排序的 AID 列表? 3. SmartMX2 是否仍然是此类银行/支付用例的合适产品线,还是 NXP 有更新的产品系列更适合它? 任何关于公开文档、开发工具包或相关内部团队的线索都将不胜感激。谢谢! Re: Is SmartMX2 the right choice for my project? 你好@Javiergg 请查看您问题的评论: 1.NXP.com 上的 NXP SmartMX2 产品页面是获取公开数据表和概述文档的良好起点。 - 有关更深入的技术规格,请参阅产品参考手册(根据保密协议提供),其中涵盖了 GlobalPlatform SD 限制和 AID 管理。 2. 对于开发套件和与合适的团队直接接触,建议通过 NXP 的官方销售或 FAE(现场应用工程师)渠道联系,因为他们可以将您与银行/支付应用的安全元件专家联系起来。 3. 关于 SmartMX2 是否仍然适合与更新的系列进行比较——NXP 的 SE050 或 SN100 系列也值得考虑,具体取决于您的接口和外形尺寸要求,现场应用工程师 (FAE) 可以帮助您比较针对您具体使用情况的各种选项。
查看全文
从用户空间访问我的内核 rpmsg 缓冲区 您好, 我已经能够实现我的imx8mp MPU和MCU之间的通信。但是,我想从用户空间访问共享内存中的数据。有例子吗? 我还想问一下 imx_rpmsg_pinpong.c设备驱动程序可以扩展以处理 Linux 用户空间 I/O,从而实现内核空间和用户空间之间的通信。 谢谢! i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: Accessing my kernel rpmsg buffer from user space 你好, 我也在关注同样的问题。你提供的示例适用于内核模块。 但我实际上想找一个用户空间应用程序的示例。能否提供一个可以在Linux用户空间运行的C语言程序示例? 谢谢! Re: Accessing my kernel rpmsg buffer from user space 嗨@ababatola , 希望你一切都好!抱歉回复晚了。 我建议您查看 i.MX 8M Plus SDK 中的 rpmsg_lite_str_echo_rtos 多核示例。这是一个简单的应用程序,允许你从 Cortex A 向 Cortex M 发送消息,然后 M4 显示接收到的内容,并将相同的消息回显作为确认。 您可以从https://mcuxpresso.nxp.com/版本和下载 SDK。 如果这个方法对你有效,请告诉我。 此致, 赫克托。
查看全文
我能否将 tflm_label_image_ext_mem 中的内存配置用于示例 tflm_cifar10_cm33_core0? 祝你今天过得愉快。 目前我正在使用 eIQ 示例tflm_cifar10_cm33_core0在 NPU 模式下进行建模。模型数据保存在SRAM中。推理时间不错。以下是内存配置。我修改了这个 eIQ 示例,使其适用于我的 5 类模型。 https://docs.nxp.com/bundle/AN14700/page/topics/eiq_enablement.html 但现在我的模型更大了,我想把 NPU tflite 模型放在外部存储器上。模型数据位于闪存中。以下是来自 eiq 示例tflm_label_image_ext_mem的配置 https://docs.nxp.com/bundle/AN14700/page/topics/imx_rt700_system_details.html 我的目标是,我想保留tflm_cifar10_cm33_core0的源代码(我不想使用tflm_label_image_ext_mem 创建新的源代码),但我想将我的 NPU tflite 模型放在外部存储器上。 我的解决方法是,仅将内存配置从 SRAM 更改为外部存储器,如上图所示。是这样吗?或者我还需要更改其他配置。 Re: Can I use memory config from tflm_label_image_ext_mem for the example tflm_cifar10_cm33_core0? 嗨@nnxxpp , 谢谢你的解释。 请勿将 `--use-sequencer` 与外部存储器模型执行一起使用。 对于 `tflm_label_image_ext_mem` 示例,请保留 `--fetch-constants-to-sram` 并删除 `--use-sequencer`,因为该模型是从外部存储器执行的。 请尝试按如下方式转换模型: ./neutron-变流器 \ --输入 QAT.tflite\ --输出 QAT_NPU.tflite\ --target imxrt700 \ --dump-header-file-output \ --dump-header-file-input \ --fetch-constants-to-sram   希望对你有帮助 顺祝商祺! 5月 Re: Can I use memory config from tflm_label_image_ext_mem for the example tflm_cifar10_cm33_core0? @mayliu1 你好。这是一个新问题(尚未解决)。这个问题与将 NPU tflite 模型部署到外部存储器(而不是 SRAM)有关。 目前,我正在使用 MIMRT700 SDK 中的 eiq 示例tflm_label_image_ext_mem 。我成功运行了这个示例。此示例适用于模型 mobilenetv1,大小=224,类别数=1000。 我尝试用我的模型(相同的分类模型)替换样本的模型,但类别数量不同。 我修改了 labels.h 文件。(用于标签名称) 我用自己的模型替换了示例中的模型,并保留了相同的名称。 我还修改了 model_data.h 文件中的model_data_len 参数。 我可以版本成功,但是运行调试程序时,程序在“静态处理”阶段停止,没有给出结果。 上图中显示一条消息“无法保存模型句柄,完成后请调用 neutronModelUnprepare()”,但一位恩智浦员工表示这不是错误。https ://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-FAQ/ta-p/1099741 我看到,如果 NPU 模型位于外部存储器上,我们使用扩展名为 .tflite 的模型。(如果模型位于 SRAM 上,则不是头文件 .h)。 我使用 ` --fetch-constants-to-sram`标志转换模型,以便将 NPU 模型定位到外部存储器上,如下所示。 ./neutron-变流器 \ --输入QAT.tflite \ --输出QAT_NPU.tflite \ --target imxrt700 \ --dump-header-file-output \ --dump-header-file-input \ --use-sequencer \ --fetch-constants-to-sram   由于我没有看到 NXP 提供的任何设置和配置教程(在哪里以及如何更改源代码),所以我尝试了上述步骤,但没有成功。 你能帮帮我吗?谢谢。 Re: Can I use memory config from tflm_label_image_ext_mem for the example tflm_cifar10_cm33_core0? 嗨@nnxxpp , 非常感谢您对我们产品的关注以及对我们社区的使用。 很抱歉回复晚了。 我注意到您在之前的帖子中提到这个问题已经解决了。很高兴听到一切都恢复正常了。 再次感谢您的理解。 顺祝商祺! 5月 Re: Can I use memory config from tflm_label_image_ext_mem for the example tflm_cifar10_cm33_core0? 非常感谢你的支持。它运行正常。
查看全文
找不到 FRDM MCX A266 的引脚配置工具 找不到现场引脚配置工具。 FRDM 培训 Re: Can't find pin configuration tool for FRDM MCX A266 你好, 如果您是该工具的初学者,以下信息或许对您有所帮助。 MCUXpresso 配置工具的快速入门指南 MCUXpresso 配置工具用户指南(IDE) 如果您需要查找某些信息或工具,与我们联系。 此致敬礼,路易斯 Re: Can't find pin configuration tool for FRDM MCX A266 找到https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-config-tools-pins-clocks-and-peripherals:MCUXpresso-Config-Tools Re: Can't find pin configuration tool for FRDM MCX A266 感谢您的回复。 如果可以的话,请您提供这些工具的逐步配置示例,我将不胜感激。 Re: Can't find pin configuration tool for FRDM MCX A266 你好, 这取决于您想要达成的目标,如果您能确认或描述一下您需要协助完成哪个流程,那就太好了。 此外, MCUXpresso 配置工具用户指南(IDE)第 3 章是引脚配置说明,其中包含步骤和照片,可引导您了解工具功能并匹配您的配置。 此致敬礼,路易斯 Re: Can't find pin configuration tool for FRDM MCX A266 好的,谢谢。我现在想做的是一件很简单的事。 定义 4 个 DAC 通道和 4 个 ADC 通道。 将它们内部路由到 4 个 ADC 通道,以形成闭合回路。 测试这些信号是否到达,然后乘以输入的数量。 再次乘以该数并衡量其性能。 定义通过 USB 串口输出日志信息的功能,用于调试和结果展示。
查看全文
S32DS issue regarding the reference to external files Currently, we are using the demo project. The files in the SDK/platform/drivers/src directory of the project folder are external linked files, which makes it difficult for me to share the project with others as I cannot locate these files. I wonder if there is any way to mount the linked files into the project (excluding the method of copying them one by one). Re: S32DS issue regarding the reference to external files Hello @NXP2 , This is expected behavior for older SDK-based S32DS projects. Some SDK driver files are added as Eclipse linked resources, so they are shown in the project tree, but the physical files remain in the installed SDK package location.   For sharing such a project, the recommended approach is to provide the project together with the exact S32DS/SDK package version required on the other PC. If a fully self-contained project is needed, the SDK files must be copied into the project and the linked resources/build paths updated accordingly.   Please note that newer RTD-based projects generated by S32 Configuration Tools copy the required/generated driver files into the project automatically during the Update Code step. Best regards, Pavel Re: S32DS issue regarding the reference to external files The currently used version is S32SDK_S32K1XX_RTM_4.0.2. As shown in the following figure, the two files come from different folders. Do we need to set anything for this? Re: S32DS issue regarding the reference to external files Hello @NXP2 , What version of SDK for which S32K family do you use? Best regards, Pavel
查看全文
VLM Edge Studio Demo – Qwen‑VL Initialization Failure   Applies to: VLM Edge Studio Demo using Qwen‑VL backend Workaround: Apply the attached  apply_qwenvl_fix.sh  script   In the current VLM Edge Studio Demo, users may encounter a runtime failure when starting the Qwen‑VL Vision Language Model. The issue is caused by incorrect processor initialization, where the code attempts to load tokenizer and image processor assets directly from a hard‑coded Hugging Face model reference instead of the locally deployed tokenizer path. This typically manifests as: Model startup failures Tokenizer / processor load errors Inconsistent behavior when running in offline environments To fix no configuration changes are required, copy and apply the provided patch on the board: root@imx95evk:~# chmod a+x apply_qwenvl_fix.sh root@imx95evk:~# sh apply_qwenvl_fix.sh remarks: please make sure the path in the script match your installation: PROD_FILE="/usr/share/eiq/aaf-connector/venv/lib/python3.13/site-packages/eiq_aaf_connector/llm_engines/QwenVL.py" ARA240 DNPU
查看全文
Difference in ADC noise between BCTU Control Mode and Trigger Mode Hello, I am working on an application using the [S32k322] where I use the eMIOS timer to trigger the BCTU every 100 µs to read analog data. I am observing a strange behavior between the two BCTU modes: Control Mode: When the ADC CTU mode is set to Control Mode, the ADC conversions are completely stable. The data read via FreeMASTER is clean and free of noise or glitches. Trigger Mode: When I switch the ADC CTU mode to Trigger Mode (keeping the 100 µs eMIOS trigger identical), the sampled analog data becomes noisy and exhibits noticeable glitches in FreeMASTER. Are there specific architectural configurations, timing constraints, or register settings (such as trigger delays, FIFO configurations, or clock synchronization) required for Trigger Mode to prevent this noise? Thank you for your help. Output with ADC ctu mode : Trigger Mode output with ADC ctu mode : Control Mode Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi@Stark_ could you please share the test project and i will test it on myside. Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi @Senlent ,    Thanks for the response. My ADC clock is 160MHz, and I've attached my ADC configuration and register values below. Clock ADC Configuration Output with ADC ctu mode : Trigger Mode output with ADC ctu mode : Control Mode Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi@Stark_ Based on the configuration screenshot you provided, there are some configuration issues, specifically the division ratios for the module clock and calibration clock. The ADC clock configuration must strictly follow the table below. please change it and test  again, Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi @Senlent  I have attached test code. is it possible to work on BCTU and normal conversion for the some selected channels (ADC_Instance0 and ADC_Instance1)? Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi @Senlent  " yes, it is possible to work on BCTU and normal conversion." is there any example code for reference? " Also, your program still doesn't modify the ADC module clock and calibration clock divider. Below are my test results; I connected the port externally to GND. You can see there isn't a significant difference. " could you please share the modified test project and i will test it on myside. Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi@Stark_ I don't have a demo like that; the attached file is a modified project. Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi@Stark_ yes, it is possible to work on BCTU and normal conversion. I tested the program you provided and made some modifications. Your external clock is 25MHz, while mine is 16MHz. Also, your program still doesn't modify the ADC module clock and calibration clock divider. Below are my test results; I connected the port externally to VDD(my typing error). You can see there isn't a significant difference. Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi @Senlent  Thank you for attaching the modified project. I have tested it, but it is currently not working for normal ADC conversions in my setup. However, my actual application requires a system clock of 25 MHz. The only change I made to your project was updating this clock frequency from 16 MHz to 25 MHz. After changing the clock to 25 MHz, and setting the Adc CTU mode in control Mode the Normal conversions is not working , while the BCTU conversions continue to function. when the Adc CTU mode is in Trigger mode, Normal conversions  and the BCTU conversions continue to function. Is the project you attached designed to support both BCTU Trigger Mode and Normal conversions simultaneously at 25 MHz? If so, what additional clock dividers, prescalers, or sampling time configurations do I need to adjust to make it work at this higher frequency? Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi@Stark_ I've already show you of my test results, and you should have noticed that the fluctuations in my sampling results are perfectly normal. My suggestion is that you could try increasing the sampling time, as I previously suggested. Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi @Senlent  I configured the ADC to use Trigger mode since conversions need to be driven by both the BCTU and Normal modes. However, when using Trigger mode, I noticed noise on the ADC data measured via the BCTU as mention previously. Re: Difference in ADC noise between BCTU Control Mode and Trigger Mode Hi@Stark_ if your ADC conversions are driven through BCTU , use BCTU Control mode . If you want the ADC to accept normal/injected conversions or other trigger paths, use Trigger mode . BCTU Control mode locks ADC start control to BCTU only; Trigger mode leaves the ADC open to normal/injected and other supported conversion triggers. So your test results are in line with expectations.
查看全文
i.MX8MplusのFinite-State Machine (FSM)について Toradex社のVeridin i.MX8Mplusを弊社で採用しております。 その際に、SoMの電源操作にSOM_PW_ON信号を入力しています。(i.mx8MPlusSoCのONOFF信号に直結)。※添付のオシロスコープの波形を参照してください。 V1-1B_tool0_OFF.pngV1-1B_tool0_OFF.pngV1-1B_tool0_OFF.pngV1-1B_tool0_OFF.pngV1-1B_tool0_OFF.pngV1-1B_tool0_OFF.png   SoM側の回路構成上High(1.8V)となるはずが起動後800msec程度、約0.3~0.4Vの中間電位となってしまします。 SoC側のONOFF信号としてのこの電位(0.3から0.4V)がどう扱われるのかを知りたいです。 データシートやリファレンスマニュアルには記載がありませんでした。 ONOFFの短時間の(<5s)操作ではシャットダウンに移行するケースがあるかと思いますが、操作の判定としてはHigh⇒Lowのエッジ及び、Lowの継続時間が条件となりますでしょうか その詳細な時間についてもmim/maxの時間を教えて頂きたいです。 i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: i.MX8MplusのFinite-State Machine (FSM)について i.MX8M Plusの場合、ONOFFはレベルホールドボタン入力として処理され、0/50/100/500 msの条件と5/10/15秒の強制オフタイミングが設定可能で、観測された0.3~0.41.8V ONOFFネット上のVは、利用可能な入力閾値のドキュメントによって最も一貫して論理低と解釈されます。 Re: i.MX8MplusのFinite-State Machine (FSM)について 回答ありがとう御座います。 > 観測された0.3~0.41.8V ONOFFネット上のVは、利用可能な入力閾値のドキュメントによって最も一貫して論理低と解釈されます。 ちなみに、論理低と解釈される電圧閾値についても教えて頂けますでしょうか? また、論理低と解釈される場合、起動後800msec程度ONOFFは論理低がが続き、論理高に変化します。 その場合、ボタン入力があったと判定されるのでしょうか? 心配しているのはボタン入力により、起動直後にシャットダウン移行の判定となるケースがないかという事です。 Re: i.MX8MplusのFinite-State Machine (FSM)について > ちなみに、論理低と解釈される電圧閾値についても教えて頂けますでしょうか? 申し訳ございません。論理高と解釈される電圧閾値が知りたいです。 Re: i.MX8MplusのFinite-State Machine (FSM)について 回答ありがとう御座います。 > 観測された0.3~0.41.8V ONOFFネット上のVは、利用可能な入力閾値のドキュメントによって最も一貫して論理低と解釈されます。 ちなみに、論理高と解釈される電圧閾値についても教えて頂けますでしょうか? また、論理低と解釈される場合、起動後800msec程度ONOFFは論理低がが続き、論理高に変化します。 その場合、ボタン入力があったと判定されるのでしょうか? 心配しているのはボタン入力により、起動直後にシャットダウン移行の判定となるケースがないかという事です。 NXP TechSupport担当者様 本件如何でしょうか? もう一点追加で質問ですが、 ONOFFはレベルホールドボタン入力として処理され、0/50/100/500 msの条件 の所ですが、デフォルトは0となっていると思います。この場合、ノイズ等で一瞬、論理高もしくは論理低の閾値を超えた場合はレベルホールドされる事となりますでしょうか? このデフォルト設定では、ノイズを受けた場合に一瞬でも現状レベルホールドしている論理と逆の論理判定となるものが入った場合に誤動作する可能性があるのかを心配しております。 Re: i.MX8MplusのFinite-State Machine (FSM)について @Rita_Wang 様 何件か質問追加質問しております。 お手数ですがご回答をお願い致します。 Re: i.MX8MplusのFinite-State Machine (FSM)について @Rita_Wang 様 確認状況いかがでしょうか? 回答をお願いします。 Re: i.MX8MplusのFinite-State Machine (FSM)について メッセージを逃してすみません。確認をお手伝いしますし、来週返信します。 素敵な一日をお過ごしください Re: i.MX8MplusのFinite-State Machine (FSM)について @Rita_Wang 様 お世話になります。 パル技研 毛利です。 そろそろ1週間が経過しますが、回答の状況いかがでしょうか? よろしくお願いいたします。 Re: i.MX8MplusのFinite-State Machine (FSM)について @ShujiMouri i.MX8MPの場合、ONOFFピンはNVCC_SNVS電源グループに属し、リセット状態「PU付き入力」を持つGPIOタイプの入力として記載されています。該当するGPIO DC入力ロー仕様は以下のとおりです。 VIL(max)=0.3× VDD V I L( max) = 0.3 × V D D 表では、低レベル入力電圧を最小値 = -0.3 と指定している。Vmax = 0.3 × VDD 。 したがって、ONOFFが1.8V SNVS I/Oドメインから給電される場合、保証される論理ローしきい値は次のようになります。 0.3×1.8 V=0.54 V 0.3 × 1.8 V = 0.54 V したがって、観測されるONOFF電圧はおよそ0.3〜0.4です。Vは論理ローとして解釈されます。 これがボタン入力とみなされるかどうかについてですが、はい、ONモードに入った後もONOFFピンが十分に低いままであれば、有効なONOFFボタンイベントとして扱うことができます。 800msの低レベルは、設定された通常のボタンデバウンス時間を超えているため 通常のONOFFボタンイベントとして認識できます 。 ハードウェアの緊急強制シャットダウンを直接引き起こしてはならない なぜなら、それには約 5秒 。 起動直後にシステムがシャットダウンするかどうかは、通常のONOFFイベントのソフトウェアやPMICの処理によります。ONモードでは、GNDとの短い接続が、ソフトウェア制御可能な電源停止を開始するための割り込みを生成します。もしブートソフトウェアやOSパワーキーハンドラがその割り込みを電源オフ要求として扱う場合、起動後に意図しないシャットダウンが発生する可能性があります。 Re: i.MX8MplusのFinite-State Machine (FSM)について @Rita_Wang 様 お手数ですが、こちらの質問についても回答をお願いいたします。 Re: i.MX8MplusのFinite-State Machine (FSM)について @Rita_Wang 様 回答ありがとうございます。 本質問でお聞きしたかったのは ONOFF pinが論理低の状態で起動した場合に、ボタン入力として判定されるのかということです。 弊社での確認では 確認された挙動としてはONOFF pinが論理高の状態で起動し10ms~20ms後に論理低に移行した場合に、起動直後シャットダウンに移行するケースがありました。 論理低の状態で起動した場合には、起動直後シャットダウンに移行するケースは確認されていません。 Re: i.MX8MplusのFinite-State Machine (FSM)について @Rita_Wang 様 質問させて頂いた内容の回答についてお願いします。 Re: i.MX8MplusのFinite-State Machine (FSM)について @Rita_Wang 様 ONOFF pinが論理低の状態で起動した場合に、ボタン入力として判定されるのかということです。 こちらの質問については如何でしょうか? Re: i.MX8MplusのFinite-State Machine (FSM)について @Rita_Wang 様 本質問事項の回答についていかがでしょうか? ご確認をお願いします。
查看全文
IMX219(RPi Cam v2)在 FRDM-IMX93 上使用原装 imx93-11x11-frdm-imx219 芯片时,可以探测但无法传输数据流。 环境 - 电路板:FRDM-IMX93 (i.MX93 11x11) - 电路板支持包:Yocto Scarthgap,linux-imx-6.6.36-2.1.0(内核提交 20d9f5efabdd), MACHINE=imx93frdm,DISTRO=fsl-imx-xwayland - 传感器:树莓派摄像头模块 v2(索尼 IMX219),位于 P6 MIPI-CSI 连接器上 - 设备树:stock arch/arm64/boot/dts/freescale/imx93-11x11-frdm-imx219.dtso 概括 该电路板支持包。包含一个适用于此板的IMX219设备树覆盖层,以及传感器。 上电后,I2C 检测到芯片 ID 为 0x10 的芯片 ID 读取为 0x0219。然而, V4L2 捕获管道从未交付过帧。追溯下去,似乎有 下游分阶段摄像机驱动程序中存在三个独立问题。主线 sony,imx219 驱动程序遵循现代 V4L2 子设备模型,而 NXP staging CSI/ISI 协议栈仍然采用较旧的 ov5640 型模型。 问题 1 — 媒体图拆卸(“传感器注册失败”) drivers/staging/media/imx/imx8-media-dev.c: mxc_md_create_links() 调用 media_entity_call(sensor, link_setup, ...).主线 imx219 驱动程序不 实现 .link_setup,因此,该调用返回 -ENOIOCTLCMD (-515) 并被视为 致命的。传感器到CSI的连接从未建立,整个媒体设备被拆除: mx8-img-md:已注册传感器子设备:imx219 2-0010 (1) mx8-img-md:创建链接 [mxc_isi.0]=> [mxc_isi.0.捕获] mx8-img-md:创建链接 [mxc-mipi-csi2.0]=> [mxc_isi.0] mx8-img-md:子设备通知器完成错误退出 mxc-md 42800000.总线:camera:传感器注册失败 mxc-md:探测 42800000.总线:camera失败,错误代码 -515 (ov5640 之所以有效,是因为 ov5640.c提供空操作 .link_setup。) 问题 2 — streamon 中止(“调用子设备 s_power 失败!”) drivers/staging/media/imx/imx8-isi-cap.c: mxc_isi_cap_streamon() 调用 v4l2_subdev_call(src_sd, core, s_power, 1) 并将失败视为致命错误。imx219 使用 运行时 PM,并且未实现已弃用的 .s_power,所以呼叫返回 -ENOIOCTLCMD 和流式传输中止: mxc_isi.0:调用子设备 s_power 失败! (ov5640 之所以有效,是因为 ov5640.c提供 .s_power。) 问题 3 — CSI 硬编码为 YUV422,无法解析 RAW10(链接已建立,但帧数为 0) drivers/staging/media/imx/dwc-mipi-csi2.c 实际上仅支持 YUV422: - dwc_csi2h_formats[] 仅列出 SBGGR Bayer 代码,不列出 SRGGB(IMX219 为 SRGGB10)。 因此 find_csi2h_format() 失败,格式默默地恢复为 YUYV。 - dwc_mipi_csi2_set_fmt() 永远不会存储 csi2h->format,因此 disp_mix_gasket_config() 看到默认的 YUYV 代码。 - dwc_mipi_csi2_param_init() 硬编码 ipi_cfg->data_type = DT_YUV422_8。 CSI随后报告了错误的数据类型,即使所有帧都已捕获,也未捕获到任何帧。 链接已启用,VIDIOC_STREAMON 返回 0: mxc-mipi-csi2.0:格式:0x2008 <- YUYV;预期为 0x300f (SRGGB10) 是什么让它对我们有效(供您验证) 在 (a) 使 imx8-media-dev / imx8-isi-cap 处理缺失的可选操作之后 (-ENOIOCTLCMD 来自 link_setup / s_power)作为非致命错误,以及(b)教学 dwc-mipi-csi2 关于 SRGGB8/10/12(存储协商格式并设置 IPI) 从中获取数据类型),管道启动正常:- mxc-mipi-csi2.0:格式:0x300f imx219 -> mxc-mipi-csi2.0 -> mxc_isi.0-> /dev/video0 约27帧/秒,实时帧捕获。 修复(a)与传感器无关,有助于此堆栈上的任何现代主线传感器; 修复 (b) 为 CSI 添加了 RAW Bayer 支持。 次要说明——模块加载顺序 在全新启动后,由于 imx8_media_dev 运行,图形也无法注册。 在 imx219 模块加载之前,异步通知器会注册视频节点。 然后注销。手册“modprobe -r imx8_media_dev imx219; modprobe imx219; modprobe imx8_media_dev”会重建它。软装卸/装载顺序提示可以实现这一点。 无需任何额外操作即可使用。 问题 1.在这个BSP中,IMX219是否是FRDM-IMX93上官方支持/验证的摄像头? 预期/已验证的路径是 AP1302 ISP 模块吗?已发货的 imx219.dtso 这表明裸露的 IMX219 应该可以正常工作。 2. 以上三种行为是否属于您会接受修复的漏洞,还是 是否存在我们遗漏的推荐/已知良好的配置? 3.如果需要,我很乐意将这些补丁作为干净的提交分享出来。 谢谢! FRDM-i.MX93 #IMX219 RPI-CAM-MIPI Yocto Project Re: IMX219 (RPi Cam v2) probes but does not stream on FRDM-IMX93 with stock imx93-11x11-frdm-imx219 你好, 感谢您的联系,我会与软件团队核实,并再次确认后续的 BSP 版本中是否有针对此问题的修复,如有更新,我会尽快通知您。 此致敬礼/Saludos, 阿尔多。 Re: IMX219 (RPi Cam v2) probes but does not stream on FRDM-IMX93 with stock imx93-11x11-frdm-imx219 你好, 遗憾的是,i.MX93 FRDM 电路板支持包 直到后来才在我们的 电路板支持包 中得到正式支持。在我调查这个问题时,该图像可能是该 电路板支持包 的 beta 版本。 我们支持 FRDM 开发板 6.12.34-2.1.0 版本。对于后续版本,我非常感谢您的发现,这对任何使用板载默认镜像进行验证的人都应该很有用,我会与软件团队跟踪此事。 此致敬礼/Saludos, 阿尔多。
查看全文
由 MCUBOOT 启动的调试应用程序 各位亲爱的朋友们, 我们使用的电路板是 IMXRT1176。 我想调试一下由 MCU-Boot 启动的应用程序。我希望调试器能够烧录一个已签名的应用程序,然后再进行调试。让我来给你展示一下我做了什么: 1. 原始版本生成了一个 app.elf 文件。 2. 我将 app.elf 文件转换为 app.bin 文件,并使用 imgtool 对其进行签名,生成 app_signed.bin 文件。 3. 我使用 arm-none-eabi-objcopy 将 app_signed.bin 封装成 app_signed.bin.elf。 4. 我使用了这份 launch.json 配置 ``` { "type": "mcuxpresso-debug", "name": "调试引导加载程序应用程序", "请求": "启动", "cwd": " ${workspaceFolder} ", "可执行文件": " /app.elf", "isAttach": false, "probeType": "LinkServer", "stopAtSymbol": "main", "skipBuildBeforeDebug": true, "extraSymbolFiles": [ " /app.elf", " /bootloader.elf", ], "postLaunchCommands": [ "加载 /app_signed.bin.elf 0x30100000" ], "gdbInitCommands": [ “设置远程超时时间为 600”, “设置调试文件目录”, “不停地启动”, ], "gdbServerConfigs": { "链接服务器": { “设备”: “MIMXRT1176xxxxx:MIMXRT1170-EVKB” "核心": "cm7", }, "segger": {}, “pemicro”:{} }, }, ``` 它似乎有效,也就是说我可以调试引导加载程序和应用程序,但这感觉像是一种权宜之计。 我最不喜欢的是“flash”这个词写了两遍。一个用于可执行文件,我们写入无符号二进制文件;一个用于加载文件,我们写入有符号二进制文件(显然,它们具有相同的核心代码)。 请问我是否遗漏了什么显而易见的东西?你认为有没有更简洁的方法来实现这个目标? 仅供参考,我知道如何附加到已刷入的镜像,上述过程更多是为了方便一步开始调试,我提到这一点是为了说明我的目标。 非常感谢您的帮助和建议! 此致, 雅库布 Re: Debug application started by the MCUBOOT 你好@jslota13245 , 目前还没有明确的步骤将刷写和调试签名镜像合并到一个工作流程中,因为这些通常是作为单独的流程处理的。通常情况下,你会先将签名后的镜像文件刷写到设备上,然后再连接调试器。作为参考,您可以查看ota_mcuboot_basic示例的“运行演示”部分,其中演示了两种不同的刷写签名镜像的方法,您可以根据自己的设置进行调整。此外,“将数据传输到闪存”部分概述了可用于刷写过程的可用工具。 另一方面,能否请您解释一下将签名镜像转换为 .bin.elf 文件的原因?另外,您能否确认一下您在进行此操作时是否遵循了指南? BR 哈比卜 Re: Debug application started by the MCUBOOT 你好,哈比卜! 谢谢你的回复。 回答你的问题。我按照这个指南在启动时刷写了多个二进制文件。我们使用 mcuxpresso 来替代 vs-code IDE,但基本原理应该是一样的: https://mcuoneclipse.com/2022/11/01/loading-multiple-binary-files-with-gdb/ 这里的想法是,elf 文件包含调试已签名二进制文件的信息,因为已签名二进制文件只是一个附加了头部和尾部的二进制文件。如果 .elf该文件是根据这种布局生成的,应该可以按预期工作。 供以后参考,我在原帖中建议的方法效果不太好,因为调试器会卡在不存在的 0x00000 断点上,而 CPU 仍在运行,所以我怀疑并没有发生真正的崩溃。这里显然存在一些配置/集成调试器问题,但我无法准确指出问题所在。你是否曾遇到过类似的情况? 关于您建议的方法,我找到了以下部分: ``` 使用外部工具(直接方法)将已签名的应用程序映像编程到主应用程序分区 通过调试器启动应用程序,使用签名映像执行映像更新,RESET板并让引导加载程序执行更新(间接方法) 以下分步骤描述中使用的是后一种方法: 打开演示项目并进行构建。已知问题:MDK 链接器发出有关未使用的boot_hdr段的警告。这不会影响示例的功能。 按照mcuboot_opensource SDK 示例的 readme 文件中的说明,从原始二进制文件准备应用程序的签名映像。 如果是 MCUXpresso,则可能不会自动生成原始二进制文件。右键单击“二进制文件/.axf”后,使用二进制工具在项目树中查找要手动生成的文件。 在 IDE 中启动调试器,快速启动应用程序。 在使用 MCUXpresso IDE 时,程序会在引导加载程序中陷入无限循环。暂停调试,使用调试器控制台并发出命令jump ResetISR 。 ``` 但我不太清楚如何使用 VS Code 的扩展程序——很遗憾,我没有 IDE 后端。请您帮我回答以下问题好吗? 假设我确实有一个已签名的二进制文件和一个包含符号的原始 elf 文件。 1.如何让调试器启动已签名镜像? 2. 如何让调试器在不先烧录固件的情况下启动它?第 1 点明确指出要用某种工具刷写固件——我猜第 2 点是另有用途? 3. 调试器不能只烧录基础 elf 文件,因为它没有 mcuboot 头和尾部,会被 mcuboot 丢弃。 4. 第 2.3 点中提到“在 IDE 中启动调试器以快速启动应用程序”,这是否意味着调试器会烧录一些东西?或者它会附加到已经刷入的镜像上? 感谢您提前提供的帮助和时间。 🙂 此致, 雅库布 Re: Debug application started by the MCUBOOT 你好@jslota13245 , 当您提到“很遗憾,我没有 IDE 后端”时,我理解这可能指的是您对 VS Code 的 MCUXpresso 扩展不太熟悉,我的理解正确吗?如果是这样,我建议您查看该扩展程序官方文档中的“探索扩展程序”章节,因为它提供了对其功能的有用概述。 关于您的问题,当您启动调试会话时,该工具默认会将生成的映像编程到闪存中,然后连接调试器,调试器会自动跳转到主函数。这在“启动调试会话”部分有详细描述,您可以在此页面找到有关扩展程序调试功能的更多信息。我还可以建议您查看“调试项目”这一章节,其中介绍了调试代码的步骤。 我强烈建议您先在不使用 MCUboot 或镜像签名的情况下验证和调试您的应用程序,只有在您的应用程序经过全面测试后才引入 MCUboot。为了完成此过程,我们强烈建议使用 MCUxpresso 安全配置工具,该工具能够管理 MCUboot 的密钥生成和映像签名等安全功能,因此它是处理此类应用程序的标准工具。您可以在 7.6.2 节中找到有关如何对镜像进行签名以及如何刷写 MCUboot 的更多信息。安全配置工具用户指南 26.03中的“使用此类处理器手动启动 MCUboot 的步骤”。 另一方面,在集成 MCUboot 时,请确保将其放置在不会被其他镜像覆盖的专用闪存区域中。mcuboot_opensource_cm7 示例提供了一种放置每个镜像的替代方案: | 区域 | 从 | 到 | 大小 | |----------------|------------|------------|--------| | MCU启动代码 | 0x30000000 | 0x3003FFFF | 256kB | | 主插槽 | 0x30040000 | 0x3023FFFF | 2048kB | | 辅助插槽 | 0x30240000 | 0x3043FFFF | 2048kB | 您应该先将 MCUboot 映像编程到其专用闪存区域中,然后将签名的应用程序映像放入主插槽或辅助插槽中。MCUXpresso 安全配置工具可以简化此过程,它能够在一个工作流程中同时处理引导加载程序编程和映像编程,如我之前分享的用户指南第 7.6.2 节所述。 BR 哈比卜 Re: Debug application started by the MCUBOOT 我会去了解一下。多谢! 🙂 Re: Debug application started by the MCUBOOT 关于您第一篇帖子中提到的调试配置,我有几点想说: 1. MCUXpresso for VS Code 扩展依赖于 Zephyr(或 MCUXpresso SDK)中的“runners.yaml”。通常情况下,ELF/BIN 文件可能有不同的值。在你的情况下,你应该将“bin_file”属性指向你的“app_signed.bin”。(见下方截图)。重要提示:如果 ELF 和 BIN 指向同一个文件(例如“app”(但文件扩展名不同),调试配置中有一个“executableLoadTypePriority”属性,用于控制实际加载到目标上的内容。 2. 如果您有“runners.yaml”如果文件定义如上所述,则无需在 MCUXpresso 调试配置中指定任何内容(请参见下面的屏幕截图)。 3.如果您已按照上述说明定义了“runners”文件,则扩展程序将仅使用“runners”中的 ELF 文件来加载调试符号,并使用 BIN 文件将应用程序加载到目标设备上。因此,不需要“postLaunchCommands”属性。 4. “bootloader.elf”仍然需要添加到“extraLoadFiles”属性中,但不需要“app.elf”。旁边。 如果未按上述方式定义“runners.yaml”,则可以这样写: "executable": {   "elf": ".../app.elf",   "binary": {    "path": ".../app_signed.elf",    "address": 256   } } 这两种方法应该会产生类似的结果。 Re: Debug application started by the MCUBOOT 嗨,Adrian, 听起来很有希望。 🙂 我会试一试,非常感谢您分享有关扩展程序的详细信息以及您的建议! 此致, 雅库布
查看全文
機能リセット後もRAM保持機能が動作しない(S32K3xx) チームの皆さん、こんにちは。 S32K3xx で機能リセット後も変数を保持しようとしていますが、うまくいきません。 実装: カスタムRAMセクションに配置された変数: __attribute__ ((section(".int_sram_results"))) uint32_t retain_var; リセット前に値が更新されます(retain_var=0x11223344 のテスト用)。 リセットタイプ: 機能リセット(ソフトウェアトリガー) 観察された行動: しかし、値は常に0(クリア済み)です。 RAM保持が行われていません 参照情報を確認しました: 既にこの議論を参照し、提案された方法を試しました。 https://community.nxp.com/t5/S32K/S32K311-noinit-ram/td-p/2123035 そこで示した例は私たちのCASEでは通用しませんでした リクエスト: S32K3xxで機能リセット後もRAMを保持するための動作例または最小限のコードスニペットを共有してください。 ありがとうございます ユスアップ S32K3 S32DS-ARM S32K31XEVB-Q100  Re: RAM retention not working across functional reset (S32K3xx) こんにちは、@yusupkhan241 さん。 おそらく、起動コードはリセットのたびにSRAM全体をゼロに初期化する(ECC初期化のため)と思われます。あなたの具体的な起動コードは見ていないので、断言はできません。 リセットが機能するときにECCの初期化をスキップすることも検討できます。 この回答を参照してください。 https://community.nxp.com/t5/S32K/SRAM-ECC-Initialization-for-S32K344/mp/1764143 BR、ダニエル Re: RAM retention not working across functional reset (S32K3xx) こんにちは、@yusupkhan241 さん。 「うまくいかない」とはどういう意味ですか? あなたが投稿したファイルは、最新の変更を反映していないようです。 機能リセット後にスタートアップコードを見てSRAMの変数を観察できますか?これにより、変数がどこで上書きされるかが明確に示されるはずです。 機能リセット後にデバッガーを取り付けるには、スタートコードの冒頭に簡単なループを追加できます。例えば: Loop: mov r0, #1 cmp r0, 0 /* Change r0 to 0 in register view */ bne Loop /* Capture after power-on reset */ よろしくお願いいたします。 ダニエル Any support, information, and technology (“Materials”) provided by NXP are provided AS IS, without any warranty express or implied, and NXP disclaims all direct and indirect liability and damages in connection with the Material to the maximum extent permitted by the applicable law. NXP accepts no liability for any assistance with applications or product design. Materials may only be used in connection with NXP products. Any feedback provided to NXP regarding the Materials may be used by NXP without restriction. Re: RAM retention not working across functional reset (S32K3xx) こんにちは、 @danielmartynek さん。 下記の起動手順を、あなたが共有してくれた変更内容に置き換えてみましたが、うまくいきませんでした。 ご参考までに、関連ファイルをアップロードしました。.s と .ld.c 拡張子のファイルがアップロードされました拡大。内容をご確認いただき、追加情報が必要な場合はお知らせください。 RamInit: /* SRAM ECCを初期化 */ ldr r0, =__RAM_INIT cmp r0、0 /* __RAM_INIT が設定されていない場合はスキップします */ beq SRAM_LOOP_END ldr r0、=MCRGM_DES ldr r1, [r0] ldr r2、=MCRGM_DES_F_POR r1、r1、r2 cmp r1、0 beq NO_INIT_STANDBY_REGION ldr r2, =__INT_SRAM_START ldr r3, =__INT_SRAM_END b ZERO_64B_RAM 上記の手順が更新されました RamInit: /* Check MC_RGM DES register, if it's non-zero, jump to RAMInit_Start. (RAM init is needed if Destructive reset occurred) */ /* To make it work, customer should clear the MC_RGM DES register in application code. */ ldr r4, =MC_RGM_BASE_ADDR /* 0x4028C000 */ ldr r4, [r4, #0x0] cmp r4, #0x0 bne RamInit_Start /* Check MC_RGM FES register, if the F_EXR bit or ST_DONE bit is set, jump to RAMInit_Start. */ /* RAM init is needed if external reset occurred, or BIST Done functional reset occurred. */ /* To make it work, customer should clear the MC_RGM FES F_EXR register bit in application code. */ ldr r4, =MC_RGM_BASE_ADDR ldr r4, [r4, #0x8] ldr r5, =MC_RGM_FES_MASK_RAM_INIT and r4, r4, r5 cmp r4, #0x0 bne RamInit_Start b SRAM_LOOP_END RamInit_Start: /* Initialize SRAM ECC */ ldr r0, =__RAM_INIT cmp r0, 0 /* Skip if __SRAM_INIT is not set */ beq SRAM_LOOP_END ldr r1, =__INT_SRAM_START ldr r2, =__INT_SRAM_END ありがとうございます ユスプ Re: RAM retention not working across functional reset (S32K3xx) こんにちは、 @danielmartynek さん。 RAM保持動作を分離するために、設定を簡略化しました。 私はその変数を専用のSRAM領域に配置し、LED表示とウォッチドッグによるリセット機能を備えた最小限のメイン関数を使用しました。その考え方は次の通りです: 緑色LED → リセット後も値が保持されます 赤色LED → 価値が失われる 以下に、使用されているテストコードを示します。 C __attribute__ ((section(".int_sram_results"), used)) volatile uint32_t retain_var; int main(void) { Clock_Ip_Init(&Clock_Ip_aClockConfig[0]); DIO_Init(); WDT_Init(); if (retain_var == 0xAABBCCDD) { Siul2_Dio_Ip_SetPins(LED_GREEN_PORT, (1UL << LED_GREEN_PIN)); Siul2_Dio_Ip_ClearPins(LED_RED_PORT, (1UL << LED_RED_PIN)); } そうでない場合、 { Siul2_Dio_Ip_SetPins(LED_RED_PORT, (1UL << LED_RED_PIN)); Siul2_Dio_Ip_ClearPins(LED_GREEN_PORT, (1UL << LED_GREEN_PIN)); } retain_var = 0xAABBCCDD; while(1) { /* ウォッチドッグリセット */ } } 表示を減らす 観察: デバッガーを使用して実行した場合、動作は想定どおりです。 しかし、電源投入後のリセット後、LEDが点灯しないため、コードが期待どおりに実行されていない可能性がある。 参考までに、最新のリンカーファイルとスタートアップファイルを添付しました。 起動処理やリセット処理に関して何か不足している点があればお知らせください。 S32DS-ARM S32K31XEVB-Q100  ありがとう、 ユスプ Re: RAM retention not working across functional reset (S32K3xx) テストプロジェクト全体を共有してもらえますか?そうすれば自分の側でも簡単にテストできます。 ありがとうございました。 ダニエル Re: RAM retention not working across functional reset (S32K3xx) こんにちは、 @danielmartynek さん。 以下は、当社のテスト結果から得られた所見です。  デバッグモードの動作: 電源投入リセット(赤色LED): retain_var = 0x5AA55AA5 @ 0x20407B00 ウォッチドッグリセット後(緑色LED): 保持_var = 0xAABBCCDD @ 0x20407B00 これは、デバッガで実行している場合でも、機能リセット後のRAM保持機能が正常に動作していることを確認するものです。 ただし、スタンドアロン(デバッガーなし)で実行する場合: 電源投入後リセットしても、LED表示は点灯しません。 プログラムが実行されていないか、アプリケーションコードに到達していないようです。 この行動の原因を特定する手助けをしてもらえますか?また、完全な.int_sram_resultsを使用する予定です。機能リセット後も複数のパラメータを保持するためのセクション。確実なデータ保持のために、他に何か変更が必要かどうかご提案ください。 さらに、 ウォッチドッグの代替として機能リセットをトリガーするAPIや推奨方法があれば教えていただけますか? 参考までに、スタートアップファイルとリンカーファイルに加えた変更は共有プロジェクトで検証可能です。 起動ファイル(旧コード) RamInit: /* SRAM ECCを初期化 */ ldr r0, =__RAM_INIT cmp r0、0 /* __RAM_INIT が設定されていない場合はスキップします */ beq SRAM_LOOP_END ldr r0、=MCRGM_DES ldr r1, [r0] ldr r2、=MCRGM_DES_F_POR r1、r1、r2 cmp r1、0 beq NO_INIT_STANDBY_REGION ldr r2, =__INT_SRAM_START ldr r3, =__INT_SRAM_END b ZERO_64B_RAM 起動ファイル(新規コード) .equ MC_RGM_BASE_ADDR、0x4028C000 .equ MC_RGM_FES_MASK_RAM_INIT、0xFFFFFFFF RamInit: /* MC_RGM DESレジスタをチェックし、ゼロでない場合はRAMInit_Startにジャンプします。(破壊的リセットが発生した場合は、RAM初期化が必要です) /* 動作させるには、お客様がアプリケーションコードの MC_RGM DES レジスタをクリアする必要があります。*/ ldr r4, =MC_RGM_BASE_ADDR /* 0x4028C000 */ ldr r4、[r4、#0x0] cmp r4、#0x0 bne RamInit_Start /* MC_RGM FESレジスタをチェックし、F_EXRビットまたはST_DONEビットが設定されている場合は、RAMInit_Startにジャンプします。*/ /* 外部リセットが発生した場合、または BIST 完了機能リセットが発生した場合は、RAM 初期化が必要です。*/ /* 動作させるには、お客様はアプリケーションコード内のMC_RGM FES F_EXRレジスタビットをクリアする必要があります。*/ ldr r4、=MC_RGM_BASE_ADDR ldr r4、[r4、#0x8] ldr r5、=MC_RGM_FES_MASK_RAM_INIT r4、r4、r5 cmp r4、#0x0 bne RamInit_Start b SRAM_LOOP_END RamInit_Start: /* SRAM ECCを初期化 */ ldr r0, =__RAM_INIT cmp r0、0 /* __SRAM_INITが設定されていない場合はスキップします */ beq SRAM_LOOP_END ldr r1, =__INT_SRAM_START ldr r2, =__INT_SRAM_END b ZERO_64B_RAM リンカーファイルの変更 古いコード: .int_results (NOLOAD):     { 。= ALIGN(4); KEEP(*(.int_results)) 。+= 0x100; } > int_sram_results 新しいコード: .int_results(NOLOAD):     { 。= ALIGN(4); KEEP(*(.int_results)) } > int_sram_results S32K31XEVB-Q100 ありがとう、 ユスプ Re: RAM retention not working across functional reset (S32K3xx) こんにちは、@yusupkhan241 さん。 デバッグを行った結果、以下のコードに誤りがあることがわかりました。 R2とR3の代わりにR1とR2を使用しました。 R2とR3が必要な理由は以下のとおりです。 この起動コードはどこで入手したのですか? デバッガが接続された状態で、デバッガはSRAM ECCを初期化します。 デバッガーを使用しない場合、0x20400090でハードフォルトが発生しました。 よろしくお願いいたします。 ダニエル Re: RAM retention not working across functional reset (S32K3xx) こんにちは、 @danielmartynek さん。 R2/R3を使うように設定すると、アプリケーションは動作します。 しかし、赤色LEDは常に点滅し、緑色LEDは点灯しないため、リセット後に値が保持されないことを示しています。 共有いただいたリンクから起動時の変更を適用しましたが、保持機能が期待どおりに動作しません。 S32K3 S32DS-ARM  https://community.nxp.com/t5/S32K/SRAM-ECC-Initialization-for-S32K344/mp/1764143 ありがとう、 ユスプ Re: RAM retention not working across functional reset (S32K3xx) こんにちは、@yusupkhan241 さん。 遅れて申し訳ありません。テストに取り掛かることができたのは今になってからです。 私は今、テストを行い、機能イベント状態(FES)リセットのみが発生し、破壊イベント状態(DES)リセットが検出されなかった場合、以下の簡単なコードを使ってSRAMの初期化をスキップしました。 /* * Initialize SRAM ECC only after a Destructive Reset. * * Functional reset shall preserve SRAM content, so MC_RGM_FES is not used * here to trigger SRAM initialization. * * Note: * To make this check work correctly, the application should clear MC_RGM_DES * after processing the destructive reset reason. */ /* Check MC_RGM DES register. * If DES is non-zero, a destructive reset occurred and SRAM init is needed. */ ldr r4, =MC_RGM_BASE_ADDR /* 0x4028C000 */ ldr r4, [r4, #0x0] /* MC_RGM_DES */ cmp r4, #0x0 bne RamInit_Start /* No destructive reset detected. * Skip SRAM ECC initialization to preserve SRAM content across Functional Reset. */ b SRAM_LOOP_END main()関数内で、DESレジスタをクリアします。 IP_MC_RGM->DES = 0xFFFFFFFF; BR、ダニエル Re: RAM retention not working across functional reset (S32K3xx) @danielmartynek この件について何か進展はありますか? S32DS-ARM S32K31XEVB-Q100  ありがとうございます ユスプ。
查看全文
マネージャー:FS32K144UAT0VLLTのVREFHを誤った電源に接続した場合、どのような問題が発生しますか? FS32K144UAT0VLLTは、VDDとVDDAに3.3V、ADサンプリングに5Vの電源を使用します。VREFHが5V電源に誤って接続されているため、以下の問題が発生します。 1. VREFHの電圧はVDDAの電圧よりも低くなければなりません。VREFに5Vを供給した場合、測定電圧は3.3Vから約4.18Vに上昇します。 2. 3.3V電源を取り外し、5V電源のみを残した場合、3.3V電源の電圧は約4.18Vと測定されます。これは、FS32K144UAT0VLLTのVREFHが5V電源を3.3V電源と直列に接続しているためでしょうか? 3. FS32K144UAT0VLLTのVDDとVDDAを5V電源に変更し、元のMC14504BDRGレベル変換チップを3.3Vから5Vへのレベル変換に使用している場合、それを5Vレベル変換に変更することは可能でしょうか?回路基板は既にハンダ付け済みです。 ありがとう! Re: 经理:FS32K144UAT0VLLT的VREFH接错电源会出现什么问题? こんにちは@ YF666666 S32K1xxマイクロコントローラ向けハードウェア設計ガイドライン、改訂版5、2021年3月 図3. S32K14x – 100LQFPおよび100BGAパッケージの電源ピンとドメイン FS32K144UAT0VLLT の電源設計は上の図を参照しており、チップの外部電圧は VDD + 0.3 V を超える必要はありません。 「当初は電圧レベル変換チップ MC14504BDRG を使用して 3.3V から 5V 電圧レベルへの変換を行っていましたが、5V 電圧レベルに変更されました。」 尾行の説明はありませんが、不明瞭な変更が加えられています。 MC14504BDRG の出力は VREFH です。当初は 3.3V から 5V に VREFH に供給されていましたが、5V から 5V に変更されましたか? 自己認証が MC14504BDRG にある場合、切り替えの結果は VREFH が VDDA より小さいだけで済みます。
查看全文