Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

aligned_alloc linker issues

Honored Contributor II

I'm trying to share data between the ARM and the FPGA. I've made the F2SDRAM interface 256 bits wide. So, to make life easier I'd like to align the data to a 256 bit boundary. Figured I use the aligned_alloc() function. The linker chokes with the following message: 


aligned_alloc.c:(.text+0x14): undefined reference to 'posix_memalign' 


I'm using Altera Baremetal GCC toolchain 

Quartus Prime 17.1 


Any thoughts on how to make the linker happy?
0 Kudos
1 Reply
Honored Contributor II

Ok that frowny face is not suppose to be there.  

aligned_alloc.c: (.text+0x14): 


Why does : ( with no space between automatically become a frowny face. Just doesn't seem right.
0 Kudos