Other Parts Discussed in Thread: SYSCONFIG
器件型号: MSPM0C1104
主题: SysConfig 中讨论的其他器件
我尝试使用系统配置工具、在 生成以下代码后锁定器件。
PLACE_IN_MEMORY(".BCRConfig")
const BCR_Config BCRConfig =
{
.bcrConfigID = 0x3,
.debugAccess = BCR_CFG_DEBUG_ACCESS_DIS,
.swdpMode = BCR_CFG_SWDP_EN,
.factoryResetMode = BCR_CFG_FACTORY_RESET_EN,
.staticWriteProtectionNonMain = BCR_CFG_NON_MAIN_STATIC_PROT_DIS,
.staticWriteProtectionMainLow = CFG_DEFAULT_VALUE,
.staticWriteProtectionMainHigh = CFG_DEFAULT_VALUE,
.reserved = 0xFFFFFFFFU,
};
执行下电上电后、器件被锁定、如 MSPM0C 手册中所述。 恢复出厂设置以正响应完成。 但即使在多次出厂重置和下电上电后、我也无法再刷写器件。 它以此消息进行响应
Error connecting to the target: Connection to MSPM0 core failed. Possible root causes: 1) Debug access within NONMAIN was disabled or enabled with password. 2) Peripheral mis-configuration (e.g improper watchdog or clock). To see a more detailed diagnostic of the issue, please press the 'Read boot diagnostic' button.
引导诊断 响应:
Possible root causes from diagnostic reading:
1) Nested exception (e.g double hard fault or NMI) can be caused by illegal CPU activity such as invalid address modification
2) Debug access has been disabled
Possible recovery method:
1) Perform a DSSM factory reset with or without password
2) Power cycle or reset the device
可以按预期连接到 SEC_AP 和 CS_DAP_0、但不能连接到 CORTEX_M0P 内核。
我确实注意到 BCR_Config 结构与手册中所述相应寄存器的假定布局存在差异。 由于恢复出厂设置应成功执行、因此我假定生成的代码正确、手册不正确。
生成的代码没有保留的数据间隙、 例如不考虑 BOOTCFG0 和 BOOTCFG3 之间的偏移。

我的设备坏了吗? 为什么?
为什么手册和生成的代码之间的存储器布局不同?


