Adaptive Real-Time Memory Accelerator (Art Accelerator) - ST STM32G4 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

Embedded Flash memory (FLASH) for category 4 devices
Increasing the CPU frequency:
1.
Program the new number of wait states to the LATENCY bits in the
control register
2.
Check that the new number of wait states is taken into account to access the Flash
memory by reading the FLASH_ACR register.
3.
Analyze the change of CPU frequency change caused either by:
If some of above two steps decreases the CPU frequency, firstly perform this step and then
the rest. Otherwise modify The CPU clock source by writing the SW bits in the RCC_CFGR
register and then (if needed) modify the CPU clock prescaler by writing the HPRE bits in
RCC_CFGR.
4.
Check that the new CPU clock source or/and the new CPU clock prescaler value is/are
taken into account by reading the clock source status (SWS bits) or/and the AHB
prescaler value (HPRE bits), respectively, in the RCC_CFGR register.
Decreasing the CPU frequency:
1.
Modify the CPU clock source by writing the SW bits in the RCC_CFGR register.
2.
If needed, modify the CPU clock prescaler by writing the HPRE bits in RCC_CFGR.
3.
Analyze the change of CPU frequency change caused either by:
If some of above two steps increases the CPU frequency, firstly perform another step and
then this step. Otherwise modify The CPU clock source by writing the SW bits in the
RCC_CFGR register and then (if needed) modify the CPU clock prescaler by writing the
HPRE bits in RCC_CFGR.
4.
Check that the new CPU clock source or/and the new CPU clock prescaler value is/are
taken into account by reading the clock source status (SWS bits) or/and the AHB
prescaler value (HPRE bits), respectively, in the RCC_CFGR register.
5.
Program the new number of wait states to the LATENCY bits in
register
6.
Check that the new number of wait states is used to access the Flash memory by
reading the FLASH_ACR register.
4.3.4

Adaptive real-time memory accelerator (ART Accelerator)

The proprietary Adaptive real-time (ART) memory accelerator is optimized for STM32
industry-standard Arm
performance advantage of the Arm
technologies, which normally requires the processor to wait for the Flash memory at higher
operating frequencies.
To release the processor full performance, the accelerator implements an instruction
prefetch queue and branch cache which increases program execution speed from the 64-
bit Flash memory. Based on CoreMark benchmark, the performance achieved thanks to the
ART accelerator is equivalent to 0 wait state program execution from Flash memory at a
CPU frequency up to 170 MHz.
150/2126
(FLASH_ACR).
changing clock source defined by SW bits in RCC_CFGR register
or by CPU clock prescaller defined by HPRE bits in RCC_CFGR
changing clock source defined by SW bits in RCC_CFGR register
or by CPU clock prescaller defined by HPRE bits in RCC_CFGR
(FLASH_ACR).
®
®
Cortex
-M4 with FPU processors. It balances the inherent
®
®
Cortex
-M4 with FPU over Flash memory
RM0440 Rev 4
RM0440
Flash access
Flash access control

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G4 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF