Monochron Updating Issue
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Monochron Updating Issue

by shyam131 on Sun Jan 06, 2019 3:05 pm

I cannot get my Monochron to update. avrdude will not initialize. When running the following command:
Code: Select all | TOGGLE FULL SIZE
avrdude -c arduino -p m328p -P -b 57600

I receive the following error:

avrdude: ser_open(): can't open device "-b": No such file or directory
ioctl("TIOCMGET"): Inappropriate ioctl for device

Any suggestions on who to resolve this error. I have followed all the instructions on this page: https://learn.adafruit.com/monochron/updating

Posts: 1
Joined: Sun Jan 06, 2019 12:58 am

Re: Monochron Updating Issue

by toinec on Fri Jan 11, 2019 6:12 pm

Hi there,

When using avrdude, the -P argument must be followed by the port name of the device that connects to your Monochron..
Since in your example the next argument is -b, avrdude assumes that -b is the port name, which apparently fails to work :-).

Example for Linux:
avrdude -c arduino -p m328p -P /dev/ttyUSB0 -b 57600

Example for Windows:
avrdude -c arduino -p m328p -P COM3 -b 57600

Depending on the interface device connected to your Monochron, OS and avr toolchain, the values for -P and -b may differ.
The commands above work nicely for me using FTDI-Friend v1.1 in combination with Debian Linux 8 and 9 (it's been quite some time since I did avr stuff on Windows), using the Emuchron firmware.

Cheers, good luck & enjoy your clocks!

Posts: 12
Joined: Tue Aug 20, 2013 8:42 am

Re: Monochron Updating Issue

by adafruit_support_carter on Thu Jan 17, 2019 3:01 pm

It looks like there's some weird formatting error on the guide page that's blanking out that information. Scroll down a bit and see the screen shots that show the port actually being specified (COM30 in the example).

Posts: 14378
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.