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.

[参考译文] TMS570LC4357:从引导加载程序执行应用程序。

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1404820/tms570lc4357-execute-application-from-bootloader

器件型号:TMS570LC4357

工具与软件:

您好!

从引导加载程序执行应用文件  

1)我下载了引导加载程序代码示例  

引导加载程序:


VECTORS (X): origin=0x00000000 length=0x00000020 fill = 0xffffffff
FLASH0 (RX): origin=0x00000020 length=0x001FFFE0 vfill = 0xffffffff
FLASH1 (RX): origin=0x00200000 length=0x00200000 vfill = 0xffffffff
/*组7 (128KB、费用)*/
FLASH7 (R):origin=0xF0200000 length=0x00020000 Vfill = 0xffffffff

堆栈(RW):origin=0x08000000 length=0x00001000
RAM (RW):origin=0x08002500 length=(0x0002EB00-0x2500)
/*组0 ECC */
ECC_VEC (R):origin=(0xf0400000 +(start (vectors)>> 3))
长度=(大小(矢量)>> 3)
ecc={algoL2R5F021、input_range=vectors}

ECC_FLA0 (R):origin=(0xf0400000 +(start (FLASH0)>> 3))
长度=(SIZE (FLASH0)>> 3)
ECC={ALGORIGGER=Algorithm2R5F021、INPUT_RANGE=FLASH0}

/*组1 ECC */
ECC_FLA1 (R):origin=(0xf0400000 +(start (FLASH1)>> 3))
length=(size (FLASH1)>> 3)
ECC={ALGORIGGER=Algorithm2R5F021、INPUT_RANGE=FLASH1}

/*组7 ECC */
ECC_FLA7 (R):origin=0xF0100000
长度=(SIZE (FLASH7)>> 3)
ECC ={algogor=algoL2R5F021、input_range=FLASH7}

/*用户代码结束*/
}

2)闪烁 LED 应用程序代码

LED 应用:


小程序

/*用户代码 begin (2)*/
/*用户代码结束*/
VECTORS (X): origin=0x00020020 length=0x00000020.
FLASH0 (RX):origin=0x00020040 length=(0x001FFFE0-0x00020020)
FLASH1 (RX):origin=0x00200000 length=0x00200000
堆栈(RW):origin=0x08000000 length=0x00001500
RAM (RW):origin=0x08040000 length=(0x00080000-0x00040000)

/*用户代码 begin (3)*/
/*用户代码结束*/
}

上述代码正在从引导加载程序执行

2)不是我使用我的开发应用程序代码,这里 UART 通信不工作,这里是我的应用程序代码的存储器信息   


小程序

/*用户代码 begin (2)*/
/*用户代码结束*/
VECTORS (X): origin=0x00020020  length=0x00000020.
FLASH0 (RX):origin=0x00020040  length=0x001FFFE0
FLASH1 (RX):origin=0x00200000 length=0x00200000
堆栈(RW):origin=0x08000000 length=0x00001500
RAM (RW):origin=0x08001500 length=0x0007EB00

/*用户代码 begin (3)*/
/*用户代码结束*/
}