Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

aligned_alloc linker issues

Altera_Forum
Honored Contributor I
767 Views

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
Altera_Forum
Honored Contributor I
77 Views

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.
Reply