[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Application Program to blink LEDs not working



Yes John, mwr works fine on xmd. When I do "mwr 0x40020000 0x0f" half 4 LEDs out of 8 go off. printk() also works fine. If u want I can send u the snapshot of the terminal after I run the program.


On 18/08/06, John Williams <jwilliams@xxxxxxxxxxxxxx> wrote:
Hello Kunal,

Kunal Kishore wrote:

> I am a newbie to drivers and struggling.
> I've written and installed the driver to blink LEDs with its
> corresponding application program on the board . Both appear in the file
> system of uclinux after it has been ported. Driver is registered
> successfully during boot up.  But it's not working. I am still trying to
> figure out where I've gone wrong. Application Program opens the driver
> file successfully and everything goes well but finally it doesnt write
> to LEDs. I am giving both the programs below. Please help me out.

[snip]


>     printk("Data from user %x hex\n", data);
>     outb(data, OUTPORT);

Is this printk() getting triggered, with correct data?

Can you write to the GPIO from e.g. XMD, using the mwr command:

$ xmd

% mwr 0x40020000 0xffffffff

and it lights the LED?

John
___________________________
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/