Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
恢复出厂RESET/批量擦除 LPC55S28 我使用的是LPC55S28微控制器。对于生产单元,我们希望禁用 SWD/JTAG 访问,以防止从 MCU 中读取内存。但是,我们需要一种方法来恢复发生这种情况时的设备。通常情况下,我们会执行批量擦除命令来将MCU恢复出厂设置,从而恢复访问权限。 有了 LPC55S28 安全引导加载程序、CMPA/CFPA 和密钥库/PFR,我不知道该如何操作。 问题: 1.如果我启用了 FA_ME_CMD_EN,但禁用了 ISP_CMD_EN、ISP_CMD_EN、TAPEN、DBGEN 和 NIDEN,这样可以吗?我还能将MCU恢复出厂设置吗?包括 CMPA、CFPA、PFR 等吗? 2. 如果只启用了 FA_ME_CMD_EN,如何通过 SWD 执行完整的出厂 RESET 操作?我有一个JLINK调试器。 我尝试了下面我编写的 JLINK 脚本,但它无法清除 CMPA: 选择接口 SWD 速度 1000 设备 LPC55S28 连接 // 连接时发送调试邮箱激活信息 WriteAP 0x01000000 0x00000001 WriteAP 0x01000004 0x00000001 睡眠100 读取AP 0x01000000 RESET 出口 以下是我目前的 CMPA 设置,所有功能都将保持启用状态,直到我弄清楚如何进行恢复出厂设置/批量擦除。但我尝试的所有方法似乎都无法改变CMPA的设置。   # --------------------------------------------------====== DCFG_CC_SOCU_PIN [可选的] ====----------------------------------------   # 描述:偏移量:0x00000010,宽度:32 位;SoC 特定用途的设备配置凭证约束   # 已置顶。   # PIN 和 DFLT 位组合及其产生的限制级别:   # - PIN=1,DFLT=1:限制级别 0。始终允许访问子功能域。此设置适用于模块   # 用例场景:在最终部署之前,将使用 DCFG_CC_SOCU_NS 来定义进一步的访问限制   产品编号。   # - PIN=0,DFLT=0:限制级别 1。启动时禁用对子功能域的访问。但可以启用访问权限。   # 通过提供适当的调试凭据 (DC) 证书,完成调试身份验证过程。   # - PIN=0,DFLT=1:非法设置。如果选择此设置,部件可能会锁定。   # - PIN=1,DFLT=0:限制级别 3。对子功能域的访问已被永久禁用,且无法恢复。   # 设置提供最高级别的限制。   DCFG_CC_SOCU_PIN :     # -------------------------------------------===== NIDEN [可选的] =====-------------------------------------------     # 描述:偏移量:0 字节,宽度:1 字节,非安全非侵入式调试启用     # - USE_DAP,(0):使用 DAP 启用     # - FIXED_STATE,(1):固定状态     # 可选选项:     NIDEN :固定状态     # -------------------------------------------===== DBGEN [可选的] =====-------------------------------------------     # 说明:偏移量:1b,宽度:1b,非安全调试启用     # - USE_DAP,(0):使用 DAP 启用     # - FIXED_STATE,(1):固定状态     # 可选选项:     DBGEN :固定状态     # ---------------------------------------------------===== TAPEN [可选的] ====----------------------------------------------------     # 说明:偏移量:4 位,宽度:1 位,JTAG TAP 使能     # - USE_DAP,(0):使用 DAP 启用     # - FIXED_STATE,(1):固定状态     # 可选选项:     TAPEN :固定状态     # --------------------------------------------------===== ISP_CMD_EN [可选的] ====--------------------------------------------------------     # 描述:偏移量:6 位,宽度:1 位,ISP 启动命令启用     # - USE_DAP,(0):使用 DAP 启用     # - FIXED_STATE,(1):固定状态     # 可选选项:     ISP_CMD_EN :固定状态     # --------------------------------------------------====== FA_ME_CMD_EN [可选的] ====----------------------------------------     # 说明:偏移量:7 位,宽度:1 位,故障分析/批量擦除命令启用     # - USE_DAP,(0):使用 DAP 启用     # - FIXED_STATE,(1):固定状态     # 可选选项:     FA_ME_CMD_EN :固定状态     # ----------------------------------------===== UUID_CHECK [可选的] =====-----------------------------------------     # 描述:偏移量:15b,宽度:1b,在调试身份验证期间强制执行 UUID 匹配。     # - 已禁用, (0): 已禁用     # - 已启用,(1):已启用     可选选项:     UUID_CHECK :已禁用   # --------------------------------------===== DCFG_CC_SOCU_DFLT [可选的] =====--------------------------------------   # 描述:偏移量:0x00000014,宽度:32 位;SoC 特定设备配置凭据约束,用于调试   # 筛选。   # PIN 和 DFLT 位组合及其产生的限制级别:   # - PIN=1,DFLT=1:限制级别 0。始终允许访问子功能域。此设置适用于模块   # 用例场景:在最终部署之前,将使用 DCFG_CC_SOCU_NS 来定义进一步的访问限制   产品编号。   # - PIN=0,DFLT=0:限制级别 1。启动时禁用对子功能域的访问。但可以启用访问权限。   # 通过提供适当的调试凭据 (DC) 证书,完成调试身份验证过程。   # - PIN=0,DFLT=1:非法设置。如果选择此设置,部件可能会锁定。   # - PIN=1,DFLT=0:限制级别 3。对子功能域的访问已被永久禁用,且无法恢复。   # 设置提供最高级别的限制。   DCFG_CC_SOCU_DFLT :     # -------------------------------------------===== NIDEN [可选的] =====-------------------------------------------     # 描述:偏移量:0 字节,宽度:1 字节,非安全非侵入式调试固定状态     # - 已禁用, (0): 已禁用     # - 已启用,(1):已启用     可选选项:     NIDEN :已启用     # -------------------------------------------===== DBGEN [可选的] =====-------------------------------------------     # 描述:偏移量:1b,宽度:1b,非安全调试固定状态     # - 已禁用, (0): 已禁用     # - 已启用,(1):已启用     可选选项:     DBGEN :已启用     # ---------------------------------------------------===== TAPEN [可选的] ====----------------------------------------------------     # 描述:偏移量:4位,宽度:1位,JTAG TAP 固定状态     # - 已禁用, (0): 已禁用     # - 已启用,(1):已启用     可选选项:     TAPEN :已启用     # --------------------------------------------------===== ISP_CMD_EN [可选的] ====--------------------------------------------------------     # 描述:偏移量:6 位,宽度:1 位,ISP 启动命令固定状态     # - 已禁用, (0): 已禁用     # - 已启用,(1):已启用     可选选项:     ISP_CMD_EN :已启用     # --------------------------------------------------====== FA_ME_CMD_EN [可选的] ====----------------------------------------     # 描述:偏移量:7 位,宽度:1 位,故障分析/批量擦除命令固定状态     # - 已禁用, (0): 已禁用     # - 已启用,(1):已启用     可选选项:     FA_ME_CMD_EN :已启用   # ----------------------------------------===== 供应商使用情况 [可选的] =====-----------------------------------------   # 描述:偏移量:0x00000018,宽度:32 位;供应商用途   供应商使用情况:     # ---------------------------------------===== 供应商使用情况 [可选的] =====----------------------------------------     # 说明:偏移量:16 位,宽度:16 位,DAP 中定义的供应商使用字段的高 16 位。低 16 位来自     # 客户字段区域。     供应商使用量: 0   # ---------------------------------------===== 安全启动配置 [可选的] =====---------------------------------------   # 描述:偏移量:0x0000001C,宽度:32 位;安全启动配置   安全启动配置:     # -------------------------------------------===== RSA4K [可选的] =====-------------------------------------------     # 说明:偏移量:0b,宽度:2b,选择最小密钥长度。要强制使用 RSA4096,请将 0b11 值设置为     # 建议仅允许 RSA4096 密钥。     # - RSA2048,(0):RSA2048 或更高版本可用于镜像签名。只有 RSA2048 可用作调试密钥。     # - RSA4096_0, (1): 仅 RSA4096 密钥可用于映像签名和调试身份验证。     # - RSA4096_1, (2): 仅 RSA4096 密钥可用于映像签名和调试身份验证。     # - RSA4096_2, (3): 仅 RSA4096 密钥可用于映像签名和调试身份验证。     可选方案:     RSA4K : RSA2048     # -------------------------------------===== DICE_INC_NXP_CFG [可选的] =====--------------------------------------     # 说明:偏移量:2b,宽度:2b,在 DICE 计算中包含 NXP 区域。     # - NOT_INCLUDE,(0):未包含     # - INCLUDE_0, (1): 已包含     # - INCLUDE_1, (2): 已包含     # - INCLUDE_2,(3):已包含     可选选项:     DICE_INC_NXP_CFG : NOT_INCLUDE     # ---------------------------------------===== DICE_CUST_CFG [可选的] =====---------------------------------------     # 说明:偏移量:4b,宽度:2b,在 DICE 计算中包含客户工厂区域(包括键)。     # - NOT_INCLUDE,(0):未包含     # - INCLUDE_0, (1): 已包含     # - INCLUDE_1, (2): 已包含     # - INCLUDE_2,(3):已包含     可选选项:     DICE_CUST_CFG : NOT_INCLUDE     # -----------------------------------------===== SKIP_DICE [可选的] =====-----------------------------------------     # 说明:偏移量:6 位,宽度:2 位,跳过 DICE 计算     # - 启用,(0): 启用 DICE     # - DISABLE_0, (1): 禁用 DICE     # - DISABLE_1, (2): 禁用 DICE     # - DISABLE_2, (3): 禁用 DICE     可选选项:     SKIP_DICE :禁用_0     # --------------------------------------===== TZM_IMAGE_TYPE [可选的] =====---------------------------------------     # 描述:偏移量:8 位,宽度:2 位,TrustZone-M 模式     # - 头部,(0):TZ-M 图像模式取自应用程序图像头部     # - 已禁用,(1): TZ-M 已禁用映像,启动到非安全模式     # - 已启用,(2): 启用 TZ-M 的映像,启动到安全模式     # - 预设模式 (3):启用 TZ-M 的映像,带有 TZ-M 预设,启动到安全模式,TZ-M 由来自以下数据预配置:     # 应用程序图像头     # 可选选项:     TZM_IMAGE_TYPE :头部     # ---------------------------------------===== BLOCK_SET_KEY [可选的] =====---------------------------------------     # 描述:偏移量:10 位,宽度:2 位,块 PUF 密钥代码生成     # - 允许 (0): 允许生成 PUF 密钥代码     # - DISABLE_0, (1): 禁用 PUF 密钥代码生成     # - DISABLE_1, (2): 禁用 PUF 密钥代码生成     # - DISABLE_2, (3): 禁用 PUF 密钥代码生成     可选选项:     BLOCK_SET_KEY :允许     # ---------------------------------------===== BLOCK_ENROLL [可选的] =====----------------------------------------     # 描述:偏移量:12 位,宽度:2 位,阻止 PUF 注册     # - ALLOW, (0): 允许 PUF 注册操作     # - DISABLE_0, (1): 禁用 PUF 注册操作     # - DISABLE_1, (2): 禁用 PUF 注册操作     # - DISABLE_2, (3): 禁用 PUF 注册操作     可选选项:     BLOCK_ENROLL :允许     # ------------------------------------===== DICE_INC_SEC_EPOCH [可选的] =====-------------------------------------     # 描述:偏移量:14 位,宽度:2 位,在 DICE 中包含网络安全 EPOCH     DICE_INC_SEC_EPOCH : 0     # ----------------------------------------===== SEC_BOOT_EN [可选的] =====----------------------------------------     # 描述:偏移量:30 位,宽度:2 位,启用安全启动     # - 禁用,(0):纯图像(带或不带 CRC 的内部闪存)     # - ENABLE_0, (1): 启动已签名镜像。(内部闪存,RSA 签名)     # - ENABLE_1, (2): 启动已签名镜像。(内部闪存,RSA 签名)     # - ENABLE_2, (3): 启动已签名镜像。(内部闪存,RSA 签名)     可选选项:<禁用, 启用_0, 启用_1, 启用_2>     SEC_BOOT_EN :启用_0 Re: Factory Reset/Mass Erase LPC55S28 你好@guitardenver 谢谢你的提问。更多信息请参考下方帖子。 [LPC55]:禁用 ISP 和 SWD 以实现代码保护 如果这未能完全满足您的需求,请随时与我联系。我很乐意提供进一步的帮助。   BR 爱丽丝 Re: Factory Reset/Mass Erase LPC55S28 爱丽丝, 谢谢你提供的链接,很有帮助。我还有些问题。从你发来的链接来看,我想我明白了如何禁用 ISP 和 SWD。但我的主要问题是如何恢复访问权限并将所有内容(包括 CMPA、CFPA 等)恢复到出厂默认设置。我觉得我已经弄坏了好几台设备,需要帮助防止更多设备变砖。如何才能彻底 RESET?假设我没有设置任何阻止这种情况发生的选项。 我想要做的是: 1. 使用 ROM 引导加载程序执行 .sb 操作(SB2.1)文件更新。因此,可以通过USB使用ROM引导加载程序进行安全/经过身份验证的固件更新。 2. 禁用通过 SWD 或 JTAG 读取和写入 MCU 存储器的功能。我没有使用TrustZone,也没有在PFR中使用任何会锁定对任何应用程序闪存访问的特殊设置。 3. USB引导加载程序不应该能够随意读取/写入闪存/内存。就像我们不希望任何人通过 SWD 或 JTAG 对内存进行读写操作一样。但引导加载程序仍然应该能够执行安全的 .sb 操作。文件更新是通过USB接口还是通过我自己的应用程序代码进行的。 4. 一旦 SWD/JTAG 被禁用/锁定,我希望能够恢复对 SWD 的访问,并将 CMPA、CFPA、PFR 等完全擦除/恢复出厂设置,以便重新开始。这可以通过SWD批量擦除完成吗?还是可以通过我制作的特殊SB2.1文件完成? 问题: 1. SWD DebugMailbox 批量擦除是否也会擦除 CMPA、CFPA、密钥库等?如果NIDEN 和 DBGEN 设置位于 CMPA 中,并且 MassErase 没有擦除 CMPA,那么如何恢复 NIDEN 和 DBGEN 访问权限? 2. 如果我禁用 NIDEN、DEBGEN、TAPEN、ISP_CMD_EN。启用 FA_ME_CMD_EN 是否能达到我想要的效果?锁定MCU,但可以通过擦除所有内容完全恢复吗?您推荐使用哪些设置或方法? 我还联系了 SEGGER,询问他们有哪些具体的工具/示例可以通过 DAP 将 LPC55S28 设备恢复到出厂默认设置。如果我能用JLINK脚本来实现这个功能,那也行。 感谢您的帮助!
View full article
Factory Reset/Mass Erase LPC55S28 I am using the LPC55S28 MCU. For production units, we want to disable SWD/JTAG access so memory can not be read out of the MCU. However, we need a way to recover a unit once this happens. Usually, we do a Mass Erase command to factory reset the MCU to recover access.  With the LPC55S28 secure bootloader and CMPA/CFPA and the KeyStore/PFR, I am not sure how to do this.  Questons: 1. If I have FA_ME_CMD_EN=ENABLED, but then ISP_CMD_EN, ISP_CMD_EN, TAPEN, DBGEN and NIDEN DISABLED, is that ok. Can I still factory reset the MCU? Including the CMPA, CFPA, PFR, etc? 2. How can I do a complete factory reset via SWD if only the FA_ME_CMD_EN is enabled? I have a JLINK debugger.  I have tried the below JLINK script that I wrote, which does not clear the CMPA: SelectInterface SWD Speed 1000 Device LPC55S28 Connect // Send Debug Mailbox Activation while connected WriteAP 0x01000000 0x00000001 WriteAP 0x01000004 0x00000001 Sleep 100 ReadAP 0x01000000 Reset Exit Below are my CMPA settings right now, which keeps everything enabled until I figure out how to do a factory reset/mass erase. But everything I try seems to still keep the CMPA settings.    # --------------------------------------===== DCFG_CC_SOCU_PIN [Optional] =====---------------------------------------   # Description: Offset: 0x00000010, Width: 32b; Device Configuration Credential Constraints for SoC specific Use   # Pinned.   # Combinations of PIN and DFLT bits and resulting restriction level:   # - PIN=1,DFLT=1: Restriction level 0. Access to the sub-domain is always enabled. This setting is provided for module   # use case scenario where DCFG_CC_SOCU_NS would be used to define further access restrictions before final deployment   # of the product.   # - PIN=0,DFLT=0: Restriction level 1. Access to the sub-domain is disabled at startup. But the access can be enabled   # through debug authentication process by providing appropriate Debug Credential (DC) certificate.   # - PIN=0,DFLT=1: Illegal setting. Part may lock-up if this setting is selected.   # - PIN=1,DFLT=0: Restriction level 3. Access to the sub-domain is permanently disabled and can't be reversed. This   # setting offers the highest level of restriction.   DCFG_CC_SOCU_PIN:     # -------------------------------------------===== NIDEN [Optional] =====-------------------------------------------     # Description: Offset: 0b, Width: 1b, Non Secure non-invasive debug enable     # - USE_DAP, (0): Use DAP to enable     # - FIXED_STATE, (1): Fixed state     # Possible options:     NIDEN: FIXED_STATE     # -------------------------------------------===== DBGEN [Optional] =====-------------------------------------------     # Description: Offset: 1b, Width: 1b, Non Secure debug enable     # - USE_DAP, (0): Use DAP to enable     # - FIXED_STATE, (1): Fixed state     # Possible options:     DBGEN: FIXED_STATE     # -------------------------------------------===== TAPEN [Optional] =====-------------------------------------------     # Description: Offset: 4b, Width: 1b, JTAG TAP enable     # - USE_DAP, (0): Use DAP to enable     # - FIXED_STATE, (1): Fixed state     # Possible options:     TAPEN: FIXED_STATE     # ----------------------------------------===== ISP_CMD_EN [Optional] =====-----------------------------------------     # Description: Offset: 6b, Width: 1b, ISP Boot Command enable     # - USE_DAP, (0): Use DAP to enable     # - FIXED_STATE, (1): Fixed state     # Possible options:     ISP_CMD_EN: FIXED_STATE     # ---------------------------------------===== FA_ME_CMD_EN [Optional] =====----------------------------------------     # Description: Offset: 7b, Width: 1b, Fault Analysis/Mass Erase Command enable     # - USE_DAP, (0): Use DAP to enable     # - FIXED_STATE, (1): Fixed state     # Possible options:     FA_ME_CMD_EN: FIXED_STATE     # ----------------------------------------===== UUID_CHECK [Optional] =====-----------------------------------------     # Description: Offset: 15b, Width: 1b, Enforce UUID match during Debug authentication.     # - DISABLED, (0): Disabled     # - ENABLED, (1): Enabled     # Possible options:     UUID_CHECK: DISABLED   # --------------------------------------===== DCFG_CC_SOCU_DFLT [Optional] =====--------------------------------------   # Description: Offset: 0x00000014, Width: 32b; Device Configuration Credential Constraints for SoC specific Use Debug   # Filter.   # Combinations of PIN and DFLT bits and resulting restriction level:   # - PIN=1,DFLT=1: Restriction level 0. Access to the sub-domain is always enabled. This setting is provided for module   # use case scenario where DCFG_CC_SOCU_NS would be used to define further access restrictions before final deployment   # of the product.   # - PIN=0,DFLT=0: Restriction level 1. Access to the sub-domain is disabled at startup. But the access can be enabled   # through debug authentication process by providing appropriate Debug Credential (DC) certificate.   # - PIN=0,DFLT=1: Illegal setting. Part may lock-up if this setting is selected.   # - PIN=1,DFLT=0: Restriction level 3. Access to the sub-domain is permanently disabled and can't be reversed. This   # setting offers the highest level of restriction.   DCFG_CC_SOCU_DFLT:     # -------------------------------------------===== NIDEN [Optional] =====-------------------------------------------     # Description: Offset: 0b, Width: 1b, Non Secure non-invasive debug fixed state     # - DISABLED, (0): Disabled     # - ENABLED, (1): Enabled     # Possible options:     NIDEN: ENABLED     # -------------------------------------------===== DBGEN [Optional] =====-------------------------------------------     # Description: Offset: 1b, Width: 1b, Non Secure debug fixed state     # - DISABLED, (0): Disabled     # - ENABLED, (1): Enabled     # Possible options:     DBGEN: ENABLED     # -------------------------------------------===== TAPEN [Optional] =====-------------------------------------------     # Description: Offset: 4b, Width: 1b, JTAG TAP fixed state     # - DISABLED, (0): Disabled     # - ENABLED, (1): Enabled     # Possible options:     TAPEN: ENABLED     # ----------------------------------------===== ISP_CMD_EN [Optional] =====-----------------------------------------     # Description: Offset: 6b, Width: 1b, ISP Boot Command fixed state     # - DISABLED, (0): Disabled     # - ENABLED, (1): Enabled     # Possible options:     ISP_CMD_EN: ENABLED     # ---------------------------------------===== FA_ME_CMD_EN [Optional] =====----------------------------------------     # Description: Offset: 7b, Width: 1b, Fault Analysis/Mass Erase Command fixed state     # - DISABLED, (0): Disabled     # - ENABLED, (1): Enabled     # Possible options:     FA_ME_CMD_EN: ENABLED   # ----------------------------------------===== VENDOR_USAGE [Optional] =====-----------------------------------------   # Description: Offset: 0x00000018, Width: 32b; Vendor Usage   VENDOR_USAGE:     # ---------------------------------------===== VENDOR_USAGE [Optional] =====----------------------------------------     # Description: Offset: 16b, Width: 16b, Upper 16 bits of vendor usage field defined in DAP. Lower 16-bits come from     # customer field area.     VENDOR_USAGE: 0   # ---------------------------------------===== SECURE_BOOT_CFG [Optional] =====---------------------------------------   # Description: Offset: 0x0000001C, Width: 32b; Secure boot configuration   SECURE_BOOT_CFG:     # -------------------------------------------===== RSA4K [Optional] =====-------------------------------------------     # Description: Offset: 0b, Width: 2b, Select minimal key length. To enforce usage of RSA4096, setting 0b11 value is     # recommended to allow RSA4096 keys only.     # - RSA2048, (0): RSA2048 or higher can be used for image signing. Only RSA2048 can be used as debug keys.     # - RSA4096_0, (1): Only RSA4096 keys can be used for image signing and debug authentication.     # - RSA4096_1, (2): Only RSA4096 keys can be used for image signing and debug authentication.     # - RSA4096_2, (3): Only RSA4096 keys can be used for image signing and debug authentication.     # Possible options:     RSA4K: RSA2048     # -------------------------------------===== DICE_INC_NXP_CFG [Optional] =====--------------------------------------     # Description: Offset: 2b, Width: 2b, Include NXP area in DICE computation.     # - NOT_INCLUDE, (0): not included     # - INCLUDE_0, (1): included     # - INCLUDE_1, (2): included     # - INCLUDE_2, (3): included     # Possible options:     DICE_INC_NXP_CFG: NOT_INCLUDE     # ---------------------------------------===== DICE_CUST_CFG [Optional] =====---------------------------------------     # Description: Offset: 4b, Width: 2b, Include Customer factory area (including keys) in DICE computation.     # - NOT_INCLUDE, (0): not included     # - INCLUDE_0, (1): included     # - INCLUDE_1, (2): included     # - INCLUDE_2, (3): included     # Possible options:     DICE_CUST_CFG: NOT_INCLUDE     # -----------------------------------------===== SKIP_DICE [Optional] =====-----------------------------------------     # Description: Offset: 6b, Width: 2b, Skip DICE computation     # - ENABLE, (0): Enable DICE     # - DISABLE_0, (1): Disable DICE     # - DISABLE_1, (2): Disable DICE     # - DISABLE_2, (3): Disable DICE     # Possible options:     SKIP_DICE: DISABLE_0     # --------------------------------------===== TZM_IMAGE_TYPE [Optional] =====---------------------------------------     # Description: Offset: 8b, Width: 2b, TrustZone-M mode     # - HEADER, (0): TZ-M image mode is taken from application image header     # - DISABLED, (1): TZ-M disabled image, boots to non-secure mode     # - ENABLED, (2): TZ-M enabled image, boots to secure mode     # - PRESET, (3): TZ-M enabled image with TZ-M preset, boot to secure mode TZ-M pre-configured by data from     # application image header     # Possible options:     TZM_IMAGE_TYPE: HEADER     # ---------------------------------------===== BLOCK_SET_KEY [Optional] =====---------------------------------------     # Description: Offset: 10b, Width: 2b, Block PUF key code generation     # - ALLOW, (0): Allow PUF Key Code generation     # - DISABLE_0, (1): Disable PUF Key Code generation     # - DISABLE_1, (2): Disable PUF Key Code generation     # - DISABLE_2, (3): Disable PUF Key Code generation     # Possible options:     BLOCK_SET_KEY: ALLOW     # ---------------------------------------===== BLOCK_ENROLL [Optional] =====----------------------------------------     # Description: Offset: 12b, Width: 2b, Block PUF enrollment     # - ALLOW, (0): Allow PUF enroll operation     # - DISABLE_0, (1): Disable PUF enroll operation     # - DISABLE_1, (2): Disable PUF enroll operation     # - DISABLE_2, (3): Disable PUF enroll operation     # Possible options:     BLOCK_ENROLL: ALLOW     # ------------------------------------===== DICE_INC_SEC_EPOCH [Optional] =====-------------------------------------     # Description: Offset: 14b, Width: 2b, Include security EPOCH in DICE     DICE_INC_SEC_EPOCH: 0     # ----------------------------------------===== SEC_BOOT_EN [Optional] =====----------------------------------------     # Description: Offset: 30b, Width: 2b, Secure boot enable     # - DISABLE, (0): Plain image (internal flash with or without CRC)     # - ENABLE_0, (1): Boot signed images. (internal flash, RSA signed)     # - ENABLE_1, (2): Boot signed images. (internal flash, RSA signed)     # - ENABLE_2, (3): Boot signed images. (internal flash, RSA signed)     # Possible options:     SEC_BOOT_EN: ENABLE_0 Re: Factory Reset/Mass Erase LPC55S28 Hello @guitardenver  Thanks for your question. Please refer to the thread below for more information. [LPC55]: Disable ISP and SWD to utilize code protection If this does not fully address your requirements, please feel free to contact me. I will be happy to help further.   BR Alice  Re: Factory Reset/Mass Erase LPC55S28 Alice, Thanks for that link, very informative. I do still have some questions. From the link you sent, I think I understand how to disable ISP and SWD. But my main question is how to recover access and erase everything, including the CMPA, CFPA, etc to factory defaults. I think I have already bricked a couple devices and need help to prevent bricking more. What is the best way to do a complete factory reset? Assuming I didn't set any settings that prevent that.  What I'm trying to do: 1. Use the ROM bootloader to do .sb (SB2.1) file updates. So secure/authenticated firmware updates over USB using the ROM bootloader.  2. Disable the ability to read and write to the MCU memory via SWD or JTAG. I do not use TrustZone or any special settings in the PFR that locks access to any application flash.  3. USB Bootloader should not be able to arbitrarily read/write to flash/ram. Just like we don't want anybody to read/write to memory via SWD or JTAG. But the bootloader should still be able to do secure .sb file updates over USB or from my own application code.  4. Once SWD/JTAG is disabled/locked, I would like to be able to recover access to SWD and completely erase/default the CMPA, CFPA, PFR, etc to factory default to start over. Can this be done via SWD mass erase or can it be done by a special SB2.1 file I can make?  Questions: 1. Does the SWD DebugMailbox mass erase also erase the CMPA, CFPA, keystore, etc? If NIDEN and DBGEN settings are in the CMPA, and the MassErase does not erase CMPA, then how can you recover NIDEN and DBGEN access?  2. If I disable NIDEN, DEBGEN, TAPEN, ISP_CMD_EN. And Keep FA_ME_CMD_EN enabled, does this achieve what I am looking for? Locks down the MCU, but is completely recoverable via erasing everything? What settings or method would you recommend here? I have also contacted SEGGER on what specific tools/examples they have to be able to recover LPC55S28 devices via the DAP to factory default. If I can write a JLINK script to do this, that would be fine too.  Thanks for your help!
View full article
KW47-EVK: Regarding the compiler switch (BOARD_LOCALIZATION_REVISION_SUPPORT) We are currently using the KW47-EVK, and we have a few questions regarding this compiler switch. Concerning the purpose of BOARD_LOCALIZATION_REVISION_SUPPORT, based on the comments in the SDK, we understand that it was introduced specifically for the KW47-LOC board. Could you please confirm whether this understanding is correct? When using the KW47-EVK, is it correct that BOARD_LOCALIZATION_REVISION_SUPPORT should be disabled? When BOARD_LOCALIZATION_REVISION_SUPPORT is disabled, the following pins are configured as Alt6(RF_GPO) in PLATFORM_InitLcl(). What is the purpose of this configuration? PTA18 PTA19 PTA20 Is this configuration intended only for debugging purposes? Or is it required that these pins remain configured as RF_GPO for proper operation of the device?   The code below shows the location where these pins are configured. Best regards, Katsuya Re: KW47-EVK: Regarding the compiler switch (BOARD_LOCALIZATION_REVISION_SUPPORT) Hello, Hope you are doing well.   The BOARD_LOCALIZATION_REVISION_SUPPORT macro selects the localization-board RF-GPO routing and is used when the Localization board (KW47-LOC) is in use and needed only when the application uses the localization or external antenna-switch functionality. In this case, if you are using the KW47-EVK, the macro should be disabled, and the RF-GPO reconfiguration is not required for normal operation of the EVK default RF path.   When the BOARD_LOCALIZATION_REVISION_SUPPORT macro is enabled, PLATFORM_InitLcl() selects the RF_GPO[7:4] group on PTD (PTD1, PTD2, and PTD3) pins. When disabled, it selects RF_GPO[3:0], and configures PTA18, PTA19, and PTA20 as Alt6, corresponding to RF_GPO_0, RF_GPO_1, and RF_GPO_2. For furth reference you can see section 52.3.2.5 Radio Localization Antenna Select of the KW47 Reference Manual.   Best regards, Sofia. Re: KW47-EVK: Regarding the compiler switch (BOARD_LOCALIZATION_REVISION_SUPPORT) Hello Sofia Could you please provide information regarding the following?   3. When BOARD_LOCALIZATION_REVISION_SUPPORT is disabled, the following pins are configured as Alt6(RF_GPO) in PLATFORM_InitLcl(). What is the purpose of this configuration? PTA18 PTA19 PTA20 Is this configuration intended only for debugging purposes? Or is it required that these pins remain configured as RF_GPO for proper operation of the device?   Best regards, Katsuya   Re: KW47-EVK: Regarding the compiler switch (BOARD_LOCALIZATION_REVISION_SUPPORT) Hello @Katsuya , Since the unmodified KW47-EVK uses a single default antenna, antenna-selection RF_GPO routing is not required for normal RF operation. BOARD_LOCALIZATION_REVISION_SUPPORT should be disabled unless the application targets the KW47-LOC routing or an antenna diversity board. The RF_GPO configuration is used for localization or external antenna-switch control, not only for debugging. If the application calls PLATFORM_InitLcl(), the SDK automatically configures PTA18, PTA19, and PTA20 as Alt6(RF_GPO), so no manual configuration is required. If PLATFORM_InitLcl() is not called, the pins retain their normal pin_mux.c configuration, and RF_GPO configuration is not required for the EVK default RF operation. Best regards, Sofia. Re: KW47-EVK: Regarding the compiler switch (BOARD_LOCALIZATION_REVISION_SUPPORT) Hello Sofia, When operating normally, is my understanding correct that there is no need to configure PTA18, PTA19, and PTA20 as Alt6, and that this configuration is intended only for debugging purposes? Best regards, Katsuya
View full article
LCの進角に関する問い合わせ(S32K3、HSEなし) こんにちは、 HSEが使われていない場合にデバッグアクセスをロックする順序について、特にライフサイクルの進展プロセスに関していくつか質問があります。 1) IVTのライフサイクル構成アドレスに設定ワードを書き込んだ後、機能リセット(SW_FUNC)でライフサイクルを進めるのに十分でしょうか、それとも破壊的なリセット(SW_DEST)が必要でしょうか? 2) 機能リセットだけでライフサイクルが進むのに十分であれば、IVTで設定されたライフサイクル構成アドレスはRAMアドレスとして機能するのでしょうか? 3) アプリケーションが条件付きでデバッグアクセスポートをロックしたい(例えば、特定のCANメッセージを受け取ってからパスワードを設定し、ライフサイクルを進めるとします)。さらに、設定ワードを設定するためにフラッシュのセクター全体をブロック・予約したくありません。そのため、IVT内でLCの設定アドレスを恒久的に設定し、ライフサイクルを進めたいときにそのアドレスに0xDADADADA/0xBABABABAを書き込む代わりに、設定ワードを固定アドレスに組み込み、アプリケーションがデバッグアクセスを制限した際にIVTを修正してライフサイクル設定アドレスを設定しリセットを開始できるかどうかを考えています。 このアプローチは実現可能だろうか? もしそうなら、実行時にIVTをどうやって修正すればいいですか?(注意すべき注意点はありますか)さらに、指定アドレス内のデータが設定ワードに固定されていると仮定した場合、MVUの残りのライフサイクルアドレスをMCUの動作期間中に保持しても問題ないでしょうか? もしなければ、同じように達成するための代替案はありますか? 4) パスワード設定自体について(cust_db_pswd_a) - これはデバッガでプログラムできるのか、それともファームウェアがやらなければならないのか? よろしくお願いいたします。 ハリーシュS Re: Query regarding LC advancement (S32K3, No HSE) こんにちは、 @Hareesh_S さん。 1.はい、機能リセットを実行するだけでライフサイクル進行プロセスが開始されます。 2.一般的に、LC構成ワードにRAMアドレスを使用することはお勧めしません。SBAFが読み取ろうとした際に確実に利用できるように、不揮発性メモリに保存することをお勧めします。 3.あなたの全体的な目標は実現可能ですが、実行時にIVTを変更することはお勧めしません。 推奨される方法は、本番プログラミング中にIVTでライフサイクル構成アドレスを設定し、それを固定しておくことです。アプリケーションが必要なCANメッセージを受け取った場合、適切なLC構成ワード(例えば、遷移に応じて0xDADADADAまたは0xBABABABA)をあらかじめ定義された場所に書き込み、機能リセットを発行するだけで済みます。 4. はい、パスワードはデバッガスクリプトを使ってプログラム可能です。ファームウェアだけでプログラムする必要はありません。 ただし、UTEST OTPデータやその他のデータをプログラムする前に、アドレス0x40268358にあるPFCBLKU_SPELOCKレジスタに書き込むことでUTESTセクターのロックを解除する必要があります。 BR、VaneB Re: Query regarding LC advancement (S32K3, No HSE) こんにちは、 @VaneB さん。 返信が遅くなり申し訳ありません。ご説明いただき、誠にありがとうございます!
View full article
デザイナースタジオのダウンロード Designer Studioへのリンクはすべて、デバッガーのインストールファイルのみをダウンロードします。 Re: designer studio download こんにちは、 ご報告ありがとうございます。S32 Design Studio IDEのダウンロードは、 S32 Design Studio for S32 プラットフォームのページから入手可能です。ダウンロードの中から、S32 Design Studio – Windows/Linuxを選択してください。デバッガーインストーラーのみを提供する別のS32 Design Studio Debuggerダウンロードは選択しないでください。ダウンロードにアクセスするにはサインインが必要な場合があります。 よろしくお願いいたします。 ピーター
View full article
LMBCTLEN、LMAUTOEN、LMEN、LMSTAT 关系 您好,NXP技术支持, - 如果像下图所示同时启用 LMAUTOEN 和 LMEN,是否存在冲突? - 建议的配置是什么?手动模式(通过 LMEN)还是自动模式(通过 LMAUTOEN)? - 在什么情况下我们需要使用手动模式,因为已经有了自动模式? 谢谢。 BR/熊本熊 Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation 你好@kumamon , 1.实际上并没有冲突,您可以在 S32K3XX 参考手册的电源管理单元章节中找到相关说明: 2. 和 3. 自动最后一公里自动启用功能允许您在芯片启动和待机模式恢复期间使用最后一公里调节器(而不是启动调节器)。 在“手动模式”下,必须先启用LMEN,然后才能启用PLL。退出待机模式后,必须先重新启用 PMC 末端稳压器,然后才能切换到更高的时钟频率。 您可以参考图 180。最后一公里调节器启用序列: 关于 LMBCTLEN,如果在 PCB 上使用 VDD_HV_A 和 V15 之间的外部 BJT,则必须将其设置为 1。例如,在 S32K3X4EVB 中,如果要使用 NPN,请设置 LMBCTLEN = 1。 此致, 朱利安 Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation 你好@Julián_AragónM , 非常感谢您的回复。 无论 PMC.CONFIG[LMAUTOEN] 字段的设置如何,在切换到更快的时钟频率之前,必须向 PMC.CONFIG[LM_EN] 字段写入 1。这是因为使用启动调节器时时钟速度降低所致。 1. 您上面提到的那句话的理由是什么?因为我认为自动模式可以通过芯片本身来实现,为什么在这种情况下还需要软件干预呢?以下理解是否正确? 仅自动模式:不行。 仅手动模式:可以。 手动模式+自动模式:可以。 2. 看起来“手动模式+自动模式”总是比“仅手动模式”更好?在什么情况下不需要自动模式?这种情况是否仅限于我们只想在芯片启动时使用启动调节器(例如)? 3. 在传统项目中,即使我们使用比 FIRC 更高的时钟频率 (160 MHz),我们也没有启用最后一公里稳压器。我们现在知道它违反了 RM 中的声明。我们正在评估风险,你知道最糟糕的结果是什么吗? 谢谢。 BR/熊本熊 Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation 你好@kumamon , 我需要与内部团队确认一下该行为,以便就 LMAUTOEN + LMEN 功能提供统一的答案。 关于问题 3:如果 PLL 已启用但末端稳压器未启用,则芯片将由启动稳压器供电。在 PLL 时钟下,内核需要较大的电流,导致启动稳压器上积聚热量。这将使芯片过热直至损坏。 必须遵循参考手册中的说明:“只要 LMEN=0,软件就必须确保系统时钟频率为 FIRC 时钟或更低。要使用更高的时钟频率,软件必须将 LMEN 设置为 1。 ” 我将回答问题1。Q2. 一旦我得到内部团队的确认。 此致, 朱利安 Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation 你好@Julián_AragónM , 没问题,先谢谢了。 BR/熊本熊。
View full article
BFU910F 型号 11 年前的数据手册中承诺会推出与 SPICE 兼容的 Gummel-Poon 设备模型。仅提供专有格式的 Mextram 模型。LTspice声称兼容Mextram 504型号,这是怎么回事? 射频 Re: BFU910F model Hello 请注意,BFU910F 已停产。 Re: BFU910F model 我知道,但目前还没有替代品,尽管恩智浦半导体在 2021 年的一篇文章中称其为“高端射频的未来”。总之,从数据手册来看,这确实是一个相当出色的部件。我希望在剩余库存售罄之前,能看到更详尽的文档记录 :3
View full article
S32G2のRTDパッケージに対応するIPCFソフトウェアパッケージのバージョンは、発信できませんでした S32G2のマルチコア通信を開発していた際、IPCFソフトウェアパッケージのRTDパッケージに対応するバージョンを見つけられませんでした。私のS32G2のMコアRTDパッケージのバージョンはSW32G_RTD_4.4_4.0.2_HF02です。対応するIPCFパッケージのウェブサイトアドレスを教えていただけますか?ありがとう。 Re: The version of the IPCF software package corresponding to the RTD package of S32G2 could not be このウェブサイトは輸出規制のため、私のダウンロードを拒否しました。 Re: The version of the IPCF software package corresponding to the RTD package of S32G2 could not be こんにちは、 こちらのリンクをお試しください。 自動車ソフトウェアパッケージマネージャー |NXP半導体 そしてGoldVIP SWパッケージからダウンロードしてください。 BR ジョーイ Re: The version of the IPCF software package corresponding to the RTD package of S32G2 could not be お返事ありがとうございます。しかし、IPCFのダウンロードサイトを開くと、「以前に」オプションにアクセスできませんでした。さらに、車載ソフトウェアマネジメントツール内で何もダウンロードできませんでした。この問題をどう解決すればいいのか教えていただけますか?IPCF 4.9.0を代わりに使うことはできますか? Re: The version of the IPCF software package corresponding to the RTD package of S32G2 could not be こんにちは、 qrsljx お問い合わせいただきありがとうございます。 GoldVIP-S32G3-1.12.0を参照してください。RTD 4.0.2と合わせてIPCFバージョン4.10.0を利用できますHF02。 このリンクから関連するGoldvip SWパッケージをダウンロードしてみてください: 自動車ソフトウェアパッケージマネージャー |NXP半導体 または、IPCF 4.10.0を別途ダウンロードしてください。 BR ジョーイ Re: The version of the IPCF software package corresponding to the RTD package of S32G2 could not be こんにちは、 qrsljx 1. 会社のメールアドレスを使ってウェブサイトにログインし、ダウンロードを試みてください。 2. 同僚が自分のアカウントでこのソフトをダウンロードできるか確認してください。アカウントの権限設定に問題がある可能性があります。 BR ジョーイ
View full article
Offline MISR value calculation I am currently working on the Flash Array Integrity implementation for the S32K312 controller. According to the reference manual, the MISR value is calculated using a specific polynomial shown in below image. However, my offline calculated MISR values do not match the values generated in the User Mode (UM) registers even after multiple tries. Upon further review, I noted that the MISR calculation occurs after ECC detection, and ECC parity cannot be calculated offline. Could you please advise on the standard production-level approach for this implementation? Specifically, I would like to know: 1.  Is it possible to calculate expected MISR values offline and store them in Flash or NVM? 2.  Or is it necessary to run the code once to capture the calculated MISR value directly from the UM registers and save it for future checks? Please guide me on the recommended strategy for a production-ready solution. Best regards, Sandeep Singh Re: Offline MISR value calculation Hi Daniel, I have been receiving this same response for the past 7 to 8 months. I previously raised a ticket regarding this issue, and the response was identical to what I am receiving now. I also followed up with our NXP sales representative, but we still do not have a solution. Could you please clarify if this functionality was tested by NXP and whether there is an active fix or workaround available for this issue? I look forward to your prompt response. Best regards, Sandeep Singh Re: Offline MISR value calculation Hi @sandeepSingh18606, 1. Let me check internally whether there has been any progress with the offline calculation. I will get back to you as soon as possible. 2. This is an option. Here is an example: https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FLS-Integrity-Margin-Check-v1-0-S32DS36-RTD701/ta-p/2416160 BR, Daniel
View full article
BFU910Fモデル SPICE対応のGummel-Poonデバイスモデルは11年前のデータシートで約束されていました。提供されているのは、独自のフォーマットで作られたMextramモデルのみです。LTspiceはMextram 504モデルの互換性を謳っていますが、なぜでしょうか? RF Re: BFU910F model 知っていますが、2021年のNXPの記事で「ハイエンドRFのFUTURE」と称されているにもかかわらず、代替品は存在しません。いずれにせよ、データシートを見る限りかなり印象的な部品です。在庫がなくなる前に、もっと詳しく記録に残してほしいですね :3 Re: BFU910F model Hello BFU910Fは現在製造中止となっておりますのでご注意ください。
View full article
关于 LC 晋升的查询(S32K3,无 HSE) 你好, 关于在不使用 HSE 时锁定调试访问权限的顺序,我有一些疑问,特别是关于生命周期推进过程。 1) 在 IVT 中将配置字写入生命周期配置地址后,功能 RESET (SW_FUNC) 是否足以推进生命周期,还是需要破坏性 RESET (SW_DEST)? 2) 如果功能 RESET 足以推进生命周期,那么在 IVT 中配置的生命周期配置地址可以是 RAM 地址吗? 3) 我希望我的应用程序有条件地锁定调试访问端口(假设应用程序只有在收到特定的 CAN 消息后才应该设置密码并推进生命周期)。此外,我不想仅仅为了设置配置字来推进 MCU 的生命周期而占用/保留整个闪存扇区。因此,与其在 IVT 中永久设置生命周期配置地址,并在需要推进生命周期时向该地址写入 0xDADADADA/0xBABABABA,我想知道是否可以将配置字嵌入到我的应用程序中的固定地址,这样,每当应用程序决定限制调试访问时,应用程序就可以修改 IVT 来设置生命周期配置地址并启动 RESET。 这种方法可行吗? 如果可以,我该如何在运行时修改 IVT(是否有任何注意事项)?此外,IVT 是否可以包含 MCU 剩余工作生命周期内的生命周期地址(假设指定地址中的数据固定为配置字)? 如果没有,是否有其他方法可以达到同样的目的? 4) 关于设置密码本身 (cust_db_pswd_a) - 我可以通过调试器对此(以及一般的 UTEST OTP 数据)进行编程吗?还是必须由固件来完成? 此致, 哈里什·S Re: Query regarding LC advancement (S32K3, No HSE) 嗨@Hareesh_S 1.是的,发出功能 RESET 足以触发信号生命周期推进过程。 2.一般而言,我不建议使用 RAM 地址作为 LC 配置字。建议将其存储在非易失性存储器中,以确保在 SBAF 尝试读取它时它仍然可用。 3.你的总体目标是可行的;但是,我不建议在运行时修改 IVT。 建议的做法是在生产编程期间在 IVT 中配置生命周期配置地址,并保持其固定不变。当您的应用程序收到所需的 CAN 消息时,它可以简单地将适当的 LC 配置字(例如,0xDADADADA 或 0xBABABABA,具体取决于所需的转换)写入预定义的位置,然后发出功能复位。 4.是的,密码可以通过调试脚本进行编程;不一定需要通过固件进行编程。 但是,在对它或任何其他 UTEST OTP 数据进行编程之前,必须通过写入位于地址 0x40268358 的 PFCBLKU_SPELOCK 寄存器来解锁 UTEST 扇区。 BR,VaneB Re: Query regarding LC advancement (S32K3, No HSE) 你好@VaneB , 很抱歉回复晚了,非常感谢您的澄清!
View full article
Query regarding LC advancement (S32K3, No HSE) Hello, I have a few queries regarding the sequence to lock debug access when HSE is not used, specifically with regard to the life cycle advancement process. 1) After writing the configuration word to the life cycle configuration address in the IVT, will a functional reset(SW_FUNC) be sufficient to advance the life cycle or would I require a destructive reset (SW_DEST)? 2) If a functional reset is sufficient to advance the life cycle, can the life cycle configuration address configured in the IVT be a RAM address? 3) I want my application to conditionally lock the debug access port (let's say the application should only set the password and advance the life cycle once it receives a specific CAN message). Additionally I do not want to block/reserve a whole sector of flash just to set the configuration word to advance the life cycle of the MCU - As such, instead of permanently setting the LC configuration address in the IVT and writing 0xDADADADA/0xBABABABA to said address when I want to advance the life cycle, I was wondering if I could embed the configuration word as part of my application at a fixed address, and whenever the application decides to restrict debug access, the application could modify the IVT to set the life cycle configuration address and initiate a reset. Is this approach feasible? If yes, how can I go about modifying the IVT in runtime(are there any precautions I must take)? Additionally, is it okay for the IVT to contain the life cycle address for the remainder of the MCU's operating lifetime (assuming the data in the specified address is fixed to the configuration word) If no, are there alternate suggestions to achieve the same? 4) Regarding setting the password itself (cust_db_pswd_a) - Can I program this (and UTEST OTP data in general) via a debugger or must the firmware do it? With regards, Hareesh S  Re: Query regarding LC advancement (S32K3, No HSE) Hi @Hareesh_S  1. Yes, issuing a functional reset is sufficient to trigger the life cycle advancement process. 2. In general, I would not recommend using a RAM address for the LC configuration word. It is recommended to store it in non-volatile memory  to ensure that it remains available when the SBAF attempts to read it. 3. Your overall goal is feasible; however, I would not recommend modifying the IVT at runtime. A recommended approach would be to configure the life cycle configuration address in the IVT during production programming and keep it fixed. When your application receives the required CAN message, it can simply write the appropriate LC configuration word (for example, 0xDADADADA or 0xBABABABA, depending on the desired transition) to the predefined location and then issue a functional reset. 4. Yes, the password can be programmed using a debugger script; it does not need to be programmed exclusively by the firmware. However, before programming it or any other UTEST OTP data, it is necessary to unlock the UTEST sector by writing to the PFCBLKU_SPELOCK register located at address 0x40268358. BR, VaneB Re: Query regarding LC advancement (S32K3, No HSE) Hello @VaneB, Apologies for the delayed response, and much thanks for the clarification!
View full article
离线 MISR 值计算 我目前正在研究 S32K312 控制器的闪存阵列完整性实现。 根据参考手册,MISR 值是使用下图所示的特定多项式计算的。然而,即使多次尝试,我离线计算的 MISR 值也与用户模式 (UM) 寄存器中生成的值不符。 经进一步审查,我注意到 MISR 计算是在 ECC 检测之后进行的,而 ECC 奇偶校验不能离线计算。 能否请您提供一下该实现方案的标准生产级方法?具体来说,我想了解: 1. 是否可以离线计算预期的 MISR 值并将其存储在 Flash 或 NVM 中? 2. 或者是否需要运行一次代码,直接从 UM 寄存器中捕获计算出的 MISR 值并将其保存以供将来检查? 请指导我如何制定一个可用于生产环境的解决方案的推荐策略。 此致, 桑迪普·辛格 Re: Offline MISR value calculation 你好@sandeepSingh18606 , 1. 让我内部确认一下离线计算是否有任何进展。 我会尽快回复您。 2. 这也是一种选择。以下是一个示例: https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FLS-Integrity-Margin-Check-v1-0-S32DS36-RTD701/ta-p/2416160 BR,丹尼尔 Re: Offline MISR value calculation 嗨,丹尼尔, 过去七八个月以来,我一直收到同样的回复。之前我曾就此问题提交过工单,得到的回复与现在完全相同。我也联系过恩智浦的销售代表,但问题仍然没有解决。 请问NXP是否测试过此功能,以及目前是否有针对此问题的有效修复或变通方案? 期待您的尽快回复。 此致, 桑迪普·辛格
View full article
LMBCTLEN、LMAUTOEN、LMEN、LMSTAT の関係 こんにちは、NXPサポートの皆さん、 - 次の図のように、LMAUTOENとLMENを同時に有効にした場合、何か競合が発生しますか? 推奨される構成は何ですか?手動モード(LMEN経由)または自動モード(LMAUTOEN経由)? 自動モードがあるのに、どのような場合に手動モードを使用する必要があるのでしょうか? ありがとうございます。 BR/くまモン Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation こんにちは、 @kumamon さん。 1.実際には、利益相反はなく、S32K3XXリファレンス・マニュアルのパワーマネージメント章の中にも関連注意があります。 2. & 3.自動ラストマイル自動イネーブ機能により、チップの起動やスタンバイモードの復旧時に、起動レギュレーターの代わりにラストマイルレギュレーターを使用できます。 「手動モード」では、PLLを有効にする前にLMENを有効にする必要があります。スタンバイモード終了後、より高速なクロック周波数に移行する前に、PMCラストマイルレギュレータを再度有効にする必要があります。 図180を参照してください。ラストマイルレギュレータ有効化シーケンス: LMBCTLENについては、PCB上でVDD_HV_AとV15の間に外部BJTを使用する場合は、1に設定する必要があります。例えば、S32K3X4EVBでNPNを使用する場合は、LMBCTLEN = 1に設定します。 よろしくお願いします、 ジュリアン Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation こんにちは、 @Julián_AragónM さん、 ご返信ありがとうございます。 PMC.CONFIG[LMAUTOEN] フィールドの設定に関係なく、より高速なクロック周波数に移行する前に、PMC.CONFIG[LM_EN] フィールドに 1 を書き込む必要があります。これは、ブートレギュレータを使用する際にクロック速度が低下するためです。 1. 上記の発言の背景には何がありますか?自動モードはチップ自体でできると思うのに、なぜこの場合もソフトウェアの干渉が必要なのでしょうか?そして、以下の理解は正しいでしょうか? 自動モードのみ:不可。 手動モードのみ: OK 。 手動モード+自動モード: OK 。 2. 「マニュアルモード+オートマチックモード」は「マニュアルモードのみ」よりも常に優れているようですね?どのような状況で、自動モードは想定されないのでしょうか?これは、例えばチップの起動時にブートレギュレータのみを使用したいというシナリオでしょうか? 3. 従来のプロジェクトでは、FIRCよりも高いクロック(160MHz)を使用する場合でも、ラストマイルレギュレータをオンにしませんでした。私たちはそれがRMの規定に違反していることを知っています。そして私たちはリスクを推定しているのですが、最悪の場合、どのような結果になるかご存知ですか? ありがとうございます。 BR/くまモン Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation こんにちは、 @kumamon さん。 LMAUTOEN + LMENの機能に関する包括的な回答を提供するために、社内チームに動作確認をさせてください。 質問3について: PLLが有効になっているにもかかわらず、ラストマイルレギュレータが有効になっていない場合、チップはブートレギュレータによって給電されます。PLLクロックでは、コアが大きな電流を要求し、ブートレギュレータに熱が蓄積されます。これにより、チップが過熱して損傷する可能性があります。 リファレンス・マニュアルに従うことは必須です:「LMEN=0の間、ソフトウェアはシステムクロックがFIRCクロックかそれ以下であることを必ず確認しなければなりません。より高いクロック速度を使用するには、ソフトウェアがLMEN=1に設定されなければなりません。" Q1の回答を提供いたします。そしてQ2。内部チームから確認が来次第、 よろしくお願いします、 ジュリアン Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation こんにちは、 @Julián_AragónM さん、 問題ありません、よろしくお願いします。 BR/くまモン。
View full article
BFU910F model A SPICE compatible Gummel-Poon device model was promised 11 years ago in the datasheet. Only a Mextram model, in a proprietary format, is provided. LTspice claims Mextram 504 model compatibility, so what gives?  RF Re: BFU910F model I'm aware, but no replacement exists, despite a NXP article from 2021 calling it "the Future of High-End RF". In any case, it's a fairly impressive part judging by the datasheet. I'd like to see it documented more thoroughly before the remaining stock runs out :3 Re: BFU910F model Hello Please note that the BFU910F is no longer manufactured.
View full article
designer studio download All links to Designer Studio download the debugger install file only.  Re: designer studio download Hello, Thank you for reporting this. The S32 Design Studio IDE download is available from the S32 Design Studio for S32 Platform page. Under Downloads, please select S32 Design Studio – Windows/Linux. Please make sure not to select the separate S32 Design Studio Debugger download, which provides only the debugger installer. Sign-in may be required to access the download. Best regards, Peter
View full article
ペリフェラル Toolでのedma4エラーメッセージがSD 26 09 00以降に発生しています 皆様、 SDK 26.06.00以降、ペリフェラル Toolを使ってDMA周辺機器を追加しており、完璧に動作し、今も問題ありません。しかし、SDK 26.09.00以降はペリフェラル Toolでエラーメッセージが表示されます: 問題点:EDMAドライバはツールチェーン/IDEsプロジェクトに存在しません。プロジェクトはコンパイルできません! レベル:誤差 タイプ:検証 ツール:ツールチェーン/IDEプロジェクト 起源:ペリフェラル 対象:ツールチェーン/IDEプロジェクト:cm33_core0 リソース: platform.drivers.edma4 私はEDMAコンポーネントを直接使用していません。私はlpspi_edmaコンポーネントを使用していますが、私の記憶が正しければ、これにはedmaコンポーネントも含まれています。 私の主な質問は、lpspi_edma 2.1.4 を使用することです。SPI設定でDMAを実装するのは最新の方法でしょうか(私のSDKウィザードでは2.10.14がEDMAとして、バージョン2.10.13も同様です)?確かに、プロジェクトは問題なくコンパイルされ、実行されます。 私の.mex言う: Re: edma4 error message since SDK 26 09 00 in Peripherals Tool</FEATURE><LINGO-BODY id="lingo-body-2421543" slang="en-US" mode="CREATE"></LINGO-BODY></P><P>親愛なるセレステへ、</P><P>はい、MCXN947を使用しています。</P></DIV></DIV></LINGO-BODY><LINGO-SUB id="lingo-sub-2421536" slang="en-US" mode="CREATE" translate="no">Re: edma4 error message since SDK 26 09 00 in Peripherals Tool</LINGO-SUB><LINGO-BODY id="lingo-body-2421536" slang="en-US" mode="CREATE"><P>こんにちは、 <A href="<A href="<A href="<A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260452" target="_blank">https://community.nxp.com/t5/user/viewprofilepage/user-id/260452</A>" target="_blank"><A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260452" target="_blank">https://community.nxp.com/t5/user/viewprofilepage/user-id/260452</A></A>" target="_blank"><A href="<A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260452" target="_blank">https://community.nxp.com/t5/user/viewprofilepage/user-id/260452</A>" target="_blank"><A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260452" target="_blank">https://community.nxp.com/t5/user/viewprofilepage/user-id/260452</A></A></A>" target="_blank">@PAChristiaans さん</A>、</P> <P>投稿ありがとうございます。</P> <P>質問に答える前に、MCXN947を使っているかどうか確認していただけますか?</P> <P>BR</P> <P>セレステ</P></LINGO-BODY><lingo-sub id="lingo-sub-2422493" slang="en-US" mode="CREATE" translate="no">Re: edma4 error message since SDK 26 09 00 in Peripherals Tool</FEATURE><LINGO-BODY id="lingo-body-2422493" slang="en-US" mode="CREATE"></LINGO-BODY></P><P>こんにちは、 <A href="<A href="<A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260452" target="_blank">https://community.nxp.com/t5/user/viewprofilepage/user-id/260452</A>" target="_blank"><A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260452" target="_blank">https://community.nxp.com/t5/user/viewprofilepage/user-id/260452</A></A>" target="_blank">@PAChristiaans さん</A>、</P> <P>ご辛抱いただきありがとうございます。こちら側でいくつかテストを行ったところ、同様の問題を再現することができました。</P> <P>テストによると、SDKに提供されているドライバーバージョンは正しいです。この問題は、設定ツールペリフェラルツールのeDMAコンポーネント検証に関連しているようです。この件は、さらなる調査のために設定ツールチームにエスカレーションします。</P> <P>最新情報があれば随時お知らせします。</P> <P>BR</P> <P>セレステ</P></DIV></DIV></LINGO-BODY><lingo-sub id="lingo-sub-2423302" slang="en-US" mode="CREATE" translate="no">Re: edma4 error message since SDK 26 09 00 in Peripherals Tool</FEATURE><LINGO-BODY id="lingo-body-2423302" slang="en-US" mode="CREATE"></LINGO-BODY></P><P>こんにちは、 <A href="<A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/260452" target="_blank">https://community.nxp.com/t5/user/viewprofilepage/user-id/260452</A>" target="_blank">@PAChristiaans さん</A>、</P> <P>理由が分かった。新しいSDK 26.09にはplatform.drivers.edma4ドライバが含まれていません。これは、ソフトウェアチームがコンポーネント名を <STRONG>platform.drivers.edma_unified</STRONG>に変更したためです。MCXN947はedma4ドライバが搭載されている古いSDKsでサポートされていたため、古いSDKsとの後方互換性があるため、すべてのオプションを提供しています。プロジェクトに使っているドライバを正確に選ぶべきです。</P> <P>下の画像をご覧ください。</P> <P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Celeste_Liu_0-1792751388672.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="Celeste_Liu_0-1792751388672.png" style="width: 400px;"><img src="<A href="https://community.nxp.com/t5/image/serverpage/image-id/398421iB582FD0BF6C76349/image-size/medium?v=v2&px=400" target="_blank">https://community.nxp.com/t5/image/serverpage/image-id/398421iB582FD0BF6C76349/image-size/medium?v=v2&px=400</A>" role="button" title="Celeste_Liu_0-1792751388672.png" alt="Celeste_Liu_0-1792751388672.png" /></span></SPAN></P> <BR /> <P>ツールチェーンプロジェクトのフィルターを選択すると、正しいドライバのみが提示されます:</P> <P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Celeste_Liu_1-1792751421202.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="Celeste_Liu_1-1792751421202.png" style="width: 400px;"><img src="<A href="https://community.nxp.com/t5/image/serverpage/image-id/398422i03C5C91ED1058759/image-size/medium?v=v2&px=400" target="_blank">https://community.nxp.com/t5/image/serverpage/image-id/398422i03C5C91ED1058759/image-size/medium?v=v2&px=400</A>" role="button" title="Celeste_Liu_1-1792751421202.png" alt="Celeste_Liu_1-1792751421202.png" /></span></SPAN></P> <P>お役に立てば幸いです。</P> <P>BR</P> <P>セレステ</P></DIV></DIV></LINGO-BODY><lingo-sub id="lingo-sub-2423396" slang="en-US" mode="CREATE" translate="no">Re: edma4 error message since SDK 26 09 00 in Peripherals Tool</FEATURE><LINGO-BODY id="lingo-body-2423396" slang="en-US" mode="CREATE"></LINGO-BODY></P><P>こんにちは、セレステさん。</P><P>ご回答いただき、誠にありがとうございます。<BR />私はMCUXpresso 25.6とSDK 26 09 00 FRDM MCXN947を使っていますが、クライアント上では少し見た目が異なります。<BR />実際のfsl_edma.cを見てみるとドライバーファイルは正しいと思いますが、なぜかUIが違って見えます。<BR />繰り返しますが、プロジェクトのコンパイル自体には問題は発生していませんが、エラーメッセージが表示されます。安全に無視してもいいのでしょうか?</P><P>敬具</P></DIV></DIV></LINGO-BODY><lingo-sub id="lingo-sub-2423678" slang="en-US" mode="CREATE" translate="no">Re: edma4 error message since SDK 26 09 00 in Peripherals Tool こんにちは、 @PAChristiaans さん、 はい。スクリーンショットを見る限り、これはエラーではなく警告のようなので無視しても大丈夫です。 UIの違いについては、統合されているMCUXpresso Config Toolsのバージョンが異なることが原因である可能性があります。私はバージョン26.09を使用しています。 アップデートについては、MCUXpresso IDEリンク内の「設定ツールの更新 」を参照してください。もちろん、現在のバージョンが問題なく動作しているなら、更新しなくても使い続けることもできます。 お役に立てば幸いです。 BR セレステ
View full article
设计师工作室下载 所有指向 Designer Studio 的链接都仅下载调试器安装文件。 Re: designer studio download 你好, 感谢您的举报。可从S32 Design Studio for S32 Platform 页面下载 S32 Design Studio IDE。在“下载”下,请选择“S32 Design Studio – Windows/Linux”。请确保不要选择单独的 S32 Design Studio 调试器下载,该下载仅提供调试器安装程序。可能需要登录才能下载。 顺祝商祺! Peter
View full article
LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation Hello NXP Support, - Is there any conflict if we enable LMAUTOEN, LMEN at the same time as in the following figure? - What is suggested configuration? Manual mode (via LMEN) or automatic mode (via LMAUTOEN)? - In which scenario, we have to use manual mode since there is already automatic mode? Thanks. BR/Kumamon Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation Hello @kumamon, 1. No conflict, actually, you can find a relevant note inside the Power Management chapter from the S32K3XX Reference Manual: 2. & 3. Automatic last mile auto-enable feature allows you to use the last-mile regulator (instead of the boot regulator) during chip startup and standby mode recovery. In "manual mode", LMEN must be enabled before PLL is enabled. After Standby mode exit, you must re-enable the PMC last-mile regulator before transitioning to faster clock frequencies.  You can refer to Figure 180. Last-mile regulator enable sequence: Regarding LMBCTLEN, it must be set to 1 if external BJT between VDD_HV_A and V15 is used on the PCB. For example, in S32K3X4EVB, if you want to use the NPN, set LMBCTLEN = 1. Best regards, Julián Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation Hello @Julián_AragónM , Thanks a lot for your reply. You must write 1 to PMC.CONFIG[LM_EN] field before transtioning to faster clock frequencies irrespective of the setting of PMC.CONFIG[LMAUTOEN] field. This is because of the reduced clock speed when using the boot regulator. 1. What is the reason behind the above statement you mentioned, because I think automatic mode can do it by chip itself, why still need software to interfere in this case? And is the following understanding correct?  Only automatic mode: not ok.  Only manual mode: ok.  Manual mode + automatic mode: ok. 2.  It looks like "Manual mode + automatic mode" is always better than "Only manual mode"? In which scenario, automatic mode is not expected? Is it the scenario where we just strictly want to use boot regulator in chip startup time (for example)? 3. In legacy project, we even did not turn on last mile regulator when we use higher clock (160 MHz) than FIRC. We now know it violates the statement in RM. And we are estimating the risk, do you know what will be worst result here? Thanks. BR/Kumamon Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation Hello @kumamon, Let me confirm the behavior with the internal team, in order to provide a consolidated answer regarding LMAUTOEN + LMEN functionality. Regarding question 3: If PLL is enabled but the last-mile regulator is not enabled, the chip will be powered by the boot regulator. Under PLL clock, the core demands a large current and heat will accumulate on the boot regulator. This will overheat the chip until it is damaged. Following the reference manual is mandatory: "As long as LMEN=0 software must make sure that the system clock is on FIRC clock or slower. To use higher clock speed software must set LMEN=1." I will provide a response for Q1. & Q2. as soon as I get confirmation from the internal team. Best regards, Julián Re: LMBCTLEN, LMAUTOEN, LMEN, LMSTAT Relation Hello @Julián_AragónM , No problem, thanks in advance. BR/Kumamon.
View full article
オフラインMISR値計算 現在、S32K312コントローラー用のFlash Array Integrity実装に取り組んでいます。 リファレンス・マニュアルによると、MISR値は下の画像に示された特定の多項式で計算されます。しかし、オフラインで計算したMISR値は、複数回試してもユーザーモード(UM)レジスタで生成される値と一致しません。 さらに詳しく調べたところ、MISRの計算はECC検出後に行われ、ECCパリティはオフラインでは計算できないことが分かりました。 この実装における標準的な本環境レベルのアプローチについてアドバイスいただけますか?具体的には、以下の点を知りたいです: 1. オフラインで期待されるMISR値を計算し、それをFlashやNVMに保存することは可能ですか? 2. それとも、UMレジスタから直接計算されたMISR値を取得し、FUTUREのチェックのために保存するためにコードを一度実行する必要があるのでしょうか? 本番環境に対応できるソリューションを実現するための推奨戦略についてご指導ください。 よろしくお願いします、 サンディープ・シン Re: Offline MISR value calculation こんにちは、ダニエルさん。 過去7~8ヶ月間、ずっと同じ回答を受け取っています。以前にもこの件について問い合わせましたが、その時の回答も今回と全く同じでした。NXPの営業担当者にも確認しましたが、未だに解決策は見つかっていません。 この機能がNXPによってテストされたのか、またこの問題に対する有効な修正や回避策があるのか、教えていただけますか? 迅速なご回答をお待ちしております。 よろしくお願いします、 サンディープ・シン Re: Offline MISR value calculation こんにちは、@sandeepSingh18606 さん。 1. オフライン計算の進捗状況について、社内で確認してみます。 できるだけ早くご連絡いたします。 2. これは選択肢の一つです。以下に例を示します。https: //community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FLS-Integrity-Margin-Check-v1-0-S32DS36-RTD701/ta-p/2416160 BR、ダニエル
View full article