Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- It looks like the location where it is looking for may not be right. Try pointing to where the files are. For quartus 15: C:\altera\15.0\ip\altera\university_program\audio_video\altera_up_avalon_character_lcd\HAL\inc I'm not sure if that will work though. Good luck. --- Quote End --- I added the library with altera university program 9.1 for my directory have c:\altera\91\ip\altera\university_program\audio_video\altera_up_avalon_character_lcd\hal\inc the code now sees the header file but it keeps flipping out over the line
hLCD = alt_up_character_lcd_open_dev (DE270_LCD_NAME); even if I comment it out. I have tried cleaning, rebuilding, restarting eclipse, restarting my computer but eclipse still hates the line hLCD = alt_up_character_lcd_open_dev (DE270_LCD_NAME); regardless if commented out or not idk y. the project will not build either because of this mysterious problem my code currently
# include <stdio.h># include "system.h"# include "C:\altera\91\ip\altera\university_program\Audio_Video\altera_up_avalon_character_lcd\HAL\inc\altera_up_avalon_character_lcd.h"# include "C:\altera\91\ip\altera\university_Program\Audio_Video\altera_up_avalon_character_lcd\HAL\inc\altera_up_avalon_character_lcd_regs.h"
int main ()
{
alt_up_character_lcd_dev* hLCD;
hLCD = alt_up_character_lcd_open_dev (DE270_LCD_NAME);
if (hLCD == NULL)
{
printf ("Character LCD is missing\n");
return (0);
}
else
{
printf ("Character LCD is OK\n");
alt_up_character_lcd_init (hLCD);
}
int i = 0;
char TopMsg = "0123456789ABCDEF\0";
char BtmMsg = " Hello class\0";
while (1)
{
alt_up_character_lcd_init (hLCD);
alt_up_character_lcd_set_cursor_pos (hLCD, 0, 0);
alt_up_character_lcd_string (hLCD, TopMsg);
for (i = 0; i < 15000000; i++);
alt_up_character_lcd_init (hLCD);
alt_up_character_lcd_set_cursor_pos (hLCD, 0, 1);
alt_up_character_lcd_string (hLCD, BtmMsg);
for (i = 0; i < 15000000; i++);
}
return (0);
}