AnsweredAssumed Answered

about LDD_TError FLASH1_Erase(LDD_TDeviceData *DeviceDataPtr, LDD_FLASH_TAddress FromAddress, LDD_FLASH_TDataSize Size)

Question asked by Jason Zhang on Feb 18, 2016
Latest reply on Feb 19, 2016 by Fiona Kuang

Hi

 

I used PE generated the LDD_TError FLASH1_Erase(LDD_TDeviceData *DeviceDataPtr, LDD_FLASH_TAddress FromAddress, LDD_FLASH_TDataSize Size).

 

Could you kindly explain  the difference between the below two methods:

 

1.

(void)FLASH1_Init(NULL);

FLASH1_Erase(NULL,ERASE_START_ADD,ERASE_SIZE);

 

2.

void *pFlash_Device;

pFlash_Device = FLASH1_Init(NULL);

FLASH1_Erase(pFlash_Device,ERASE_START_ADD,ERASE_SIZE);

 

Thanks!

Jason

Outcomes