EasyManua.ls Logo

Elprotronic MSP430 - 4.2 Generic Instructions

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...
4.2 Generic instructions
Generic instructions are related to initialization programmer process, configuration setup and
preparation data, turning ON and OFF target’s DC and RESET target device. Any communication
with the target device is provided when any of the generic instruction is executed. Generic
instructions should be called before encapsulated and sequential instruction.
F_Check_FPA_access
F_Check_FPA_access - Check available Flash Programming Adapter (USB-MSP430-FPA
or MSP-FET430UIF) connected to specified USB drivers (USB
driver index from 1 to 64)
VALID FPA index (DLL instance number) - ( 1 to 64 )
Important: It is not recommended to use this function. Function used only for compatible with
the old software. Use the F_OpenInstancesAndFPAs instead.
Do not use the F_OpenInstances or F_Check_FPA_access after using the
F_OpenInstancesAndFPAs. The F_OpenInstancesAndFPAs is assigning the FPAs to
USB ports and it is not recommended to reassign once again the USB port using the
F_Check_FPA_access function. To check the communication activity with FPA use the
F_Get_FPA_SN function that allows to check te communication with the FPA adapter
without modifying the USB ports assignment.
F_Check_FPA_access should be called as a first function when the *.dll is activated. Function
returns serial number of the detected flash programming adapter, or zero, if programming adapter
has not been detected with selected USB driver. Up to 64 USB drivers can be scanned.
To make a Multi-FPA software back compatible, the F_Check_FPA_access procedure is calling the
function F_OpenInstances if none of the instances has not been activated before. That allows to
use old application software without calling the new type of Multi-FPA functions.
Syntax:
MSPPRG_API LONG_X F_Check_FPA_access ( INT_X USB_index );
Parameters:
Index: USB driver index from 1 to MAX_USB_DEV_NUMBER
where MAX_USB_DEV_NUMBER = 64
To search ONLY the USB-MSP430-FPA adapters.
Index = Index | 0x100
To search the USB-MSP430-FPA and MSP-FET430UIF adapters.
48

Table of Contents