MicroSquirt® Embedded Code

MicroSquirt® can use the same embedded code as MegaSquirt-II, and you can use any of the V2 code versions intended for the C64 version (with CAN) of the processor. However, MicroSquirt® has a few of its own specialized hardware functions (dual spark is the main function) and these are only implemented in code version 2.8 and higher.

Unlike MegaSquirt-II, MicroSquirt® comes with the embedded code already loaded onto its processor. You can still upgrade to newer versions of the code as they are released, of course, but you won't have to load the code initially to get MicroSquirt® working.

The current 'release' code for the MicroSquirt® controller is V2.890.

The source code is here:

main_v2.890.c

The 'ready to load' .s19 file for uploading to MegaSquirt-II(CAN) is here:

Monitor_v2.890.abs.s19
(Right click and 'Save As')

For the V2.890 code, you will need to download and activate the latest megasquirt-II.ini.2.890 file (right click the link and 'save as' to your project folder, then rename it to 'megasquirt-II.ini').

You will also want to copy the settings.ini file to your project's \mtCfg\ folder (usually 'C:Program Files\MegaSquirt\Car1\mtCfg\'). It will solve the "Conditional check references undefined value n2o" and "Conditional check references undefined value 'EXPANDED_CLT_TEMP'" errors.

You can also get the latest code and INI using the V2.0 downloader, which will get the code from the internet, and load the code to MicroSquirt® as well as installing/activating the matching INI. There's more info here: www.megamanual.com/ms2/downl2.htm


V2.890 has the following improvements over earlier code for MegaSquirt-II:

To load the .S19 file to your MicroSquirt® over the serial port, you need to use Eric Fahlgren's latest MegaSquirt-II downloader program (click the link to download).

To use the downloader.exe:

  1. Power down MicroSquirt® EFI controller,
  2. Ground the bootloader wire (AMPSEAL connector pin 15, purple wire with a black stripe),
  3. Power up MegaSquirt.
  4. Start the downloader program, and select the appropriate COM port,
  5. Select the appropriate .S19 file, and the downloader will read, write and verify the code to the processor in about 10 seconds or so.
  6. The process ends with a message like "Verification succeeded, XXX records total (4 skipped)." (XXX is a number around 990).
  7. Shut down the downloader program.
  8. Remove power from MicroSquirt.
  9. Remove the boot jumper (or put it on just on pin for storage),
  10. Start MegaTune and set the COM port and speed (115200 for MicroSquirt) if necessary. (Make sure you have configured MegaTune to interface with MicroSquirt® using the mtCfg.exe utility in the MegaTune folder.)
  11. Since you have changed code version, you need to change the INI file. Download the code from the link above and save it in your project folder. The INI files have names like "megasquirt-II.ini.2.8", where 2.8 indicates the code it is to be used with. Find the appropriate numbered INI file, and rename it to "megasquirt-II.ini". MegaTune will then use that file for setting up, and everything should work fine.
See the readme file in the downloader package for more details.

You should recreate your settings file from scratch by entering the values by hand into MegaTune.



MegaSquirt® and MicroSquirt® controllers are experimental devices intended for educational purposes.
MegaSquirt® and MicroSquirt® controllers are not for sale or use on pollution controlled vehicles. Check the laws that apply in your locality to determine if using a MegaSquirt® or MicroSquirt® controller is legal for your application.
©2005, 2009 Bruce Bowling and Al Grippo. All rights reserved. MegaSquirt® and MicroSquirt® are registered trademarks. This document is solely for the support of MegaSquirt® boards from Bowling and Grippo.