- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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. ThanksLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are missing the io.h header file. You must include io.h when using the any IO* functions.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page