This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSPM0C1104:M0C1104 在 FLASH_bsl.out 之后出现问题

Guru**** 2895520 points

Other Parts Discussed in Thread: MSPM0C1104, UNIFLASH, LP-MSPM0C1104

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1644438/mspm0c1104-m0c1104-have-problem-after-flash_bsl-out

器件型号: MSPM0C1104
Thread 中讨论的其他器件: UNIFLASH

您好的团队、

我的客户正在开发 M0C1104、他们发现问题如下。

重复步骤:
1.Compiled 是“flash_bsl“演示工程、并生成 flash_bsl.out 文件。
 C:\ti\mspm0_sdk_2_10_00_04\examples\nortos\LP_MSPM0C1104\bsl\flash_bsl、 需进行以下修改。
 

diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs    
index 99f26c0..81a6803 100644
--- a/.settings/org.eclipse.core.resources.prefs
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -1,2 +1,6 @@
 eclipse.preferences.version=1
+encoding//Debug/makefile=UTF-8
+encoding//Debug/sources.mk=UTF-8
+encoding//Debug/subdir_rules.mk=UTF-8
+encoding//Debug/subdir_vars.mk=UTF-8
 encoding/<project>=UTF-8
diff --git a/boot_config.h b/boot_config.h
index bff7dd4..3ae99b2 100644
--- a/boot_config.h
+++ b/boot_config.h
@@ -67,9 +67,10 @@
 #define DEF_I2C_SDA_MUX                                     ((uint8_t) 3)
:...skipping...
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs    
index 99f26c0..81a6803 100644
--- a/.settings/org.eclipse.core.resources.prefs
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -1,2 +1,6 @@
 eclipse.preferences.version=1
+encoding//Debug/makefile=UTF-8
+encoding//Debug/sources.mk=UTF-8
+encoding//Debug/subdir_rules.mk=UTF-8
+encoding//Debug/subdir_vars.mk=UTF-8
 encoding/<project>=UTF-8
diff --git a/boot_config.h b/boot_config.h
index bff7dd4..3ae99b2 100644
--- a/boot_config.h
+++ b/boot_config.h
@@ -67,9 +67,10 @@
 #define DEF_I2C_SDA_MUX                                     ((uint8_t) 3)
 #define DEF_I2C_SCL_PAD                                     ((uint8_t) 11)
 #define DEF_I2C_SCL_MUX                                     ((uint8_t) 4)
-#define BSL_CFG_I2C_SLAVE_ADDRESS                           ((uint8_t) 0x48)
+#define BSL_CFG_I2C_SLAVE_ADDRESS                           ((uint8_t) 0x61)
 
 /* INVOCATION PIN Config */
+// btn
 #define DEFAULT_BSL_PIN_INVOCATION_DATA0                    ((uint8_t) 0x93)
 #define DEFAULT_BSL_PIN_INVOCATION_DATA1                    ((uint8_t) 0x12)
 
diff --git a/flashBSL_modules.h b/flashBSL_modules.h
index ea07489..b438d5b 100644
--- a/flashBSL_modules.h
+++ b/flashBSL_modules.h
@@ -44,8 +44,8 @@
  * Interfaces available for BSL Communication
  * Can select only one Interface
  * */
-#define UART_INTERFACE ENABLE
-#define I2C_INTERFACE DISABLE
+#define UART_INTERFACE DISABLE
+#define I2C_INTERFACE ENABLE
 
 /*
  * Select invocation mechanisms for Flash BSL
(END)

2.using CCR20.5.0 将 FLASH_BSL.OUT 刷写到器件中  


遇到以下错误:“闪存编程器错误:尝试在不擦除的情况下写入 NONMAIN。“

要恢复、我使用随附屏幕截图中所示的配置通过 UniFlash 重新刷写了完整的应用程序映像。

0511-1.png

5.加载过程似乎已成功完成,没有报告任何错误。
 但 M0C1104 无法检测任何 I2C 器件。 M0C1104 似乎无法正常工作。


6.但是,由于该操作,设备不再接受任何新的固件上传—每次后续尝试都会立即失败,并显示以下错误:

0511-2.png

 

是否有办法恢复设备? 任何指导都将非常感谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Jerry、

    您能帮助检查引导诊断值吗? 谢谢!e2e.ti.com/.../Read-CFGAP.pptx

    此致、

    Zoey

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Zoey、我是客户。 您能指导我如何检查引导诊断值吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    我已附上这些幻灯片。 请阅读 CFGAP.pptx 您能帮助遵循此指南吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Zoey、

    我将遵循指导并在稍后与您分享结果。 谢谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Zoey、

    我遵循了指导、但发生了错误。 是否有解决方案、或者需要更换 MCU?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、

    DAP 无法连接。 请检查您的硬件(例如:NRST、SWD、...)。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、
    我正在使用 LP-MSPM0C1104。 在我加载闪存 BSL 之前、所有函数都正常工作。 我将尝试切换到几根不同的 USB 电缆。