Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
111
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

HAL FLASH__RAMFUNC Generic Driver

UM1725

22 HAL FLASH__RAMFUNC Generic Driver

22.1FLASH__RAMFUNC Firmware driver API description

22.1.1APIs executed from Internal RAM

ARM Compiler

RAM functions are defined using the toolchain options. Functions that are be executed in RAM should reside in a separate source module. Using the 'Options for File' dialog you can simply change the 'Code / Const' area of a module to a memory space in physical RAM. Available memory areas are declared in the 'Target' tab of the Options for Target' dialog.

ICCARM Compiler

RAM functions are defined using a specific toolchain keyword "__ramfunc".

GNU Compiler

RAM functions are defined using a specific toolchain attribute "__attribute__((section(".RamFunc")))".

22.1.2ramfunc functions

This subsection provides a set of functions that should be executed from RAM transfers.

This section contains the following APIs:

HAL_FLASHEx_StopFlashInterfaceClk()

HAL_FLASHEx_StartFlashInterfaceClk()

HAL_FLASHEx_EnableFlashSleepMode()

HAL_FLASHEx_DisableFlashSleepMode()

22.1.3HAL_FLASHEx_StopFlashInterfaceClk

Function Name

__RAM_FUNC HAL_FLASHEx_StopFlashInterfaceClk (void )

Function Description

Stop the flash interface while System Run.

Return values

 

None

Notes

 

This mode is only available for STM32F411xx devices.

This mode couldn't be set while executing with the flash itself. It should be done with specific routine executed from RAM.

22.1.4HAL_FLASHEx_StartFlashInterfaceClk

Function Name

__RAM_FUNC HAL_FLASHEx_StartFlashInterfaceClk (void )

Function Description

Start the flash interface while System Run.

Return values

None

Notes

This mode is only available for STM32F411xx devices.

 

This mode couldn't be set while executing with the flash itself.

326/900

DOCID025834 Rev 2

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]