diff --git a/DeviceStorage.c b/DeviceStorage.c index 0b817a3..29a2b24 100644 --- a/DeviceStorage.c +++ b/DeviceStorage.c @@ -93,16 +93,17 @@ void DeviceStorage_InitCommon(tDeviceStorage *env, tStorageInterface *storageCal } SECT_SRAM_NVM uint8_t dataReservedParamStore[nf_storage_param_size]; -extern uint32_t __caldata_start[]; bool DeviceStorage_Init(tDeviceStorage *env, tStorageInterface *storageCalibInterface, tStorageInterface *storageParamInterface, tLoggerInterface *logger) { + extern uint32_t __itcm_start[]; + env->logger = logger; env->dataParam = (tDeviceDataNonVolatile *) dataReservedParamStore; - env->dataCalib = (void *) __caldata_start; + env->dataCalib = (void *) __itcm_start; DeviceStorage_InitCommon(env, storageParamInterface, nf_storage_param_size, storageCalibInterface, nf_storage_calib_size);