Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) Hi, I'm validating the external active-tamper loop on the i.MX8DXL EVK (MCIMX8DXL-WEVK) via U-Boot. From the board schematic, I've confirmed J20 (TAMPER header, 1x3) is wired as: - Pin 1 = TAMPER_IN4 (net SNVS.TAMPER_IN4, ball AJ13) - Pin 2 = GND - Pin 3 = TAMPER_OUT0 (net SNVS.TAMPER_OUT0, ball AP22) These are dedicated SNVS pins, not shared with SAI2/SAI3 like TAMPER_OUT1-4/IN0-3. Available U-Boot commands: tamper_pin_cfg, snvs_cfg (with sub-registers hp.lock, hp.secvio_intcfg, hp.secvio_ctl, lp.lock, lp.secvio_ctl, lp.tamper_filt_cfg, lp.tamper_det_cfg, lp.tamper_det_cfg2, lp.tamper_filt1_cfg, lp.tamper_filt2_cfg, lp.act_tamper1_cfg through lp.act_tamper5_cfg, lp.act_tamper_ctl, lp.act_tamper_clk_ctl, lp.act_tamper_routing_ctl1, lp.act_tamper_routing_ctl2), snvs_sec_status, snvs_clear_status. Since TAMPER_OUT0/TAMPER_IN4 form an active tamper pair, my questions: 1. Which lp.act_tamperN_cfg channel (1-5) corresponds to TAMPER_OUT0? 2. What values for lp.act_tamper_routing_ctl1/routing_ctl2 route TAMPER_OUT0's pattern to be checked against TAMPER_IN4? 3. What value for lp.act_tamper_clk_ctl enables the pattern clock for this channel? 4. What value for lp.act_tamper_ctl globally enables active tamper detection for this channel? Goal: closing a jumper across J20 pins 1-3 should read as secure in snvs_sec_status, and opening it should trigger a violation. I've attempted several values on hardware (routing 4, 5, 10; various clock/detector settings) — all were either rejected by the SECO firmware (error res:9 / SC_ERR_PARM) or accepted with no observable change in snvs_sec_status's SNVS a4(1) (LPTDSR) register when physically toggling the loop. Is there a reference test procedure or app note for external active tamper validation on i.MX8DXL? Thanks! Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) Hello, 1. lp.act_tamper1_cfg drives TAMPER_OUT0. 2. The i.MX8DXL SNVS has 5 Active Tamper (AT) output sources and up to 8 External Tamper (ET) input detectors. Please use this configuration: lp.act_tamper_routing_ctl1 = 0x00010000 # ET5 (TAMPER_IN4) to AT1 (TAMPER_OUT0) lp.act_tamper_routing_ctl2 = 0x00000000 # ET6-ET8 not used 3. That value changes the clock divider, use 0x00 for maximum frequency configuration. lp.act_tamper_clk_ctl = 0x00000000 4. Use lp.act_tamper_ctl = 0x00010001: Bit 0: AT1EN enable AT1 LFSR pattern generator Bit 16: AT1_OUT_EN drive TAMPER_OUT0 pad with AT1 pattern There is no application note available for this processor but you can use this from an i.MX7 that can be used as reference: /* Config ET5 (pin in et4) <-> (pin out et5) AT 1 * /* reset */ write32(0, &svregs->lp.act_tamper_clk_ctl); write32(0, &svregs->lp.act_tamper_ctl); write32(0, &svregs->lp.tamper_det_cfg); write32(0, &svregs->lp.tamper_det_cfg2) /* Deault value for LFSR */ write32(0x84000000 | 0x00001111, &svregs->lp.act_tamper1_cfg) /* Set the clock at max freq */ write32(0x00000000, &svregs->lp.act_tamper_clk_ctl); /* ET5 (pin et4) takes ref from AT1 (pin et5) */ write32(0x00010000, &svregs->lp.act_tamper_routing_ctl1); write32(0x0, &svregs->lp.act_tamper_routing_ctl2) /* activate out pad of AT1 and enable it, AT1 output on pin et5 */ write32(0x00010000 | 0x00000001, &svregs->lp.act_tamper_ctl) /* Configuring IRQs and secviols */ write32(0x8000003f, &svregs->hp.secvio_intcfg); write32(0x4000003f, &svregs->hp.secvio_ctl); write32(0x0000003f, &svregs->lp.secvio_ctl) /* Activating detector for ET5 */ write32(0x00000000, &svregs->lp.tamper_det_cfg); write32(0x00000004, &svregs->lp.tamper_det_cfg2); Best regards. Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) Thank you for the configuration. I applied it exactly on a fresh power cycle: snvs_dgo_cfg 0 0 20000000 0 80000000 0 snvs_cfg 0 8000003f 4000003f 0 3f 0 0 4 0 0 84001111 0 0 0 0 10001 0 10000 0 Readback matches your values: SNVS e8(2) = 00010000 00000000, SNVS 48(2) = 00000000 00000004, SNVS e0 = 00010001, DGO 20 = 20000000, DGO 40 = 80000000. Result: LPTDSR (SNVS a4) = 00000004 (ET5D set). It reads 00000004 both with no jumper and with an insulated jumper connected between J20 pin 1 (TAMPER_IN4) and pin 3 (TAMPER_OUT0). It also stays 00000004 after snvs_clear_status 107ff ff. So detection asserts with the loop open, but I never get a clean 00000000 state with the loop closed. Questions: 1. Does the TAMPER_OUT0 / TAMPER_IN4 loop on this EVK need a pad or pull setting (for example DGO tamper_pull_ctl), or a different act_tamper_clk_ctl value, for a wired-jumper loop? 2. Is snvs_clear_status expected to clear LPTDSR while the tamper condition is still present? 3. Is any other setting needed for the loop to be seen as closed? Thanks again. Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) Following up on our last update on this case (Project: Cryptographic Module). We have reviewed the setup with our team lead. We verified the hardware (J20 pin mapping from schematic SCH-54318, jumper loop between pin 1 and pin 3) and the SNVS configuration (register readback matches the values you gave). We also followed the sequence you shared, which is based on the i.MX7 reference. The result is unchanged: - Active configuration: LPTDSR (SNVS a4) = 0x00000004 (ET5D) and it does not clear, with or without the jumper. - Passive ET5 tests: a4 does not change with the pin level. We would appreciate your help with three points: 1. Could you please answer the questions in our previous update (passive ET5 enable and polarity settings, DGO settings, and how to confirm that AT1 is toggling)? 2. Could you please share the i.MX 8DXL Security Reference Manual (at least the SNVS tamper chapters), or tell us the process to get access, including any NDA requirement? 3. Do you have a sample U-Boot command sequence that has been verified on the i.MX8DXL EVK? Thank you for your support. Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) Hello,  Please refer to the attached validated tamper test procedure on i.MX8DXL board and the corresponding active/passive tamper logs. You can also refer to the uboot source code for examples of how the SNVS registers are configured for active and passive tamper.  https://github.com/nxp-imx/uboot-imx/blob/lf_v2026.04/arch/arm/mach-imx/imx8/snvs_security_sc_conf_8dxl_evk.h Please note that the TAMPER_IN4 is mapped to ET7 rather than ET5. When using TAMPER_IN4  for passive/active tamper tests,  ET7 detections need to be enabled accordingly. I don't expect the SECO/SCFW version to have a big impact, please try the provided configuration and test steps and see if it works for you. Regarding how to get access to security reference manual, please request it on the next link. Best regards.
View full article
Mbd Career Advice needed I started my career on Model Based Design of Automotive software 5 years ago and now I feel that its very monotonous and not much learning on the tools side, how have you tackled this situation? The quantum of work that I might be involved in a monthly basis might be 10% on simulink modelling , 50% on testing these models and reporting and the rest on manual compliance docs.
View full article
GenAVB_TSN-rtos-apps RT1180 tsn_app 项目版本问题 我正在基于https://github.com/NXP/GenAVB_TSN-rtos-apps上的代码库搭建一个 TSN 演示程序。我已按照https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs-Knowledge/Step-by-Step-Guide-to-Running-the-GenAVB-TSN-Stack-FreeRTOS/ta-p/2390969上的分步指南进行操作。严格来说。 但是,导入项目后,项目选项中只有ram_release版本配置可用,没有release_no_enetc0 ,因此无法编程到闪存中。我多次尝试导入过程,但结果始终相同。 我按照NXP_GenAVB_TSN_MCUXpresso_User_s_Guide_8_0_rev0.pdf导入了项目,并执行了相应的设置脚本。请问有人能帮忙找出这个问题的原因吗? Re: GenAVB_TSN-rtos-apps RT1180 tsn_app project build problem 亲爱的@ChandlerY , 请务必在 GitHub 上选择8_0分支: https://github.com/NXP/GenAVB_TSN-rtos-apps/tree/8_0 该分支的 README 文件明确指出它受支持: 此致, 雪莉 Re: GenAVB_TSN-rtos-apps RT1180 tsn_app project build problem 嗨,雪莉, 谢谢你的回复! 我已经重复了整个过程,但问题仍然存在。我使用的是最新版本的 VS Code 和最新版本的 MCUXpresso 安装程序。 我的组装步骤如下。请问您能否帮忙检查一下我是否漏掉了任何必要的步骤?谢谢。 1. 导入 SDK (我尝试过8_0_0和8_0两种版本) 2.执行补丁脚本(需要文件《NXP_GenAVB_TSN_MCUXpresso_User_s_Guide_8_0_rev0》) 1) cd E:\111\genavb_tsn_rtos_apps_800\GenAVB_TSN-rtos-apps\scripts 2)bootstrap.bat   执行成功。   3.导入项目 4.目前该项目仍然只有两种版本配置可用。 此外,我可以通过命令行编译项目并烧录设备,编程后可以观察到正常的日志输出。然而,这种工作流程对于日常开发来说不够方便。我希望 IDE 中能提供一键编译和烧录功能,并可选择版本配置。请问如何解决这个问题? 期待您的尽快回复。 Re: GenAVB_TSN-rtos-apps RT1180 tsn_app project build problem 亲爱的@ChandlerY , 我们已经查明了问题的原因。这似乎与 VS Code 的 MCUXpresso 新版本有关。 回滚到 26.5.57 版本后,我可以正确看到所有可用的版本配置: 请参考以下屏幕截图,并将版本回滚到 26.5.57。从“扩展”视图中:   此外,TSN应用程序目前不支持独立应用程序。请改用存储库应用程序。 此致, 雪莉 Re: GenAVB_TSN-rtos-apps RT1180 tsn_app project build problem 亲爱的@ChandlerY , 感谢您的耐心等待。 我从代码库中拉取了最新代码,并在我这边重现了该问题。目前,根本原因尚不清楚。这可能与 VS Code 显示设置和工具配置之间存在某些不一致有关。 作为临时解决方案,请使用 west build 命令创建/构建项目。例如: west build -p always boards/src/demo_apps/avb_tsn/tsn_app --toolchain armgcc --config release_no_enetc0 -b evkmimxrt1180 -Dcore_id=cm33 我们将继续跟进此事。   顺祝商祺! 雪莉 Re: GenAVB_TSN-rtos-apps RT1180 tsn_app project build problem 亲爱的雪莉, 谢谢你的回复。此外,我还有另一个问题。导入项目时,只有选择“存储库应用程序”作为应用程序类型,版本才能成功。使用独立组网 \(SA\)应用程序或独立应用构建的版本都会失败。您能否也帮忙解决这个问题?谢谢。 Re: GenAVB_TSN-rtos-apps RT1180 tsn_app project build problem 嗨,雪莉, 我试过你的方法,有效!多谢。 请在更新版本的mcuxpresso for vscode中修复此问题后告知我。 仅限于存储库应用程序类型对于项目修改和移植来说很不方便。未来版本是否有计划引入对独立组网 \(SA\)应用程序类型的支持? Re: GenAVB_TSN-rtos-apps RT1180 tsn_app project build problem 亲爱的@ChandlerY , 很高兴听到这个方法对你有效。 我已经将这个问题和您的请求反馈给了我们的内部团队,供他们进一步考虑。 同时请注意,TSN 应用程序主要用于功能测试和评估。对于实际的产品开发,我们建议创建您自己的独立组网 (SA)应用程序项目,并将所需的 TSN 功能移植到该项目中。 此致, 雪莉
View full article
クロックと電源の関係:MIMXRT685 - EVK こんにちは、 アプリケーションでは、コアクロック周波数を可能な限り最大、つまりデフォルトの250MHzから297MHzまで上げています。権力という観点から見て、それがどのような影響をもたらすのかを知りたかった。今は何も壊れていませんが、データシートの静的な特性から判断すると、FUTUREのハードフォールトを避けるためにいくつか変更が必要だと思います。ぜひアドバイスをいただけるとありがたいです。 よろしくお願いいたします! シュリ Re: Clock - power relationship : MIMXRT685 - EVK こんにちは、 @shri00 さん。 私たちの製品にご関心を寄せ、コミュニティをご利用いただき、本当にありがとうございます。 MIMXRT685-EVKで297MHz動作を行う場合は、VDDCORE電圧とクロック構成を確認してください。基板が現在故障なく動作しているという事実は、必ずしもVDDCOREが目標とする周波数および温度範囲の動作要件を満たしていることを意味するものではありません。   クロック周波数を上げる際は、まずVDDCOREを目標周波数に必要なレベルに設定し、その後より高い周波数に切り替えます。   VDDCOREとクロック周波数の関係については、RT600データシートの表20および表21を参照してください。 32ビットCortex-M33®およびXtensa HiFi4オーディオDSP CPUを搭載したデュアルコアマイクロコントローラ 良い1日を。 よろしくお願いいたします。 メイ・リウ
View full article
请求提供基于霍尔传感器的电机控制参考固件和培训资料 尊敬的恩智浦团队: 我们正在与一位客户合作开发一种使用 24V、3.47A 电机的空气冷却系统。 我们已经成功完成了基于无传感器FOC电机控制的演示。客户现在希望使用 FRDM-MCXA156 EVK(控制卡)和 FRDM-MC-LVPMSM(电源卡)集成霍尔传感器进行转子位置检测。 能否推荐一个合适的参考固件或应用示例,用于在该硬件组合上实现基于霍尔传感器的电机控制? 我查看了GitHub上提供的LPC55S36霍尔传感器BLDC示例。 但是,我找不到此示例对应的 FreeMASTER 配置文件(.pmpx)。 请问您能否帮我们解决以下问题? FRDM-MC-LVPMSM 上霍尔传感器集成的 FRDM-MCXA156 参考固件。 相应的 FreeMASTER 项目/配置文件(.pmpx)(如有)。 基于 FRDM-MCXA156 EVK,将霍尔传感器反馈集成到现有无传感器 FOC 项目中的相关应用笔记、培训材料或实施指南。 非常感谢您的技术指导和建议。 此致 达尔尚·J·L WPG印度 电路板设计 开发板 FRDM 培训 动手实践培训 MCXA 电机控制 Re: Request for Hall Sensor-Based Motor Control Reference Firmware and Training Material 你好@Darshan_J_L , 感谢您的帖子。 MCUXpresso SDK 包含多个电机控制示例项目。您可以在下一页找到有关 FRDM-MCXA156 的更多信息。 MCUXpresso 电机控制 SDK | NXP 半导体。   FRDM-MCXA156 + FRDM-MC-LVPMSM 组合的 pmsm_enc 示例位于 SDK v25.06 中。它支持无传感器和有传感器的 FOC,并包含 pmsm_float_enc.pmpx FreeMASTER 项目。您可以参考UG10247.pdf 文件。更多详情请见下文。   关于 LPC55S36 演示对应的 FreeMASTER 配置文件 (.pmpx),您可以在这里找到: an-lpc55s36_mc_bldc_whall/LPC5536_mc_bldc_wHall.pmpx at main · nxp-appcodehub/an-lpc55s36_mc_bldc_whall · GitHub   希望对您有所帮助。如果您还有其他问题,请告诉我。   BR 塞莱斯特    
View full article
S32 Design Studio for Power Architecture 2017.R1 在许可证过期后显示“缺少许可证” 我正在 Windows 系统上使用S32 Design Studio for Power Architecture 2017.R1 版本。现在 IDE 显示“缺少许可证” ,而且许可证似乎已经过期。 激活 | 安装 | 许可 | 安装程序下载
View full article
S32 设计工作室 v.3.5 版本许可 您好,NXP支持团队, 我的 S32 Design Studio v.3.5 版本许可证已于 2026 年 10 月 19 日到期。请问您能否帮忙延长许可证期限? 激活码:30E0-0F7D-F883-9AFB 感谢您的支持。 Eclipse IDE 使用和设置
View full article
时钟-电源关系:MIMXRT685-EVK 你好, 对于某个应用,我将核心时钟频率提升到最大可能值,即从默认的 250 MHz 提升到 297 MHz。我想知道从权力角度来看,这会造成哪些影响。虽然目前还没有出现任何问题,但根据数据手册中的静态特性,我认为我需要做一些更改,以避免将来出现硬故障。我非常希望得到一些指导。 提前感谢! 什里 Re: Clock - power relationship : MIMXRT685 - EVK 嗨@shri00 , 非常感谢您对我们产品的关注以及对我们社区的使用。 对于 MIMXRT685-EVK 的 297 MHz 运行,请检查 VDDCORE 电压以及时钟配置。板目前运行无故障这一事实并不一定意味着 VDDCORE 满足您目标频率和温度范围的运行要求。   提高时钟频率时,首先将 VDDCORE 设置为目标频率所需的电平,然后再切换到更高的频率。   有关 VDDCORE 与时钟频率的关系,请参阅 RT600 数据手册的表 20 和表 21。 采用 32 位 Cortex®-M33 和 Xtensa HiFi4 音频 DSP CPU 的双核微控制器 祝你今天过得愉快。 顺祝商祺! 刘梅
View full article
S32K44 和 S32K388 分别支持多少个正交编码器输入? 我找到了https://community.nxp.com/t5/S32K/Quadrature-decoder-on-S32K344/mp/1507580以及https://www.nxp.com/design/design-center/development-boards-and-designs/MCSPTE1AK344上的应用笔记。但我很难确定我可以实例化多少个正交编码器。 我的应用场景中,理想情况下,我希望能够使用 4 个独立的正交解码器。S32K344 或 S32K388 是否支持此功能? Re: How many Quadrature encoder inputs can an S32K44 and an S32K388 support? 你好, S32K3 系列不包含专用的正交解码器外设。相反,正交解码器功能是通过 LCU、TRGMUX 和 eMIOS 模块的组合来实现的。这是 S32K3 参考手册中描述的方法,也是社区帖子中提到的电机控制示例。 根据参考手册,增量编码器示例需要两个逻辑单元(LC0 和 LC1)来实现单个正交解码器。S32K344 和 S32K388 设备提供两个 LCU 实例。 不过,我也已要求电机控制团队提供反馈意见。 我会尽快通知您最新情况。 顺祝商祺! Peter Re: How many Quadrature encoder inputs can an S32K44 and an S32K388 support? 你好, 更新: 根据 NXP 示例中描述的实现方式,实际限制是在 S32K344 和 S32K388 上各使用三个独立的正交译码器。该方案消耗: 6 个 TRGMUX 输入引脚(3 × A/B 编码器输入), 6 个可进行 MCB 操作的 eMIOS 通道(例如 eMIOS0 CH1-CH6), 3 个逻辑单元(一个 LCU 实例)。 因此,可以使用所展示的架构直接实现三个编码器实例。 第四个编码器无法通过相同的资源映射直接支持。主要限制在于能否提供合适的以 MCB 模式运行的 eMIOS 通道,以及通过 TRGMUX 和 LCU 进行所需的信号路由。 可能存在一种变通方法,即使用剩余的 G 型通道(例如,CH7) 与 X 通道一起,并将 LCU 输出通过设备引脚外部路由回 eMIOS X 输入。例如,在 S32K344 上,PTB2 可以配置为 LCU1_OUT3 和 eMIOS0_CH8_X,从而有效地创建外部环回路径。然而,这种方法会占用一个额外的封装引脚,并且不属于标准演示解决方案的一部分。 因此,实现 3 个正交译码器是完全可行的,而第 4 个译码器则需要采用替代的布线方案或自定义变通方法,并且应该根据整体引脚和外设资源使用情况进行评估。 顺祝商祺! Peter Re: How many Quadrature encoder inputs can an S32K44 and an S32K388 support? 对于我的应用来说,我并不需要基于 eMIOS 的、使用计时器进行计数的解释——我只需要编码器计数即可。是否存在某种配置,能够支持 8 个 TRGMUX 输入和 4 个 LCU 单元,从而实现简单的加减计数?
View full article
更正 i.MX8DXL EVK (J20) 上 TAMPER_OUT0/TAMPER_IN4 活动防篡改循环的 snvs_cfg 值 您好, 我正在通过 U-Boot 验证 i.MX8DXL EVK (MCIMX8DXL-WEVK) 上的外部主动篡改循环。 根据电路板原理图,我已经确认 J20(防篡改接头,1x3)的接线方式如下: - 引脚 1 = TAMPER_IN4(网络 SNVS.TAMPER_IN4,焊球 AJ13) - 引脚 2 = 接地 - 引脚 3 = TAMPER_OUT0(网络 SNVS.TAMPER_OUT0,引脚 AP22) 这些是专用的 SNVS 引脚,不像 TAMPER_OUT1-4/IN0-3 那样与 SAI2/SAI3 共享。 可用的 U-Boot 命令:tamper_pin_cfg、snvs_cfg(及其子寄存器 hp.lock、hp.secvio_intcfg、hp.secvio_ctl、lp.lock、lp.secvio_ctl、lp.tamper_filt_cfg、lp.tamper_det_cfg、lp.tamper_det_cfg2、lp.tamper_filt1_cfg、lp.tamper_filt2_cfg、lp.act_tamper1_cfg 至 lp.act_tamper5_cfg、lp.act_tamper_ctl、lp.act_tamper_clk_ctl、lp.act_tamper_routing_ctl1、lp.act_tamper_routing_ctl2)、snvs_sec_status、snvs_clear_status。 由于 TAMPER_OUT0/TAMPER_IN4 构成一个有效的防篡改对,我的问题是: 1. lp.act_tamperN_cfg 通道(1-5)中,哪个对应于 TAMPER_OUT0? 2. 要检查 lp.act_tamper_routing_ctl1/routing_ctl2 路由 TAMPER_OUT0 的模式与 TAMPER_IN4 的匹配度,需要检查哪些值? 3. 要使该通道启用模式时钟,lp.act_tamper_clk_ctl 的值是多少? 4. lp.act_tamper_ctl 的全局值是多少才能启用此通道的主动篡改检测? 目标:将跳线连接到 J20 引脚 1-3 时,snvs_sec_status 应显示为安全状态;断开跳线时,应触发违规。 我尝试了硬件上的几个值(路由 4、5、10;各种时钟/检测器设置)——所有这些值要么被 SECO 固件拒绝(错误 res:9 / SC_ERR_PARM),要么被接受,但在物理切换循环时,snvs_sec_status 的 SNVS a4(1) (LPTDSR) 寄存器没有可观察到的变化。 i.MX8DXL 是否有针对外部主动防篡改验证的参考测试程序或应用说明? 谢谢您! Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) 你好, 1. lp.act_tamper1_cfg 驱动 TAMPER_OUT0。 2. i.MX8DXL SNVS 具有 5 个主动防拆 (AT) 输出源和多达 8 个外部防拆 (ET) 输入检测器。 请使用以下配置: lp.act_tamper_routing_ctl1 = 0x00010000 # ET5 (TAMPER_IN4) 到 AT1 (TAMPER_OUT0) lp.act_tamper_routing_ctl2 = 0x00000000 # ET6-ET8 未使用 3. 该值会改变时钟分频器,使用 0x00 可配置最大频率。 lp.act_tamper_clk_ctl = 0x00000000 4. 使用 lp.act_tamper_ctl = 0x00010001: 位 0:AT1EN 使能 AT1 LFSR 模式生成器 位 16:AT1_OUT_EN 驱动 TAMPER_OUT0 焊盘,使用 AT1 模式 目前没有针对该处理器的应用笔记,但您可以参考 i.MX7 的相关信息: /* Config ET5 (pin in et4) <-> (pin out et5) AT 1 * /* reset */ write32(0, &svregs->lp.act_tamper_clk_ctl); write32(0, &svregs->lp.act_tamper_ctl); write32(0, &svregs->lp.tamper_det_cfg); write32(0, &svregs->lp.tamper_det_cfg2) /* Deault value for LFSR */ write32(0x84000000 | 0x00001111, &svregs->lp.act_tamper1_cfg) /* Set the clock at max freq */ write32(0x00000000, &svregs->lp.act_tamper_clk_ctl); /* ET5 (pin et4) takes ref from AT1 (pin et5) */ write32(0x00010000, &svregs->lp.act_tamper_routing_ctl1); write32(0x0, &svregs->lp.act_tamper_routing_ctl2) /* activate out pad of AT1 and enable it, AT1 output on pin et5 */ write32(0x00010000 | 0x00000001, &svregs->lp.act_tamper_ctl) /* Configuring IRQs and secviols */ write32(0x8000003f, &svregs->hp.secvio_intcfg); write32(0x4000003f, &svregs->hp.secvio_ctl); write32(0x0000003f, &svregs->lp.secvio_ctl) /* Activating detector for ET5 */ write32(0x00000000, &svregs->lp.tamper_det_cfg); write32(0x00000004, &svregs->lp.tamper_det_cfg2); 顺祝商祺! Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) 感谢您提供的配置信息。我是在全新断电后立即应用的: snvs_dgo_cfg 0 0 20000000 0 80000000 0 snvs_cfg 0 8000003f 4000003f 0 3f 0 0 4 0 0 84001111 0 0 0 0 10001 0 10000 0 回读与您的值匹配:SNVS e8(2) = 00010000 00000000,SNVS 48(2) = 00000000 00000004,SNVS e0 = 00010001,DGO 20 = 20000000,DGO 40 = 80000000。 结果:LPTDSR(SNVS a4)= 00000004(ET5D 设置)。无论没有跳线还是在 J20 引脚 1 (TAMPER_IN4) 和引脚 3 (TAMPER_OUT0) 之间连接绝缘跳线,读数均为 00000004。在 snvs_clear_status 107ff ff 之后,它仍然保持 00000004。因此,当循环打开时,检测结果会断言,但当循环关闭时,我始终无法获得干净的 00000000 状态。 问题: 1.对于有线跳线回路,此 EVK 上的 TAMPER_OUT0 / TAMPER_IN4 回路是否需要焊盘或上拉设置(例如 DGO tamper_pull_ctl),或者不同的 act_tamper_clk_ctl 值? 2. 当篡改条件仍然存在时,snvs_clear_status 是否应该清除 LPTDSR? 3. 是否还需要其他设置才能使循环被视为闭合? 再次感谢。 Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) 继我们上次更新此案例(项目:加密模块)之后。 我们已经和团队负责人一起审查了方案。我们验证了硬件(J20 引脚映射来自原理图 SCH-54318,引脚 1 和引脚 3 之间的跳线环)和 SNVS 配置(寄存器回读与您给出的值匹配)。我们也按照您分享的步骤进行操作,该步骤基于 i.MX7 参考。结果不变: - 活动配置:LPTDSR (SNVS a4) = 0x00000004 (ET5D),无论是否使用跳线,均无法清除。 - 无源 ET5 测试:a4 不随引脚电平变化。 我们希望您在以下三点上提供帮助: 1. 请您回答一下我们之前更新中提出的问题(被动式 ET5 启用和极性设置、DGO 设置以及如何确认 AT1 是否切换)? 2. 能否请您分享 i.MX 8DXL 网络安全参考手册(至少是 SNVS 篡改章节),或者告诉我们获取该手册的流程,包括是否需要签署保密协议? 3. 您是否有在 i.MX8DXL EVK 上验证过的 U-Boot 命令序列示例? 感谢您的支持。 Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) 你好, 请参考附件中关于 i.MX8DXL 板的已验证防篡改测试程序以及相应的有源/无源篡改日志。 您还可以参考 uboot 源代码,了解如何配置 SNVS 寄存器以实现主动和被动篡改。 https://github.com/nxp-imx/uboot-imx/blob/lf_v2026.04/arch/arm/mach-imx/imx8/snvs_security_sc_conf_8dxl_evk.h 请注意,TAMPER_IN4 映射到 ET7 而不是 ET5。当使用 TAMPER_IN4 进行被动/主动防篡改测试时,需要相应地启用 ET7 检测。 我预计 SECO/SCFW 版本不会有太大影响,请尝试提供的配置和测试步骤,看看是否对您有效。 关于如何获取网络安全参考手册,请点击以下链接提出申请。 顺祝商祺!
View full article
i.MX8DXL EVK (J20) の TAMPER_OUT0/TAMPER_IN4 アクティブタンパーループ用の正しい snvs_cfg 値 こんにちは、 U-Boot を介して、i.MX8DXL EVK (MCIMX8DXL-WEVK) 上の外部アクティブタンパーループを検証しています。 基板の回路図から、J20(TAMPERヘッダー、1x3)の配線が以下のようになっていることを確認しました。 - ピン 1 = TAMPER_IN4 (ネット SNVS.TAMPER_IN4、ボール AJ13) - ピン2 = GND - ピン3 = TAMPER_OUT0 (ネットSNVS.TAMPER_OUT0、ボールAP22) これらは専用のSNVSピンであり、TAMPER_OUT1-4/IN0-3のようにSAI2/SAI3と共有されていません。 使用可能な U-Boot コマンド: tamper_pin_cfg、snvs_cfg (サブレジスタ hp.lock、hp.secvio_intcfg、hp.secvio_ctl、lp.lock、lp.secvio_ctl、lp.tamper_filt_cfg、lp.tamper_det_cfg、lp.tamper_det_cfg2、lp.tamper_filt1_cfg、lp.tamper_filt2_cfg、lp.act_tamper1_cfg ~ lp.act_tamper5_cfg、lp.act_tamper_ctl、lp.act_tamper_clk_ctl、lp.act_tamper_routing_ctl1、lp.act_tamper_routing_ctl2 を含む)、snvs_sec_status、snvs_clear_status。 TAMPER_OUT0/TAMPER_IN4はアクティブなタンパーペアを形成するため、私の質問は次のとおりです。 1. どのlp.act_tamperN_cfgチャネル(1-5)がTAMPER_OUT0に対応しているか? 2. lp.act_tamper_routing_ctl1/routing_ctl2ルートTAMPER_OUT0のパターンの値をTAMPER_IN4と比較してチェックする価値は? 3. このチャネルのパターンクロックを可能にするlp.act_tamper_clk_ctlの値は何? 4. このチャネルのアクティブ改ざん検出を可能にするグローバルなlp.act_tamper_ctl価値は何でしょうか? 目標:J20ピン1~3間のジャンパーを閉じるとsnvs_sec_statusでセキュアと表示され、ジャンパーを開くと違反が発生するようにする。 ハードウェア上でいくつかの値を試しました(ルーティング4、5、10、さまざまなクロック/検出器設定)が、すべてSECOファームウェアによって拒否されるか(エラーres:9 / SC_ERR_PARM)、物理的にループを切り替えたときにsnvs_sec_statusのSNVS a4(1)(LPTDSR)レジスタに目に見える変化がないまま受け入れられました。 i.MX8DXLにおける外部アクティブタンパー検証に関するリファレンステスト手順またはアプリケーションノートはありますか? よろしくお願いします! Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) こんにちは、 1. lp.act_tamper1_cfg は TAMPER_OUT0 を駆動します。 2. i.MX8DXL SNVSは、5つのアクティブタンパー(AT)出力ソースと最大8つの外部タンパー(ET)入力検出器を備えています。 この設定を使用してください。 lp.act_tamper_routing_ctl1 = 0x00010000 # ET5 (TAMPER_IN4) から AT1 (TAMPER_OUT0) へ lp.act_tamper_routing_ctl2 = 0x00000000 # ET6-ET8 は使用されていません 3. その値はクロック分周器を変更します。最大周波数設定には0x00を使用してください。 lp.act_tamper_clk_ctl = 0x00000000 4. lp.act_tamper_ctl = 0x00010001 を使用します。 ビット0:AT1ENはAT1 LFSRパターンジェネレーターを有効化します。 ビット16:AT1_OUT_ENがTAMPER_OUT0パッドをAT1パターンで駆動する このプロセッサに関するアプリケーションノートはありませんが、i.MX7から参照として利用できます。 /* Config ET5 (pin in et4) <-> (pin out et5) AT 1 * /* reset */ write32(0, &svregs->lp.act_tamper_clk_ctl); write32(0, &svregs->lp.act_tamper_ctl); write32(0, &svregs->lp.tamper_det_cfg); write32(0, &svregs->lp.tamper_det_cfg2) /* Deault value for LFSR */ write32(0x84000000 | 0x00001111, &svregs->lp.act_tamper1_cfg) /* Set the clock at max freq */ write32(0x00000000, &svregs->lp.act_tamper_clk_ctl); /* ET5 (pin et4) takes ref from AT1 (pin et5) */ write32(0x00010000, &svregs->lp.act_tamper_routing_ctl1); write32(0x0, &svregs->lp.act_tamper_routing_ctl2) /* activate out pad of AT1 and enable it, AT1 output on pin et5 */ write32(0x00010000 | 0x00000001, &svregs->lp.act_tamper_ctl) /* Configuring IRQs and secviols */ write32(0x8000003f, &svregs->hp.secvio_intcfg); write32(0x4000003f, &svregs->hp.secvio_ctl); write32(0x0000003f, &svregs->lp.secvio_ctl) /* Activating detector for ET5 */ write32(0x00000000, &svregs->lp.tamper_det_cfg); write32(0x00000004, &svregs->lp.tamper_det_cfg2); よろしくお願いいたします。 Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) 設定していただきありがとうございます。電源を入れた直後に正確に適用しました。 snvs_dgo_cfg 0 0 20000000 0 80000000 0 snvs_cfg 0 8000003f 4000003f 0 3f 0 0 4 0 0 84001111 0 0 0 0 10001 0 10000 0 読み戻しはあなたの値と一致します: SNVS e8(2) = 00010000 00000000、SNVS 48(2) = 00000000 00000004、SNVS e0 = 00010001、DGO 20 = 20000000、DGO 40 = 80000000。 結果: LPTDSR (SNVS a4) = 00000004 (ET5D セット)。ジャンパーなしでも、J20ピン1(TAMPER_IN4)とピン3(TAMPER_OUT0)の間に絶縁ジャンパー接続した場合も、どちらも00000004読み取ります。snvs_clear_status 107ff ff の後も 00000004 のままです。つまり、ループを開いた状態で検出は主張しますが、ループを閉じているとクリーンな0000000状態は一度も得られません。 質問: 1.このEVKのTAMPER_OUT0 / TAMPER_IN4ループでは、ワイヤードジャンパーループの場合、パッドまたはプル設定(例えばDGO tamper_pull_ctl)や、異なるact_tamper_clk_ctl値が必要ですか? 2. 改ざん状態がまだ存在する間に、snvs_clear_statusはLPTDSRをクリアすることが期待されていますか? 3. ループが閉じていると認識されるために、他に何か設定が必要ですか? 再度、感謝します。 Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) このCASE(プロジェクト:暗号モジュール)に関する前回の報告の続きです。 チームリーダーと設定内容を確認しました。ハードウェア(回路図SCH-54318に基づくJ20ピンのマッピング、ピン1とピン3間のジャンパーループ)とSNVS構成(レジスタの読み出し値がご提示いただいた値と一致する)を確認しました。弊社も、i.MX7のリファレンスに基づいた、お客様からご提供いただいた手順に従いました。結果は変わりません。 - アクティブな構成: LPTDSR (SNVS a4) = 0x00000004 (ET5D) であり、ジャンパーの有無にかかわらずクリアされません。 - パッシブET5テスト:a4はピンレベルによって変化しません。 3点についてご協力いただけるとありがたいです。 1. 前回のアップデートで質問されたもの(パッシブET5の有効化と極性設定、DGO設定、AT1がトグルしているかどうかの確認方法)に答えていただけますか? 2. i.MX 8DXLセキュリティリファレンスマニュアル(少なくともSNVS改ざんの章)を教えていただけますか?アクセス取得のプロセスやNDAの要件を含めて教えていただけますか? 3. i.MX8DXL EVKで検証済みのサンプルU-Bootコマンドシーケンスはありますか? 再開まで今しばらくお待ちください。 Re: Correct snvs_cfg values for TAMPER_OUT0/TAMPER_IN4 active tamper loop on i.MX8DXL EVK (J20) こんにちは、 i.MX8DXLボード上での検証済み改ざんテスト手順書および対応するアクティブ/パッシブ改ざんログについては、添付資料をご参照ください。 また、SNVSレジスタがアクティブおよびパッシブタンパーでどのように設定されているかについては、ubootのソースコードを参照することもできます。 https://github.com/nxp-imx/uboot-imx/blob/lf_v2026.04/arch/arm/mach-imx/imx8/snvs_security_sc_conf_8dxl_evk.h TAMPER_IN4はET5ではなくET7にマッピングされていることにご注意ください。TAMPER_IN4 をパッシブ/アクティブ改ざんテストに使用する場合は、ET7 検出を適切に有効にする必要があります。 SECO/SCFWのバージョンが大きな影響を与えるとは考えていませんので、提供されている設定とテスト手順を試して、動作するかどうか確認してください。 セキュリティリファレンスマニュアルへのアクセス方法については、次の リンクからリクエストしてください。 よろしくお願いいたします。
View full article
S32K44とS32K388は何つの直交エンコーダ入力をサポートできますか? https://community.nxp.com/t5/S32K/Quadrature-decoder-on-S32K344/m-p/1507580 とアプリケーションノートも見つけました https://www.nxp.com/design/design-center/development-boards-and-designs/MCSPTE1AK344 しかし、どれだけの直交エンコーダをインスタンス化できるか特定に苦労しています。 理想的には、4つの独立した直交デコーダーを用意したいアプリケーションがあります。S32K344もS32K388もそれをサポートするのでしょうか? Re: How many Quadrature encoder inputs can an S32K44 and an S32K388 support? こんにちは、 S32K3ファミリには専用の直交デコーダペリフェラルは搭載されていません。その代わりに、直交デコーダ機能は、LCU、TRGMUX、およびeMIOSモジュールを組み合わせて実装されています。これはS32K3リファレンス・マニュアルおよびコミュニティThreadで参照されているモータ制御の例で説明されているアプローチです。 リファレンスマニュアルによると、インクリメンタルエンコーダの例では、単一の直交デコーダ実装には2つの論理セル(LC0とLC1)が必要です。S32K344およびS32K388デバイスは、2つのLCUインスタンスを提供します。 しかし、モータ制御チームにもフィードバックを求めました。 できるだけ早く最新情報をお知らせします。 よろしくお願いいたします。 ピーター Re: How many Quadrature encoder inputs can an S32K44 and an S32K388 support? こんにちは、 アップデート: NXPのサンプルで説明されている実装に基づくと、S32K344とS32K388の両方において、実用的な限界は3つの独立した直交デコーダとなる。このソリューションは以下を消費します: TRGMUX入力ピン6本(×A/Bエンコーダ入力3本)、 MCB動作可能な6つのeMIOSチャネル(例:eMIOS0 CH1-CH6)、 3つのロジックセル(1つのLCUインスタンス)。 したがって、示されたアーキテクチャを用いて3つのエンコーダインスタンスを直接実装することができます。 4つ目のエンコーダーは、同じリソースマッピングでは直接サポートされていません。主な制約は、MCBモードで動作する適切なeMIOSチャネルの利用可能性と、TRGMUXおよびLCUを通じた必要な信号ルーティングの提供です。 残ったG型チャネル(例:CH7)とXチャネルを組み合わせ、LCU出力を外部のデバイスピン経由でeMIOS X入力にルーティングします。例えば、S32K344ではPTB2をLCU1_OUT3とeMIOS0_CH8_Xの両方として設定でき、実質的に外部ループバックパスを作成できます。しかし、この方法は追加のパッケージピンを消費し、標準的な実証された解決策には含まれていません。 その結果、3つの直交デコーダは容易に実現可能ですが、4つ目のデコーダは代替のルーティング方式やカスタムの回避策が必要であり、全体のピンおよびペリフェラルのリソース使用量と照らして評価する必要があります。 よろしくお願いいたします。 ピーター Re: How many Quadrature encoder inputs can an S32K44 and an S32K388 support? 私のアプリケーションでは、タイマーを使ってカウントするeMIOSベースの解釈はあまり必要ありません。エンコーダーカウントがあれば十分です。8つのTRGMUX入力と4つのLCUセルを組み合わせて、単にカウントダウンするだけのものをサポートする構成はありますか?
View full article
S32 Design Studio version v.3.5 license Hello NXP Support Team, My S32 Design Studio version v.3.5 license expired on Oct 19, 2026. Could you please help extend the license? Activation Code: 30E0-0F7D-F883-9AFB Thank you for your support. Eclipse IDE Usage and Settings
View full article
Request for Hall Sensor-Based Motor Control Reference Firmware and Training Material Dear NXP Team, We are working with a customer developing an air-cooling system using a 24 V, 3.47 A motor. We have successfully completed a demonstration using sensorless FOC-based motor control. The customer now wants to integrate Hall sensors for rotor position detection using the FRDM-MCXA156 EVK (control card) with the FRDM-MC-LVPMSM (power card). Could you please suggest a suitable reference firmware or application example for implementing Hall sensor-based motor control on this hardware combination? I reviewed the Hall-sensored BLDC example for the LPC55S36 available on GitHub. However, I could not locate the corresponding FreeMASTER configuration file (.pmpx) for this example. Could you please help us with the following? Reference firmware for Hall sensor integration on the FRDM-MCXA156 with the FRDM-MC-LVPMSM. The corresponding FreeMASTER project/configuration file (.pmpx), if available. Relevant application notes, training materials, or implementation guides for integrating Hall sensor feedback into an existing sensorless FOC project Based on FRDM-MCXA156 EVK. Your technical guidance and recommendations would be greatly appreciated. Best Regards  Darshan J L  WPG India  Board Design Development Board FRDM-Training Hands-On Training MCXA Motor Control Re: Request for Hall Sensor-Based Motor Control Reference Firmware and Training Material Hello @Darshan_J_L , Thanks for your post. The MCUXpresso SDK includes multiple motor control example projects. You can find more information for FRDM-MCXA156 on the following page. MCUXpresso SDK for Motor Control | NXP Semiconductors.   The pmsm_enc example for the FRDM-MCXA156 + FRDM-MC-LVPMSM combination is in the SDK v25.06. It supports sensorless and sensored FOC and includes the pmsm_float_enc.pmpx FreeMASTER project. You can refer to UG10247.pdf for more details.   About the corresponding FreeMASTER configuration file (.pmpx) for LPC55S36 demo, you can find it here: an-lpc55s36_mc_bldc_whall/LPC5536_mc_bldc_wHall.pmpx at main · nxp-appcodehub/an-lpc55s36_mc_bldc_whall · GitHub   Hope it helps. Please let me know if you still have any other questions.   BR Celeste    
View full article
S32 Design Studio for Power Architecture 2017.R1 はライセンス満了後に「ライセンス不足」と表示します 私はWindowsの S32 Design Studio for Power Architecture 2017.R1 を使っています 。IDEでは「 ライセンス不足」 と表示 され、ライセンスは期限切れのようです。 アクティベーション | インストール | ライセンス | インストーラーのダウンロード
View full article
S32 Design Studio for Power Architecture 2017.R1 shows “License missing” after license expired I am using S32 Design Studio for Power Architecture 2017.R1 on Windows. The IDE now shows “License missing”, and it seems the license has expired. Activation | Installation | Licensing | Installer Download
View full article
MBDのキャリアアドバイスが必要です 私は5年前に自動車ソフトウェアのモデルベースデザインでキャリアをスタートしましたが、今はとても単調でツール面での学習もあまり感じていません。この状況にどう対処しましたか? 私が月に関わる仕事の量は、Simulinkのモデリングが10%、モデルのテストと報告が50%、残りは手動のコンプライアンス文書作成です。
View full article
IMX8mp gstreamer vpuenc_h264 set profile and level We are using an IMX8mp on a custom board and are using the NXP Yocto hardknott as the base platform. We are compressing/encoding a camera stream to H264/MP4 using the hardware H264 encoders vpuenc_h264 plugin. A basic example is like: gst-launch-1.0 -v videotestsrc num-buffers=100 ! video/x-raw,width=720,height=576,framerate=25/1 ! vpuenc_h264 ! video/x-h264,profile=main ! h264parse ! mp4mux fragment-duration=10 ! filesink location=/tmp/Video1.mp4 However it appears that the vpuenc_h264 igores the profile= and level= stream parameters. Looking at the imx-gst1.0-plugin code there appears to be no ability to set the H264 profile. Is there any ability to set the H264 hardware encoders profile using gstreamer parameters ? I have seen some things on the Internet that appear to suggest you have to hardcode this setting into the VPU's hardware registers, is this the case ? I note that an alternative (communit?) gstreamer1.0-plugins-imx plugin appears to have support for profile and level. I assume this cannot be used with the softwatre modules/kernel in the NXP fsl-nxp-bsp-hardknott Yocto build ? Re: IMX8mp gstreamer vpuenc_h264 set profile and level Thanks for the corroborating observations. I was similarly seeing v4l2-ctl -d /dev/video1 --all  being deceptive about these encoder parameters, falsely implying they could be changed and that "high" is the default profile Re: IMX8mp gstreamer vpuenc_h264 set profile and level Ok, thanks for the pointer. Information for other users from what I have gathered searching the Internet and looking at the code as there is, typically, lack of NXP documentation available: The H264 encoding profile is hard coded in vpu_wrapper to Baseline. You can change this to Mainline for example (rebuilding vpu_wrapper) and the H264 streams are marked as Mainline. If the actual compression is any different I don't know. The level is set by vpu_wrapper based on the resolution of the video. Not sure if this has any affect other than tagging the H264 stream with this level. It looks like older versions of vpu_wrapper had a bug setting this level incorrectly. If you don't specify a bitrate, at least at the gstreamer vpuenc_h264 level then the resulting stream will have a very low bit rate and thus be very low quality (at least with our video streams (generally static picture with occasional movements)). If not setting the bitrate ends up with the H264 encoder using some variable bitrate algorithm I don't know. Feedback to NXP: There needs to be documentation on the profile, level and bitrate of the H264 encoder, maybe in "i.MX Linux Reference Manual" or other places on this. The NXP gstreamer vpuenc_h264 code should mention this in the code when listing information on the module with gst-inspect-1.0 as a lot of end users will be working at this level. Re: IMX8mp gstreamer vpuenc_h264 set profile and level Hi @TerryBarnaby1, I hope you are doing well   Please find the information related to the same in the below thread. https://community.nxp.com/t5/ i-MX-Processors/Encoding-H- 264-amp-H-265-using-vpu- wrapper-h/m-p/1347610   I hope this information helps you.   Thanks & Regards, Dhruvit Vasavada Re: IMX8mp gstreamer vpuenc_h264 set profile and level in a similar vein, the device seems to falsely advertise force_key_frame (V4L2_BUF_FLAG_KEYFRAME) being possible, when in reality it seems to be completely ignored by the VPU when I send it Re: IMX8mp gstreamer vpuenc_h264 set profile and level Relatedly, I just found another case where NXP lies to us: video_peak_bitrate is completely ignored!
View full article
imx8MP gstreamer vpuenc_h264 设置我的和等级 我们在定制主板上使用 imx8MP,并使用恩智浦的 Yocto hardknott 作为基础平台。 我们正在使用硬件 H264 编码器 vpuenc_h264 插件将摄像机数据流压缩/编码为 H264/MP4。 一个基本的例子是这样的 gst-launch-1.0-v videotestsrc num-buffers=100 !video/x-raw,width=720,height=576,framerate=25/1 !vpuenc_h264 !video/x-h264,profile=main!h264parse !mp4mux fragment-duration=10 !filesink location=/tmp/Video1.mp4 但是,看来 vpuenc_h264 忽略了 profile= 和 level= 直播参数。查看 imx-gst1.0-plugin代码似乎无法设置 H264 我的。 是否可以使用 gstreamer 参数设置 H264 硬件编码器我的? 我在互联网上看到的一些信息似乎表明,必须将此设置硬编码到 VPU 的硬件寄存器中,情况是否如此? 我注意到有一个替代方案(社区?)gstreamer1.0-plugins-imx插件似乎支持我的和级别。我想这不能与恩智浦 fsl-nxp-bsp-hardknott Yocto 版本中的软件模块/内核一起使用? Re: IMX8mp gstreamer vpuenc_h264 set profile and level 谢谢你的佐证意见。 我同样看到 v4l2-ctl -d /dev/video1 --all 对这些编码器参数具有欺骗性,错误地暗示它们可以更改,而且“high”是默认我的 Re: IMX8mp gstreamer vpuenc_h264 set profile and level 好的,谢谢你的指点。 我通过互联网搜索和查看代码为其他用户提供的信息,因为恩智浦通常缺乏可用的文档: H264 编码我的在 vpu_wrapper 中硬编码为基线。例如,您可以将其更改为 Mainline(重建 vpu_wrapper),这样 H264 数据流就会被标记为 Mainline。我不知道实际压缩效果是否有任何不同。 级别由 vpu_wrapper 根据视频分辨率设置。除了用该级别标记 H264 数据流外,我不确定这是否有其他影响。看起来旧版本的 vpu_wrapper 在设置此级别时存在错误。 如果不指定比特率,至少在 gstreamer vpuenc_h264 层级不指定比特率,那么产生的数据流将比特率很低,因此质量也很低(至少对于我们的视频流来说是这样(一般是静态画面,偶尔有动作))。如果不设置比特率,H264 编码器就会使用一些我不知道的可变比特率算法。 反馈给恩智浦: 需要有关于 H264 编码器的我的、级别和比特率的文档,可能在 "i.MX Linux 参考手册" 或有关此内容的其他地方。 恩智浦 gstreamer vpuenc_h264 代码在列出使用 gst-inspect-1.0 的模块信息时,应在代码中提及这一点,因为很多最终用户将在这一级别工作。 Re: IMX8mp gstreamer vpuenc_h264 set profile and level 嗨,@TerryBarnaby1、 希望你一切顺利   请在以下主题中查找相关信息。 https://community.nxp.com/t5/ i-MX-Processors/Encoding-H- 264-amp-H-265-using-vpu- wrapper-h/m-p/1347610   希望这些信息对您有所帮助。   谢谢& 、 德鲁维特-瓦萨瓦达 Re: IMX8mp gstreamer vpuenc_h264 set profile and level 同样,该设备似乎错误地宣传 f orce_key_frame (V4L2_BUF_ FLAG_KEYFRAME) 是可能的,而实际上,当我发送它时 VP U 似乎完全忽略了它 Re: IMX8mp gstreamer vpuenc_h264 set profile and level 另外,我刚刚发现 NXP 对我们撒谎的另一个例子:video_peak_bitrate 完全被忽略了!
View full article
恢复变砖的 imxrt1024 板 我有一块板彻底坏了,我也尝试通过以下步骤恢复板。 1. 将启动模式更改为串行下载器模式。 2. 通过 UART 擦除芯片,然后刷写一个好的可启动映像(led_blinky)。 3. 再次更改启动模式,但设备仍未恢复。 使用 J-Link Commander 时出现此问题 'loadbin':对 MCU 执行隐式 RESET 和停止操作。 ResetTarget() 开始 核心程序在验证闪存映像时没有停止运行。推测是闪存设置错误。 手动停止目标。 RESETTarget() 结束 - 耗时 329 毫秒 已执行设备特定 RESET。 AfterResetTarget() 开始 MPU 已启用,现已禁用。 AfterResetTarget() 结束 - 耗时 2.92 毫秒 正在下载文件 [C:\M7Binaties Prep\Secure 启动 extebded implementation\M7SafetBoot+Combined_SignedPackage.bin]... 闪存编程时出错:编程失败。 此外还有一点需要补充说明; 1. 将设备置于串口下载器模式。 2. 闪烁 LED 闪烁图像。 3. 仅以串行模式读取映像 4. 我可以看到二进制文件已成功刷写。 之后我进入了内部启动模式 5. 使用 J_Flash 读取数据,但现在整个闪存区域都为 0。 现在该怎么办?为什么我无法恢复它? Re: Recover bricked imxrt1024 board 你好@Abhay2080 , 为了更好地为您提供支持,请您提供以下详细信息? 您目前使用的是定制板还是我们的 EVK? LED闪烁示例在闪烁之前是否经过修改? 这台设备之前有过熔丝烧断的情况吗? 查看 J-Link 日志,似乎您正在尝试刷写已签名的镜像。这块板之前是否启用过安全启动功能? 您目前是否使用安全配置工具来写入映像并执行批量擦除? 请您使用“连接目标处理器”功能测试调试器连接,并将结果告知我。 BR 哈比卜 Re: Recover bricked imxrt1024 board 你好@Abhay2080 , 由于启用了 HAB,因此必须使用私钥对映像进行签名,并且必须在程序映像中包含相应的公钥,如参考手册第 9.2 章“概述”中所述。如果参考哈希值与闪存中软件计算出的当前哈希值之间的比较不匹配,或者映像根本没有签名,则身份验证将失败,设备将无法启动,如 RM 的 7.3.1 章“HAB 流程”中所述。 请您确认一下,您使用的 LED 指示灯是否已使用正确的密钥签名?另外,请告诉我您签名此镜像的步骤以及您如何启用 HAB? 另外,您能否澄清一下,该错误是否在您启用 HAB 后立即开始出现? BR 哈比卜 Re: Recover bricked imxrt1024 board 1. 定制板。 2. 没有修改任何 LED 闪烁功能,即使我在我的工作项目中也尝试过。 3. 是的,该设备已启用 HAB 功能。SEC_CONFIG 和 SRK_HASH 已熔丝 4. 是的,HAB 已启用。 5. 是的,使用了SPT。 6. 是的,我能够连接到目标系统 Re: Recover bricked imxrt1024 board 你好@Habib_MS 我明白由于启用了 HAB,只有签名镜像才能启动,但问题是我无法刷入任何镜像。 另外,我观察到,当我使用 SPT 擦除闪存时,即使我选择了整个 4MB 闪存区域,但在日志中我得到的却是“检测到的可擦除块大小:0x1000”。请查看附件截图。 此外,我还尝试刷入了带有签名的 LED 闪烁图像,但板仍然无法恢复。 Re: Recover bricked imxrt1024 board 你好@Abhay2080 , 此可擦除块大小定义了最小可擦除块大小。如果内存使用 FCB,则从 FCB 读取此值;如果内存不使用 FCB,则从启动内存配置读取此值。如闪存编程器部分所述。SPT 会擦除整个内存范围内的所有扇区,因此整个 4 MB 的闪存都会被擦除。 为了帮助确定问题是否与 J-Flash 编程算法有关,请您按照“使用预构建的 .s19 版本启动认证 (HAB) 映像部分中提到的步骤进行操作。请用正确的密钥对名为“mimxrt1024evk_iled_blinky_flash.s19”的文件进行签名,并告知我结果? BR 哈比卜 Re: Recover bricked imxrt1024 board 嗨@Habib_MS ,正如您所说,我尝试了 iled_blink.s19 签名镜像并写入了该镜像。以下是我采取的步骤。 我写入了镜像文件,但仍然无法使用 J-Flash 烧录二进制文件。
View full article