Syntax:
MSPPRG_API INT_X F_Set_PC_and_RUN( LONG_X PC_address );
Return value:
1 - TRUE
0 - FALSE;
-2 - FPA_INVALID_NO.
Example:
unsigned char rd_data[0x100];
....................
F_Autoprogram(0); // download the test code
F_Open_Target_Device();
....................
F_Set_PC_and_RUN( PC1 ) // run the test program from location PC1
// monitor PC address until PC address reach the desired value with
// timeout set by k and delay
for(k=0; k<1000; k++)
{
PC_addr = F_Capture_PC_Addr();
if(( PC_addr >= 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 from location PC2
for(k=0; k<1000; k++)
{
PC_addr = F_Capture_PC_Addr();
if(( PC_addr >= addr_min2 ) && ( PC_addr <= addr_max2 )) 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( PCn ) // run the test program from location PCn
for(k=0; k<1000; k++)
{
PC_addr = F_Capture_PC_Addr();
if(( PC_addr >= addr_min3 ) && ( PC_addr <= addr_max3 )) break;
delay( ... );
}
F_Synch_CPU_JTAG();
103