Associate II
August 28, 2018
Question
STM32F427 internal RAM for code, external SRAM for dynamically alocation memory (heap) - how it get ?
- August 28, 2018
- 3 replies
- 852 views
Hi, I have a project based on STM32F427IGH with external SRAM AS6C6416 (64M). for some functions I need a lot of memory, for another -fast access, as the SRAM not fast (50 nSec) I would like to use it only for dynamically allocation memory. After all configuration for the SRAM I am able read/write data to region 0x64000000 and higher, but when I tryed call function malloc(), it not working - Hardfault error. So, I have 2 questions:
- How I can get working malloc() function;
- Can I get in the configuration fast access to internal RAM and slowly to external, or in the case I will get slowly access for both regions?
My SRAM.ICF file for the project in the attachment.
Thanks.
