LunarFlow R/C

General Category => Projects => Topic started by: chris on March 31, 2012, 15:51:00

Title: Easily build simonk firmware on Windows
Post by: chris on March 31, 2012, 15:51:00
This project is to make changing the simonk ESC firmware settings a little easier if you're using Windows.  This assumes you have downloaded the simonk firmware and have a directory with all the files in it.

First download this zip (http://lunarflow.com/index.php?action=dlattach;topic=7.0;attach=126) and extract the two files inside in to your simonk directory.

Now edit the "tgy.asm" file with a text editor to change the settings you want.  You may need to use Wordpad or other editor because Notepad may not work correctly.  If you scroll down a bit in this "tgy.asm" file you will see settings like:
Code: [Select]
.equ  MOTOR_BRAKE = 0   ; Enable brake during neutral/idle ("motor drag" brake)
.equ  LOW_BRAKE   = 0   ; Enable brake on very short RC pulse ("thumb" brake like on Airtronics XL2P)
.equ  MOTOR_REVERSE  = 0   ; Reverse normal commutation direction
.equ  RC_PULS_REVERSE   = 0   ; Enable RC-car style forward/reverse throttle
.equ  RC_CALIBRATION = 1   ; Support run-time calibration of min/max pulse lengths

For example if you wanted to reverse the motor direction then change MOTOR_REVERSE to be equal 1.

Once you have made these changes and saved the tgy.asm file then just run the "make.bat" command you extracted earlier and it will build new hex files with your new settings.

As always, make sure to use the correct hex file for your ESC and take appropriate precautions when testing the first time.  Make sure to read the simonk documentation about testing on this page:  https://github.com/sim-/tgy (https://github.com/sim-/tgy)
Title: Re: Easily build simonk firmware on Windows
Post by: chris on June 22, 2013, 12:11:42
I updated the "make.bat" batch script so that it will now stop on errors.
Title: Re: Easily build simonk firmware on Windows
Post by: chris on September 07, 2013, 15:09:50
"make.bat" renamed to "MakeHexFiles.bat" to avoid confusion.

"MakeHexFiles.bat" with no parameters will build all firmware in the Makefile. Optionally, the names of the firmware to build can be specified. For example, to build only the afro and bs_nfet firmware:
Code: [Select]
MakeHexFiles afro bs_nfet
Title: Re: Easily build simonk firmware on Windows
Post by: fantasy on March 19, 2016, 15:59:57
Hi chris

LONG TIME SEE YOU