Home › Evil Mad Scientist Forums › Clock Kits › Trying to compile file for Sanguino in Arduino IDE
- This topic has 3 replies, 2 voices, and was last updated 5 years, 1 month ago by Martin.
-
AuthorPosts
-
November 15, 2019 at 4:12 am #28029MartinParticipant
Hi,
I have hacked my Alpha Clock 5 firmware. I’m trying to upload the hacked firmware to a new clock using the Arduino IDE, and I am running into brick walls whichever way I turn.
I’ve tried using a USB c to USB dongle to connect my FTDI cable to a new MacBook Pro, but it can’t see the FTDI cable.
I’ve tried using the Arduino IDE v 1.8.10 on a Raspberry Pi 4 but this throws an error regarding the Sanguino board definition files:-
” Arduino: 1.8.10 (Linux), Board: “Sanguino W/ ATmega644P”
Warning: Board sanguino:avr:atmega644 doesn’t define a ‘build.board’ preference. Auto-set to: AVR_ATMEGA644
Warning: Board sanguino:avr:atmega12848m doesn’t define a ‘build.board’ preference. Auto-set to: AVR_ATMEGA12848M
Warning: Board sanguino:avr:atmega1284 doesn’t define a ‘build.board’ preference. Auto-set to: AVR_ATMEGA1284
recipe.preproc.macros pattern is missingError compiling for board Sanguino W/ ATmega644P.
”I’ve tried using the Arduino IDE v 1.0.5 on a Raspberry Pi 4 with a Sanguino P644A as the target. The code won’t compile with errors thrown from the AlphaClock5.h and .cpp files because variables must be const to be stored in PROGMEM:-
“/home/pi/sketchbook/libraries/Time/DateStrings.cpp:19:18: error: variable ‘monthStr2’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
char monthStr2[] PROGMEM = “February”;”If anyone can help me with any one of these issues, I will be extremely grateful.
Martin
November 15, 2019 at 7:35 am #28031Windell OskayKeymasterThe Sanguino software obviously hasn’t been updated in some time – I’ll take a look and follow up here.
The first “wall”, the FTDI cable, should be a surmountable problem. You might need to install the FTDI driver, and seeing if the cable enumerates under /dev.
November 15, 2019 at 11:18 am #28032Windell OskayKeymasterMy FTDI cable enumerates (on a Mac) as: /dev/cu.usbserial-FTE55RTK
I’ve updated the software in the repository and environment configuration instructions: https://wiki.evilmadscientist.com/Alpha_Clock_Firmware_v2
Please give it a try, and let me know how it goes.
November 16, 2019 at 1:17 am #28033MartinParticipantThanks very much. The updated instructions work and my clock is now happily hacked. I still haven’t got the FTDI cable to work on the Mac, nor got the code to compile on the Raspi. But by exporting the binary on the Mac and uploading it to the Alpha Clock 5 via the command line on the Pi, I have achieved the result that I’m looking for.
I’m very grateful for your quick response. Keep being both evil and mad.
Martin
-
AuthorPosts
- You must be logged in to reply to this topic.