The In-Application Programming (IAP) drivers provided by STMicroelectronics allow for flexible communication methods and protocols for reprogramming ST7 FLASH microcontrollers.
This document presents two generic In-Application Programming (IAP) drivers provided by STMicroelectronics for ST7 HDFLASH and XFLASH based microcontrollers. These drivers allow the reprogramming of the remaining memory area from a protected memory sector (Sector 0). The note details the architecture and software interface for both drivers, including specific functions for disabling RASS protection and writing data blocks.
| Driver code size (XFLASH) | approximately 256 bytes |
|---|---|
| Driver code size (HDFLASH) | approximately 85 bytes |
| Maximum bytes per write block | 256 |
| RASS keys | 0x56 and 0xAE |
| RAM usage for programming algorithm | 20 bytes |
The XFlash driver can be compiled using either C-Metrowerks or C-COSMIC.
No, the driver does not provide a Sector Erase function, but it can be emulated by writing 0xFF in a memory block.
It allows user specific functions to be executed while an XFlashWriteBlock function is executing, such as refreshing the watchdog.