Hi guys, I have a question regarding flashing firmware. I am a total noob when it comes to flashing and I reached dead end when I decided to flash my Astrolux MF01 mini to correct some voltage reading problems (There is a large voltage difference between the actual battery voltage and the blinked out voltage). I managed to find some instruction and I did this:
I downloaded the branch “lp:~toykeeper/flashlight-firmware/fsm” from: Flashlight Firmware Repository in Launchpad 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:
I changed the VOLTAGE_FUDGE_FACTOR to 10 to add another 0.25V.
Now that I have it, how do I run the make command in the fsm\ToyKeeper\spaghetti-monster\anduril folder?
Do I need a special compiler (I am using windows)? The instructions I found said: “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.”
Could anyone please recommend me the best and the easiest way to do this?
The short answer is you need to download Atmel Studio and load your edited files in there then choose “compile for size” in the properties. It will create a hex file that you can flash with a SOIC clip and some shady USB drivers.
I recently got my hands on a used Sofirn SP36 Anduril and found that the temperature limit is exceeded by more than 10 K, although the measured temperature is relatively accurate. This made me curious, especially since I recently ordered some Emisar D4V2s. So I wrote a little simulation to test the thermal regulation code.
There is a lot of magic involved to prevent the current thermal regulation from exploding, I think there is need for another rewrite. I'll probably give it a try once my D4V2 arrives.
PS: On an aside, the project name (sphagetti-monster) hits the nail on the head. :D
I am even too stupid to get that Bazaar to open your trunk, the plenty URLs I tried do not work
Anduril does not work properly with temp reading
the Wiki gets it for granted you know which link and how to add and don’t even give any examples
with https://
I downloaded every single file to my PC manually and replaced the old ones, its still reading garbage then it seems to read correctly after running it a while
but testing the driver with heat applied does not adjust output at all
You’re using a website that presents the repository rather than the repository.
The website shows that you should use “bzr branch lp:~toykeeper/flashlight-firmware/fsm” command.
With your UI you may try to enter “lp:~toykeeper/flashlight-firmware/fsm” URL.
Those people who write this bazaar wiki seem to think everyone is an expert programmer and know all the basics
with your link I get this error
Please
all I am asking is a zip or similar container with a working Anduril build for AS7
.
I am wasting again now almost 4 hours on this and can’t build drivers in that time for the community and I have not much time at all right now for weeks and its not looking better this year
I am close to quit Anduril with a March build like I did with NarsilM v1.2 and support no newer versions anymore
Add -fwhole-program to the CFLAGS in build.sh, and comment out #define USE_VERSION_CHECK from anduril.c (or USE_BIKE_FLASHER_MODE or another mode if you really need the version check)
disable 2 strobe modes works as well 99.7% full now
I got absolutely no idea how to do that, that file is not even on the dependencies list in my project
This is the code when open in my Editor
I use a simple build “Anduril” project button with my mouse
I use no scripts or make file or other stuff the programmers are always talking of to build 20 versions at once with different settings in them
My bad, I should have realized using Atmel Studio doesn’t use that build.sh. You might be able to get back some space by adding the -fwhole-program flag to the miscellaneous flags here:
But I haven’t tried it. I’m not set up to compile for AVR.
Right click on the project in the solution explorer at the right, and choose Properties, to find the menu I showed. Then add the -fwhole-program to that huge list of flags in Miscellaneous (or maybe to the shorter list in Optimization). The flags are separated by spaces, and are what get passed to the compiler I use on the command line instead.
If it still gives you trouble, and you’re willing to wait a few days, I can try to set up Atmel Studio for AVR myself and give it a try.