EasyManua.ls Logo

Elprotronic MSP430 - F_Sectors_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...
Parameters:
segment address - Even number from 0x1000 to 0x1FFFE,
To erase a memory segment specify an address within that memory segment. For example to erase
segment 0x2000-0x21FF any address from the range 0x2000 to 0x21FF can be specified. To erase
all memory segments, erase the memory segment by segment, or used the encapsulated instruction
F_Memory_Erase(1);
Note: When encapsulated instruction is executed, then next access to the sequential instruction can
be accessed only when F_Open_Target_Device instruction is called again.
Syntax:
MSPPRG_API INT_X F_Segment_Erase( LONG_X address );
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
Example:
....................
F_Segment_Erase(0x4000); // erase segment 0x4000 to 0x41FF
F_Segment_Erase(0x4100); // erase the same segment
F_Segment_Erase(0x1010); // erase INFO segment 0x1000 to 0x107F
....................
F_Sectors_Blank_Check
F_Sectors_Blank_Check - Blank check part or all Flash Memory. Start and stop address of the
tested memory should be specified.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
Parameters:
start address - Even number from 0x1000 to 0x1FFFE,
stop address - Odd number from 0x1001 to 0x1FFFF,,
Syntax:
MSPPRG_API INT_X F_Sectors_Blank_Check( LONG_X start_addr,
LONG_X stop_addr );
Return value:
94

Table of Contents