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.
工具与软件:
大家好、团队成员:
我在使用 sbl_uart_uniflash 将 bin 刷写到闪存的特定偏移量中时遇到问题。 在 SBL_UART 中禁用 Uart_Uniflash 打印、因此无法找出根本原因。
我想使用 Uart_Uniflash 工具在调试模式下运行 SBL_XDS。 但是为了进行刷写、我需要将 TI SOC 设置为 UART 模式、但为了进行逐步调试、SOC 必须处于"无引导"模式。 您能否建议一种在调试模式下运行 SBL_SBL_ Uart_Uniflash 的方法?
此致、
Shyam。
尊敬的 Syam:
有。 这是可能的。
如果要按原样使用 sbl_uart_uniflash 调试版本、可以使用 C:\ti\mcu_plus_sdk_am273x_09_02_00_52\tools\boot\sbl_prebuild\am273x-evm\sbl_uart.debug.tiimage 中预编译的版本。 只需将*。cfg 中的"sbl_uart_uniflash.release.tiimage"更改为"sbl_uart_uniflash.debug.tiimage"
您还可以构建自定义的 sbl_uart_uniflash.debug.tiimage。您可以 从 C:\ti\mcu_plus_sdk_am273x_09_02_00_52\examples\drivers\boot\sbl_uart_uniflash 导入 CCS 工程、然后在 Debug 剖面中编译它、或使用 makefile 通过 profile=debug 来编译它。
然后、可以使用生成的 sbl_uart_uniflash.debug.tiimage 替换 C:\ti\mcu_plus_sdk_am273x_09_02_00_52\tools\boot\sbl_prebuild\am273x-evm 文件夹中的那个。
此致、
Ming
尊敬的 Ming:
感谢您的答复。
问题是我无法在 XDS 模式下运行官方 SBL_UART_Uniflash 调试二进制文件(调试器显示 程序计数器卡在 RESET_VECTOR 处)。 是否可以将 SBL_XDS 与 Uart_Uniflash 调试器一起使用?
我能够将 SBL_JTAG_Uniflash 与 XDS 调试器一起使用、而可以使用断点进行调试。
此致、
Shyam。
尊敬的 Syam:
尽管无法 使用 JTAG 加载和运行 SBL_UART_Uniflash、但仍然可以 使用以下方法调试和单步执行 SBL_UART_Uniflash:
1.在 SBL_UART_Uniflash 的 main ()的开头添加以下代码
Int loopForever = 1;
while (loopForever)
{
}
2.将 SBL_UART_Uniflash (*。tiimage)刷写到 NOR 闪存中
3.将引导模式设置为 QSPI 引导模式、然后对电路板进行下电上电
4.使用 JTAG 连接到目标并停止 CPU
5.从 SBL_UART_Uniflash (*。out)加载符号
6.将 loopForever 更改为0
7.启动单步调试
此致、
Ming