环境
- 系统:Windows 10
- SDK:simplelink_cc13x2_26x2_sdk_4_30_00_54
- IDE:Code Composer Studio, Version: 10.1.1.00004
- 例程:cc26x2r1lp_bim_offchip
1. 修改
1.1 bim_main.c 改动
- 删除原来的 bim_main.c 文件
- 新建一个user文件夹,将 bim_main.c 复制到该目录;
文件路径:C:\ti\simplelink_cc13x2_26x2_sdk_4_30_00_54\examples\nortos\CC26X2R1_LAUNCHXL\bim\bim_offchip\src\bim_main.c
1.2 代码修改
找到 main 函数,改动如下:
// intFlashPageSize = FlashSectorSizeGet();
//
// Bim_checkImages();
/* If we get here, that means there is an issue: no valid image found.
* Set the device to the lowest power state. Does not return.
*/
// setLowPowerMode();
#if defined(SECURITY)
jumpToPrgEntry(0x90);
#else
jumpToPrgEntry(0x50);
#endif
其中的跳转地址可以在 “simple_peripheral_oad_offchip_CC26X2R1_LAUNCHXL_tirtos_ccs” 工程的
simple_peripheral_oad_offchip_app.cfg 文件找到,如图:
跳转地址选 0x90 还是 0x50 由预编译宏 “SECURITY” 决定,有这个宏选择 0x90,没有选 0x50。
注意
bim 工程更改 project name 时 Linked Resources 中的 Path Variables 会发生改变,需要删除新生成的 XXX1路径,否则SDK路径变化时会出问题。