Intel® FPGA University Program
University Program Material, Education Boards, and Laboratory Exercises
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.
1087 Discussions

DE2_115 SD_Card Audio Player

Altera_Forum
Honored Contributor II
1,174 Views

Hi all, 

 

I want to modify the DE2_115 SD_Card Audio Player demo project for my own project and add the audio recording function to it. Basically it is like combining the Audio Player demo and the DE2_115_Audio demo projects together. 

 

 

I tried opening the SD_Card Audio Player project using Quartus 2 but I see only a Verilog file in the project. Where can I find the Block/Schematic file?  

 

And how can I use the available C source code in a new NIOS 2 project? Can someone give me the step by step procedure? 

 

 

Thanks
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
106 Views

I have tried compiling the DE2_115_SD_Card_Audio_Player project in Quartus 2. Then clicked on File -> Create/Update -> Create Symbol Files for Current File. It said Symbol file created successfully but I can't find it in the project directory. 

 

After compilation, it shows DE2_115_SOPC:DE2_115_SOPC_inst under the main project in the Project Navigator. Double clicking on it opens the SOPC builder for the project. I tried generating this system again in the SOPC builder but it gives the following errors: 

Warning: Entity "altpll" obtained from "altpll.v" instead of from Quartus II megafunction library 

Error: Node "c0" is missing source File: C:/Users/.../AppData/Local/Temp/alt5789_2303333993077008292.dir/0027_sopcqmap/altpll.v Line: 243 

Error: Node "c1" is missing source File: C:/Users/.../AppData/Local/Temp/alt5789_2303333993077008292.dir/0027_sopcqmap/altpll.v Line: 244 

Error: Node "c2" is missing source File: C:/Users/.../AppData/Local/Temp/alt5789_2303333993077008292.dir/0027_sopcqmap/altpll.v Line: 245 

Error: Node "c3" is missing source File: C:/Users/.../AppData/Local/Temp/alt5789_2303333993077008292.dir/0027_sopcqmap/altpll.v Line: 246 

Error: Node "locked" is missing source File: C:/Users/.../AppData/Local/Temp/alt5789_2303333993077008292.dir/0027_sopcqmap/altpll.v Line: 248 

Error: Node "readdata[0]" is missing source File: C:/Users/.../AppData/Local/Temp/alt5789_2303333993077008292.dir/0027_sopcqmap/altpll.v Line: 251 

Error: Node "readdata[1]" is missing source File: C:/Users/.../AppData/Local/Temp/alt5789_2303333993077008292.dir/0027_sopcqmap/altpll.v Line: 251 

Warning: Quartus II 32-bit Analysis & Synthesis was unsuccessful. 7 errors, 2 warnings 

Error: Peak virtual memory: 313 megabytes 

Error: Processing ended: Mon Mar 25 14:45:39 2013 

Error: Elapsed time: 00:00:01 

Error: Total CPU time (on all processors): 00:00:01 

 

 

 

I just want to be able to modify the main.c file in NIOS 2 - Eclipse and use it for my own project.
Altera_Forum
Honored Contributor II
105 Views

Another query, as soon as I download the sof file from Quartus 2, the program starts running and it plays the audio files from the SD card. Shouldn't it wait for me to download the NIOS 2 code before running it?  

 

I mean, in Quartus we simply create the system, with all the components and peripherals and a NIOS 2 soft processor. And then we use the Eclipse to download a source code for the NIOS 2 soft processor in the FPGA. But what I see in this project is somewhat different. It seems like the source code for NIOS 2 is also included in the Quartus 2 itself. Is it so? If yes, then where can I find that code?
Altera_Forum
Honored Contributor II
106 Views

In the NIOS II - Eclipse, I create a new project by selecting file -> new -> nios ii application and bsp from template. Then I select the existing DE2_115_SOPC.sopcinfo file to create a blank project.  

 

Then I import the existing source file by clicking on file -> import -> general -> file system and select the \software\de2_115_sd_card_audio_player directory. 

 

Now when I build the BSP and the project, and try to run this file on the NIOS II hardware by right clicking on the project and selecting run as, I see only one option there: 1 local c/c++ application. There's no option for running this program as nios ii hardware.  

 

 

 

Where am I going wrong?
Altera_Forum
Honored Contributor II
106 Views

Hello,  

I have the same problem. someone could help please?
Reply