EasyManua.ls Logo

Elprotronic MSP430 - F_Memory_Read_Data

Default Icon
119 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
first download the Flash Loader to RAM memory, and use the block write flash procedures,
speeding up programming process.
Syntax:
MSPPRG_API INT_X F_Memory_Write_Data( LONG_X start_addr,
INT_X size, unsigned char *data );
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
Example:
unsigned char data[0x100];
....................
for( int k=0; k<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 Memory only.
VALID FPA index - ( 1 to 64 )
Parameters:
start address - Even number from 0x1000 to 0x1FFFE,
size - Even number - 2 or higher
block of bytes where data should be saved.
Syntax:
MSPPRG_API INT_X F_Memory_Read_Data( LONG_X start_addr,
INT_X size, unsigned char *data );
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
98

Table of Contents