Forum Discussion
Altera_Forum
Honored Contributor
8 years agoI am still a novice, but I would check the Makefile in the project to see what linker script is being used.
In the DMA example that I have, the Makefile content looks like this: LINKER_SCRIPT := cycloneV-dk-ram-hosted.ld You want to find where the file cycloneV-dk-ram-hosted.ld is located. In my case, it's located in the SocEDS installation directory. It could also be in the Project directory. $ find . -name 'cycloneV-dk-ram-hosted.ld' -print ./intelFPGA/17.1/embedded/host_tools/mentor/gnu/arm/baremetal/arm-altera-eabi/lib/cortex-a9/cycloneV-dk-ram-hosted.ld ./intelFPGA/17.1/embedded/host_tools/mentor/gnu/arm/baremetal/arm-altera-eabi/lib/cycloneV-dk-ram-hosted.ld Inside that linker file, it specifies how the various sections of the program are laid out. In my case, it shows that the text of the program is located in SDRAM: MEMORY { boot_rom (rx) : ORIGIN = 0xfffd0000, LENGTH = 64K oc_ram (rwx) : ORIGIN = 0xffff0000, LENGTH = 64K ram (rwx) : ORIGIN = 0x100000, LENGTH = 1023M } .text : { ... } >ram There will be other linker files in the SoCEDS installation directory which use the On-chip RAM for running programs, like this one: cycloneV-dk-oc-ram-hosted.ld There is at least one sample Project in my SocEDS installation that uses the on-chip RAM: intelFPGA/17.1/embedded/examples/software/Altera-SoCFPGA-HelloWorld-Baremetal-GNU Makefile: ifeq ($(filter $(BOARD),arriav cyclonev),$(BOARD)) LINKER_SCRIPT := cycloneV-dk-oc-ram-hosted.ld I am not sure I can help with the freeze condition, but maybe you can try this simpler HelloWorld sample, and see if that works.