The MSP430 Flash Programmer
Multi-FPA API-DLL User’s Guide
for the USB-MSP430-FPA and MSP-FET430UIF Adapters
Software version 4.5
PM010A05 Rev.22
April-05-2010
Elprotronic Inc
.
Страница 1: ...The MSP430 Flash Programmer Multi FPA API DLL User s Guide for the USB MSP430 FPA and MSP FET430UIF Adapters Software version 4 5 PM010A05 Rev 22 April 05 2010 Elprotronic Inc...
Страница 2: ...ument is furnished under a licence and mayonlybe used or copied in accordance with the terms of such a licence Disclaimer of warranties You agree that Elprotronic Inc has made no express warranties to...
Страница 3: ...ACQUIRED WITHIN THIRTY 30 DAYS OF PURCHASE AND YOUR MONEY WILL BE REFUNDED 1 License The software firmware and related documentation collectively the Product is the property of Elprotronic or its lic...
Страница 4: ...ges of any kind including lost profits regardless of the form of action whether in contract tort including negligence strict product liability or otherwise even if Elprotronic has been advised of the...
Страница 5: ...by one of more of the following measures Reorient or relocate the receiving antenna Increase the separation between the equipment and receiver Connect the equipment into an outlet on a circuit differe...
Страница 6: ...30 4 List of the DLL instructions 33 4 1 Multi FPA instructions 36 F_Trace_ON 36 F_Trace_OFF 36 F_OpenInstances 37 F_CloseInstances 37 F_OpenInstancesAndFPAs F_OpenInstances_AndFPAs 38 F_Set_FPA_inde...
Страница 7: ...F_Get_CodeCS 77 F_ReadPasswFile F_Read_PasswFile 77 F_Clr_Code_Buffer 78 F_Put_Byte_to_Code_Buffer 79 F_Get_Byte_from_Code_Buffer 80 F_Put_Byte_to_Password_Buffer 80 F_Get_Byte_from_Password_Buffer 8...
Страница 8: ...opy_Flash_to_Buffer 100 F_Copy_Buffer_to_RAM 101 F_Copy_RAM_to_Buffer 101 F_Set_PC_and_RUN 102 F_Capture_PC_Addr 104 F_Synch_CPU_JTAG 104 F_Blow_Fuse 105 F_Adj_DCO_Frequency 107 F_Test_DCO_Frequency 1...
Страница 9: ...ion When the MSP FET430UIF adapter is used then the only one adapter can be connected Figure 1 1 shows the connections between PC and up to sixteen programming adapters The FPAs can be connected to PC...
Страница 10: ...ain Multi FPA file FPA selector MSP430FPA DLL allows to transfer API DLL functions coming from application software to desired single application dll MSP430FPA1 DLL to MSP430FPA64 DLL or MSPFET430UIF1...
Страница 11: ...back to application software If results are not the same then the Multi FPA dll is returning back value 1 minus 1 and all recently received results can be read individually using function F_LastStatus...
Страница 12: ...be read from the code file and saved in the API DLL 1 next code file data should be saved in the API DLL 2 etc When it is done then the F_AutoProgram can be executed simultaneously with selected all a...
Страница 13: ...C MSP430FPA BC lib lib file for Borland VC config ini default configuration file for the FPAs FPAs setup ini FPAs vs UIF ports configuration file The API DLL package in the USB FlashPro430 and in the...
Страница 14: ...package in C the requires following files MSP430FPA dll Multi FPA selection distribution DLL MSP430FPA1 dll DLL for Elprotronic s USB MSP430 FPA MSPFET430UIF1 dll DLL fro TI s MSP FET430UIF config in...
Страница 15: ...30 USB FlashPro430 LabView 1 1 Using TI s MSP FET430UIF adapter TheMulti FPAAPI DLLversion4 0andhigherallows tocontrol theTI s MSP FET430UIF or EZ430 stick adapter with the same list of instructions a...
Страница 16: ...FET430UIF adapter is used only then do not use ANY adapter definition Use the UIF definition instead ANY adapter When the access keyfor the MSPFET430UIF dll file is not installed then the followingpop...
Страница 17: ...presents the GUI of the FlashPro430 FET Pro430 Self Test Connect the Flash Programming Adapter USB MSP430 FPA or MSP FET430UIF to PC USB port connect your target device to adapter select desired optio...
Страница 18: ...er sectors are verified if there are not erased Small block of data are saved and verified in the mentioned sector Word write read to TACCR0 0x172 register Byte Word manipulation are used in the part...
Страница 19: ...elf Test programming software package is located in directory C Program Files Elprotronic MSP430 USB FlashPro430 SelfTest or C Program Files Elprotronic MSP430 FET Pro430 SelfTest and contains followi...
Страница 20: ...P FET430UIF is used Config ini optional The easy demo project MyMSP430Prg uses API DLLs and files listed above is located in directory Elprotronic MSP430 USB FlashPro430 API DLL MyPrg Cpp MyMSP430Prg...
Страница 21: ...PAs are located in the FPA_SN_list k where k 0 up to 15 Up to sixteen FPA SN can be located in this data block SN list are located starting from FPA_SN_list 0 The same procedure also takes a list of s...
Страница 22: ...becomes as follows F_SetConfig CFG_MICROCONTROLLER DeviceList k index The second procedure that can be called after the get_FPA_and_MSP_list procedure has finished successfully is the AssignFPAs proc...
Страница 23: ...n VB6 are located in the MspFPA Lib bas file Example how to use these procedures are located in the MSP430SamplePrg bas file API DLL function declaration and constant definition are located in the Fla...
Страница 24: ...default location C Program Files Elprotronic MSP430 USB FlashPro430 API DLL Demo Cpp Exe To make a run the demo program then the following files should be located in the same directory where the execu...
Страница 25: ...button is pressed then communication with the programming adapter is initialized Now the desired configuration setup should be downloaded to DLLs and programming adapters using button 2 Setup File cod...
Страница 26: ...HEX Content of data can be specified in the Data HEX field All data should be separated by white character space Maximum size data should be specified in the size max 32 bytes fields RAM or Flash When...
Страница 27: ...iedbeforefromElprotronic s directory andwrite the serial numbers or IDs of used adapters Take a serial numbers from the FPAs labels and write it on the desired FPAs locations FPA 1 up to FPA 8 For two...
Страница 28: ...st of used FPAs serial numbers or COM port for the MSP FET430UIF All others FPA x fields will be disabled In this example only two DLL instances becomes opened Valid FPA indexes becomes 1 2 and ALL Wh...
Страница 29: ...r F_Initialization init FPA Below is an example of the simplified without error handling procedures application program written in C that allows to initialize one FPA and run an autoprogram with the s...
Страница 30: ...waist a time 3 2 Example with Multi FPA API DLL The code example described below uses Multi FPA API DLL The multi FPA API DLL is a shell that allows to transfer incoming instructions from application...
Страница 31: ...TRUE if status FPA_UNMACHED_RESULTS for n 1 n MAX_FPA_INDEX n status n F_LastStatus n else while 1 make an infinite loop until last target device programmed F_CloseInstances Note that all single API D...
Страница 32: ...me7 read code data and save to API DLL 7 F_Set_FPA_index 8 select FPA 8 F_ReadCodeFile 8 format filename8 read code data and save to API DLL 8 F_Set_FPA_index ALL_ACTIVE_FPA select all FPA s do status...
Страница 33: ...arent path and sequential simultaneous instructions transfer management All other instructions are related to single FPAs Genericinstructions arerelatedto initializationprogrammerprocess configuration...
Страница 34: ...should be called When communication is terminated then sequential instructions can not be executed Note Inputs outputs has been defined as INP_X and LONG_X Both of them are defined as 4 bytes long see...
Страница 35: ...Figure 4 2 API DLL block diagram 35...
Страница 36: ...function activate the tracing The F_Trace_ON opens the DLLtrace txt file located in the current directory and records all API DLL instructions called from the application software This feature is use...
Страница 37: ...gn 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 w...
Страница 38: ...n file and connected to USB ports are ignored Important Do not usethe F_Check_FPA_access after usingthe F_OpenInstancesAndFPAs The F_OpenInstancesAndFPAs is assigning the FPAs to USB ports and it is n...
Страница 39: ...listed above FPA 1 20060123 FPA 2 20060346 FPA 3 20060222 FPA 4 20060245 If from any reason the listed adapter is not found then the FPA x becomes empty All other adapters will have the same FPA x in...
Страница 40: ...finition for the MSP FET430UIF adapters 1 FPAs serial number 8 digits eg 20010106 eg 20060123 20060346 20060222 20010106 Four USB MSP430 FPA will be used with SN as listed above FPA 1 20060123 USB MSP...
Страница 41: ...ed after FPA index s below eg USB MSP430 FPA configuration setup Elprotronic Inc up to eight FPA can be specified and connected via USB to PC syntax FPA x Serial Number where FPA x can be FPA 1 FPA 2...
Страница 42: ...ult FPA 1 is selected The F_Set_FPA_index 1 is not required F_Initialization FPA 1 initialization F_ReadConfigFile filename download configuration to DLLs F_ReadCodeFile format filename download code...
Страница 43: ...release DLLs from memory F_Set_FPA_index F_Set_FPA_index Select desired FPA index desired DLL instance VALID FPA index 1 to 64 or 0 ALL FPAs Syntax INT_X MSPPRG_API F_Set_FPA_index BYTE fpa Parameter...
Страница 44: ..._Set_FPA_index 1 F_Set_FPA_index 2 and F_Get_Byte_from_Buffer See below F_Set_FPA_index ALL_ACTIVE_FPA select all available FPAs F_Copy_All_Flash_to_Buffer simultaneous process for fpa 1 fpa fpa_max f...
Страница 45: ...ped When the F_Set_FPA_index 0 will be used then selected FPA will be ignored Result will not be presented in the Status results Status and F_LastStatus Syntax void MSPPRG_API F_Disable_FPA_index BYTE...
Страница 46: ...ot then returned value is FPA_UNMATCHED_RESULTS value of the FPA_UNMATCHED_RESULTS is minus 1 To get the returned values from each FPAs use the For n 1 n 64 n status n F_LastStatus n where n desired F...
Страница 47: ...x selected DLL instance number Syntax LONG_X MSPPRG_API F_Get_FPA_SN BYTE fpa Parameters fpa FPA index of the desired status fpa index 1 64 Return value Serial number of the selected FPA or FPA_INVALI...
Страница 48: ...rts 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...
Страница 49: ...060123 SN 2 20060147 SN 3 0 adapter not present SN 4 20060135 and desired assignment FPA 1 20060123 FPA 2 20060135 FPA 3 20060147 then following sequence instructions can be used F_Set_FPA_index 1 sel...
Страница 50: ...zation will return FALSE result Syntax MSPPRG_API INT_X F_Initialization void Return value 0 FALSE 1 TRUE 4 Programming adapter not detected 2 0xFFFFFFFE FPA_INVALID_NO Example F_API_DLL_Directory opt...
Страница 51: ...ALID FPA index 1 to 64 or 0 ALL FPAs executed sequentially F_Close_All function should be called as the last one before dll is closed When the F_Close_All is called then communication port becomes clo...
Страница 52: ...is taken from the programmer then part or all of the configuration data can be modified and returned back to programmer using F_ConfigSetup function Configuration data structure and available data for...
Страница 53: ...eadSegmA INT_X ReadSegmB LONG_X ReadStartAddr LONG_X ReadStopAddr INT_X VerifyModeIndex INT_X BlowFuseEn INT_X ApplicationStartEn INT_X BeepEnable INT_X EraseInfoSegmC INT_X EraseInfoSegmD INT_X DefEr...
Страница 54: ...X 24 CFG_VCCINDEX 25 CFG_CUSTOMRESETPULSETIME 26 CFG_CUSTOMRESETIDLETIME 27 CFG_RSTVCCTOGGLETIME 28 CFG_APPLRESETVCCTIME 29 CFG_POP_UP_EN 30 CFG_JTAG_SPEED 31 CFG_BSL_ENH_ENABLE 32 CFG_BSL_ENH_INDEX 3...
Страница 55: ...ERIFY_EN 64 CFG_DCOCAL_2XX_EN 65 CFG_FIRST_BSL_PASSW_INDEX 66 CFG_CS_TYPE_INDEX 69 CFG_CS_INIT_INDEX 70 CFG_CS_RESULT_INDEX 71 CFG_CS_CODE_OVERWIRIE_EN 72 CFG_CS_POLYNOMINAL 73 CFG_CS1_CALC_EN 74 CFG_...
Страница 56: ...RGETEN 2 PowerTargetEn Power Target from the Programming Adapter 0 disable 1 enable CFG_COMMSPEED 3 CommSpeedIndex BSL communication speed COMM_SPEED_9k6_INDEX 0 COMM_SPEED_75k_INDEX 1 90 kB s USB COM...
Страница 57: ...EraseSegmD MSP430F2xx only Info Segment B 0x1000 0x107F Erase Write Verify if FlashEraseModeIndex ERASE_DEF_CM_INDEX 0 Do not Write Erase Verify in segment A B C or D 1 Write Erase Verify in segment A...
Страница 58: ...and verify CFG_BLOWFUSE 16 BlowFuseEn Blow the security fuse only using JTAG SBW interface 0 disable 1 enable when called from F_Blow_Fuse 3 enable when called from F_Blow_Fuse or F_Autoprogram CFG_AP...
Страница 59: ...to 5000 step 1 in miliseconds valid only when the ResetTimeIndex RESET_TOGGLE_VCC_INDEX CFG_APPLRESETVCCTIME 29 ApplResetVccTime value 50 to 5000 step 1 in miliseconds valid only when the ApplicationS...
Страница 60: ...defined retain data protected data in flash Size of protected data can not exceed 256 bytes CFG_RETAIN_STOP_ADDR_INDEX 37 stop address stop address for the user defined retain data protected data in...
Страница 61: ..._AND_INFOA_EN 63 Valid only for MSP430F2xx 0 disable INFO A erase disabled when the mass memory erase is enabled 1 enable INFO A erase enabled when the mass memory erase is enabled CFG_DCO_CONST_2XX_V...
Страница 62: ...G_CS2_CALC_EN 78 CFG_CS3_CALC_EN 82 CFG_CS4_CALC_EN 86 0 disable 1 enable CFG_CS1_START_ADDR 73 CFG_CS2_START_ADDR 79 CFG_CS3_START_ADDR 83 CFG_CS4_START_ADDR 87 Start address value CFG_CS1_END_ADDR 7...
Страница 63: ...and at the end the modified setup is returned back to the programmer CONFIG_BLOCK config programmer s configuration data F_GetSetup config API DLL get configuration from the programmer config Interfa...
Страница 64: ...mple F_SetConfig CFG_INTERFACE config Interface F_GetConfig F_GetConfig Get one item of the programmer s configuration VALID FPA index 1 to 64 Similar to the F_GetSetup but only one item from the CONF...
Страница 65: ...Index of the selected MCU 1 error invalid MCU name Example F_Set_MCU_Name MSP430F5438 F_Get_Device_Info F_Get_Device_Info Get information related to selected microcontroller VALID FPA index 1 to 64 Sy...
Страница 66: ...can take names of all supported devices by the API DLL The max size can be tested from the API DLL until device name is empty when the microprocessor index is incremented from the zero up to max valu...
Страница 67: ...list max_up_index 0 for k 0 k MAX_NO_OF_DEVICES k F_SetConfig CFG_MICROCONTROLLER k set new uP index for n 0 n DEVICE_NAME_SIZE n DeviceList k name n char 0xFF F_Get_Device_Info DEVICE_NAME n if Devi...
Страница 68: ...d a message is created and displayed on the dynamically created programmer s dialogue box At the end of execution the dialogue box is closed and function returns back to the application program Report...
Страница 69: ...t in the scrolling box The Edit box with the ID e g IDC_REPORT must be created first Cstring Message void CMspPrgDemoDlg Disp_report_message char text 1002 must be min size 1000 F_ReportMessage text A...
Страница 70: ...1000 k text k F_GetReportMessageChar k Example below shows how to take a message and display it in the scrolling box The Edit box with the ID e g IDC_REPORT must be created first Cstring Message void...
Страница 71: ...or the GangPro 430 Version 0x0FFF VALUE 2 0xFFFFFFFE FPA_INVALID_NO Example INT_X id id F_DLLTypeVer Disp_report_message see F_ReportMessage or F_GetReportMessage for details F_ConfigFileLoad F_Config...
Страница 72: ...n FlashPro430 software select desired configuration and save the file using option Save Setup as and_file_name Specified parameters in the configuration file can be listed in any order Configuration f...
Страница 73: ...1 Turn Power ON F_Power_Target 0 Turn Power OFF F_Reset_Target F_Reset_Target Generate short RESET pulse on the target s device RESET line VALID FPA index 1 to 64 or 0 ALL FPAs executed sequentially...
Страница 74: ...pa_io_state F_Set_fpa_io_state Set state of the Reset Vcc and Jtagl lines VALID FPA index 1 to 64 or 0 ALL FPAs executed sequentially Syntax MSPPRG_API INT_X F_Set_fpa_io_state BYTE jtag BYTE reset BY...
Страница 75: ...ontains four buffers see Figure 4 2 Code Password Write Data and Read Data buffers Contents for the Code and Password buffers can be taken from the files or data can be written directly to the specifi...
Страница 76: ...MSPPRG_API INT_X F_ReadCodeFile int file_format char FileName MSPPRG_API INT_X F_Read_CodeFile int file_format CString FileName file_format FILE_TI_FORMAT 1 for TI txt format FILE_MOTOROLA_FORMAT 2 f...
Страница 77: ...sum or 2 0xFFFFFFFE FPA_INVALID_NO F_ReadPasswFile F_Read_PasswFile F_ReadPasswFile Read code password data from the file and download it to internal buffer or F_Read_PasswFile VALID FPA index 1 to 6...
Страница 78: ...X or Motorola debug format FileName full file name including path file name and extention note F_Read_PasswFile is available only when the Multi FPA dll is used Return value 0xFFFe info state where st...
Страница 79: ...d with the new data if code buffer has been cleared first using F_Clr_Code_Buffer function Instruction write the data to Code buffer in specified address location and set the used flag in that locatio...
Страница 80: ...turns value 0x00 to 0xFF if in the particular Code buffer location the flag is set to used otherwise return value 1 minus one if data is empty Syntax MSPPRG_API INT_X F_Get_Byte_from_Code_Buffer LONG_...
Страница 81: ...A_INVALID_NO Example BYTE code 0x20000 for address 0xFFE0 address 0xFFFF address F_Put_Byte_to_Password_Buffer address code address F_Get_Byte_from_Password_Buffer F_Get_Byte_from_Password_Buffer Read...
Страница 82: ...O or Flash destination address 0x0000 to 0x1FFFF data Byte to be written Return value 1 TRUE if specified address is legal 0x0000 to 0x1FFFF 0 FALSE if address is not valid 2 FPA_INVALID_NO NOTE Spec...
Страница 83: ..._API BYTE F_Get_Byte_from_Buffer LONG_X address Return value Requested byte from the specified address of the Read Data Buffer Example see F_Copy_All_Flash_To_Buffer F_Copy_Flash_to_Buffer F_Copy_RAM_...
Страница 84: ...Fuse or Password Memory Erase etc Communication between target device and programming adapter is terminated Power from the programming adapter becomes OFF if selected Target device is released from t...
Страница 85: ...on from the programmer modify configuration if required F_ConfigSetup config download setup to programmer F_SetConfig modify configuration if required do prepare next microcontroller F_AutoProgram 0 e...
Страница 86: ...ied including DCO constants in the F2xx then retain data are read before erase process and restored after the erase process Syntax MSPPRG_API INT_X F_Memory_Erase INT_X mode mode 0 erase space specify...
Страница 87: ...ffer VALID FPA index 1 to 64 or 0 ALL FPAs executed simultaneously Note During the verification process either all memory or just the selected part of the memory is verified depending on settings spec...
Страница 88: ...et_Byte_from_Buffer instead F_Memory_Read The F_Copy_All_Flash_to_Buffer instruction uses all internal buffers and size of the external buffer is irrelevant Read contents from the flash saved in the R...
Страница 89: ...d to the Visual Basic application via pointer Contents of the temporary flash buffer can be read using F_Get_Byte_from_Buffer address instruction Syntax MSPPRG_API INT_X F_Copy_All_Flash_to_Buffer voi...
Страница 90: ...Syntax MSPPRG_API INT_X F_Restore_JTAG_Security_Fuse void Return value 0 FALSE 1 TRUE 90...
Страница 91: ...location of the flash has been programmed between erasures User should take a full responsibility to program the flash memory according to the MSP430 specifications See TI s data sheets and manuals f...
Страница 92: ...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 targ...
Страница 93: ...lly Instruction should be called ontheendofthe sequential instructions When F_Close_Target_Device instruction is executed then Communication between target device and programming adapter is terminated...
Страница 94: ...ion 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_Segme...
Страница 95: ...BSL is used then an access to RAM location 0x200 to 0x2FF is blocked This RAM area is used by stack and firmware for the BSL or Fast BSL Write one word to any location of the target device Write to F...
Страница 96: ...e to RAM registers IO etc without FLASH VALID FPA index 1 to 64 or 0 ALL FPAs executed sequentially NOTE Instruction not supported in BSL and Fast BSL Write one byte to any location of the target devi...
Страница 97: ...ially Blank check before writing and verification after writing in not provided Parameters start address Even number from 0x1000 to 0x1FFFE size Even number 2 or higher block of data in bytes to be wr...
Страница 98: ...256 k data k k F_Memory_Write_Data 0x1000 0x20 data F_Memory_Write_Data 0x1050 0x20 data 0x80 F_Memory_Write_Data 0x2000 0x100 data F_Memory_Read_Data F_Memory_Read_Data Read data block from Flash Mem...
Страница 99: ...O NOTE Specified address in the Write Data Buffer is the same as a physical FLASH address Note Function is useful for writing small data block usuallyshorter then 200 bytes like calibration data seria...
Страница 100: ...ID FPA index 1 to 64 or 0 ALL FPAs executed sequentially Syntax MSPPRG_API INT_X F_Copy_Flash_to_Buffer LONG_X start_address LONG_X size Parameters start address Even number from 0x1000 to 0x1FFFE siz...
Страница 101: ...ameters start address Even address size Even number Return value 1 TRUE if data has been saved successfully 0 FALSE 2 FPA_INVALID_NO NOTE Specified address in the Write Data Buffer is the same as a ph...
Страница 102: ...cified PC in the RAM or Flash location Program should be downloaded first using the Write to Flash or Ram procedures When the processor is running then the JTAG is disconnected from the CPU The CPU ca...
Страница 103: ...dr addr_min1 PC_addr addr_max1 break delay F_Synch_CPU_JTAG F_Copy_RAM_to_Buffer address size read the test 1 result from the RAM using F_Get_Byte_from_Buffer F_Set_PC_and_RUN PC2 run the test program...
Страница 104: ...r void Return value 0 FALSE 0 Capture PC address Example See example in the F_Set_PC_and_RUN instruction F_Synch_CPU_JTAG F_Synch_CPU_JTAG Instructions allows to synchronize CPU with JTAG and stop the...
Страница 105: ...ption WhentheBSLcommunicationis activetheninstructionF_Blow_Fusecannotbesuccessfully executed and returns FALSE Note When BlowFuseEn in configuration setup is enabled and F_AutoProgram function is exe...
Страница 106: ...ACE_JTAG select JTAG interface F_SetConfig CFG_BLOWFUSE 1 enable blow security fuse using F_Blow_Fuse funtion only The F_AutoProfgram will not blow the fuse modify configuration if required st F_AutoP...
Страница 107: ...tation for detail Example data F_Adj_DCO_Frequency 2000000 When more then one FPA is used then instruction can be executed simultaneously and register value read after the function if finished in all...
Страница 108: ...is used then instruction can be executed simultaneously and register value read after the function if finished in all targets F_Set_FPA_index ALL_ACTIVE_FPA select all FPA s F_Test_DCO_Frequency 0x12...
Страница 109: ...custom ized JTAG stream VALID FPA index 1 to 64 or 0 ALL FPAs executed sequentially NOTE Instruction not supported in BSL and Fast BSL Syntax MSPPRG_API void F_init_custom_jtag INT_X state INT_X Vcc_...
Страница 110: ...hese states are 250 ns Time between the next JTAG state 5 us Below is an timing example for a following data_out block 0x0 0xD 0x8 0x1 0x0 all LOW 0xD TMS HI TDO HI TCK HI 0x8 TMS HI TDO LO TCK LO 0x1...
Страница 111: ...ins JTAG sequences in hex string For the example described above 0x0 0xD 0x8 0x1 following program with argument 0D81 should be executed from the DOS Command Prompt box FPA_JTAGStream Demo exe 0D81 fr...
Страница 112: ...m_Function Custom Function eg UART transferring message from to data buffer to external device via BSL pins with baud rate 9 6 kb s or 57 6 kb s VALID FPA index 1 to 64 or 0 ALL FPAs executed simultan...
Страница 113: ..._Byte_to_Buffer addr data Tx message size at buffer address location 0x0000 value from 1 to 56 Rx message size at buffer address location 0x0001 value from 0 to 56 Tx message data starting at buffer a...
Страница 114: ...ze to data buffer F_Put_Byte_to_Buffer UART_TX_SIZE_ADDR Tx_size F_Put_Byte_to_Buffer UART_RX_SIZE_ADDR 0 Send Receive message via UART if speed CUSTOM_FUNCTION_UART_9600 response F_Custom_Function CU...
Страница 115: ...les MSP430FPA1 dll All API DLL files should be located in the same directory where the FP430 commandline exe is located To start the command line interpreter the FP430 commandline exe should be execut...
Страница 116: ...defined MSP430 type code file etc Press ENTER result 1 OK Type F_AutoProgram 0 Press ENTER result 1 OK Type F_Report_Message Press ENTER result displayed the last report message from the F_Autoprogram...
Страница 117: ...F_ReadCodeFile 1 FileName put vaild path and code file name TI txt format F_AutoProgram 0 F_Report_Message F_Put_Byte_to_Buffer 0x8000 0x11 F_Put_Byte_to_Buffer 0x8001 0x21 F_Put_Byte_to_Buffer 0x801F...
Страница 118: ...th F_Initialization F_DispSetup F_Close_All F_Power_Target OnOff F_Reset_Target F_Report_Message F_ReadCodeFile file_format FileName F_Get_CodeCS dest F_ReadPasswFile file_format FileName F_ConfigFile...
Страница 119: ...e addr data F_Read_Byte addr F_Copy_Buffer_to_RAM start_addr size F_Copy_RAM_to_Buffer start_addr size F_Set_PC_and_RUN PC_addr F_Synch_CPU_JTAG F_Get_Targets_Vcc See chapter 4 for detailed descriptio...