stuck at loading code step 40

The forum to discuss:
- V2.2, V3 assembly,
- V2.2, V3 troubleshooting, and
- Connection troubleshooting
Forum rules
Read the manual to see if your question is answered there before posting. Many users will not reply if the answer is already available in the manual.

If your question is about troubleshooting, configuration, or tuning, you MUST include your processor type (MS-I or MS-II) and code version in your post. If your question is about PCB assembly or modifications, you must also include the main board version number (1.01, 2.2 or 3.0).

If you have questions about MS1/Extra or MS2/Extra code configuration or tuning, please post them at www.msextra.com Such questions posted here will be moved to: a temporary MSextra sub-forum, where they will be removed after 7 days

The full forum rules are here: Forum Rules, be sure to read them all regularly.
Post Reply
dudok
MegaSquirt Newbie
Posts: 9
Joined: Wed Oct 09, 2013 4:06 pm

stuck at loading code step 40

Post by dudok »

Hi and thanks in advance for any and all help.

I am stuck trying to load the code at step 40. Assembling MSII V3.0 and all has tested as it should as I have gone along (loopback etc.). I am using an old laptop with a serial connection. Comm1 is set right in device manager. Run the loader and it gets to 35% loaded and then "could not read status code" error (sometimes it is different, "command not recognized" or "stack pointer out of range") Jumper is on and have 12volts at the stim. Have gone back through the testing and other troubleshooting tips and everything checks out. Solder joints look good. Used my sons new laptop with usb to serial connector and I am getting the same results.

With Tunerstudio the "test port" says failed, but the "detect" says it found a controller at Comm 1 but it has no firmware loaded. How come Tunerstudio can find it but the loader cannot load the firmware after it opens Comm 1?

Any thoughts?
Matt Cramer
Super Squirter
Posts: 2951
Joined: Sat Jul 03, 2004 11:35 am

Re: stuck at loading code step 40

Post by Matt Cramer »

Can you post a screen shot of exactly what happened?
dudok
MegaSquirt Newbie
Posts: 9
Joined: Wed Oct 09, 2013 4:06 pm

Re: stuck at loading code step 40

Post by dudok »

Here is what I get:

MegaSquirt Download 2.00

Reading C:/Program Files/MegaSquirt/Firmware/MS-II/C32/Monitor_v3.830a.abs.s19:
Detected MS-II (HCS12) code.
Entry point: 0x0000
Code range : 0x4000-0x3dbfc0
File read successfully.

Opened comm port 1 at 115200.
Erasing main FLASH:
Erased.
Writing:
Setting page register 0x38:
Page set.
Erasing page 0x38:
Erased.
ERROR: Timed out reading response, 0xE0
Elapsed time: 6.69 seconds
Matt Cramer
Super Squirter
Posts: 2951
Joined: Sat Jul 03, 2004 11:35 am

Re: stuck at loading code step 40

Post by Matt Cramer »

Will it load the 2.9x series code?
dudok
MegaSquirt Newbie
Posts: 9
Joined: Wed Oct 09, 2013 4:06 pm

Re: stuck at loading code step 40

Post by dudok »

Will try that and let you know.
dudok
MegaSquirt Newbie
Posts: 9
Joined: Wed Oct 09, 2013 4:06 pm

Re: stuck at loading code step 40

Post by dudok »

That worked first try! What gives? What do I do now? Try and overwrite it with the right code?
Matt Cramer
Super Squirter
Posts: 2951
Joined: Sat Jul 03, 2004 11:35 am

Re: stuck at loading code step 40

Post by Matt Cramer »

Yes, I'd try that, although if you're not running a missing tooth trigger wheel, you might want to stick with the 2.9x code.
dudok
MegaSquirt Newbie
Posts: 9
Joined: Wed Oct 09, 2013 4:06 pm

Re: stuck at loading code step 40

Post by dudok »

I am running a missing tooth wheel.

When I try to reload the code I get this now:

MegaSquirt Download 2.00

Reading C:/Program Files/MegaSquirt/Firmware/MS-II/C32/Monitor_v3.830a.abs.s19:
Detected MS-II (HCS12) code.
Entry point: 0x0000
Code range : 0x4000-0x3dbfc0
File read successfully.

Opened comm port 1 at 115200.
Erasing main FLASH:
Erased.
Writing:
Setting page register 0x38:
Page set.
Erasing page 0x38:
Erased.
ERROR: Stack pointer out of range, e=0xE3
Elapsed time: 6.79 seconds
Matt Cramer
Super Squirter
Posts: 2951
Joined: Sat Jul 03, 2004 11:35 am

Re: stuck at loading code step 40

Post by Matt Cramer »

How about the MS2/Extra code? Does it load? (Note that it has a separate support forum at MSExtra.com and its own download utility.)
dudok
MegaSquirt Newbie
Posts: 9
Joined: Wed Oct 09, 2013 4:06 pm

Re: stuck at loading code step 40

Post by dudok »

Just tried loading the MS2/Extra code and it loaded fine first try.
bleoh
Helpful Squirter
Posts: 44
Joined: Tue Aug 16, 2005 12:36 pm
Location: Maryland

Re: stuck at loading code step 40

Post by bleoh »

Just FYI, I have had problems with the 2.0 loader on my old laptop with serial port. I went back to the 1.04 loader and it seemed to work fine. My error was always with the verification part of loading the code.

Brian
MS2 code2.89 on PCB v3.0
dudok
MegaSquirt Newbie
Posts: 9
Joined: Wed Oct 09, 2013 4:06 pm

Re: stuck at loading code step 40

Post by dudok »

How do I go about finding 1.04 loader. The link for the loader just starts a download of 2.0?
dudok
MegaSquirt Newbie
Posts: 9
Joined: Wed Oct 09, 2013 4:06 pm

Re: stuck at loading code step 40

Post by dudok »

Well, I cannot find loader 1.04. I guess I need to assume that the daughterboard is corrupt? Others do not seem to be having this issue. Should I contact the seller about replacing it or seeing what is up with it???
trakkies
Super Squirter
Posts: 1162
Joined: Tue Dec 30, 2008 3:06 am
Location: SW London, UK

Re: stuck at loading code step 40

Post by trakkies »

I doubt many still use an old laptop with a serial connection. Depending on just how old, you may find it's not much used for logging when you get MS up and running. That made me ditch mine. Although I'd not tried loading code with it - I use a reasonably recent desktop with serial port for that.
Dave P, London UK.
Rover V-8
MSII V3
EDIS
Tech Edge Wideband
bleoh
Helpful Squirter
Posts: 44
Joined: Tue Aug 16, 2005 12:36 pm
Location: Maryland

Re: stuck at loading code step 40

Post by bleoh »

I have the 1.04 file. PM me your email and I will send it to you.

Brian.
MS2 code2.89 on PCB v3.0
Bernard Fife
Master Squirter
Posts: 475
Joined: Thu Oct 29, 2009 12:54 pm

Re: stuck at loading code step 40

Post by Bernard Fife »

dudok,

The MS-II controller doesn't have the correct bootloader code for loading 3.8xx code. Changing the PC downloader software version number isn't going to help.

MicroSquirt controllers have the correct bootloader installed for installing any code, including 3.8xx (as well as the earlier 2.9xx, etc.). MicroSquirt controllers have an extra input (cam position) and an extra ignition output allowing MicroSquirt controllers to do wasted spark on a 4 cylinder engine, or sequential/COP on a 2 cylinder, so they can benefit from the 3.8xx series of codes.

MS-II processors don't have the latest bootloader installed because there is no real gain in using 3.8xx code over 2.9xx code when installed on an MS-II.

So stick to the 2.9xx code - it can run a missing tooth wheel (all B&G code since 2.360 can do this).

In theory the latest bootloader can be installed on an MS-II, but you need an rather expensive BDM cable, plus the compiled bootloader S19 itself (it isn't publicly available, because it would let unscrupulous people rip of the MicroSquirt hardware).

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it.” - George Bernard Shaw
dudok
MegaSquirt Newbie
Posts: 9
Joined: Wed Oct 09, 2013 4:06 pm

Re: stuck at loading code step 40

Post by dudok »

Lance, thanks so much and you are right the other loader did not work. Again thanks.
Post Reply