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

pio drive

hi all, 

 

does any one have a project(C code) which enable to drive PIO of 1s40 board (sevenseg, lcd, led pio) 

 

I used the count_binary example of altera, in nios II IDE it works very well. 

 

but when I create a nios2 linux project it won't compile 

 

I think I have problems with Makefile 

 

 

please help me
0 Kudos
7 Replies
Highlighted
Valued Contributor III

Re: pio drive

there is the problem I got : http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif  

 

make -k all  no emulation specific options. make: *** No rule to make target `alt_irq.h&#39;, needed by `count_binary.o&#39;. make: *** No rule to make target `io.h&#39;, needed by `count_binary.o&#39;. make: *** No rule to make target `alt_types.h&#39;, needed by `count_binary.o&#39;. make: *** No rule to make target `altera_avalon_pio_regs.h&#39;, needed by `count_binary.o&#39;. make: *** No rule to make target `nios2.h&#39;, needed by `count_binary.o&#39;. make: *** No rule to make target `system.h&#39;, needed by `count_binary.o&#39;. make: Target `all&#39; not remade because of errors 

.
0 Kudos
Highlighted
Valued Contributor III

Re: pio drive

Hi sdhnain, 

--- Quote Start ---  

originally posted by sdhnain@May 9 2006, 05:03 PM 

there is the problem i got :  http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif  

 

make -k all  no emulation specific options. make: *** no rule to make target `alt_irq.h&#39;, needed by `count_binary.o&#39;. make: *** no rule to make target `io.h&#39;, needed by `count_binary.o&#39;. make: *** no rule to make target `alt_types.h&#39;, needed by `count_binary.o&#39;. make: *** no rule to make target `altera_avalon_pio_regs.h&#39;, needed by `count_binary.o&#39;. make: *** no rule to make target `nios2.h&#39;, needed by `count_binary.o&#39;. make: *** no rule to make target `system.h&#39;, needed by `count_binary.o&#39;. make: target `all&#39; not remade because of errors 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15229)</div> 

--- Quote End ---  

 

Please post your Makefile.
0 Kudos
Highlighted
Valued Contributor III

Re: pio drive

 

--- Quote Start ---  

originally posted by sdhnain@May 9 2006, 10:51 PM 

hi all, 

 

does any one have a project(c code) which enable to drive pio of 1s40 board (sevenseg, lcd, led pio) 

 

i used the count_binary example of altera, in nios ii ide it works very well. 

 

but when i create a nios2 linux project it won&#39;t compile 

 

i think i have problems with makefile 

 

 

please help me 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15227) 

--- quote end ---  

 

--- Quote End ---  

 

You can&#39;t use HAL api in uClinux. 

Look at the sample pio driver in arch/nios2nommu/kernel/pio.c
0 Kudos
Highlighted
Valued Contributor III

Re: pio drive

thanks hippo, 

 

the pio.c is good, but it drives only LEDs and seven seg, I need also LCD. 

 

is it possible ?
0 Kudos
Highlighted
Valued Contributor III

Re: pio drive

 

--- Quote Start ---  

originally posted by sdhnain@May 10 2006, 04:52 PM 

thanks hippo, 

 

the pio.c is good, but it drives only leds and seven seg, i need also lcd. 

 

is it possible ? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15250) 

--- quote end ---  

 

--- Quote End ---  

 

There is no LCD driver for nios2 dev board. 

You will have to write or port one.
0 Kudos
Highlighted
Valued Contributor III

Re: pio drive

 

--- Quote Start ---  

originally posted by hippo+may 10 2006, 05:28 am--><div class='quotetop'>quote (hippo @ may 10 2006, 05:28 am)</div> 

--- quote start ---  

<!--quotebegin-sdhnain@May 10 2006, 04:52 PM 

thanks hippo, 

 

the pio.c is good, but it drives only leds and seven seg, i need also lcd. 

 

is it possible ? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15250) 

--- quote end ---  

 

--- Quote End ---  

 

There is no LCD driver for nios2 dev board. 

You will have to write or port one. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15252)</div> 

[/b] 

--- Quote End ---  

 

 

Hippo, 

 

Is there any pointer to what should look at to write a LCd application for NIOS ii uclinux ?
0 Kudos
Highlighted
Valued Contributor III

Re: pio drive

hi all, i&#39;m also trying to control the lcd module using c program. pls guide. thx.

0 Kudos