文章详情

ID: 7156
实例类型: faq
分类: Propel (RISC-V)
相关:
产品系列: All FPGA

搜索答案数据库

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.