MONOCHRON Flash-error

For RTC breakouts, etc., use the Other Products from Adafruit forum

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
monochron
 
Posts: 14
Joined: Tue Mar 18, 2014 3:46 am

MONOCHRON Flash-error

Post by monochron »

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

User avatar
jarchie
 
Posts: 615
Joined: Sun Jun 24, 2012 2:16 pm

Re: MONOCHRON Flash-error

Post by jarchie »

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.

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

Re: MONOCHRON Flash-error

Post by monochron »

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 665 times

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

Re: MONOCHRON Flash-error

Post by monochron »

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 658 times

User avatar
jarchie
 
Posts: 615
Joined: Sun Jun 24, 2012 2:16 pm

Re: MONOCHRON Flash-error

Post by jarchie »

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.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: MONOCHRON Flash-error

Post by adafruit_support_rick »

Try a lower baud-rate for the upload.

User avatar
jarchie
 
Posts: 615
Joined: Sun Jun 24, 2012 2:16 pm

Re: MONOCHRON Flash-error

Post by jarchie »

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.

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

Re: MONOCHRON Flash-error

Post by monochron »

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?

User avatar
jarchie
 
Posts: 615
Joined: Sun Jun 24, 2012 2:16 pm

Re: MONOCHRON Flash-error

Post by jarchie »

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.

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

Re: MONOCHRON Flash-error

Post by phild13 »

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.

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

Re: MONOCHRON Flash-error

Post by monochron »

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

User avatar
jarchie
 
Posts: 615
Joined: Sun Jun 24, 2012 2:16 pm

Re: MONOCHRON Flash-error

Post by jarchie »

Monochron wrote:I replaced the microcontroller. Thank you to adafruit :-)
I take it that everything is working now?

Locked
Please be positive and constructive with your questions and comments.

Return to “Clock Kits (discontinued)”