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.

CC2640r2 off-chip OAD使用外部flash 4MByte问题?



hi RT

我的编译环境如下:

协议栈使用:ble_sdk_2_02_01_18

BLE SDK使用:simplelink_cc2640r2_sdk_1_40_00_45

编译环境:Code Composer Studio 7.2.0

测试硬件:官方 LAUNCHXL-CC2640R2 开发板

蓝牙测试demo:simple_peripheral_cc2640r2lp_oad_offchip_app (BLE4.2协议)

// Supported flash devices
static ExtFlashInfo_t flashInfo[] =
{
{
.manfId = 0xC8, // WinBond
.devId = 0x15, // W25Q32
.deviceSize = 0x400000 // 4 MByte (32 Mbit)
},

.

.

.

}

增加新的flash ID,成功编译好所有工程,bim_oad_offchip_cc2640r2lp_app、simple_peripheral_cc2640r2lp_oad_offchip_app、simple_peripheral_cc2640r2lp_oad_offchip_stack。

现在有个场景需要实现在外部flash做off-chip OAD和数据存储、缓存。

外部flash大小为4M,希望前面2M作为off-chip OAD功能,后面2M flash作为数据记录和缓存。

1、想问下这样功能是否能实现?

2、如果可以实现,ext_flash_layout.h需要做怎样配置?