EasyManua.ls Logo

Elprotronic MSP430 - F_Memory_Erase; F_Memory_Blank_Check

Default Icon
119 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Return value:
0 - FALSE (JTAG fuse blown or BSL password wrong)
1 - TRUE (valid access to MSP430)
-2 (0xFFFFFFFE) - FPA_INVALID_NO
F_Memory_Erase
F_Memory_Erase - Erase Target’s Flash Memory
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed simultaneously.
Erase flash size, or sector to be erased, should be specified in the configuration setup. When mode
erase flag is set to one, then all memory will be erased, regardless erase memory configuration setup
value. When the Retain Data are specified (including DCO constants in the F2xx), then retain data
are read before erase process, and restored after the erase process.
Syntax:
MSPPRG_API INT_X F_Memory_Erase( INT_X mode );
mode = 0 -> erase space specify by the FlashEraseModeIndex and
restore retain data if enabled;
mode = 1 -> erase all Flash memory, regardless FlashEraseModeIndex and
restore retain data if enabled;
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
F_Memory_Blank_Check
F_Memory_Blank_Check - Check if the Target’s Flash Memory is blank.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed simultaneously.
Syntax:
MSPPRG_API INT_X F_Memory_Blank_Check( void );
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
86

Table of Contents