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.
[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.