[#4904] Simple GPIO test fail in BF548-EZKIT

Document created by Aaronwu Employee on Aug 30, 2013
Version 1Show Document
  • View in full screen mode

[#4904] Simple GPIO test fail in BF548-EZKIT

Submitted By: Vivi Li

Open Date

2009-02-13 05:56:18     Close Date

2009-02-18 01:50:19

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

Tests     Board:

EZKIT Lite

Processor:

BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-2008_Dec_12

App binary format:

N/A     

Summary: Simple GPIO test fail in BF548-EZKIT

Details:

 

Simple GPIO test fail in BF548-EZKIT.

When press button, there is no response for simple-gpio-test.

 

Kernel config is attached. Bellow is the log:

--

root:/> simple-gpio-test /dev/gpio8

Going to sleep until the gpio goes high.

(if this is a button, you should push it :p)

--

 

BF548-EZKIT:

LED1 => GPIO6   PB1 => GPIO8

LED2 => GPIO7   PB2 => GPIO9

LED3 => GPIO8   PB3 => GPIO10

LED4 => GPIO9   PB4 => GPIO11

LED5 => GPIO10

LED6 => GPIO11

 

Follow-ups

 

--- Michael Hennerich                                        2009-02-17 06:03:57

Not a bug.

 

Use the right gpio device node.

BF548-EZKIT connects GPIO_PB8..11 to PB1..4 (SW13..10).

So don't use PORT A GPIOs please use PORT B.

 

root:/> modprobe simple-gpio

simple-gpio: now handling 160 GPIOs: 0 - 159

 

root:/> simple-gpio-test /dev/gpio24

Going to sleep until the gpio goes high.

(if this is a button, you should push it :p)

The gpio went high!  Time to bail!

root:/>

 

#define GPIO_PA0    0

#define GPIO_PA1    1

#define GPIO_PA2    2

#define GPIO_PA3    3

#define GPIO_PA4    4

#define GPIO_PA5    5

#define GPIO_PA6    6

#define GPIO_PA7    7

#define GPIO_PA8    8

#define GPIO_PA9    9

#define GPIO_PA10    10

#define GPIO_PA11    11

#define GPIO_PA12    12

#define GPIO_PA13    13

#define GPIO_PA14    14

#define GPIO_PA15    15

#define GPIO_PB0    16

#define GPIO_PB1    17

#define GPIO_PB2    18

#define GPIO_PB3    19

#define GPIO_PB4    20

#define GPIO_PB5    21

#define GPIO_PB6    22

#define GPIO_PB7    23

#define GPIO_PB8    24

#define GPIO_PB9    25

#define GPIO_PB10    26

#define GPIO_PB11    27

 

-Michael

 

--- Mike Frysinger                                           2009-02-17 13:05:37

could you update the cheat-sheet.h header so there's a BF548-EZKIT section ?

 

--- Vivi Li                                                  2009-02-18 01:50:19

OK, it works fine. Thanks!

cheat-sheet.h and simple-gpio-game.c are updated.

Close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.simple_gpio    application/octet-stream    41941    Vivi Li

Attachments

Outcomes