Part Number:CC2642R
如题:
如何将 一段版本号,写在固定的Flash地址中,并可以生成在Hex文件固定的地址位置? 能否提供参考的示例,谢谢。
Kevin Qiu1:
版本号在devinfoservice.c中写入比较方便,通过Simplelink Starter APP连上CC2642就可以看到设备信息
// Device Information Service attribute static CONST gattAttrType_t devInfoService = { ATT_BT_UUID_SIZE, devInfoServUUID };// System ID characteristic static uint8 devInfoSystemIdProps = GATT_PROP_READ; static uint8 devInfoSystemId[DEVINFO_SYSTEM_ID_LEN] = {0, 0, 0, 0, 0, 0, 0, 0};// Model Number String characteristic static uint8 devInfoModelNumberProps = GATT_PROP_READ; static uint8 devInfoModelNumber[DEVINFO_STR_ATTR_LEN+1] = "Model Number";// Serial Number String characteristic static uint8 devInfoSerialNumberProps = GATT_PROP_READ; static uint8 devInfoSerialNumber[DEVINFO_STR_ATTR_LEN+1] = "Serial Number";// Firmware Revision String characteristic static uint8 devInfoFirmwareRevProps = GATT_PROP_READ; static uint8 devInfoFirmwareRev[DEVINFO_STR_ATTR_LEN+1] = "Firmware Revision";// Hardware Revision String characteristic static uint8 devInfoHardwareRevProps = GATT_PROP_READ; static uint8 devInfoHardwareRev[DEVINFO_STR_ATTR_LEN+1] = "Hardware Revision";// Software Revision String characteristic static uint8 devInfoSoftwareRevProps = GATT_PROP_READ; static uint8 devInfoSoftwareRev[DEVINFO_STR_ATTR_LEN+1] = "Software Revision";// Manufacturer Name String characteristic static uint8 devInfoMfrNameProps = GATT_PROP_READ; static uint8 devInfoMfrName[DEVINFO_STR_ATTR_LEN+1] = "Manufacturer Name";在固定地址写入数据可以参考SDK中的例程C:\ti\simplelink_cc13x2_26x2_sdk_5_10_00_48\examples\rtos\CC26X2R1_LAUNCHXL\drivers\nvsinternal