Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

NIOSII - Write output to Dev kit LCD

I am trying to switch over to eCos from MicroC/OS-II. I have succesfully installed eCos for NIOS 5.0. I have built and run the eCos hello example.

I am now trying to modify the hello example to write to the LCD of my dev kit. Altera Cyclone II standard 2C35.

The code will build with my reference to the /dev/lcd_display put I get no output to the LCD.

I have tried running in debug but this seems to misbehave when I get to my lCD code.

Anyone run across this ?

Thanks.

11 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Dear monkeyboy.

    It' OK now.

    CFLAGS = -I$(INSTALL_DIR)/include -I'$(SOPC_KIT_NIOS2)'/components/altera_avalon_pio/inc -I$(PREFIX)/include/cyg/hal

    In my PC, $(PREFIX) was not defined.

    So, I changed "PREFIX" to "INSTALL_DIR",

    then, it works OK.

    Thank you.