Article Details

ID: 7156
Case Type: faq
Category: Propel (RISC-V)
Related To:
Family: All FPGA

Search Answer Database

Search Text Image

Propel: How to perform Memory Allocation in RISC-V

Description:
Malloc (Memory Allocation) require you to allocate memory to heap.

In Propel SDK, the default heap allocation is 0. You should allocate a minimum amount of memory (example: 0x100) for malloc initialization.


Solution:

You may find the HEAP_SIZE setting in linker.ld file under your Software project directory.


 

You MUST Clean and Build your project after update the linker script to reflect the setting in your software executable.