Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
748 Views

DE2I150 - Nios compilation error

Hello, 

 

I am a newbie in using nios. I am trying to store an image which is sdcard onto a sdram. My c code has this function: IOWR_16DIRECT(SDRAM_BASE,(((i+80)*640+(j))-40),pixel) . When I compile I get this error " implicit declaration of function IOWR_16DIRECT ". I am using system.h and altera_up_sd_card_avalon_interface.h header files as well. 

 

Please let me know how I work around this. 

 

Thanks
0 Kudos
2 Replies
Highlighted
Valued Contributor III
7 Views

Perhaps not the better solution, but you can make a serach on all files of the project and all files of Altera's instalation, seeking the specific keyword "IOWR_16DIRECT" within each file. After findind, if occurs more than just one, you can select the one which makes more sense in regar to what compiler or current project you are working, and manually add it with the "INCLUDE" directive at the header of your code.

0 Kudos
Highlighted
Valued Contributor III
7 Views

You are missing the io.h header file. You must include io.h when using the any IO* functions.

0 Kudos