Success!! I also had to add the complete path to the elf files on line 11.
Now to the original reason I wanted to learn how to do this. In the ini file the pwm idle section has a multiplier/scaler or whatever of 0.398 or something and my pwm iac has a resolution of 0.4. Can I modify this to 0.1 and get better resolution, or is this set to match up with the pwm frequency of the microcontroller?
Success!! I also had to add the complete path to the elf files on line 11.
Now to the original reason I wanted to learn how to do this. In the ini file the pwm idle section has a multiplier/scaler or whatever of 0.398 or something and my pwm iac has a resolution of 0.4. Can I modify this to 0.1 and get better resolution, or is this set to match up with the pwm frequency of the microcontroller?
That won't work as it is limited by software PWM. Try upgrading to the pre-3.3 code as that uses a software dither technique for improved resolution.
1. Download and install Cygwin 32-bit and include the GNU version of make.
2. Download s12buildtools-win32.zip, extract and move "tools.tar.gz" to "c:\".
3. In Cygwin terminal, enter "cd c:/" and then enter "tar xfz tools.tar.gz".
4. Download and extract ms2extra_3.2.5_release.zip to "c:\usr\".
5. In Cygwin terminal, enter "cd c:/usr/ms2extra_3.2.5_release/ms2extra/" and then enter "make release".
To test if compiled binaris differ from the precompiled, enter "diff c:/usr/ms2extra_3.2.5_release/ms2extra/release/ms2_extra.s19 c:/usr/ms2extra_3.2.5_release/ms2_extra.s19" in Cygwin terminal. If compiled binaris differ from the precompiled, a list of the differences will appear. If not, success!
Last edited by burkgul on Tue Aug 06, 2013 7:11 am, edited 1 time in total.
1. Download and install VirtualBox.
2. Download and install PuTTY SSH client for work in console of VM.
3. Download and install WinSCP SFTP client for coping files.
4. Download and unpack my pre-builded Debian VM with all tools for compilating.
5. Run and enjoy VM via VirtualBox.
6. Log in to VM via user ms and password 123456. Root password is msextra.
7. Build your code for new versions of Megasquirt!
So... I'm setup where I can build a s19, but I don't really understand how the code is organized. (I might need a "coding for complete freakin idiots" book) I am only vaguely familiar with C, and that's probably my biggest hurdle. I don't have a specific goal in mind, I'm just interested in how the code works and enjoy learning. Ive programmed in the arduino environment, but this is way more advanced. Ive read almost every line of code including the ini. Is there a general outline for this uController somewhere?
Thanks
Cory
I woiuld like to know how to change the frequencty of the boostcontrol.
I need 250 Hz and ony 73 Hz is avalible. I am in the process of searching the code but have not found it yet.
Can anyone tell me where in the code the frequency is set?
Or is what i want not possible at all.
I want to use a duty cycle controlled throttle body to control boost by means of controlling air flow in the intake side of my rotrex supercharger/compressor.
Currently attempting to compile virgin MS2E 3.3.1A. Followed all the readmes, I get the error that is attached to this post. I'm running 64 bit Win7, so I also tried the suggestions made in burkgul's post from last August but I continue to get the same error. I am now attempting to download the custom Debian distro from acab and am going to give that a shot. I'll be reporting back shortly with my findings.
Something I feel that may be happening is that Cygwin is not allowed to write new files, then again the "make clean" command works just fine, as does writing the us_opt_c.h etc. I'm looking in to that too.
EDIT: Using the Debian development v-box that as uploaded in this thread compiled it just fine. Thanks to acab for that one.
firyembers wrote:
I would appreciate any suggestions,guide line pointers, whatever to help achieve my goal
I do not expect answers that is my job to do and learn,but a road to be shifted to will be appreciated..Thanks
Start by just getting used to building apps with C or C++ so that you can be familiar with the build process, code and compiler errors, what code does what etc... something as simple as HelloWorld with more and more complexity to get you familiar would be best. If you try to jump into the firmware code 1st up, too much will be lost and unclear - so start small.
C is a beautiful language. It is very simple to learn as it has a very small language construct set though it is hard to be skill at using it as it requires a lot of details to be managed. Building pointer trees and walking them, self managed memory management, and bit manipulation makes it very powerful, very fast and for less experienced easy to make mistakes. I love working with C.