Writeflashuserconfigsectorline(); Description; Actions; Prototype - Infineon SP37 Function Manual

High integrated single-chip tpms sensor with a low power embedded microcontroller and wireless fsk/ask uhf transmitter
Table of Contents

Advertisement

2.30

WriteFlashUserConfigSectorLine()

2.30.1

Description

This function writes one line in the FLASH user configuration sector located at FLASH address 5780
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
V
voltage
and Endurance E
batFL
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
R7
R6
R5
ROM Library Function Guide
n
are within specified range (see [1]).
FL
Type
Name
unsigned int
Startaddress
unsigned char
WrData
idata*
Tire Pressure Monitoring Sensor
Description
Startaddress
5780
: FLASH Line 0
H
57A0
: FLASH Line 1
H
57C0
: FLASH Line 2
H
57E0
: FLASH Line 3
H
Pointer to first Byte of the 32 Byte Data array
that is going to be written to the FLASH Line.
105
SP37
ROM Library Functions
-- 57FF
H
H
T
, supply
FL
Revision 1.0, 2011-12-15
if

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents