RTEMS 6.1-rc2
Loading...
Searching...
No Matches
stm32h7xx_hal_flash_ex.c File Reference

Extended FLASH HAL module driver. This file provides firmware functions to manage the following functionalities of the FLASH extension peripheral: More...

#include "stm32h7xx_hal.h"

Detailed Description

Extended FLASH HAL module driver. This file provides firmware functions to manage the following functionalities of the FLASH extension peripheral:

Author
MCD Application Team
  • Extended programming operations functions
==============================================================================
                  ##### Flash Extension features #####
 ==============================================================================

 [..] Comparing to other previous devices, the FLASH interface for STM32H7xx
      devices contains the following additional features

      (+) Capacity up to 2 Mbyte with dual bank architecture supporting read-while-write
          capability (RWW)
      (+) Dual bank memory organization
      (+) PCROP protection for all banks
      (+) Global readout protection (RDP)
      (+) Write protection
      (+) Secure access only protection
      (+) Bank / register swapping (when Dual-Bank)
      (+) Cyclic Redundancy Check (CRC)

                       ##### How to use this driver #####
==============================================================================
 [..] This driver provides functions to configure and program the FLASH memory
      of all STM32H7xx devices. It includes
     (#) FLASH Memory Erase functions:
          (++) Lock and Unlock the FLASH interface using HAL_FLASH_Unlock() and
               HAL_FLASH_Lock() functions
          (++) Erase function: Sector erase, bank erase and dual-bank mass erase
          (++) There are two modes of erase :
            (+++) Polling Mode using HAL_FLASHEx_Erase()
            (+++) Interrupt Mode using HAL_FLASHEx_Erase_IT()

     (#) Option Bytes Programming functions: Use HAL_FLASHEx_OBProgram() to:
       (++) Set/Reset the write protection per bank
       (++) Set the Read protection Level
       (++) Set the BOR level
       (++) Program the user Option Bytes
       (++) PCROP protection configuration and control per bank
       (++) Secure area configuration and control per bank
       (++) Core Boot address configuration
       (++) TCM / AXI shared RAM configuration
       (++) CPU Frequency Boost configuration

     (#) FLASH Memory Lock and unlock per Bank: HAL_FLASHEx_Lock_Bank1(), HAL_FLASHEx_Unlock_Bank1(),
         HAL_FLASHEx_Lock_Bank2() and HAL_FLASHEx_Unlock_Bank2() functions

     (#) FLASH CRC computation function: Use HAL_FLASHEx_ComputeCRC() to:
         (++) Enable CRC feature
         (++) Program the desired burst size
         (++) Define the user Flash Area on which the CRC has be computed
         (++) Perform the CRC computation
         (++) Disable CRC feature
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.