Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
714 Views

aligned_alloc linker issues

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
Highlighted
Honored Contributor I
24 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.
0 Kudos