librelist archives

« back to archive

Not uploading the firmware (+ 1)

Not uploading the firmware (+ 1)

From:
Chris
Date:
2015-07-28 @ 00:45
Hi guys, I managed to upload for the first time and everything worked as 
expected. Now I need some adjustments to become faster at work and I am 
having problems uploading a new version.

The device seems to be /dev/hidraw0, but when I run make upload 
USB=/dev/hidraw0 the output is:

while [ ! -r /dev/hidraw0 ]; do sleep 1; done; \
avrdude -p atmega32u4 -c avr109 -U flash:w:atreus.hex -P /dev/hidraw0
avrdude: ser_open(): can't set attributes for device "/dev/hidraw0": 
Inappropriate ioctl for device

avrdude done.  Thank you.

Makefile:29: recipe for target 'upload' failed
make: *** [upload] Error 1

Anyone had this problem before? Im using archlinux.

Thanks in advance

Re: [atreus] Not uploading the firmware (+ 1)

From:
Phil Hagelberg
Date:
2015-07-28 @ 06:09
Chris <chrisrp@inventati.org> writes:

> Hi guys, I managed to upload for the first time and everything worked as 
> expected. Now I need some adjustments to become faster at work and I am 
> having problems uploading a new version.
>
> The device seems to be /dev/hidraw0, but when I run make upload 
> USB=/dev/hidraw0 the output is:

I haven't used archlinux, but I've never heard of /dev/hidraw0 being
used for uploading. It may be that the hidraw0 device is active when the
chip is acting like a keyboard, but it switches to another device
(usually ttyACM0) when it goes into bootloader mode. Maybe check the
output of dmesg when you perform a reset?

-Phil

Re: [atreus] Not uploading the firmware (+ 1)

From:
Aj Christensen
Date:
2015-07-28 @ 02:42
With the board in bootloader mode, i.e. breathing having been reset, you
should see a ttyACMS0 device. Arch linux here too. L2 Enter key becomes
RESET. FN+ESC+RET for BL mode.

[22297.346259] usb 1-7: USB disconnect, device number 3
[22299.981223] usb 1-7: new full-speed USB device number 9 using xhci_hcd
[22300.156190] usb 1-7: ep 0x82 - rounding interval to 1024 microframes, ep
desc says 2040 microframes
*[22300.163908] cdc_acm 1-7:1.0: ttyACM0: USB ACM device*
[22300.164065] usbcore: registered new interface driver cdc_acm
[22300.164066] cdc_acm: USB Abstract Control Model driver for USB modems
and ISDN adapters
[22307.736090] usb 1-7: USB disconnect, device number 9
[22308.045552] usb 1-7: new full-speed USB device number 10 using xhci_hcd
[22308.221417] input: technomancy Atreus as

/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:FEED:6060.0009/input/input26
[22308.272293] hid-generic 0003:FEED:6060.0009: input,hidraw2: USB HID
v1.11 Keyboard [technomancy Atreus] on usb-0000:00:14.0-7/input0
[22308.272960] hid-generic 0003:FEED:6060.000A: hiddev0,hidraw3: USB HID
v1.11 Device [technomancy Atreus] on usb-0000:00:14.0-7/input1
[22308.273666] input: technomancy Atreus as

/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.2/0003:FEED:6060.000B/input/input27
[22308.325590] hid-generic 0003:FEED:6060.000B: input,hidraw4: USB HID
v1.11 Keyboard [technomancy Atreus] on usb-0000:00:14.0-7/input2


On Tue, Jul 28, 2015 at 12:31 PM Chris <chrisrp@inventati.org> wrote:

> Hi guys, I managed to upload for the first time and everything worked as
> expected. Now I need some adjustments to become faster at work and I am
> having problems uploading a new version.
>
> The device seems to be /dev/hidraw0, but when I run make upload
> USB=/dev/hidraw0 the output is:
>
> while [ ! -r /dev/hidraw0 ]; do sleep 1; done; \
> avrdude -p atmega32u4 -c avr109 -U flash:w:atreus.hex -P /dev/hidraw0
> avrdude: ser_open(): can't set attributes for device "/dev/hidraw0":
> Inappropriate ioctl for device
>
> avrdude done.  Thank you.
>
> Makefile:29: recipe for target 'upload' failed
> make: *** [upload] Error 1
>
> Anyone had this problem before? Im using archlinux.
>
> Thanks in advance
>

Re: [atreus] Not uploading the firmware (+ 1)

From:
Chris
Date:
2015-07-28 @ 23:18
Thanks a lot guys.. firmware uploaded. =)

On 07/27/2015 11:42 PM, AJ Christensen wrote:
> With the board in bootloader mode, i.e. breathing having been reset, 
> you should see a ttyACMS0 device. Arch linux here too. L2 Enter key 
> becomes RESET. FN+ESC+RET for BL mode.
>
> [22297.346259] usb 1-7: USB disconnect, device number 3
> [22299.981223] usb 1-7: new full-speed USB device number 9 using xhci_hcd
> [22300.156190] usb 1-7: ep 0x82 - rounding interval to 1024 
> microframes, ep desc says 2040 microframes
> *[22300.163908] cdc_acm 1-7:1.0: ttyACM0: USB ACM device*
> [22300.164065] usbcore: registered new interface driver cdc_acm
> [22300.164066] cdc_acm: USB Abstract Control Model driver for USB 
> modems and ISDN adapters
> [22307.736090] usb 1-7: USB disconnect, device number 9
> [22308.045552] usb 1-7: new full-speed USB device number 10 using xhci_hcd
> [22308.221417] input: technomancy Atreus as 
> /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:FEED:6060.0009/input/i 
> nput26
> [22308.272293] hid-generic 0003:FEED:6060.0009: input,hidraw2: USB HID 
> v1.11 Keyboard [technomancy Atreus] on usb-0000:00:14.0-7/input0
> [22308.272960] hid-generic 0003:FEED:6060.000A: hiddev0,hidraw3: USB 
> HID v1.11 Device [technomancy Atreus] on usb-0000:00:14.0-7/input1
> [22308.273666] input: technomancy Atreus as 
> 
/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.2/0003:FEED:6060.000B/input/input27
> [22308.325590] hid-generic 0003:FEED:6060.000B: input,hidraw4: USB HID 
> v1.11 Keyboard [technomancy Atreus] on usb-0000:00:14.0-7/input2
>
>
> On Tue, Jul 28, 2015 at 12:31 PM Chris <chrisrp@inventati.org 
> <mailto:chrisrp@inventati.org>> wrote:
>
>     Hi guys, I managed to upload for the first time and everything
>     worked as
>     expected. Now I need some adjustments to become faster at work and
>     I am
>     having problems uploading a new version.
>
>     The device seems to be /dev/hidraw0, but when I run make upload
>     USB=/dev/hidraw0 the output is:
>
>     while [ ! -r /dev/hidraw0 ]; do sleep 1; done; \
>     avrdude -p atmega32u4 -c avr109 -U flash:w:atreus.hex -P /dev/hidraw0
>     avrdude: ser_open(): can't set attributes for device "/dev/hidraw0":
>     Inappropriate ioctl for device
>
>     avrdude done.  Thank you.
>
>     Makefile:29: recipe for target 'upload' failed
>     make: *** [upload] Error 1
>
>     Anyone had this problem before? Im using archlinux.
>
>     Thanks in advance
>