[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] [bug #40748] linuxgpio doesn't work on Raspberry PI re
From: |
Joakim Lubeck |
Subject: |
Re: [avrdude-dev] [bug #40748] linuxgpio doesn't work on Raspberry PI rev. 2. |
Date: |
Sat, 30 Nov 2013 09:15:31 +0100 |
User-agent: |
SquirrelMail/1.4.21 |
On Fri, November 29, 2013 11:42 pm, René Liebscher wrote:
> Hi,
>
> (value = 0 is filtered and all exceptions of this are set to non-0
values.)
Now I don't know the details here, but should there be only || in that if
statement? I tested with
---
if ( pgm->pinno[i] != 0 && (
i == PIN_AVR_RESET ||
i == PIN_AVR_SCK ||
i == PIN_AVR_MOSI ||
i == PIN_AVR_MISO) ) {
---
Just guessing here, but do that make sense?
It seems to work with the loop starting with i = 0. Output with with your
printf's
---
sudo ./avrdude -c linuxgpio -p t1634
linuxgpio: i=0, pin=0, mask=00000000, inverse=00000000
linuxgpio: i=1, pin=-2147483648, mask=00000000, inverse=00000000
linuxgpio: i=2, pin=-2147483648, mask=00000000, inverse=00000000
linuxgpio: i=3, pin=17, mask=00020000, inverse=00000000
linuxgpio: i=4, pin=2, mask=00000004, inverse=00000000
linuxgpio: i=5, pin=3, mask=00000008, inverse=00000000
linuxgpio: i=6, pin=4, mask=00000010, inverse=00000000
linuxgpio: i=7, pin=0, mask=00000000, inverse=00000000
linuxgpio: i=8, pin=0, mask=00000000, inverse=00000000
linuxgpio: i=9, pin=0, mask=00000000, inverse=00000000
linuxgpio: i=10, pin=0, mask=00000000, inverse=00000000
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9412
avrdude: safemode: Fuses OK (E:1F, H:DF, L:E2)
avrdude done. Thank you.
---
/Joakim