EasyManua.ls Logo

Elprotronic MSP430 - F_Open_Target_Device

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...
This time can exceed the cumulative time for the older MSP430 microcontrollers. From that
reason the USB-MSP430-FPA uses the word write mode that allows to decrease 2 times the
cumulative time.
t
CPT
= 32(words) * 75 us = 2.4 ms.
F_Open_Target_Device
F_Open_Target_Device - Initialization communication with the target device.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed simultaneously.
When F_Open_Target_Device is executed, then
- Power from the programming adapter becomes ON if PowerTargetEn in configuration
setup is enabled.
- Vcc is verified to be higher then 2.7V.
- JTAG/SBW or BSL communication between programming adapter and target device is
initialized.
Note: The correct BSL password should be downloaded to password or data buffer to be able to activate target devices
if BSL or Fast BSL intefrace is used. If password is unknown the use encapsulated F_Memory_Erase() function
first.
Target device is ready to get other sequential instructions.
Syntax:
MSPPRG_API INT_X F_Open_Target_Device( void );
Return value:
0 - FALSE (communication failed)
1 - TRUE (communication is OK)
2 - JTAG security blown - communication failed
-2 (0xFFFFFFFE) - FPA_INVALID_NO
Example:
int st;
....................
F_Open_Target_Device();
....................
F_Segment_Erase(0x1000);
st = F_Sectors_Blank_Check( 0x1000, 0x107f );
if ( st != TRUE )
{ ............... }
F_Memory_Write_Data( 0x1000, 0x20, data );
F_Memory_Write_Data( 0x1050, 0x20, data );
92

Table of Contents