使用多块不连续空间实现堆的软件方法

刘冰, 夏传东

集成电路与嵌入式系统 ›› 2022, Vol. 22 ›› Issue (5) : 21-24.

PDF(1220 KB)
PDF(1220 KB)
集成电路与嵌入式系统 ›› 2022, Vol. 22 ›› Issue (5) : 21-24.
专题论述

使用多块不连续空间实现堆的软件方法

  • 刘冰, 夏传东
作者信息 +

Software Method on Implementing Heap in Non-continuous Memory Space

  • Liu Bing, Xia Chuandong
Author information +
文章历史 +

摘要

由于STM32F407的SRAM地址不连续,造成动态内存分配存在问题,不能利用全部的片内192 KB SRAM资源。因此,本文介绍了使用多块不连续内存空间实现堆的软件方法,以及在STM32F407单片机上的软件实例。该方法可作为类似的单片机软件开发项目的参考。

Abstract

Because the SRAM address of STM32f407 is discontinuous,there is a problem in dynamic memory allocation,and all on-chip 192 KB SRAM resources cannot be used.Therefore the software method on implementing heap in non-continuous memory space is introduced,and some sample codes for STM32F407 MCU are given.This paper can be a reference for similar software development projects.

关键词

STM32 / 单片机 / 动态内存分配 / 实时操作系统

Key words

STM32 / MCU / dynamic memory allocation / RTOS

引用本文

导出引用
刘冰, 夏传东. 使用多块不连续空间实现堆的软件方法[J]. 集成电路与嵌入式系统, 2022, 22(5): 21-24
Liu Bing, Xia Chuandong. Software Method on Implementing Heap in Non-continuous Memory Space[J]. Integrated Circuits and Embedded Systems, 2022, 22(5): 21-24
中图分类号: TP332.3   

参考文献

[1] STMicroelectronics.RM0090 Reference manual STM32F405/415,STM32F407/417,STM32F427/437 and STM32F429/439 advanced ARM-based 32-bit MCUs,2015.
[2] STMicroelectronics.STM32F405xx STM32F407xx Datasheet-production data,2015.
[3] IAR Systems AB.IAR C/C++ Development Guide Compiling and Linking for Advanced RISC Machines Ltd’s ARM Cores,Fifteenth edition:March 2015.
[4] Amazon.com.Reference Manual for FreeRTOS version 10.0.0 issue 1,2017.
PDF(1220 KB)

43

Accesses

0

Citation

Detail

段落导航
相关文章

/