EasyManua.ls Logo

Elprotronic MSP430 - F_Close_Target_Device; F_Segment_Erase

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...
F_Segment_Erase(0x4000);
F_Segment_Erase(0x4200);
F_Segment_Erase(0x4400);
F_Segment_Erase(0x4600);
st = F_Sectors_Blank_Check( 0x4000, 0x47ff );
if ( st != TRUE )
{ ............... }
F_Memory_Write_Data( 0x4000, 0x100, data1 );
F_Memory_Write_Data( 0x4100, 0x100, data2 );
....................
F_Close_Target_Device();
....................
F_Close_Target_Device
F_Close_Target_Device - Termination communication between target device and programming
adapter.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
Instruction should be called on the end of the sequential instructions. When F_Close_Target_Device
instruction is executed then:
- Communication between target device and programming adapter is terminated.
- Power from the programming adapter becomes OFF (if selected).
- Target device is released from the programming adapter.
Syntax:
MSPPRG_API INT_X F_Close_Target_Device( void );
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
Example:
See example above (F_Open_Target_Device).
F_Segment_Erase
F_Segment_Erase - Erase any segment of the MSP430 Flash memory.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
93

Table of Contents