Page 1 of 1

Troubleshoot firmware loading issue during assembly

Posted: Thu Aug 02, 2012 6:40 pm
by LoupFou
Hello all,

I am in process of assembling my Megasquirt and I've run into a problem.

I am at step 40 (installing ECU, burning firmware, TunerStudio test). I load firmware (2.905, successfully?) @ COM1 with the downloader 2.00. (See pic below)

Image

I pull the B/LD jumper, fire up TunerStudio, set ECU type, load INI, and try to Detect CPU. TunerStudio message: "A Controller was found on COM1. However, there appears to be no Firmware loaded. Blah, blah, etc." In the "Found" box of known devices it says "Found: {symbol string like below in Miniterm response} On Port:COM1 @ 115200 Baud".

I re-load firmware, same result as above. I re-download then re-load firmware, same result as above. I run through communications troubleshooting (serial cable lookback, MB loopback; successful), CPU response via TunerStudio is not quite right. See below.

Image

I also ran port check and got "No Connection" on COM1 @ 9600 or 115200.

What could be causing this? It seems to point towards a firmware corruption of some kind but I'm stumped. I am using an older laptop with an actual DB9 serial port, a 12v regulated power supply for the stim card (12.15v open, 12.09v connected and powering MB). I've rechecked the voltage/power supply values on 232 & CPU socket. My next step is a good re-clean of the PCB to make sure I'm not getting a short somewhere or something.

Anyone run into this before and have a resolution? I am pretty frustrated at this point. (After waiting about five years for the coincidence of ambition and opportunity to assemble this thing.) :shock:

Thanks for any help!
Will

Re: Troubleshoot firmware loading issue during assembly

Posted: Fri Aug 03, 2012 4:59 am
by Matt Cramer
It could be a dead CPU, but first, please make sure you don't have the bootloader pins still jumpered.

Re: Troubleshoot firmware loading issue during assembly

Posted: Fri Aug 03, 2012 6:56 am
by LoupFou
Nope, I followed the directions; put the B/LD jumper on to load firmware and remove it when load is complete.

My only other thought is maybe a crystal is bad? Looks like there are two, one on the CPU and one on the MB. How would I go about checking those? I have access to a o-scope at work.

I do also need to finish my re-clean of the pcb, I didn't get the chance to finish last night. Here's to hoping that it's just an invisible bit of flux or something causing all my problems! :cry:

Thanks,
Will

Re: Troubleshoot firmware loading issue during assembly

Posted: Mon Aug 06, 2012 5:46 am
by Matt Cramer
The main board crystal doesn't do much of anything.

Try seeing if it will behave correctly if you turn it on with the DB9 unplugged and then plug it in. Some early MS2 cards can go into bootloader mode if powered up hooked to a serial port.

Re: Troubleshoot firmware loading issue during assembly

Posted: Tue Aug 07, 2012 8:36 pm
by LoupFou
Aha! Thank you sir!

That seems to have been the problem. :oops: Powered up the board first then connected the DB9 and voila, connection! :yeah!:

Now to continue the assembly. 8)

Re: Troubleshoot firmware loading issue during assembly

Posted: Wed Dec 26, 2012 5:02 am
by hardude
hello! I have one problem with ms2 (v.3.0). If I plug serial cable laptop and mega and then put megasquirt power on, that resets firmware. What I can do for that? If I remove serial cable from mega, power up megasquirt and then plug cable back everything still there. :(

Re: Troubleshoot firmware loading issue during assembly

Posted: Fri Dec 28, 2012 6:04 am
by Matt Cramer
Don't power it up with the serial cable connected to the laptop.