[SOLVED] UPDATE: Does anyone know how to flash Andruil to a Q8 with a Mac? now where is "avr/interrupt.h"?

7 posts / 0 new
Last post
lightlight22
lightlight22's picture
Offline
Last seen: 20 hours 3 min ago
Joined: 11/22/2016 - 22:38
Posts: 83
Location: United States
[SOLVED] UPDATE: Does anyone know how to flash Andruil to a Q8 with a Mac? now where is "avr/interrupt.h"?

I am trying to flash Andruil to a Q8 from a Mac. Im not sure if anyone out there does it or has done it. Any help would be appreciated. I have the hardware, USBasp, clip, wires. I need help with the software end. It would be much simpler if I had a pc and am in the procces of trying to build one however GPUs are super expensive because mining and parts are expensive too, anyhow if anyone out there knows how or does it any help would be appreciated.
So far I have installed avrdude, avr-libc, and homebrew. Many thanks.

Don't give up on your dreams,
Keep dreaming.

Edited by: lightlight22 on 02/14/2018 - 02:59
koef3
koef3's picture
Offline
Last seen: 2 days 11 hours ago
Joined: 08/28/2017 - 14:04
Posts: 99
Location: Cologne, Germany

Some months ago I had the same problem with my MacBook Air. I created a virtual machine with Windows 7 / 8.1 (free 30 days trial should be enough so no key is required).

You could try Virtual Box for Mac which is free (at that time I used Parallels Desktop, unfortunately not free). With Parallels Desktop there was no problem to flash drivers in the Windows OS, though I didn't test Virtual Box for this yet. Maybe an approach for this.

 

My LED tests: --- Nichia 319AT 83 CRI - Lumileds Luxeon LXML-PWD9 - Luxeon MZ 5700 K (90 CRI, 3 V) - Luxeon V (CSP) 4000 K 70CRI - Luminus SST-40-W (+ dedomed) - Cree XP-L2 (+ High CRI variant) - XHP35 HI - XHP70.2 - CXA1304 COB - OSRAM OSLON Black Flat HWQP - SYNIOS DMLQ31.SGLE UW Q8WP - unknown 5050 LED ---- finished: JAXMAN M8 (Mini C8) HighCRI Triple

FPV
FPV's picture
Offline
Last seen: 2 hours 34 min ago
Joined: 07/14/2017 - 12:36
Posts: 520
Location: Traveling on the job

I am using a Raspberry Pi atm, but when I flashed on a Mac I used this tutorial:
http://www.ladyada.net/learn/avr/setup-mac.html

Can not say whether it’s up to date, or anything like that

redhawk
redhawk's picture
Offline
Last seen: 2 months 2 weeks ago
Joined: 12/02/2016 - 16:49
Posts: 13
Location: USA

I’m currently using my mac mini to flash firmware, I put anduril on my d4 Thumbs Up . I wish I took better notes, but looking at my command history from when I started I used the following:
brew update
brew tap osx-cross/avr
brew install avr-gcc
brew install avrdude
brew install bzr
bzr branch lp:~toykeeper/flashlight-firmware/fsm
../../../bin/build-85.sh anduril
../../../bin/flash-85.sh anduril.hex

brew tap was used to add a repository so you can install the avr stuff
bzr is the version control software that ToyKeeper uses
bzr branch command will download the firmwares

I did have to edit some of the source code since I was getting some errors building it, but it worked after that. Hope this helps.

skinny_tie
Offline
Last seen: 9 hours 1 min ago
Joined: 09/23/2017 - 03:14
Posts: 164
Location: Australia

I’d be very interested hear what you end up doing, as I’m hoping to do the exact same thing in the near future.

Being a complete novice I was planning to use a Windows virtual machine so I could someone else’s instructions more closely, but I’d be happy to avoid dedicating time and disk space to setting up the VM.

lightlight22
lightlight22's picture
Offline
Last seen: 20 hours 3 min ago
Joined: 11/22/2016 - 22:38
Posts: 83
Location: United States

Hello to all who replied, I want to thank each and everyone of you. Redhawk your method worked minus the flashing to anduril. I am still struggling to be able to flash anduril but I have finally figured out flashing .hex files. If you have experiance compiling im having trouble finding “fatal error: ‘avr/interrupt.h’ file not found” that file.

skinny_tie my plan, once i figure out how to flash Toykeepers Anduril, is to write a guide because its incredibly dificult finding a guide for all of this.
stay tuned once i figure it out.

Don't give up on your dreams,
Keep dreaming.

redhawk
redhawk's picture
Offline
Last seen: 2 months 2 weeks ago
Joined: 12/02/2016 - 16:49
Posts: 13
Location: USA

hmm, I haven’t received that error before. Just to verify have you run the commands:
brew tap osx-cross/avr
brew install avr-gcc
?