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

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby leomarcus » Sun May 20, 2012 4:53 am

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

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby jsmcortina » Sun May 20, 2012 1:34 pm

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 34073
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby leomarcus » Mon May 21, 2012 3:09 am

HIWAVE is a software that works with p&m?
leomarcus
MS/Extra Newbie
 
Posts: 4
Joined: Sun May 20, 2012 4:00 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby SymTech Laboratories » Mon May 21, 2012 8:45 am

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
SymTech Laboratories
Super MS/Extra'er
 
Posts: 2188
Joined: Sun Aug 31, 2008 4:02 pm
Location: South Florida, USA

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby Reverant » Mon May 21, 2012 11:51 pm

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
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost - InCar PC
User avatar
Reverant
Super MS/Extra'er
 
Posts: 994
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby piledriver » Tue May 22, 2012 9:25 am

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.
piledriver
Super MS/Extra'er
 
Posts: 1640
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby Matt Cramer » Tue May 22, 2012 9:36 am

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
Super MS/Extra'er
 
Posts: 13769
Joined: Thu Apr 16, 2009 8:08 pm

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby DaveEFI » Thu Mar 28, 2013 5:03 pm

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.
DaveEFI
Super MS/Extra'er
 
Posts: 2800
Joined: Sun Apr 15, 2012 12:55 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby SymTech Laboratories » Thu Mar 28, 2013 6:10 pm

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
SymTech Laboratories
Super MS/Extra'er
 
Posts: 2188
Joined: Sun Aug 31, 2008 4:02 pm
Location: South Florida, USA

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby piledriver » Fri Mar 29, 2013 1:12 am

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.
piledriver
Super MS/Extra'er
 
Posts: 1640
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby DaveEFI » Fri Mar 29, 2013 2:56 am

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: 2800
Joined: Sun Apr 15, 2012 12:55 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby DaveEFI » Fri Mar 29, 2013 9:50 am

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.
DaveEFI
Super MS/Extra'er
 
Posts: 2800
Joined: Sun Apr 15, 2012 12:55 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby seppo14 » Sat May 04, 2013 2:27 pm

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?
seppo14
MS/Extra Newbie
 
Posts: 11
Joined: Wed Mar 20, 2013 12:57 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby tmbryhn » Tue May 14, 2013 8:20 am

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

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby piledriver » Tue May 14, 2013 11:24 am

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.
piledriver
Super MS/Extra'er
 
Posts: 1640
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby tmbryhn » Tue May 14, 2013 1:12 pm

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

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby jsmcortina » Tue May 14, 2013 1:16 pm

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 34073
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby tmbryhn » Tue May 14, 2013 1:25 pm

Which device do you recommend?
tmbryhn
Helpful MS/Extra'er
 
Posts: 47
Joined: Sun Nov 06, 2011 6:27 am

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby SymTech Laboratories » Tue May 14, 2013 3:38 pm

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
SymTech Laboratories
Super MS/Extra'er
 
Posts: 2188
Joined: Sun Aug 31, 2008 4:02 pm
Location: South Florida, USA

Re: Blown Chip & Elusive Serial Monitor BDM File

Postby jsmcortina » Tue May 14, 2013 4:02 pm

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 34073
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

PreviousNext

Return to MS2/Extra Development

Who is online

Users browsing this forum: No registered users and 2 guests