CC1310 USE_TIRTOS_ROM
时间:12-23
整理:3721RD
点击:
Hi ,
想使用cc1310 ROM内的driver和RTOS,不想将这些编译链接到flash中,应该如何实现呢,有人试过吗?
//***************************************************************************** // // Support for DriverLib in ROM: // This section renames all functions that are not "static inline", so that // calling these functions will default to implementation in flash. At the end // of this file a second renaming will change the defaults to implementation in // ROM for available functions. // // To force use of the implementation in flash, e.g. for debugging: // - Globally: Define DRIVERLIB_NOROM at project level // - Per function: Use prefix "NOROM_" when calling the function // //*****************************************************************************
默认就是使用ROM内的TI-RTOS
在.cfg文件中
/* ================ ROM configuration ================ */
/*
* To use BIOS in flash, comment out the code block below.
*/
var ROM = xdc.useModule('ti.sysbios.rom.ROM');
ROM.romName = ROM.CC1350;
DRIVERLIB_NOROM
在项目OPTION里删除后,发现编译后还是大量NOROM 函数,都还在FLASH里。。。奇怪,用的是IAR.