Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

lcd16207 not working

Altera_Forum
Honored Contributor II
1,088 Views

I am trying to print anything on lcd display on my de2 board. 

uClinux/Nios II Built 1 zonelists in Zone order, mobility grouping off. Total pages: 2032 Kernel command line: NR_IRQS:32 PID hash table entries: 32 (order: 5, 128 bytes) Dentry cache hash table entries: 1024 (order: 0, 4096 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory available: 4644k/3267k RAM, 0k/0k ROM (1669k kernel code, 1598k data) Calibrating delay loop... 44.74 BogoMIPS (lpj=223744) Mount-cache hash table entries: 512 net_namespace: 264 bytes NET: Registered protocol family 16 init_BSP(): registering device resources bio: create slab <bio-0> at 0 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 512 (order: 0, 4096 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes) TCP: Hash tables configured (established 512 bind 512) TCP reno registered NET: Registered protocol family 1 io scheduler noop registered io scheduler deadline registered (default) ttyJ0 at MMIO 0x6810f0 (irq = 1) is a Altera JTAG UART console enabled ttyS0 at MMIO 0x681000 (irq = 2) is a Altera UART dm9000 Ethernet Driver, V1.31 dm9000 dm9000.0: eth%d: Invalid ethernet MAC address. Please set using ifconfig eth0 (dm9000): not using net_device_ops yet eth0: dm9000e at 806810f8,806810fc IRQ 6 MAC: 00:00:00:00:00:00 (chip) TCP cubic registered NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. Freeing unused kernel memory: 1368k freed (0x9da000 - 0xb2f000) Shell invoked to run file: /etc/rc Command: hostname uClinux Command: mount -t proc proc /proc -o noexec,nosuid,nodev Command: mount -t sysfs sysfs /sys -o noexec,nosuid,nodev Command: mount -t devpts devpts /dev/pts -o noexec,nosuid Command: mount -t usbfs none /proc/bus/usb mount: mounting none on /proc/bus/usb failed: No such file or directory Command: mkdir /var/tmp Command: mkdir /var/log Command: mkdir /var/run Command: mkdir /var/lock Command: mkdir /var/empty Command: ifconfig lo 127.0.0.1 Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ Execution Finished, Exiting Sash command shell (version 1.1.1) /> cd bin /bin> ls arp boa busybox cat chmod cp dd dhcpcd dmesg echo ethtool ftp ftpd hostname hush ifconfig inetd init inputattach kill lcd lcd16207 lcd16207.c lcd16207.gdb lcd16207.o lcd_16207.h lcdtime lcdtime.c lcdtime.gdb lcdtime.o leds leds.c leds.gdb login ls make_examples mount msh netstat netstat-nat ping ps readf readf.c readf.gdb readf.o rm route routed sh telnetd writef writef.c writef.gdb writef.o /bin> lcd16207 "fdsfs" Can't open device file: /dev/lcd16207 /bin> 

 

I try to run example lcd16207 program from altera wiki and it doesnt work. Ive changed defined addresess to  

# define ADR_LCD_COMMAND na_lcd_16207_0 + 0x80000000 

# define ADR_LCD_READY (na_lcd_16207_0 + 0x80000000 +4) 

# define ADR_LCD_DATA (na_lcd_16207_0 + 0x80000000 + 8) 

# define ADR_LCD_READ (na_lcd_16207_0 + 0x80000000 + 12) 

I have no idea what to do? 

Which drivers should I use? Ive tried to follow the steps from "Device drivers and Test application for a SOPC solution with Nios II softcore processor and &#956;Clinux" but I cannot find de2_drivers which were use there since the files are no longer available on the serwer. Please help me cause I am really confused now how it should work :)
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
352 Views

what is very important? I didnt find any solution

0 Kudos
Altera_Forum
Honored Contributor II
352 Views

Did you load the module before you want to use the application?

0 Kudos
Reply