Problem
After installing the Generic DLL package from the website Downloads tab, how do I run my first adapter using the CLI?
Solution
Go to Generic-FPA-DLLs\bin\Win32, and open FPAs-setup.ini, you will see contents similar to this listing an adapter to be specified on index 1:
FPA-1 20204012 TYPE-ARMChange the serial number to specify your adapter. Specify the type to TYPE-ARM or TYPE-ARM-GP, etc. From Generic-FPA-TS.h found in Generic-FPA-DLLs\include the types are:
"C2000" - FlashPro-2000
"CC" - FlashPro-CC programming 8051
"CC-GP" - GangPro-CC programming 8051
"ARM" - FlashPro-ARM, FlashPro-MSP programming MSP432
"ARM-GP" - GangPro-ARM, GangPro-CC programming CM3
"MSP" - FlashPro-430, FlashPro-MSP programming MSP430
"MSP-GP" - GangPro-430
"M" - FlashPro-M
"M-GP" - GangPro-M
When using FlashPro-X or GangPro-X adapter, select from above list based on target MCU.If you have a newer installation of ARM/MSP430 etc. than is present in the Generic bin directory, copy the appropriate DLLs there; i.e. for ARM: FlashProARM-FPA1.dll and GangProARM-FPA1.dll, from the ARM install directory to Generic-FPA-DLLs\bin\Win32. The Generic DLL uses 32-bit DLLs (x86 installations).
Open two cmd.exe consoles, go to Generic-FPA-DLLs\bin\Win32, and check your adapter connectivity using the following command:
In the same console used for the DISCOVER command start the server with the FPAs-setup.ini file and -b option (blocking calls). This starts the server process that keeps track of up to 64 adapters. This process is persistent and should be kept running until everything is finished.