您好!
我要将现有工程从 TI 20.2.7 LTS 迁移到 TI ARM Clang v2.1.3 LTS、但遇到了以下问题:
我构建了 hexfile 并在目标上运行它、但当我重新启动器件时、会调用引导加载程序。 我`m 使用默认的 TivaWare 引导程序2.2.0295。
`ve 已n`t 了问题的根源、但我不知道如何解决。
引导加载程序期望应用程序位于地址0x4000、并检查 int 矢量表。
// See if the first location is 0xfffffffff or something that does not // look like a stack pointer, or if the second location is 0xffffffff or // something that does not look like a reset vector. // pui32App = (uint32_t *)APP_START_ADDRESS; if((pui32App[0] == 0xffffffff) || ((pui32App[0] & 0xfff00000) != 0x20000000) || (pui32App[1] == 0xffffffff) || ((pui32App[1] & 0xfff00001) != 0x00000001)) { return(1); }
我´ve 了 TI Clang 编译器中的链接器映射、并将文本段置于0x4000旧编译器会将 intvecs 置于地址。 请查看附加的链接器文件和链接器命令。
我如何修改 Clang 编译器的链接器脚本、以便将 intvecs 放在0x4000?
谢谢!
此致
斯特芬
