[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Interrupt issue
Hello Benny,
You're great Benny ;-)
Per your info, I looked into /proc/interrupts and found out that interrupt
REALLY worked for "PetaLogix keypad device".
The count increases at pressing the button ;-)
I was wrong in assuming I have to load that module as there's nothing reply
to the command "lsmod" !?!?
So I wrote a very simple driver with a function request_irq() for interrupt
4. It appeared to me that the request was granted as it returns error code
of 0, so it shared with "keypaddev.o" ?!?
I'll try to create another IRQ line in HW, but won't change SW PetaLinux, so
I'm able to load a very simple module at run time, in order to have better
understanding.
Big Thanks and Best Wishes to You, Benny,
Duy-Ky
%%% Start
# cat /proc/interrupts
CPU0
0: 20475 XINTC timer
1: 211 XINTC eth0
3: 667 XINTC Microblaze UARTlite
4: 42 XINTC PetaLogix keypad device
5: 0 XINTC Microblaze UARTlite
ERR: 0
%%% Stop
----- Original Message -----
From: "Benny Chen" <bennyc@xxxxxxxxxxxxxx>
To: <microblaze-uclinux@xxxxxxxxxxxxxx>
Sent: Monday, October 22, 2007 3:49 PM
Subject: Re: [microblaze-uclinux] Interrupt issue
Hi Duy-Ky,
I wrote a simple driver, loaded it, I was able to see it successfully
hooked to interrupt IRQ4 I wanted.
This interrupt is associated with Press Button on Spartan 3E-1600 eva
board.
But there's no response when I pressed the buttons.
What did your /proc/interrupts say? Did it associate your driver to irq
4? Did the interrupt count increase when you press the button?
Regards,
Benny Chen
Duy-Ky Nguyen wrote:
Hi,
I'm using the latest Petalinux release and kernel 2.4
I'm trying to test GPIO interrupt, but have failed so far.
There's no response at all when I loaded keypaddev.o come with the
package.
I wrote a simple driver, loaded it, I was able to see it successfully
hooked to interrupt IRQ4 I wanted.
This interrupt is associated with Press Button on Spartan 3E-1600 eva
board.
But there's no response when I pressed the buttons.
I'm sure the board works fine with interrupt button as I tested with
Windows EDK code in standalone mode, ie no OS at all.
Compare all relevant regosters in these 2 cases, all ENABLE regsiters are
the same. T the only differences are the STATUS ones because there's no
response to IRQ using Petalinux, but responding from standalone one.
I'd really appreciate your help
Duy-Ky
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/