Where to download Anduril

4 posts / 0 new
Last post
Dr.Phillip
Dr.Phillip's picture
Offline
Last seen: 2 weeks 36 min ago
Joined: 09/26/2019 - 04:23
Posts: 146
Where to download Anduril

Hi guys,

I am going to flash my Astrolux MF01 mini (same driver board as mateminco mt07) and I was wondering where I can download all necessary Anduril files. Is there a precompiled version I can just flash or do I have to build it from source code? I am going to need to adjust some of the configuration files to make a voltage calibration (to add 0.2V to read voltage). Is the firmware one file or a whole folder of code files? This may all seem stupid but I never flashed firmware before.

Edited by: Dr.Phillip on 11/19/2019 - 18:26
atobe
Offline
Last seen: 9 hours 28 min ago
Joined: 09/14/2019 - 23:27
Posts: 280
Location: California

ᕦ(ò_óˇ)ᕤ

Chatika vas Paus
Offline
Last seen: 2 hours 35 min ago
Joined: 09/03/2017 - 13:46
Posts: 741

ToyKeeper wrote:

It’s not usually a good idea to download individual files. Get the whole repository instead, to make sure all the files are the same version. Mismatched versions can cause all sorts of problems.

If you have bzr, it should only require running “bzr branch lp:flashlight-firmware” or “bzr branch lp:~toykeeper/flashlight-firmware/fsm” to get everything.

But if you don’t have bzr (it has issues on Windows), there’s still a reasonably easy way to do it:

  1. Go to https://launchpad.net/flashlight-firmware
  2. Click “Code”
  3. Click the branch you want
  4. Click the first number under “Recent revisions”
  5. Click “download tarball”
  6. Unzip the tarball file

This should get you everything in the repository, with the directory structures still intact.

On a suitable command-line-based interface, the code can then be built by going into the anduril directory and running “make”. This compiles one .hex file for each cfg-*.h file it finds. So, you should be able to edit a cfg file or make a new one, and it’ll then be included in the full set of builds.

That doesn’t work in Atmel Studio though… in that, it’ll probably be easier to just uncomment the line at the top of anduril.c which specifies which config file to use.

Dr.Phillip
Dr.Phillip's picture
Offline
Last seen: 2 weeks 36 min ago
Joined: 09/26/2019 - 04:23
Posts: 146

Chatika vas Paus wrote:
ToyKeeper wrote:

It’s not usually a good idea to download individual files. Get the whole repository instead, to make sure all the files are the same version. Mismatched versions can cause all sorts of problems.

If you have bzr, it should only require running “bzr branch lp:flashlight-firmware” or “bzr branch lp:~toykeeper/flashlight-firmware/fsm” to get everything.

But if you don’t have bzr (it has issues on Windows), there’s still a reasonably easy way to do it:

  1. Go to https://launchpad.net/flashlight-firmware
  2. Click “Code”
  3. Click the branch you want
  4. Click the first number under “Recent revisions”
  5. Click “download tarball”
  6. Unzip the tarball file

This should get you everything in the repository, with the directory structures still intact.

On a suitable command-line-based interface, the code can then be built by going into the anduril directory and running “make”. This compiles one .hex file for each cfg-*.h file it finds. So, you should be able to edit a cfg file or make a new one, and it’ll then be included in the full set of builds.

That doesn’t work in Atmel Studio though… in that, it’ll probably be easier to just uncomment the line at the top of anduril.c which specifies which config file to use.

Thx, I downloaded the branch “lp:~toykeeper/flashlight-firmware/fsm” because it had the code for Astrolux/Mateminco MF01 MINI. I Unzipped the tarball and found the file I needed to adjust to correct the Voltage measurement:

File: hwdef-Mateminco_MF01-Mini
Lines:
#ifndef VOLTAGE_FUDGE_FACTOR
#define VOLTAGE_FUDGE_FACTOR 5 // add 0.25V
#endif

Now that I have it, how do I run the make command in the fsm\ToyKeeper\spaghetti-monster\anduril folder?
That the part I cant figure out.