EasyManua.ls Logo

Elprotronic MSP430 - F_Get_Byte_From_Password_Buffer

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...
Instruction allows to write contents of the code to code buffer instead using the F_ReadPasswordFile
instruction.
Note: All 32 bytes of the password data must be written to the Password buffer to make a valid
password for the BSL access.
Syntax:
MSPPRG_API INT_X F_Put_Byte_to_Password_Buffer( LONG_X address,
BYTE data );
Parameters value:
code address - 0xFFE0 to 0xFFFF
data - 0x00 to 0xFF
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
Example:
BYTE code[0x20000];
.....................
for( address = 0xFFE0; address <= 0xFFFF; address ++ )
{
F_Put_Byte_to_Password_Buffer( address, code[address]);
}
.....................
F_Get_Byte_from_Password_Buffer
F_Get_Byte_from_Password_Buffer - Read code data from password buffer.
VALID FPA index - ( 1 to 64 )
Instruction allows to read or verify contents of the code from Password buffer. Data returns value
0x00 to 0xFF if in the particular Password buffer location the flag is set to used, otherwise return
value -1 (minus one) if data is empty.
Syntax:
MSPPRG_API INT_X F_Get_Byte_from_Password_Buffer( LONG_X address );
Parameters value:
code address - 0xFFE0 to 0xFFFF
Return value:
81

Table of Contents