CCM-the ultimate tool for maximizing STM32F4 performance

Source: Internet
Author: User

Reproduced
Tags: stm32 ccm it Category: Embedded

CCM (core coupled Memory) is dedicated to the F4 core full-speed 64KB RAM, they do not go through the bus matrix, the F4 core directly connected to it, the address space in the 0x1000_0000 ~ 0x1000_ffff.

Because of its address space and conventional SRAM is not continuous, coupled with DMA and peripherals can not directly use them, it makes the general user program completely ignore this 64KB full speed ram, sin ah ...

Anyway, since it is full-speed and dedicated SRAM, you can use this to give full play to F4 performance:

1. Make a stack.

Modify the link script to find ccmram_region, Block Cstack, and block HEAP keywords.

Change the order of the original place in Ram_region {...} to the following 2 sentences:

Place in ram_region {readwrite};

Place in Ccmram_region {block cstack, block HEAP};

Get!

Especially when running an rtos, such stacks can be managed as privileged resources, and security and performance are improved synchronously.

2. Do high-speed arithmetic buffering

For computationally intensive applications, a dedicated full-speed operation buffer can also be partitioned in CCM by customizing the link script.

For example: FOC model decoupling, network SSL, JPEG encoding/decoding ...

At this point, the F4 kernel is truly capable of performing the highest computational performance.

Let's talk about this.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.