STMicroelectronics AN1576 In-Application Programming Drivers for ST7 HDFLASH or XFLASH MCUs

The In-Application Programming (IAP) drivers provided by STMicroelectronics allow for flexible communication methods and protocols for reprogramming ST7 FLASH microcontrollers.


STMicroelectronics AN1576 In-Application Programming Drivers for ST7 HDFLASH or XFLASH MCUs - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
15
File format
PDF
File size
69 KB
Published
07 August, 2012
Updated
29 September, 2023
MD5 checksum
6E5F3B6826A9F0DF552308218580A645

About this manual

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.

What's inside

  • Introduction
  • XFLASH Driver
  • HDFLASH Driver
  • Driver Functions
  • Driver Architecture
  • Implementation Guidelines
  • Project Configuration
  • RAM Management
  • Firmware Template
  • Example Flowchart

Specifications

Driver code size (XFLASH)approximately 256 bytes
Driver code size (HDFLASH)approximately 85 bytes
Maximum bytes per write block256
RASS keys0x56 and 0xAE
RAM usage for programming algorithm20 bytes

Frequently asked questions

What compilers are supported by the XFLASH driver?

The XFlash driver can be compiled using either C-Metrowerks or C-COSMIC.

Does the XFLASH driver provide a Sector Erase function?

No, the driver does not provide a Sector Erase function, but it can be emulated by writing 0xFF in a memory block.

What is the purpose of the UserWhileWriteBlock function?

It allows user specific functions to be executed while an XFlashWriteBlock function is executing, such as refreshing the watchdog.

Download PDF (69 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →