SLAU358Q September 2011 – October 2019
Note: The target device must be opened first if not open yet (see MSPGANG_Interactive_Open_Target_Device, Section 4.2.12).
MSPGANG_Interactive_EraseSectors erases flash sectors starting from the sector with address location StartAddr and ending with the sector with EndAddr location.
Syntax
LONG MSPGANG_Interactive_EraseSectors(LONG StartAddr, LONG EndAddr)
Arguments
LONG StartAddr | FLASH address location of the first sector to be erased. Address aligned to the sector size. |
LONG EndAddr | Address of the last sector to be erased. The address is aligned to the sector size. |
Result
LONG | Error code |