
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
105
Revision 1.0, 2011-12-15
2.30
WriteFlashUserConfigSectorLine()
2.30.1
Description
This function writes one line in the FLASH user configuration sector located at FLASH address 5780
H
-- 57FF
H
if
the Lockbyte 3 is not set. If Lockbyte 3 is set this function will return -1 without any action.
This function returns -1 and has no effect if executed in DEBUG mode.
The written data is verified after the programming. In case the verification fails this function will return -1.
Note: The application software has to ensure that FLASH is only programmed or erased when all required
environmental conditions are fulfilled. Special care has to be taken that ambient temperature
T
FL
, supply
voltage
V
batFL
and Endurance E
n
FL
are within specified range (see
).
Note: Before written new data, the Flash User Config Sector needs to be erased by the user.
2.30.2
Actions
•
Write one 32 Byte FLASH Line of the FLASH user configuration sector
2.30.3
Prototype
signed char
WriteFlashUserConfigurationSectorLine
(unsigned int
Startaddress
, unsigned char idata *
WrData
)
2.30.4
Inputs
Table 129
WriteFlashUserConfigurationSectorLine: Input Parameters
Register / Address
Type
Name
Description
R7
R6
unsigned int
Startaddress
Startaddress
5780
H
: FLASH Line 0
57A0
H
: FLASH Line 1
57C0
H
: FLASH Line 2
57E0
H
: FLASH Line 3
R5
unsigned char
idata*
WrData
Pointer to first Byte of the 32 Byte Data array
that is going to be written to the FLASH Line.