....................
st = F_Memory_Read( data );
if ( st != TRUE )
{ ............... }
....................
F_Copy_All_Flash_to_Buffer
F_Copy_All_Flash_to_Buffer - Read contents of the Target’s Flash Memory and save it in
the temporary Read Data buffer (see Figure 4.2).
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed simultaneously.
See F_Memory_Read for comments. Function useful in Visual Basic application, where all memory
block can not be transferred 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( void );
Return value:
0 - FALSE
1 - TRUE
Example:
unsigned int data[0x20000];
LONG_X addr;
....................
st = F_Copy_All_Flash_to_Buffer();
if ( st == TRUE )
{
for( addr = 0x1000; addr<=0x1FFFF; addr++)
data[ addr ] = F_Get_Byte_from_Buffer( addr );
}
....................
F_Restore_JTAG_Security_Fuse
F_Restore_JTAG_Security_Fuse - Restore JTAG security fuse in F5xx, F6xx MCUvia BSL interface
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed simultaneously.
89