Altera_Forum
Honored Contributor
19 years agoUniveristy IP cores
I recently came across this website (http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=47&no=132#section) which list new IP cores set to release by altera/terasic. The site list that all the cores should be released. I was wondering if anyone had tried any of these cores. I am attempting to develope a system that records audio from the input jack of a DE2 board and has options to play back the audio.
I was looking at using the audio core however when I compiled the C program it would not build correctly. # include <stdio.h># include <unistd.h># include "c:\Temp\new\alt_up_audio.h" int main() { alt_u32 *buf=0; int x; unsigned len=32; x=alt_up_audio_read_left_channel(buf, len); //alt_up_audio_read_left_channel(buf, len); usleep(1000000000); x=alt_up_audio_write_left_channel(buf, len); return 0; } This is the result of the build-all. make -s all Compiling hello_world_small.c... Linking hello_world_small_0.elf... obj/hello_world_small.o(.text+0x18): In function `main': ../hello_world_small.c:70: undefined reference to `alt_up_audio_read_left_channel' obj/hello_world_small.o(.text+0x30):../hello_world_small.c:73: undefined reference to `alt_up_audio_write_left_channel' collect2: ld returned 1 exit status make: *** [hello_world_small_0.elf] Error 1 All .c and .h files are located within the project folder for Nios II IDE. I'm not sure if this makes much sense as I am not real familiar with this stuff. I do have a fair amount of programming experience its just lack of experience with Nios II IDE. Any help would be nice. Whether with this or with being able to record audio to the DE2 board and play it back.