July 22, 2017, 18:46:56
News: Skyartec for 9x project is now up

LunarFlow R/C



Author Topic: Easily build simonk firmware on Windows  (Read 16284 times)

chris

  • Administrator
  • Newbie
  • *****
  • Posts: 37
    • View Profile
Easily build simonk firmware on Windows
« 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 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
« Last Edit: September 07, 2013, 15:12:54 by chris »

chris

  • Administrator
  • Newbie
  • *****
  • Posts: 37
    • View Profile
Re: Easily build simonk firmware on Windows
« Reply #1 on: June 22, 2013, 12:11:42 »
I updated the "make.bat" batch script so that it will now stop on errors.
« Last Edit: June 23, 2013, 10:45:17 by chris »

chris

  • Administrator
  • Newbie
  • *****
  • Posts: 37
    • View Profile
Re: Easily build simonk firmware on Windows
« Reply #2 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
« Last Edit: September 07, 2013, 15:12:28 by chris »

fantasy

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Easily build simonk firmware on Windows
« Reply #3 on: March 19, 2016, 15:59:57 »
Hi chris

LONG TIME SEE YOU

« Last Edit: March 20, 2016, 09:48:02 by fantasy »

 


© 2017 Lunarflow
© 2017 Simple Machines