Bootloader with USB cable
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.
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Bootloader with USB cable
I am having trouble getting my bootloader code on my MS-II. I don't have access to true serial port. I have a USB cable that plugs into the MS-II daughter board and a usb to serial that plugs into the DB-9 port. Both pass the loopback test just fine and tunerstudio can see both just fine. I have set the settings as mentioned in the manual (115200 baud and buffers as low as possible). I can't get it load the code though. When I use the USB to USB cable the comm port has a bunch more settings but I couldn't mind the magical combo that works. Has anyone managed to get theirs to bootload with a similar setup?
Thanks in advance,
Joe
Re: Bootloader with USB cable
Rover V-8
MSII V3
EDIS
Tech Edge Wideband
-
- Super Squirter
- Posts: 2951
- Joined: Sat Jul 03, 2004 11:35 am
Re: Bootloader with USB cable
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Re: Bootloader with USB cable
Unfortunately I did not though my understanding was that if it passed the loopback test then it was good to go. Is that not the case?trakkies wrote:USB to serial adaptors are notorious for varying. Did you buy yours from an MS dealer, so guaranteed to work with MS?
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Re: Bootloader with USB cable
I will when I get home, I should have done that last night. SorryMatt Cramer wrote:Can you post a screen shot of what happens when you try loading firmware? There may be important clues in the wording of the error message.
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Re: Bootloader with USB cable
Detected MS-II (HCS12) code.
Entry point: 0x0000
Code range : 0x4000-0x3db3e0
File read successfully.
Opened comm port 3 at 115200.
Erasing main FLASH:
ERROR: Timed out reading response, 0xE0
Elapsed time: 2.03 seconds
That is with a usb to db9 cable and the serial cable mentioned below.
I got a DB9 cable but my laptop docking station doesn't seem to recognize it at all so I may just have to pick up a cheap computer with the port.
This is starting to drive me crazy.
I have gone through the connection trouble shooting guide. Could it be my crystal at this point? or the MS2 daughterboard?
Re: Bootloader with USB cable
What I eventually did to get the whole thing to work together was not use the MS uploader programme v 2.00 !!
When you download the latest firmware , within the files is an uploader file which I tried (clutching at straws at this stage ) which opened up into a black screen which flashed all the data up in a matrix style and embedded the firmware and then asked me to disconnect the bootloader jumper and embedded more code .
I now have the latest firmware and no problem communicating between the MS and the tuner studio .
I hope this helps .
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Re: Bootloader with USB cable
Detected MS-II (HCS12) code.
Entry point: 0x0000
Code range : 0x4000-0x3db3e0
File read successfully.
Opened comm port 2 at 115200.
Erasing main FLASH:
ERROR: Timed out reading response, 0xE0
Elapsed time: 1.81 seconds
I get good loopback in TunerStudio's mini-term.
I have gone through all the of Connection Troubleshooting Guide.
One thing I have noticed is that the LEDs on my MS board don't light up at all when I turn it on with BL jumped. The FP light on the stim does but that is it.
My question at this point is could my problem be the crystal or do I need to replace the MS-2 daughter board?
Any help is appreciated.
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Re: Bootloader with USB cable
I'm not sure what files you are talking about. Could I get a download link or something?tony4790 wrote:Hi and I would just like to say that I feel your pain as I spent many hours trying to get my laptop to communicate with my MS2 V3.0 ! I even purchased the Trendnet TU-S9 usb to db9 converter cable which is confirmed to work with the MS .
What I eventually did to get the whole thing to work together was not use the MS uploader programme v 2.00 !!
When you download the latest firmware , within the files is an uploader file which I tried (clutching at straws at this stage ) which opened up into a black screen which flashed all the data up in a matrix style and embedded the firmware and then asked me to disconnect the bootloader jumper and embedded more code .
I now have the latest firmware and no problem communicating between the MS and the tuner studio .
I hope this helps .
Re: Bootloader with USB cable
Rover V-8
MSII V3
EDIS
Tech Edge Wideband
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Re: Bootloader with USB cable
I have the DIYAutoTune power supply so I don't think that is the problem.trakkies wrote:If you mean the crystal on the main PCB, it's not needed for MS2. Thing that caused a problem loading code here once was a too low powered PS. Which seemed OK on first test with a Stim. Needs to be at least 500mA. A quick check would be to use a fully charged car battery - but do fit a fuse to the supply if trying this.
-
- Master Squirter
- Posts: 475
- Joined: Thu Oct 29, 2009 12:54 pm
Re: Bootloader with USB cable
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Re: Bootloader with USB cable
The latest s19, 2.920.Lance wrote:Which code are you trying to load?
-
- Master Squirter
- Posts: 475
- Joined: Thu Oct 29, 2009 12:54 pm
Re: Bootloader with USB cable
You should see:
Make sure you are using the V2.00 downloader (not 1.04): http://www.megamanual.com/files/software/MegaSquirt Download 2.00
Reading C:/Users/Lance/Documents/Websites/megamanual.com/files/code/Monitor_v2.920.abs.s19:
Detected MS-II (HCS12) code.
Entry point: 0x0000
Code range : 0x4000-0x3db3e0
File read successfully.
Opened comm port 1 at 115200.
Erasing main FLASH:
Erased.
Writing:
Setting page register 0x3c:
Page set.
Erasing page 0x3c:
Erased.
Setting page register 0x3d:
Page set.
Erasing page 0x3d:
Erased.
Write complete, 1472 records, 47022 bytes.
Verifying:
Setting page register 0x00:
Page set.
Setting page register 0x3c:
Page set.
Setting page register 0x3d:
Page set.
Verification succeeded, 1472 records total (4 skipped).
Elapsed time: 12.49 seconds
MegaSquirt Download 2.00
Reading C:/Users/Lance/Documents/Websites/megamanual.com/files/code/Monitor_v2.920.abs.s19:
Detected MS-II (HCS12) code.
Entry point: 0x0000
Code range : 0x4000-0x3db3e0
File read successfully.
Opened comm port 1 at 115200.
Monitor mode failed.
Erasing main FLASH:
ERROR: Command not recognized, e=0xE1
Elapsed time: 0.40 seconds
Make sure you are using a V2 MS2 and not an MS1 or a very early MS2 (pre-CANbus).
A USB cable that plugs into the daughtercard is likely a background debug module (BDM) cable (with 6 pins). You don't use this for loading code, you use it for loading the bootloader. To load code, use the serial port, ground the bootloader while powering up, and run the downloader.I have a USB cable that plugs into the MS-II daughter board and a usb to serial that plugs into the DB-9 port.
It is very possible to corrupt the bootloader with a BDM cable if you don't use it correctly, so that might have happened to yours.
Do the LEDs turn on at all when the bootloader isn't jumpered? If not, then I suspect the power supply (these are quite prone to failure, and should be tested with a multi-meter anytime you have unexpected issues). If the LEDs do flash when you turn it on, then again the bootloader code might be corrupt.the LEDs on my MS board don't light up at all when I turn it on with BL jumped.
Lance.
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Re: Bootloader with USB cable
Thanks for the reply. I am still getting the error I posted above when I run the MS Downloader. I do have V2.00 and am using the most current code I could find. I have never gotten past the "Erasing main FLASH:" stage as it always errors out. I now have a 9-pin DB9 pass through serial cable that I plug directly into a matching serial port on my tower (I bought this adapter over the weekend: http://www.microcenter.com/product/4170 ... _Host_Card) and I still get the same error. I will try redownloading the S19 file and uploading a clean version over my serial cable when I get home from work to see if I have indeed corrupted my S19 file. The LEDs on my MS board have never lit up. The ones on the stim do. The FP light flashes when I have the BL jumped. I have done all the voltage and such checking the connection troubleshooting guide so I don't think it is the power supply but I will triple check it too.
Thanks again.
Joe
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Re: Bootloader with USB cable
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm
Re: Bootloader with USB cable
Thanks,
Joe
Re: Bootloader with USB cable
Rover V-8
MSII V3
EDIS
Tech Edge Wideband
-
- MegaSquirt Newbie
- Posts: 12
- Joined: Mon Jan 11, 2016 4:48 pm