为了读写FLASH,要修改链接配置文件.cmd,修改如下:
/* The starting address of the application. Normally the interrupt vectors */
/* must be located at the beginning of the application. */
#define FLASH_BASE 0x0
#define FLASH_SIZE 0xF000
#define FLASH_USER_BASE 0xF000//添加的用户数据区起始地址
#define FLASH_USER_SIZE 0x1000
/* must be located at the beginning of the application. */
#define FLASH_BASE 0x0
#define FLASH_SIZE 0xF000
#define FLASH_USER_BASE 0xF000//添加的用户数据区起始地址
#define FLASH_USER_SIZE 0x1000
/* Application stored in PAGE 31 internal flash */
FLASH_USER (RWX) : origin = FLASH_USER_BASE, length = FLASH_USER_SIZE //添加的用户数据map说明
FLASH_USER (RWX) : origin = FLASH_USER_BASE, length = FLASH_USER_SIZE //添加的用户数据map说明
2.在初始化RF过程中,运行函数(EasyLink_init(EasyLink_Phy_Custom) != EasyLink_Status_Success)一直卡在里面,跑不过去了。
恢复.cmd配置后,RF初始化又正常了,不知道哪存在问题?
ju yang1:
已解决,原来读写FLASH时要进行VIMS操作。