Hello!
I use Quartus 9.0 and NIOS 9.0. My project is to implement audio system (actually for first time feedback from microphone to Line-Out) on DE2 board.
I have created with SOPC Builder required system for my purpose:
- NIOS II Processor
- On-Chip memory (RAM or ROM)
- JTAG UART
- SRAM/SSRAM Controller (up_avalon_sram_0 module)
- Audio (up_avalon_audio_0 module)
- Audio and Video Config (up_avalon_audio_and_video_config module)
Audiomodule and
audio and video config modules were downloaded from
http://www.altera.com/education/univ/materials/ip-cores/unv-ip-cores.html.
So, bdf file was created successfully, software project was created too. But during building pretty plain program (just main function and return) I get this error:
system_description/alt_sys_init.c:75: error: `UP_AVALON_AUDIO_AND_VIDEO_CONFIG_0_CFG_TYPE' undeclared here (not in a function)
system_description/alt_sys_init.c:75: error: initializer element is not constant
system_description/alt_sys_init.c:75: error: (near initialization for `up_avalon_audio_and_video_config_0.type')
I have commented two rows in file alt_sys_init.c:
altera_up_avalon_audio_and_video_config_instance( up_avalon_audio_and_video_config_0, up_avalon_audio_and_video_config_0 ); and this
altera_up_avalon_audio_and_video_config_init( up_avalon_audio_and_video_config_0, up_avalon_audio_and_video_config_0 ); then I can build system, write code for writing and reading fifos. I hear sound per headphones from mic. But additional I hear very big NOISE! So, I think it is related to ignore two rows in alt_sys_init.c file...
Please advice what to do with this issue...
Best Regards,
Vytautas