Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Using full memory of Cyclone V

Hello

I am using a Cyclone V board and I am trying to create a large matrix. I am using the Altera-SocFPGA-HelloWorld-Baremetal as an example. However I do not have enough memory. How can I configure my code so that it uses all the memory available on the board?

Thanks.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Is 3 Hello-BareMetal examples in SoC EDS: with suffix "-ARMCC", "-GNU", and "-Linux".

    In last may be is no troubles, Linux see all, or 1st and 2nd have only 64 K hi onchip RAM for using for program and data.

    Need add 256 M of system DDR3 to these system scripts scatter.scat and .ld respectively -- examples may be found nearby with big code, initializing of DDR3 make Preloader from included .ds-script.

    Use malloc() for get memory instead allocate it in program stack.

    Or may use other examples for add their functionality! :)