Firmware Functions
FXTH87xx11 and FXTH87xx12 Embedded Firmware User Guide, Rev. 2.1
Freescale Semiconductor, Inc.
41
3.2.42
UINT16 TPMS_FLASH_CHECK(void)
•
Description:
This function calculates the CRC16 checksum for the Freescale firmware area
(addresses $E000 - FFAD) using the function TPMS_CRC16. It compares it with a pre-calculated
stored value and reports if these two values match or not.
•
Stack size:
17 bytes
•
Approx. Duration:
214070 usec
•
Power Management:
This function executes entirely in RUN mode.
•
Interrupt Management:
This function does not await any interrupts. It will not be affected by
interrupts.
•
Resources:
N/A
•
Input Parameters:
— None.
•
Returns
:
— UINT16 u16Status: “0” in case the calculated checksum and the stored one are the same, or the
calculated checksum in case they are different.
3.2.43
UINT8 TPMS_FLASH_ERASE(UINT16 u16Address)
•
Description:
This function erases 1 page (512 bytes) of flash at a time.
•
Stack size:
11 bytes
•
Approx. Duration:
22744 usec
•
Power Management:
This function executes entirely in RUN mode.
•
Interrupt Management:
This function does not await any interrupts. It may be affected by
interrupts.
•
Resources:
Global RAM locations $0090 - $00CA.
•
Input Parameters:
— UINT16 u16Address: any given address. The whole page where this address resides will be
erased (i.e. if u16Address = $D234, the contents of addresses $D200 - $D3FF will be erased).
•
Returns
:
— Zero if the page was erased successfully; else, one.
WARNING
This routine will overwrite the contents of RAM locations $0090- $00CA.