Blown Chip & Elusive Serial Monitor BDM File

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

Moderators: jsmcortina, muythaibxr

leomarcus
MS/Extra Newbie
Posts: 4
Joined: Sun May 20, 2012 4:00 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by leomarcus »

I loaded mon.s19 with pemicro multilink with Freescale_9S12C64_1x16x32k_64k_Linear_16k_page.12P and prog12z pemicro software
When i load it to software it said me mon.s19 range is wrong
So i used log2phy(logical to physical adress converter)d that converted mon.s19 in another phy s19 file that pemicro accepts.
After this connected to target with bdm multilink and prog12z and connection was ok
then i erased flash and programmed mon.phy.s19 file sith succes
I try to use ms2-downloader but i get Error timed out response 0xE0

how can i fix it?
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by jsmcortina »

I've only ever used HIWAVE and the P&E BDM to programme.

Is the monitor running? Try stopping it and single-stepping to see what's happening.

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".
leomarcus
MS/Extra Newbie
Posts: 4
Joined: Sun May 20, 2012 4:00 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by leomarcus »

HIWAVE is a software that works with p&m?
SymTech Laboratories
Super MS/Extra'er
Posts: 2188
Joined: Sun Aug 31, 2008 4:02 pm
Location: South Florida, USA
Contact:

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by SymTech Laboratories »

leomarcus wrote:HIWAVE is a software that works with p&m?
Yes, HIWAVE works with the P&E Multilink.
SymTech Laboratories, LLC ----- MSQ File Repository: megasquirt.symtechlabs.com
Image
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by Reverant »

jsmcortina wrote:I've only ever used HIWAVE and the P&E BDM to programme.

Is the monitor running? Try stopping it and single-stepping to see what's happening.

James
Any links for flashing the serial monitor through the BDM with the P&E under Linux?
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
piledriver
Super MS/Extra'er
Posts: 1679
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by piledriver »

Reverant wrote:
jsmcortina wrote:I've only ever used HIWAVE and the P&E BDM to programme.

Is the monitor running? Try stopping it and single-stepping to see what's happening.

James
Any links for flashing the serial monitor through the BDM with the P&E under Linux?
WINE has gotten pretty good over the years...
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
Matt Cramer
Super MS/Extra'er
Posts: 17499
Joined: Thu Apr 16, 2009 8:08 pm

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by Matt Cramer »

SymTech Laboratories wrote:
leomarcus wrote:HIWAVE is a software that works with p&m?
Yes, HIWAVE works with the P&E Multilink.
Works may be too strong a word in my experience - "cooperates when it feels like it" can be more like it.
Matt Cramer -1966 Dodge Dart slant six running on MS3X
DaveEFI
Super MS/Extra'er
Posts: 4175
Joined: Sun Apr 15, 2012 12:55 am
Location: SW London, UK

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by DaveEFI »

piledriver wrote:I have to give the USBDM 4.9 code and the Wytek USBDM 10 thumbs up :lol: , had mon.s19 loaded in 20 seconds using the USBDM stand alone firmware loader, first try, I may never know what Codewarriors IDE looks like unless curiosity gets the better of me.

Had to replace the chip the old fashioned way as I didn't have the right hot air rework nozzle, xacto, fine tip soldering iron, solder wick and a blob o'noclean soldering paste to keep the chip from floating away and she works.

Looks like it will NOT work under Linux as it seems to depend on something in CW, and the Linux flavor does not support S12x.
I'll have a look at the code and see if it just needs libs and can be hacked.
I've finally got round to replacing the processor and purchased a Wytek USBDM. Could someone take me through step by step how to load the mon.s19 as I'm rather out of my comfort zone. :D

Do you power the daugherboard from the MS, or will the USBDM power it? Which way round does the plug go? Etc.
Rover SD1 3.5 EFI
MS2 V3
EDIS
Tech Edge O2
London UK.
SymTech Laboratories
Super MS/Extra'er
Posts: 2188
Joined: Sun Aug 31, 2008 4:02 pm
Location: South Florida, USA
Contact:

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by SymTech Laboratories »

DaveEFI wrote:Do you power the daugherboard from the MS, or will the USBDM power it? Which way round does the plug go? Etc.
The BDM cable won't power the target, it needs to be powered externally (i.e. through the ECU). There should be a small triangle on the connector denoting pin 1 -- pin 1 is also marked on the MS2 BDM header.
SymTech Laboratories, LLC ----- MSQ File Repository: megasquirt.symtechlabs.com
Image
piledriver
Super MS/Extra'er
Posts: 1679
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by piledriver »

Do you need a walk through?

Install CW
Install the software that comes with the BDM

The software that comes wit the BDM is all you really need to use, it just relies on some of the files/libraries in CW.

I remember it was VERY easy to figure out how to use it ...and It was literally over within ~30 seconds.

I can dig it out and write a proper procedure if you need it.
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
DaveEFI
Super MS/Extra'er
Posts: 4175
Joined: Sun Apr 15, 2012 12:55 am
Location: SW London, UK

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by DaveEFI »

Thanks guys - that's given me enough to experiment with -and not blow it up. :D One thing that did happen is Win7 decided to find its own driver for the BDM, so doesn't list it separately in Devices. I'll have a play later today and get back if I fail miserably.
Rover SD1 3.5 EFI
MS2 V3
EDIS
Tech Edge O2
London UK.
DaveEFI
Super MS/Extra'er
Posts: 4175
Joined: Sun Apr 15, 2012 12:55 am
Location: SW London, UK

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by DaveEFI »

Success. Without using CodeWarrior - although I had downloaded and installed it. Thanks once more for all the info on here.
Rover SD1 3.5 EFI
MS2 V3
EDIS
Tech Edge O2
London UK.
seppo14
MS/Extra Newbie
Posts: 11
Joined: Wed Mar 20, 2013 12:57 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by seppo14 »

I have same problem. I have replaced my processor, but I can't download ms2/extra. Serialmonitor works fine and B&G firmware works too. Extra loader downloads bootstrap fine, but then I get error (0xFF). Voltages at processor is ok and i've tested it with 3 computers, one real serial port and 2 different serial adapters. Is there any advice to what to do next?
tmbryhn
Helpful MS/Extra'er
Posts: 49
Joined: Sun Nov 06, 2011 6:27 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by tmbryhn »

I fried my MC9S12C64 two days ago. Probably ESD damage, but I could be wrong.
Anyway, I need to replace the uC on the MS2 daughterboard.

This is what I have understood from reading through this thread so far:

1. You need to solder in a new uC on the MS2 daughtercard:
http://no.mouser.com/Search/ProductDeta ... S12C64CFAE

2. You need a BDM unit. I bought this one on eBay:
http://www.ebay.com/itm/Freescale-Debug ... 19d281f3ee
I hope it's suitable for the task.

3. You connect the BDM cable to the 2*3 pin header on the MS2 daughtercard.

4. Then you have to upload the mon.s19-file to the chip using the BDM unit already connected to the MS2.

This is where I'm a bit lost:
Is the mon.s19 what we call a serial monitor? Do we call it a bootloader? I'm confused.
Is it correct that you ONLY need the software that is intended for the BDM unit?
I downloaded the USBDM_4_10_5_Win.msi software. Is this enough to be able upload the mon.s19-file? I'm working in Win 7 64 bit.

When the mon.s19 file has been successfully uploaded to the MS2, can it then be uploaded with the MS2 extra downloader.bat like you would normally do when you upgrade to MS2 extra?

Is there anything additional that I need to know? And please correct or add info to my checklist if it's misguiding or wrong :-)

Thanks a lot for this helpful thread!
piledriver
Super MS/Extra'er
Posts: 1679
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by piledriver »

You need to install the free CodeWarrior 10(sumpthing) before the USBDM software.

You only need to USE the BDM software, but it uses CW for something, and it won't install if it's not there...

The monitor makes the serial port work etc, you load it with the bdm, then all the rest with the std msextra tools.

Unless you have hot air rework tools, carefully cut the legs off the bad chip to remove it, the cut off legs are easy to remove from the board afterwards.

A low powered inspection microscope is handy for inspection that things are clean/soldered properly.
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
tmbryhn
Helpful MS/Extra'er
Posts: 49
Joined: Sun Nov 06, 2011 6:27 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by tmbryhn »

Thank's for the head-up!
I'm experienced with SMD soldering and got the proper equipment at home ;-)

Ok, so pretty straight forward then:

Install CodeWarior 10.x
Install USBDM software
Connect MS2 with BDM cable
Upload mon.s19 with BDM through BDM software
Run MS2extra downloader.bat

Then this will be a walk in the park :-)

Any additional things I should take into account, be aware of or that is nice to know?
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by jsmcortina »

tmbryhn wrote:Any additional things I should take into account, be aware of or that is nice to know?
The USB-BDM can be horrendously unreliable.

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".
tmbryhn
Helpful MS/Extra'er
Posts: 49
Joined: Sun Nov 06, 2011 6:27 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by tmbryhn »

Which device do you recommend?
SymTech Laboratories
Super MS/Extra'er
Posts: 2188
Joined: Sun Aug 31, 2008 4:02 pm
Location: South Florida, USA
Contact:

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by SymTech Laboratories »

tmbryhn wrote:Install CodeWarior 10.x
Install USBDM software
Connect MS2 with BDM cable
Upload mon.s19 with BDM through BDM software
Run MS2extra downloader.bat
We use the USB BDM multilink cable from P&E Micro. Also, the last we knew, you need to use CodeWarrior "Classic" for S12(X) V5.1 and not V10.x.
SymTech Laboratories, LLC ----- MSQ File Repository: megasquirt.symtechlabs.com
Image
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Blown Chip & Elusive Serial Monitor BDM File

Post by jsmcortina »

I use the P&E USB BDM, I was just warning that it can be terribly unreliable. Some days mine works great, other days for no explicable reason it is the most useless piece of equipment I've ever dealt with. I have updated the firmware on it recently, I'll have to see if that improves things.

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