0

Monochron firmware compilation error
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Monochron firmware compilation error

by cipicip on Fri Sep 07, 2012 8:24 pm

Hi guys,

I'm trying to install a new firmware on the Monochron clock that I recently purchased and the firmware either won't compile (IntruderChron, RATTchron) or, if I use the one already compiled or manage to compile it myself (Multichron), the screen goes black and the clock beeps continously. However I can re-install the standard already compiled firmware I found on your forum without any trouble.

When compiling I'm getting this error:
Code: Select all | TOGGLE FULL SIZE
In file included from ratt.c:3:0:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h: In function ‘beep’:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:153:28: error: __builtin_avr_delay_cycles expects an integer constant.


The funny thing is that I have already used that header in other projects without any worries.

Is there somewhere a repository from where I can download all the alternative firmwares already compiled and that have been tested to work?

Thanks.
cipicip
 
Posts: 2
Joined: Fri Sep 07, 2012 8:02 pm

Re: Monochron firmware compilation error

by adafruit_support_bill on Sat Sep 08, 2012 7:24 am

Some of the user mod repositories include the compiled .hex files - like CaitSith's MultiChron: https://github.com/CaitSith2/monochron/tree/MultiChron/firmware

adafruit_support_bill
 
Posts: 62176
Joined: Sat Feb 07, 2009 10:11 am

Re: Monochron firmware compilation error

by cipicip on Sat Sep 08, 2012 12:24 pm

adafruit_support wrote:Some of the user mod repositories include the compiled .hex files - like CaitSith's MultiChron: https://github.com/CaitSith2/monochron/tree/MultiChron/firmware


And if I upload that one the screen goes black and the clock beeps - probably is constantly resetting itself. Can anyone confirm that that firmware is in good working order and not broken? I tried recompiling it but it's the same story: the screen goes dark and starts beeping. On the plus side, at least this firmware could be compiled without any errors.

So far I can only upload the precompiled standard firmware and the XDaliClock one (again, the precompiled version) without any problems.
cipicip
 
Posts: 2
Joined: Fri Sep 07, 2012 8:02 pm

Re: Monochron firmware compilation error

by LoachMan33 on Sat Jun 17, 2017 4:03 am

The "read me.txt" in the distribution directory says:
Loading the firmware.
Please be advised that this program stores values in EEPROM memory,
As such, EEPROM must be loaded with each new version.
Please use or examine the attached loadfw.bat or loadfw.sh (assumes use of a tinyusb programmer)
Failure to load the EEPROM will result in a blank screen and continuous beeps.
This may be corrected by loaded loading the EEPROM.


I'm guessing that loading the EEPROM is an exercise left for the reader.

LoachMan33
 
Posts: 1
Joined: Thu May 25, 2017 11:41 pm

Re: Monochron firmware compilation error

by adafruit_support_bill on Sat Jun 17, 2017 5:52 am

There is an eeprom loader folder in the Github repo: https://github.com/CaitSith2/monochron/ ... n/firmware

adafruit_support_bill
 
Posts: 62176
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.