cppInputchar * FileName : path to code file including filename and extension Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FALSE (0) : failed TRUE (1) : succeeded
FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_AppendCodeFile_bookmark226_bookmark226F AppendCodeFileGeneral DescriptionAppend code from selected file to internal FPA buffer to be used in programming. Only code data that fits within the target MCUs memory space will be read, and the rest will be discarded. Already read code data is not overwritten by newly appended file. Existing code data locations that contain the default empty value (for most MCUs it is 0xFF, for some it is 0x00) can be overwritten if the OverwriteEmptyValues option is enabled in the Preferences file, prefer.ini (read from current working directory). By default, no overwrites are performed. SyntaxINT_X F_AppendCodeFile( char * FileName ) Inputchar * FileName : path to code file including filename and extension Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation TRUE (1) : succeeded STATUS OPEN FILE ERROR (535): could not open file STATUS MAX FILE COUNT (557): total number of files exceeds MAX FILE INDEX (20) STATUS DUPLICATE FILE PATH (558): appending already existing file
FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Get_CodeCS_bookmark227_bookmark227F Get CodeCSGeneral DescriptionRead code from selected buffer and calculate check sum. SyntaxINT_X F_Get_CodeCS( INT_X dest ) InputINT X dest : choose operation 3 : Calculate checksum of flash memory read after last F AutoProgram or F Memory Verify operation. • Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FALSE (0) : failed any : checksum
FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus(avoid this by not using FPA index 0) • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range(avoid this by using F Check FPA index first) • F_Clr_Code_Buffer_bookmark228_bookmark228F Clr Code Buffer General DescriptionClear contents of internal code buffer. SyntaxINT_X F_Clr_Code_Buffer( void ) Inputnone. Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FALSE (0) : failed TRUE (1) : succeeded
FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Put_Byte_to_Code_Buffer_bookmark229_bookmark229F Put Byte to Code BufferGeneral DescriptionWrite to internal code buffer. Can be used instead of or in conjunction with the F ReadCodeFile function. When starting from scratch, use the F Clr Code Buffer function to clear the internal code buffer. SyntaxINT_X F_Put_Byte_to_Code_Buffer( INT_X addr, BYTE data ) InputINT X addr : valid flash address for target MCU BYTE data : new byte to be written to internal code buffer Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FALSE (0) : failed TRUE (1) : succeeded
FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Get_Byte_from_Code_Buffer_bookmark230_bookmark230F Get Byte from Code BufferGeneral DescriptionRead from internal code buffer. Can be used in conjunction with F Put Byte to Code Buffer to verify writes to internal code buffer. SyntaxINT_XF_Get_Byte_from_Code_Buffer( INT_X addr ) InputINT X addr : valid flash address for target MCU Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Put_Byte_to_Buffer_bookmark231_bookmark231F Put Byte to BufferGeneral DescriptionWrite byte to temporary Write Data Buffer (see Figure 1.2). SyntaxINT_X F_Put_Byte_to_Buffer( INT_X addr, BYTE data ) InputINT X addr : valid flash address for target MCU BYTE data : new byte to be written to temporary Write Data Buffer Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FALSE (0) : failed TRUE (1) : succeeded
FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Get_Byte_from_Buffer_bookmark232_bookmark232F Get Byte from BufferGeneral DescriptionRead from temporary Read Data Buffer (see Figure 1.2). SyntaxINT_X F_Get_Byte_from_Buffer( INT_X addr ) InputINT X addr : valid flash address for target MCU Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • |