Hello!
I am trying to use the flash driverlib to erase the 128 KB flash memory of the CC2650F128. To my understanding, this must be done one page (and each page is 4 KB, starting at address 0x00001000) at a time.
I attempt to do this below:
#define FLASH_BASE 0x0
#define FLASH_PAGE_SIZE 0x00001000
int main(){
uint8_t i=0;
for(i; i<32; i++){
int j = FlashSectorErase(FLASH_BASE + i*FLASH_PAGE_SIZE);
System_printf("Page Number Erased: %i\n", i);
System_flush();
}
return 0;
}
But am given warning statement "expression has no effect" once I build the project.
The error I get when debugging is "FAPI_STATUS_INCORRECT_DATABUFFER_LENGTH" meaning that there is an "Invalid argument".
Any ideas on how to move forward?
Thank you,
Kevin