Part Number: MSP430F6736
Tool/software: Code Composer Studio
I just started to work on the flash functionallity of the MSP430F6736. I planned on using the API functions of the driverlib and stumbled upon the missing or more like incorrect programming example on site 193 of "MSP430F5xx_6xx_DriverLib_Users_Guide-2_91_11_01.pdf".
20.3 Programming Example The following example shows some flash operations using the APIs
do{
FlashCtl_eraseSegment(FlashCtl_BASE, (unsigned char *)INFOD_START);
status = FlashCtl_performEraseCheck(FlashCtl_BASE, (unsigned char *)INFOD_START, 128);
}while(status == STATUS_FAIL);
//Flash write
FlashCtl_write32(FlashCtl_BASE,calibration_data,(unsigned long *)(INFOD_START),1);
The first function is in both the seperate API examples before and the actual driverlib include file given as:
void FlashCtl_eraseSegment (uint8_t flash_ptr );
It seems that the code example is wrong. If so, could you correct this fault please? Thank you in advance.