Author Topic: Bootloader/dead box?  (Read 24459 times)

Offline bart

  • Jr. Member
  • **
  • Posts: 15
  • BHP: 1
Bootloader/dead box?
« on: September 30, 2010, 10:58:23 am »
Hi all.
It´s sad that the first post i make is of a negative kind, problems, but disregarding that I will feed you some info & hope you can help me out?! I have searched for a solution & tried most of them, but none of them describe the problem I seem to have.... :-\

Installed the latest Vemstune version & was about to upgrade to 1.1.81 from 1.1.76 when something went wrong. Config saved & upload began, suddenly stopped & nothing.....
I checked for info & have already tried the "pin 2&3" solution and then running Terminal.exe to check, & this is what I get:

S,p,v -> AVREFI1
p -> S

When I try this without the "pin 2&3" before startup I get no respond at all in Terminal!

When starting up with "pin 2&3", double checking with terminal & then starting up Vemstune it´s still not possible to run a Firmware upload. I only get a message saying: It seems that there is some problem with Vems communication. Check power, cables & serial port connections.
On the log page I constantly get a message saying that I should connect ECU....

So from here I really don´t know what to do :'(

If any more details are needed, just let me know. Computers & software are not my strong points....

Thanks for a great forum :)

/bart


Offline Pet

  • Full Member
  • ***
  • Posts: 121
  • BHP: 7
Re: Bootloader/dead box?
« Reply #1 on: September 30, 2010, 11:51:15 am »
When you stay in bootmode Vemstune can't work, it's correct (if no, correct me..)
Anyway, you can download http://www.vems.co.uk/VEMSTech/VemsMT1.0.78rc2.zip, in boot mode (2&3 connected during power-up) try to flash this old 1.0.78rc2 FW to Vems from boot mode :

Note: check/modify COM port nr. in that BAT's

1. generate-config-16x14WithDefaults.bat
2. upload-firmware-boot-16x14.bat
3. after flash is done well, try to run MegaTune attached in that VemsMT1.0.78rc2.zip

This method works for me if the firmware gets wrong and only bootloader mode stays working.


« Last Edit: September 30, 2010, 02:44:46 pm by Pet »

Offline bart

  • Jr. Member
  • **
  • Posts: 15
  • BHP: 1
Re: Bootloader/dead box?
« Reply #2 on: September 30, 2010, 09:42:00 pm »
Hi & thanks for the tip Pet, i´ll try it tomorrow!
Just a few things first....
The info I got from one of the support guys in Sweden, was that the firmware upload function should work in boot loader mode! Or have I managed to misunderstand this part maybe?!

As i mentioned in my previous post, anything regarding computers & fancy terms is just not my cup of tea, sorry :-\ it´s just like trying to read chinese.... ;)
When you say "flash", this means what? I just downloaded VemsMT & checked the files & folders, but sorry, I do not know what to do next really :-\

some more detailed help please ;) otherwise I just might make a mistake & the box will go up in flames... ;D

Offline mattias

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1075
  • BHP: 41
    • Sävar Turbo Site
Re: Bootloader/dead box?
« Reply #3 on: September 30, 2010, 11:14:24 pm »
I had no trouble "reviving" a box with corrupted firmware a few weeks ago, I just use the short rx/tx trick and off we went to upgrade to the new firmware (with a good working serial port this time). VemsTune did in fact notify me that the ECU was in bootloader mode.

Make sure you use the latest VemsTune release, latest is from 2010-09-08 and usually there is a new one every other week - we are waiting for a release with some major changes which takes a while to test/develop.
Download here : http://www.vems.hu/download/VemsTune/

You can see which version you got from the Help menu -> About.

Offline bart

  • Jr. Member
  • **
  • Posts: 15
  • BHP: 1
Re: Bootloader/dead box?
« Reply #4 on: October 01, 2010, 08:40:14 am »
Hi Mattias!
Thanks for your support! I tried everything you mentioned & i searched this page for other tips, but nothing has helped so far...

As i mentioned earlier, when running Terminal.exe to check this is what I get:

S,p,v -> AVREFI1
p -> S

so, what should I make of this ??? positive or negative?

pssstt, Mattias, you know I will send you the box if I don´t manage to get it started myself  ;)

Offline rob@vems.co.uk

  • Hero Member
  • *****
  • Posts: 3115
  • BHP: 49
    • VEMS Forum
Re: Bootloader/dead box?
« Reply #5 on: October 01, 2010, 08:56:00 am »
What sort of Serial/RS232 port are you using - these can cause so many problems that its best to check that its a good one

One of the main problems with USB to RS232 ports is that they do not install their drivers correctly, or they pick-up the wrong driver.  If your Com port changes each time you plug-in to the USB then you probably have this issue.

Offline bart

  • Jr. Member
  • **
  • Posts: 15
  • BHP: 1
Re: Bootloader/dead box?
« Reply #6 on: October 01, 2010, 08:20:42 pm »
Hi Rob & thanks for your attention!
I used a usb cable before but had problems every now & then so I skipped it & now use a laptop with serial port. I have been using the 9 pin serial port since a while back & so even when performing this procedure I have used the serial port.

Offline bart

  • Jr. Member
  • **
  • Posts: 15
  • BHP: 1
Re: Bootloader/dead box?
« Reply #7 on: October 04, 2010, 07:11:52 pm »
anybody, anything ??? no  :'(

Offline rob@vems.co.uk

  • Hero Member
  • *****
  • Posts: 3115
  • BHP: 49
    • VEMS Forum
Re: Bootloader/dead box?
« Reply #8 on: October 04, 2010, 10:25:50 pm »
Sorry, theres not really much that I can suggest for you to do.  If Mattias can help then I would speak to him.

Offline mattias

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1075
  • BHP: 41
    • Sävar Turbo Site
Re: Bootloader/dead box?
« Reply #9 on: October 04, 2010, 10:34:23 pm »
If you get those answers from terminal mode then you should have no problem connecting with VemsTune and it should verify that the ECU is in bootloader mode and allow a firmware upload.

Remember, after successfully confirming that it is in bootloader mode you won't be connecting anything to the ECU until you quit the terminal program as it occupies the serial port.

Offline Jorgen

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 59
  • BHP: 500
Re: Bootloader/dead box?
« Reply #10 on: October 04, 2010, 11:03:04 pm »
Hi,

First check that you disconnected the terminal program as Mattias suggested above, but if that fails it seems like we have a situation VemsTune has problems recovering from. We'll check it out and we will try to identify the problem.

But for now we can use the old way to recover from a failed firmware upgrade.

Start by remvoing the fuses to the coils and injectors, the ECU can missbehave a bit during a firmware upgrade.

Download: http://www.vems.co.uk/VEMSTech/VemsMT1.0.78rc2.zip

Unzip to a folder of your choice and open upload-firmware12x12.bat in notepad.

Find this line: wintools\megaloader.exe firmware\vems.hex -wtE -c com1
Change to this: wintools\megaloader.exe firmware\vems.hex -wE -c com1
(-wtE changed to -wE)
Also change the com port to match the one you use.
Save the modified file and close notepad.

This makes the old style upload tool expect the ECU to be in bootloader mode (Something VT normally detect automatically.). Now force the ECU to enter boot loader mode by shorting pin2 and pin3 in the serial connector of the ECU while turning on the ignition. Remove the short and double click upload-firmware12x12.bat to run the script. Follow the instructions to "upgrade" the firmware.

If all goes well the ECU will now have a working 1.0.78 firmware, but one without a proper configuration. This is not a problem as this is only an intermediate step.

Now cycle power to the ECU and go back to VEMStune to upgrade the firmware to 1.1.81. When the firmware upgrade is done you need to upload the config file you saved from 1.1.76 before doing the upgrade. DO NOT use any config you saved from 1.0.78RC2.

I hope this helps.

Jörgen Karlsson
Gothenburg, Sweden.
« Last Edit: October 04, 2010, 11:05:07 pm by Jorgen »

Offline GintsK

  • Hero Member
  • *****
  • Posts: 1257
  • BHP: 50
Re: Bootloader/dead box?
« Reply #11 on: October 05, 2010, 12:33:44 pm »
Jorgens old way solved similar problems for me too. Vemstune has issues with recovery in bootmode.

Offline bart

  • Jr. Member
  • **
  • Posts: 15
  • BHP: 1
Re: Bootloader/dead box?
« Reply #12 on: October 05, 2010, 08:08:07 pm »
hey guys! I will try Jörgens tip first thing tomorrow morning. Thank you Jörgen for describing it in baby steps for me, I really need that ;D so hopefully I will manage on my own tomorrow?!
ANd regarding Terminal, yes I did disconnect the program before starting up Vemstune, so you see I´m not totally lost  ;)

I will try Jörgens tip & return with an answer ASAP!

thanks again!!

Offline bart

  • Jr. Member
  • **
  • Posts: 15
  • BHP: 1
Re: Bootloader/dead box?
« Reply #13 on: October 07, 2010, 09:18:57 pm »
wehey!!!  :D :D :D :D

My ECU is alive again!!! I followed Jörgens tip & everything went according to plan!

Another thing now instead occured....the car will not start at all, nope! Same values as before when the car did start, but now dead!
In the upper fields I can see a red bar indicating sec tr fault or similar, so I tried to perform an analyze/record trigger log, but can not manage to get any values to show?
Procedure: ignition on, Vems online/analyze record trigger log/V3/start V3 & turn key to crank engine & recieved bytes increases as time passes. I stop turning & stop V3, then press show results.....but get nothing. The files do get saved but how can I watch what problems i might have?
I will try to search a few more times & see if I can mangage to find something on it...

Thanks again for all the help  :D

Offline mattias

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1075
  • BHP: 41
    • Sävar Turbo Site
Re: Bootloader/dead box?
« Reply #14 on: October 08, 2010, 10:51:41 am »
If the ECU has "secondary trigger errors", then check out the settings for that. Most likely the min/max angles are wrong, set these to 0 and 359 and to the default event in case of a bad trigger position.

I don't remember what kind of trigger you have but some have not been supported yet. Missing-tooth has always worked. Simple coil-type has been known to not work.