Remote Control Programming User’s Guide
PM024A02 Rev.2
86
Example-2:
Run the
FP-CC-commandline.exe
and type the following commands:
F_OpenInstancesAndFPAs( "*# *" )
// open instances and find the first adapter (any SN)
F_Initialization()
F_Report_Message()
F_ConfigFileLoad( "filename" )
//put vaild path and config file name
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( 1, 0x8000, 0x11 )
F_Put_Byte_to_Buffer( 1, 0x8001, 0x21 )
........................
F_Put_Byte_to_Buffer( 1, 0x801F, 0xA6 )
F_Open_Target_Device()
F_Segment_Erase( 0x8000 )
F_Copy_Buffer_to_Flash( 0x8000, 0x20 )
F_Copy_Flash_to_Buffer( 0x8000, 0x20 )
F_Get_Byte_from_Buffer( 1, 0x8000 )
F_Get_Byte_from_Buffer( 2, 0x8000 )
F_Get_Byte_from_Buffer( 1, 0x8001 )
F_Get_Byte_from_Buffer( 2, 0x8001 )
........................
F_Get_Byte_from_Buffer( 1, 0x801F )
F_Get_Byte_from_Buffer( 2, 0x801F )
F_Close_Target_Device()
quit()
Содержание FlashPro-CC
Страница 10: ...10...