Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

MONOCHRON Flash-error
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MONOCHRON Flash-error

by monochron on Tue Mar 18, 2014 3:51 am

I wanted to flash my MONOCHRON-clock with XDALYCHRON firmware but I get an error. See picture...
What can I do?
Attachments
error.jpg
Flash-error
error.jpg (16.17 KiB) Viewed 621 times

monochron
 
Posts: 14
Joined: Tue Mar 18, 2014 3:46 am

Re: MONOCHRON Flash-error

by jarchie on Tue Mar 18, 2014 11:52 am

I've never programmed the Monochron, but it looks like that particular error is due to the way the file name is specified. Maybe try -U flash:w:monochron.hex instead of flash:w:D:monochron.hex?

It's also worth studying the Adafruit instructions for uploading new firmwares.
--John <www.jarchie.com/email>

jarchie
 
Posts: 595
Joined: Sun Jun 24, 2012 2:16 pm
Location: Santa Cruz, California, United States

Re: MONOCHRON Flash-error

by monochron on Tue Mar 18, 2014 1:43 pm

Thank you jarchie. That's it !!
But now I receive another error :(
I tried it several times, but the error remains...
Attachments
error_1.jpg
error_1.jpg (10.61 KiB) Viewed 598 times

monochron
 
Posts: 14
Joined: Tue Mar 18, 2014 3:46 am

Re: MONOCHRON Flash-error

by monochron on Tue Mar 18, 2014 3:07 pm

Now I reset the clock and the transfer begins.
But when it is finished I get an mismatch-error. Now the display of the clock is blinking every second - nothing else.
Then I started the transfer again but the same result. Now my clock is useless. What's wrong?
Attachments
error_2.jpg
error_2.jpg (110.01 KiB) Viewed 591 times

monochron
 
Posts: 14
Joined: Tue Mar 18, 2014 3:46 am

Re: MONOCHRON Flash-error

by jarchie on Tue Mar 18, 2014 3:55 pm

That sounds a lot like bad flash memory in the microcontroller, in which case you'd need to replace it. I'd suggest waiting for someone with more experience than myself--probably Adafruit support--to chime in.
--John <www.jarchie.com/email>

jarchie
 
Posts: 595
Joined: Sun Jun 24, 2012 2:16 pm
Location: Santa Cruz, California, United States

Re: MONOCHRON Flash-error

by adafruit_support_rick on Wed Mar 19, 2014 12:47 pm

Try a lower baud-rate for the upload.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: MONOCHRON Flash-error

by jarchie on Wed Mar 19, 2014 2:14 pm

Some standard baud rates are 1200, 2400, 4800, 19200, 38400, and 57600. It might not matter for what you're doing, but choosing a standard baud rate like 4800 is usually a safe choice.
--John <www.jarchie.com/email>

jarchie
 
Posts: 595
Joined: Sun Jun 24, 2012 2:16 pm
Location: Santa Cruz, California, United States

Re: MONOCHRON Flash-error

by monochron on Thu Mar 20, 2014 3:13 pm

Thanks to jarchie.
Now I reduced the baud rate to 4800 or 19200 but nothing happend. The file-transfer only starts with baud rate 57600.
Then I took another hex file. The MultiChronB.hex from GitHub. Flash OK but the clock is beeping and nothing happend.
Then I downloaded the latest original firmware HEX via the forum link. Flash and --- OK :D Clock works normally.

for comparison I again load the MultiChronB.hex --> same error: beeping
the monochrom.hex from XDALICHRON --> same error: blinking
The original hex file from the forum --> Flash and OK !!

Only the hex-file from the forum-link works. Are the other hex-files broken? Who can post XDaliChron hex-file for me?

monochron
 
Posts: 14
Joined: Tue Mar 18, 2014 3:46 am

Re: MONOCHRON Flash-error

by jarchie on Thu Mar 20, 2014 3:27 pm

Monochron wrote:The file-transfer only starts with baud rate 57600.

It's been a while since I've used an Arduino bootloader, but that makes sense to me. I vaguely remember that the USART bit rate is hardcoded in the bootloader--to 57600 in this case.

Monochron wrote:for comparison I again load the MultiChronB.hex --> same error: beeping
the monochrom.hex from XDALICHRON --> same error: blinking

The error is always at byte 0x7800, right? If so, it looks like there's a section of bad FLASH memory starting at that location. Since that section is stuck with the bits of the original firmware, the original firmware works. But since that section is stuck, it cannot be reprogrammed with anything else, so no other firmware will work in that microcontroller. If my suspicion is correct, the microcontroller will need to be replaced.

Again, I suggest waiting for Rick to confirm that... especially since I've never used or programmed a Monochron myself. If your microcontroller is defective, Adafruit will probably offer a free replacement.

Monochron wrote:Only the hex-file from the forum-link works. Are the other hex-files broken?

I suspect the files are fine.
--John <www.jarchie.com/email>

jarchie
 
Posts: 595
Joined: Sun Jun 24, 2012 2:16 pm
Location: Santa Cruz, California, United States

Re: MONOCHRON Flash-error

by phild13 on Thu Mar 20, 2014 3:45 pm

The default baud rate in the bootloader is 57600 and it appears that is what things are compiled with.

You can try reflashing the bootloader onto the chip and see if that solves the issue or do as John said. Looking at some of the stuff on GitHub for the firmwares you mention, I think the bootloader is defaulted to a 168 so make the change in the make file first to match the 328 processor.

phild13
 
Posts: 247
Joined: Mon Sep 10, 2012 1:05 pm

Re: MONOCHRON Flash-error

by monochron on Mon Apr 07, 2014 8:27 am

I replaced the microcontroller. Thank you to adafruit :-)

monochron
 
Posts: 14
Joined: Tue Mar 18, 2014 3:46 am

Re: MONOCHRON Flash-error

by jarchie on Mon Apr 07, 2014 2:23 pm

Monochron wrote:I replaced the microcontroller. Thank you to adafruit :-)

I take it that everything is working now?

jarchie
 
Posts: 595
Joined: Sun Jun 24, 2012 2:16 pm
Location: Santa Cruz, California, United States

Please be positive and constructive with your questions and comments.