Code flash issues. Stack pointer out of range, e=0xE3

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

Post Reply
User avatar
460stang
Experienced MS/Extra'er
Posts: 150
Joined: Sat May 29, 2004 8:18 am
Location: Terrace B.C. Canada

Code flash issues. Stack pointer out of range, e=0xE3

Post by 460stang »

Trying to upgrade from MS2 V 2.36. I am using a 14 volt battery with the stim and an old 900 MHZ desktop computer with XP.

I followed the instructions remove the boot jumper and powering up and down at the correct times. I tried several times on com ports 1 and 2. I also changed the com port settings in windows to 115200. This is the best I can get. Please help this car was running before I decided it was time for an upgrade.

.
Press any key to continue . . .
.
ms2dl.exe -c2 bootstrap.s19
MegaSquirt Download 1.05

Reading bootstrap.s19:
bootstrap.s19
Detected MS-II (HCS12) code.
Entry point: 0xc000
Code range : 0x4000-0xfff0
File read successfully.

Opened comm port 2 at 115200.
Erasing main FLASH:
Erased.
Writing:
Write complete, 213 records, 3392 bytes.
Verifying:
Verification succeeded, 213 records total (8 skipped).
Bootstrap loaded...
.
.
5. Turn off Megasquirt
Press any key to continue . . .
.
.
6. Remove Boot jumper
Press any key to continue . . .
.
.
7. Turn on Megasquirt
Press any key to continue . . .
.
.
ms2dl.exe -c2 ms2_extra.s19
MegaSquirt Download 1.05

Reading ms2_extra.s19:
ms2_extra.s19
Detected MS-II (HCS12) code.
Entry point: 0xc000
Code range : 0x4000-0x3dbcd0
File read successfully.

Opened comm port 2 at 115200.
Erasing main FLASH:
Erased.
Writing:
Setting page register 0x3b:
Page set.
Erasing page 0x3b:
Erased.
ERROR: Stack pointer out of range, e=0xE3
Press any key to continue . . .
88 Stang 7.7L Twin Holset Turbos 95# injectors MS2extra
93 Ranger Splash 2.3L turbo 560 hp 33 psi MSII EXTRA 3.0.3,
81 5.0L TT mustang 440hp 10 psi MSextra,
93 Honda Civic B18 MSII Extra 2.0.
90 S10 350 twin turbo MSII
88 350 Procharged camaro MSII extra.
92 Toyota truck 5.0 swap, rear turbo. MSII
User avatar
460stang
Experienced MS/Extra'er
Posts: 150
Joined: Sat May 29, 2004 8:18 am
Location: Terrace B.C. Canada

Post by 460stang »

I did use the "download-MS2-firmware" that came with the beta zip. It was created November 22, 2007, 10:44:02 AM.

I also have all three LED's on the MS stuck on now when I power up.


EDIT.

After I tried again I still got an error at the same spot but at least all 3 LED's are not stuck on now.
88 Stang 7.7L Twin Holset Turbos 95# injectors MS2extra
93 Ranger Splash 2.3L turbo 560 hp 33 psi MSII EXTRA 3.0.3,
81 5.0L TT mustang 440hp 10 psi MSextra,
93 Honda Civic B18 MSII Extra 2.0.
90 S10 350 twin turbo MSII
88 350 Procharged camaro MSII extra.
92 Toyota truck 5.0 swap, rear turbo. MSII
User avatar
460stang
Experienced MS/Extra'er
Posts: 150
Joined: Sat May 29, 2004 8:18 am
Location: Terrace B.C. Canada

Post by 460stang »

I kept trying and finally it worked.

The last try that worked I went throught the whole thing again as if I had MS2 code and it failed at the same point, then I went through as if I had Extra code in (no boot jumper) and it worked.

I had tried this exact sequence before already. With no joy.
88 Stang 7.7L Twin Holset Turbos 95# injectors MS2extra
93 Ranger Splash 2.3L turbo 560 hp 33 psi MSII EXTRA 3.0.3,
81 5.0L TT mustang 440hp 10 psi MSextra,
93 Honda Civic B18 MSII Extra 2.0.
90 S10 350 twin turbo MSII
88 350 Procharged camaro MSII extra.
92 Toyota truck 5.0 swap, rear turbo. MSII
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Post by UnaClocker »

I can only flash with Win98.. XP and 2k will not work for me, no matter what I choose for com settings. And this is on a PII laptop with a real serial port. I have just as much trouble uploading my MSQ afterwards as well.
Brian
'84 Dodge Rampage
User avatar
460stang
Experienced MS/Extra'er
Posts: 150
Joined: Sat May 29, 2004 8:18 am
Location: Terrace B.C. Canada

Post by 460stang »

I created a complete MSQ on my desktop then moved it to my laptop and when I tried to burn it on the MS it would act up giving me looping too low voltage for burn readings. I checked voltage (the car would still crank just fine). I tried several times without success. I did notice before I tried to burn the Megatune would show normal settings and numbers. Not sure what that was about but the only way I could get out of it was to reflash the .s19 file and then make a new msq on the laptop with the MS still connected and powered up and then it worked fine.
88 Stang 7.7L Twin Holset Turbos 95# injectors MS2extra
93 Ranger Splash 2.3L turbo 560 hp 33 psi MSII EXTRA 3.0.3,
81 5.0L TT mustang 440hp 10 psi MSextra,
93 Honda Civic B18 MSII Extra 2.0.
90 S10 350 twin turbo MSII
88 350 Procharged camaro MSII extra.
92 Toyota truck 5.0 swap, rear turbo. MSII
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

If you create an msq on another machine, you should make sure it's hooked to the MS to create the default msq, and mod from there... just creating an msq from scratch will leave odd values in many of the variables, causing problems.

Ken
User avatar
460stang
Experienced MS/Extra'er
Posts: 150
Joined: Sat May 29, 2004 8:18 am
Location: Terrace B.C. Canada

Post by 460stang »

Just one thing I remembered. Somewhere near the end of trying to get the code to flash I set my com port buffers down to 1. It did not work right after that, but it did not work at all before that.
88 Stang 7.7L Twin Holset Turbos 95# injectors MS2extra
93 Ranger Splash 2.3L turbo 560 hp 33 psi MSII EXTRA 3.0.3,
81 5.0L TT mustang 440hp 10 psi MSextra,
93 Honda Civic B18 MSII Extra 2.0.
90 S10 350 twin turbo MSII
88 350 Procharged camaro MSII extra.
92 Toyota truck 5.0 swap, rear turbo. MSII
turbo355
Master MS/Extra'er
Posts: 826
Joined: Tue Feb 21, 2006 11:32 pm

Post by turbo355 »

I am having the exact same problem i have loaded the extra 1.0.2 just fine but if i try to load the beta 2.0 it keeps getting stuck at the same address in the code and wont go no farther i have tried with three different computers and they all do the same thing. But i can reload the 1.0.2 in no problems at all.

This is the message i get every time and the progress bar wont go any farther than 40%

Opened comm port 2 at 115200.
Erasing main FLASH:
Erased.
Writing:
Setting page register 0x3b:
Page set.
Erasing page 0x3b:
Erased.
ERROR: Stack pointer out of range, e=0xE3
Press any key to continue . . .
jsmcortina
Site Admin
Posts: 39612
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

There is no progress bar in the correct downloader....

You absolutely MUST use the download-ms2-firmware batch file provided.

The chip on MS2 is actually 128k even though it is badged 64k. Our code makes use of it all, the standard monitor in the chip is only designed to work with the 64k so it doesn't work.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
turbo355
Master MS/Extra'er
Posts: 826
Joined: Tue Feb 21, 2006 11:32 pm

Post by turbo355 »

Ok i used the download batch file just like i use for loading the MS1 extra files only the one i used came in the MS2 2.0 folder and i get the same response it always stops and says.

ERROR: Stack pointer out of range, e=0xE3
Press any key to continue . . .

And yes it dosent have the status bar just the dos screen.

Then i reload the release code 1.0.2 and it does fine loading it with the MSII Embedded code update utility.

Thanks for the help im kinda lost this is my first MS2 chip so i know its something im not doing right.
msoultan
Super MS/Extra'er
Posts: 1021
Joined: Sun Jun 27, 2004 12:04 pm
Location: Long Beach, CA - USA

Post by msoultan »

Also.. one gotcha that I've found that isn't documented anywhere - on some computers (like my dell inspiron) having the serial cable connected (without MT running) while powering on the MS will actually cause the MS to think that the boot jumper is connected, even though it isn't. When the MS goes into boot jumper mode, whether using the jumper or because of the cable bug, all 3 leds will flash momentarily.

What this also means is that if you have your computer powered up while connected to the MS and then you try starting your car, it won't work unless MT is running (or the cable is disconnected). I've talked to bruce and james or ken about this and it's a bug on the chip, and something that can't be fixed in the bootloader firmware...

Mike
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

turbo355 wrote:Ok i used the download batch file just like i use for loading the MS1 extra files only the one i used came in the MS2 2.0 folder and i get the same response it always stops and says.

ERROR: Stack pointer out of range, e=0xE3
Press any key to continue . . .

And yes it dosent have the status bar just the dos screen.

Then i reload the release code 1.0.2 and it does fine loading it with the MSII Embedded code update utility.

Thanks for the help im kinda lost this is my first MS2 chip so i know its something im not doing right.
Try using the batch file again, but do it as if you're switching from the standard firmware... meaning use the boot jumper.

Ken
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Post by UnaClocker »

In the past, when I've had trouble flashing, to retry flashing, I have no choice but to go all the way back to the boot jumper technique. Like it has seriously hosed something. I've gotten a new laptop recently, but haven't had to flash a new firmware with it yet. I really suggest trying to get another computer just for the flash, get it done and you won't need to worry about it for awhile again.
Brian
'84 Dodge Rampage
Pimp_daddy_Patty
MS/Extra Newbie
Posts: 27
Joined: Wed Apr 27, 2005 12:12 pm
Location: Kitchener, Ontario

Post by Pimp_daddy_Patty »

I have that exact problem if i use one particular laptop that I have. I have to use a different one to flash any firmware onto my MS2
'96 DOHC MTX with: '03 SRT-4 + 50 trim
14.7 @ 103 mph WOOT!!! getting better.
turbo355
Master MS/Extra'er
Posts: 826
Joined: Tue Feb 21, 2006 11:32 pm

Post by turbo355 »

Thanks alot guys i have three computers here and it seems the only one that would do it was my old Compaq laptop with windows 98 on it it took it a few minutes but it loaded it just fine. Thanks!!!
Post Reply