RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 4:02 pm

All times are UTC





Post new topic Reply to topic  [ 145 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 10  Next
Author Message
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sat Sep 17, 2011 4:55 pm 
Offline
Senior Member

Joined: Mon Jan 19, 2009 6:31 pm
Posts: 1615
Location: Moscow, Russia
This is needed to protect your ecu\FTDI chip when they are not powered from the same source.

Edited: misprints...


Last edited by Sasha_A80 on Sun Sep 18, 2011 2:43 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sun Sep 18, 2011 1:54 am 
Offline
RomRaider Donator

Joined: Fri Dec 25, 2009 12:46 pm
Posts: 93
Sasha_A80 wrote:
This is need to protect your ecu\FTDI chip when power they are not powered from the same source.


Thanks Sasha! :)


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sun Jul 15, 2012 6:34 pm 
Offline
Experienced
User avatar

Joined: Wed Nov 10, 2010 11:56 am
Posts: 418
Quote:
The light blue wire is the output of the timer, should be clocking at 125Hz. Connected to P407 on the ECU


Got aquestion about the frequency of watchdog signal.
Here we talk about 125Hz, in nasioc.com forum they talk about 150Hz.

Witch one is correct, or better in with range the watchdog has to be ?

I working on a read-and-wirte interface based on arduino UNO for AUD-reading and SHBootmode wirting.
I can bend the frequency of the arduino PMW out (to use as watchdog) in fix clases. 122,549Hz is the frequency, who´s next to the one I found in this description .

Does this also work ?

BR

_________________
performence based on engineering..


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sun Jul 15, 2012 7:43 pm 
Offline
Senior Member

Joined: Mon Jan 19, 2009 6:31 pm
Posts: 1615
Location: Moscow, Russia
50-60 ms max period is applicable for Denso ecu watchdog.
That means you are free to choose convinient WDT frequency.


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sun Jul 15, 2012 8:57 pm 
Offline
RomRaider Donator

Joined: Fri Jul 17, 2009 2:47 am
Posts: 77
I've found anywhere between 125-150Hz works well. I believe I saw the 125 spec on the tactrix website.


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Mon Jul 16, 2012 9:29 am 
Offline
Experienced
User avatar

Joined: Wed Nov 10, 2010 11:56 am
Posts: 418
Thanks for your hints.. :D

Comming to this again:
Quote:
Do not forget to use protective resistors about 5kOm/1kOm/5kOm for Watchdog/Rx/Tx.

Added:

- and make proper wiring for FWE and MD1 circuitry in order to enter bootmode.

arduino got 1kOm in RxD /TxD lines. Is this enought or should I put add on resistors to communication lines ?

Watchdog will be a push-pull output of arduino with a 5kOm resistor.
But what about FWE ?
Tractix shematic seems to show resistor on ECU, so I can connect +5V (pull-output of arduino) directly, or better to put a 1kOm in ?

MD1 needs to be switch to ground. Normaly without resisor ?!

Wireing of PIASINI-Tool describes just bridges between Vcc to FWE and ME to GND. But AFAIK this will only work, if Vcc got only one scource

In activeboard it was said, no resisitors need to be put in, when reading AUD via arduino, but I am not really sure about that.
Importents part is not to kill the ECU be connection the interface :?


BR Jochen

_________________
performence based on engineering..


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Mon Jul 16, 2012 9:48 am 
Offline
Senior Member

Joined: Mon Jan 19, 2009 6:31 pm
Posts: 1615
Location: Moscow, Russia
Use ECU Vcc and GND for FWE and MD1. This is not a problem.
1 kOm for Arduino RX is quiet applicable. 1 kOm for Arduino TX is probably too high. Sometimes it needs to be less (probably this is related to ecu\ambient temperature).
5 kOm for WDT is applicable, it should not be less.

AUD lines should not use more than 330 Ohm protective resistors.


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Mon Jul 16, 2012 10:22 am 
Offline
Experienced
User avatar

Joined: Wed Nov 10, 2010 11:56 am
Posts: 418
Sasha_A80 wrote:
Use ECU Vcc and GND for FWE and MD1. This is not a problem

But this needs to use a add on relais.
The push-pull-outputs will provide + 5V and GND.
GND is not a problem because it is connected to GND of ECU. + 5V is supply of arduino, so maybe there will be a problem without a limitation of current to FWE.
I see on Subarutech77 picutures a direct connection form + 5V form Interface to ECU FWE.
Seems to work ?!

Quote:
1 kOm for Arduino RX is quiet applicable. 1 kOm for Arduino TX is probably too high. Sometimes it needs to be less (probably this is related to ecu\ambient temperature).

I will check, the resitors are part of the board. If it doesn´t work, I need to change.
Quote:
5 kOm for WDT is applicable, it should not be less.

If 10kOm is better, I use this
Quote:
AUD lines should not use more than 330 Ohm protective resistors.

ok, I will set them down

_________________
performence based on engineering..


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Mon Jul 16, 2012 10:59 am 
Offline
Senior Member

Joined: Mon Jan 19, 2009 6:31 pm
Posts: 1615
Location: Moscow, Russia
WDT pin is tied to Vcc by 47 kOm.
Thus 10kOm is to high and does not provide needed '0' voltage level.
Too small resistance is also not applicable since WDT has active signal on the board while ecu software is running. 3-5 kOm resistor is applicable.

It is not allowed to directly supply +5V externaly to any processor pin if there is not protective resistors.
I would recommend use resistors for grounded pins as well.
Just GND net should be connected directly.


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sat Apr 27, 2013 2:29 pm 
Offline
Experienced
User avatar

Joined: Wed Nov 10, 2010 11:56 am
Posts: 418
Just a new question to SHuBootMode, or better to the dump, with should be written.

AFAIK the dump should be "complete", witch means correct size, kernel inside, CS ok, etc.

There are some new tools reading the SH7058S and SH7059 of the Diesels via OBD and will not read the kernel (CMD or Alientech e.g.) The size of the CMD readout is correct, only the kernel part is "FF" as well as the first line of the dump is renamed to "CMD-MCD"

Alientech tell my, that there is no problem in recover the SH7058S without the kernel. So is it possible to use the read-out of CMD or Alientech without the kernel at the frond of the dump as the dump basis of SHBootMode recover, if the dump size and CS are correct?

_________________
performence based on engineering..


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sat Apr 27, 2013 3:51 pm 
Offline
Senior Member

Joined: Mon Jan 19, 2009 6:31 pm
Posts: 1615
Location: Moscow, Russia
Who is Mr. CS ? Do you mean CheckSums ?
Is VBR table at the end of ecu dump read ?

If answers are positive an experienced programmer is able to make the image bootable and working.


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sat Apr 27, 2013 4:11 pm 
Offline
Experienced
User avatar

Joined: Wed Nov 10, 2010 11:56 am
Posts: 418
Sasha_A80 wrote:
Who is Mr. CS ? Do you mean CheckSums ?

correct, checksumm

Quote:
Is VBR table at the end of ecu dump read ?

Who is Mr. VBR ? :(
The dump beginn at 0x0 and ends at 0x17FFF, so I think it is complete for SH7059 one. The kernel area is "00".
Ending of EURo4 complete and EURO5 incomplete seems to look simular.
Quote:
If answers are positive an experienced programmer is able to make the image bootable and working.

In case of the EURO4 dumps, I got complete ones (read via AUD), so I can copy the kernel into a dump with a missing one.
Two differned readouts of OEM software show the same kernel, so I think this will be not problem.

In case of EURO5 it is differnd :(
So maybe you can give me some hints to this ?

What I do not unterstand:
the way SHBootMode works and why it needs a complete dump is clear. If I got a brigged ECU AFAIK the OBD does not work, because there is no software working on the controler.
But as I unterstand Alientech recovers via OBD brigged ECUs and do not need more, then they are read now, so no kernel..

What is the differnce ?

_________________
performence based on engineering..


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sat Apr 27, 2013 4:19 pm 
Offline
Senior Member

Joined: Mon Jan 19, 2009 6:31 pm
Posts: 1615
Location: Moscow, Russia
I know for sure you are mislead.
"Properly" bricked SH based ecu could not be recovered thru OBD.
There probably is a chance to recover an ecu with the alive primary bootloader ( CAN bootstrap loader in case of Denso ecu ).

Jochen_145 wrote:
But as I unterstand Alientech recovers via OBD brigged ECUs and do not need more, then they are read now, so no kernel..

What is the differnce ?


VBR is VectorBaseRegister.
Denso put the InterruptVectorTable at the end of the code and does not provide the way to read this table thru SSM request.


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sat Apr 27, 2013 5:43 pm 
Offline
Experienced
User avatar

Joined: Wed Nov 10, 2010 11:56 am
Posts: 418
Sasha_A80 wrote:
I know for sure you are mislead.


I think so, maybe because they had a working way, witch is unsimular to the Denso way, but it works in a way what ever.
And on the other hand, "simple" tools will do the same job, witch they will not confirm..

Quote:
"Properly" bricked SH based ecu could not be recovered thru OBD.
There probably is a chance to recover an ecu with the alive primary bootloader ( CAN bootstrap loader in case of Denso ecu ).

O.k. this can be the way they went, but for this I also need a complete dump with kernel, or am I wrong ?
Other question:
what will happen, if I would recover with one of these dumps without the kernel ?
Software, maps, size and checksumm will be o.k. and the kernel is not need for normal work ?


Quote:
VBR is VectorBaseRegister.
Denso put the InterruptVectorTable at the end of the code and does not provide the way to read this table thru SSM request.

With the SSM request I can only read the application area with all the 2D and 3D maps.(EcuMem Tools e.g.)
As I (tryed) to unterstand, the VBR should be after the checksumm table.
If yes, then this part as well as the the checksumm table, the source code and everything else is reat.
Only the first 16kb with the kernel is missing.

_________________
performence based on engineering..


Top
 Profile  
 
 Post subject: Re: SH Boot Mode How-to
PostPosted: Sat Apr 27, 2013 5:59 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
SH boot mode will completely erase the ROM, full ROM image is needed to restore. This is used when an ECU is bricked.
SH User boot mode will not erase ROM and requires the user to upload a client program to the ECU to selectively erase/program memory upon instructions from a server program on a separate computer with the image data, comms is via CPU serial 0.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 145 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 10  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl