MS2/Extra beta 18,19 slow download firmware

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

Moderators: jsmcortina, muythaibxr

jsmcortina
Site Admin
Posts: 39613
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

AbeFM wrote:Pardon my ignorance, but what graphical downloader? And, can I get this to work for the MS-2x stuff?
The graphical downloader is the standard MS2 downloader. It cannot be used for MS2/Extra though as it does not support the jumperless reflash required to access greater than 64k of flash.

See here for the standard code and downloader.
http://www.megamanual.com/ms2/code.htm

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".
offtrack
Helpful MS/Extra'er
Posts: 65
Joined: Wed Jan 09, 2008 6:41 pm
Location: Puget sound, and Peru. yah 2 homes.
Contact:

i was speaking in general. not says the MAC cant work.

Post by offtrack »

There is what is called marginal functionality.
I discovered this by noting that one day it works the other day it does
not. All conditions were identical day to day, hour to hour, etc.
So I switched platforms, and the new plate form is rock solid.
for a month now.
Not a new experience for me.....

I then loaded a RS232 monitor program that monitors the data stream and
the UART framing error register and overrun bit.

I discovered that I was getting overrun errors, this indicates that the
one of the 2 UARTS, Laptop or MS were , off in frequency. 16x baud clock, it is called.
I found the Dell over 3% off. MS was not the problem.
I contacted Dell and they said it is sped'd to 20k and that beyond that I am on my own. ( this is common on many laptops ( Apple , I do not know )
That link above shows how others had to even make a data table on what chips can run at that high rate .
Asyncronous comms are predidated on an accurate clock , on both ends.
Historically in the IBM PC area , this is very weak, and especially laptops.
The fast you go, the more this becomes true.

Some laptops even reverse pin 2 and 3, and that will never work.

To be compatible with windows and to the reverse back to DOS.
they used the same UART loads for each of the official Baud rates.
this makes higher baud rates difficult to achieve.

My add in 232PCcard Pcmia unit i just bought has a very fancy way of overcoming this limitation, it is completely none standard and uses a very high and accurate baud clock. it costs only $20 to the door.
It has a custom driver and uses a different prescaler chip.


From some one who works it RS232 for over 20 years every day.
hints:
Always try another plateform.
always monitor the lines with a break out box with LEDs.
if that is ok , try a hardware port RATED for such high rates.
last try lowering the baud rates on both ends. (can't here) but SOP.

what is your hardware rated at?

I hope this helps and directs the path to quick solution.
all the best .
to MS and company.
Cheers
MS2V3+msextra,beta21+
DiyAutotune! < the best!
custom pnp harness done, default timings.
idles, cool, tripadation sets in, MLV soon.
2 years till retirement, then doing MS on wifes family cars. for economy $7 gallon fuel.
offtrack
Helpful MS/Extra'er
Posts: 65
Joined: Wed Jan 09, 2008 6:41 pm
Location: Puget sound, and Peru. yah 2 homes.
Contact:

example ( in the physical world)

Post by offtrack »

imagine you are driving across a truss bridge.
and every day , you throw a coke bottle out the window and it fies through the gurder and missing the metal and drops to the water below.
you do this every day for months. No problems save litter tickets.

then, one day , it misses and hits a gurder.

what happenend?

answer: your arm is out of sync with the speed of the vehicle.
slow your arm or speed up your car.

That , is exactly what happens, in a framing error.
the result is garbled data.

By the way my card can sync up to 15mbps !

it's a hardware thing.

RS232 is not magic like PNP USB.
not at all.
you must set it up and it must be compatible with what you are doing.
Marginal operation will drive you goffy.

I hope this helps.

POwer to the MS2 team.
MS2V3+msextra,beta21+
DiyAutotune! < the best!
custom pnp harness done, default timings.
idles, cool, tripadation sets in, MLV soon.
2 years till retirement, then doing MS on wifes family cars. for economy $7 gallon fuel.
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Post by UnaClocker »

I think the previous poster is probably on to something.. MS2 LOCKED to 115,200? Maybe something better than 9600, but not quite 115k would work better?
I spent an hour flashing with my USB adapter. And it wasn't a problem with the last two beta's.. It has always been that way with the USB adapter. I still have my old reliable laptop, Thinkpad 600 with a hardware serial port built in, running win98, and it works every time. Same laptop running Win2k won't successfully flash.
Brian
'84 Dodge Rampage
hassmaschine
Super MS/Extra'er
Posts: 1331
Joined: Mon May 21, 2007 8:36 am

Post by hassmaschine »

I set the serial ports up for MS2 manually in windows - I know the megamanual goes into specifics. my firmware flashes take about 3-5 minutes - if it's taking hours then something is wrong. I would start by setting up your serial port per the manual's suggestions.
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Post by UnaClocker »

Obviously something is wrong. It's not the serial port settings. Been there, done that.
Brian
'84 Dodge Rampage
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

Odd, my reflashes take around 30 seconds. I believe this oddness is most likely due to the USB->serial adapters, and/or computers having problems with built-in serial ports.

I take my USB->serial adapter with me to every computer I work on with MS stuff, including my Mac running Windows XP with bootcamp, my normal PC laptop with XP, my old windows 98 laptop, and my desktop running XP, and FreeBSD (dual boot), and I've been able to flash properly and use Megatune with minimal problems in every case.

My desktop's built-in serial port has also always worked without a hitch.

However, I've seen odd problems with other USB->serial controllers.

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

Post by UnaClocker »

Yeah, I always figured it was something with that USB adapter.. We need a firewire to serial adapter.. hahaha.. :)
Brian
'84 Dodge Rampage
6040solder
Experienced MS/Extra'er
Posts: 307
Joined: Mon Oct 22, 2007 7:15 am
Location: Auckland, New Zealand

Post by 6040solder »

If you want it to be 100% good, take the rs232 physical layer out of the picture.

http://www.sparkfun.com/commerce/produc ... cts_id=198
hassmaschine
Super MS/Extra'er
Posts: 1331
Joined: Mon May 21, 2007 8:36 am

Post by hassmaschine »

just curious, what are you guys using for USB adapters?

I'm using the USB adapter that DIY autotune sells - never had a problem with it. ironically, later I ended up buying a laptop for MS that had a built in serial port, but I don't have a serial cable and USB is much easier to plug in/unplug (I take my latop for datalogging almost everywhere I go).
6040solder
Experienced MS/Extra'er
Posts: 307
Joined: Mon Oct 22, 2007 7:15 am
Location: Auckland, New Zealand

Post by 6040solder »

Mine reports itself as a "FTDI" and/or "FT232BM"

I had no serious issues when I was using it for MS duties. I'll be using it for serial comms with a 9s12 chip in a few days again, I'll report here if anything seems wrong at all.
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Post by UnaClocker »

Mine is a Belkin, I bought it at Staples..
Brian
'84 Dodge Rampage
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

I had that belkin for a while, it worked fine with ms1, but barely works at all with ms2/ or ms2/extra. I'd recommend getting a different one.

I believe mine has the same chip in it as the one DIYautotune sells.

Ken
md95
Master MS/Extra'er
Posts: 721
Joined: Tue Mar 15, 2005 6:44 pm
Location: Grand Rapids, MI
Contact:

Post by md95 »

When i first got into the MS, i used a simple USB to serial convertor(dont remember which one though), and had issues with that one..Then i got the Targus port replicator, thinking it worked a bit differently from regular adaptors(i have no idea if it does), and it's worked wonderfully for both MS1 Extra and for MS2 Extra. That USB breakout board looks like a nice solution, but doesnt that work the same as any other USB to serial adapter, less the serial cable itself? I mean, it's doing the same thing as an adapter anyway? The port replicator is a bit bulky, so i wouldnt mind getting a replacement. My Macbook doesnt have a PCMCIA slot, so no adaptor solution there.. I didnt have time to test another firmware download yet, but I should be able to try it out tonight.
-Matt-
1998 Mitsubishi Eclipse RS 420A Turbo- MS2 Extra- 2.1.0 Release
1992 Plymouth Laser RS 4g63 AWD Turbo MS2 Extra- 3.0.3s
6040solder
Experienced MS/Extra'er
Posts: 307
Joined: Mon Oct 22, 2007 7:15 am
Location: Auckland, New Zealand

Post by 6040solder »

Come on guys! Right click something or other and find out which chipset they have in them. Its not exactly hard to do. The information would be good for people to have for the purposes of which one to buy if they have trouble with whatever they have.
md95
Master MS/Extra'er
Posts: 721
Joined: Tue Mar 15, 2005 6:44 pm
Location: Grand Rapids, MI
Contact:

Post by md95 »

I dont have my port replicator with me now(at work), but i'm pretty sure this is the one I have

http://www.targus.com/us/drivers_manual ... SKU=PA090U

I dont know if it's interesting or not to know that it's only USB 1.1 compliant.
-Matt-
1998 Mitsubishi Eclipse RS 420A Turbo- MS2 Extra- 2.1.0 Release
1992 Plymouth Laser RS 4g63 AWD Turbo MS2 Extra- 3.0.3s
AbeFM
Super MS/Extra'er
Posts: 875
Joined: Wed Dec 05, 2007 1:40 pm
Location: San Diego, CA
Contact:

Post by AbeFM »

muythaibxr wrote:I had that belkin for a while, it worked fine with ms1, but barely works at all with ms2/ or ms2/extra. I'd recommend getting a different one.

I believe mine has the same chip in it as the one DIYautotune sells.

Ken
I have a belkin as well. I bought another, and lost it. It was small and perfect. Oh, well, never got to test it. I used another that's like for cellphones or something, took forever to find drivers for it, and it sucked horrible. All sorts of errors and the laptop would reboot pretty often using it. :-)
2000 VVT Miata turbo, MS3Pro

Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
offtrack
Helpful MS/Extra'er
Posts: 65
Joined: Wed Jan 09, 2008 6:41 pm
Location: Puget sound, and Peru. yah 2 homes.
Contact:

6040 is ON target !

Post by offtrack »

thanks for that post on the Sparkfun
its rated at almost 1mbps baud rates, that has great potential.

i will order one today and try it out.

one can make a pig tail from that to the max232 (have it in a socket)
and use a dip header for my pig tail , no soldering jumper wires from
sparkfun to my MS2v3 , cool solution.! "modular"

thanks very much.

thanks also for that clue about macs not having PCMCIA or pccard, wow,
what good is a non expandable laptop.?


CHEERS !

MS rules.
MS2V3+msextra,beta21+
DiyAutotune! < the best!
custom pnp harness done, default timings.
idles, cool, tripadation sets in, MLV soon.
2 years till retirement, then doing MS on wifes family cars. for economy $7 gallon fuel.
6040solder
Experienced MS/Extra'er
Posts: 307
Joined: Mon Oct 22, 2007 7:15 am
Location: Auckland, New Zealand

Post by 6040solder »

Tonight i found some that are EVEN cooler, also royalty free drivers, and linux drivers, and similar price, but much smaller, check THESE out :

http://apple.clickandbuild.com/cnb/shop ... tle=MM232R

and smaller again

http://apple.clickandbuild.com/cnb/shop ... tle=UB232R

WOW, just wow :-)

I love small things :-)

http://www.ftdichip.com/Products/Evalua ... UB232R.htm

all the info is on that site, so much variety...
jsmcortina
Site Admin
Posts: 39613
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

I've used one of the FTDI chips (FT232RL) and it worked fine for me. It is also the chip chosen for the Spectre EMS-Pro ECU.

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".
Post Reply