RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 2:19 pm

All times are UTC





Post new topic Reply to topic  [ 156 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 11  Next
Author Message
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Mon Jun 20, 2022 12:29 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
rimwall wrote:
My plan is to figure out how it works, but I need a PC to CAN connector of some kind plus open source code.

https://www.fischl.de/usbtin/


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Tue Jun 21, 2022 4:39 am 
Offline
Experienced
User avatar

Joined: Sun Aug 18, 2019 12:10 pm
Posts: 278
Location: Russia, Ulan-Ude (Near Lake Baikal)
Just typed "USB to CAN bus converter adapter" on "Ali", a lot of cheap items :wink:

_________________
Subaru Outback BR9 EDM 2010 EJ253 CVT... Subaru Impreza GG2 JDM 2001 EJ152 AT...
Some Hitachi ROM's modifications...


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Tue Jun 21, 2022 7:03 am 
Offline
Experienced

Joined: Fri Aug 21, 2020 10:05 am
Posts: 321
dschultz wrote:
https://www.fischl.de/usbtin/

Thanks dschultz, I had USBtin near the top of my list, good to have it confirmed it's a good option. Probably the top candidate now. If only I was better at java coding...!

SergArb wrote:
a lot of cheap items

Yes, but... I understand they come with complications (happy to be corrected if I'm wrong). The complications are:
- I don't think they come with code that can be easily modified to send / receive the specific commands required to interact with the ECU
- They often aren't consistent (eg: many are based on ELM clones that are all differently and partially implement the command set). Official ELM chips might have been an option, but they are shutting down their business in 9 days(!)


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Tue Jun 21, 2022 12:43 pm 
Offline
RomRaider Developer

Joined: Thu May 21, 2009 1:49 am
Posts: 7323
Location: Canada eh!
rimwall wrote:
dschultz wrote:
https://www.fischl.de/usbtin/

Thanks dschultz, I had USBtin near the top of my list, good to have it confirmed it's a good option. Probably the top candidate now. If only I was better at java coding...!
You are not limited to Java. Check down the list there are a few other languages used to interface with the unit. Plus a CLI that you can use the ASCII command set with via a serial port.

I was planning to add support for this unit in RomRaider at some point.


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Mon Jul 25, 2022 11:14 pm 
Offline
Experienced

Joined: Fri Aug 21, 2020 10:05 am
Posts: 321
Open source access to ~2002 Forester XT SH7055 ECUs is now possible using an ordinary USB to OBD cable*.

Full credit to MiikaS who did all the testing on a ECU. Full credit to fenugrec as the author of the original nisprog / npkern.

The current status is experimental, and it needs a little more testing (volunteers welcome!). I can't do the testing because I don't have one of these ECUs. A summary is:
- ECU access process is described here (in the SH7055 section at the end of the file): https://github.com/rimwall/nisprog/blob ... ruSIDs.txt
- *Note that access requires a method of generating a ~218ms pulse on Line-End-Check 2
- A modified npkern kernel has been successfully loaded to the ECU and used for a successful dump operation. This was done using other comms software, so the nisprog portion has not yet been tested. And using the kernel for flashing has not yet been tested.
- A modified nisprog has been prepared to do the communications, and needs to be tested. There are probably bugs to be fixed.
- the modified npkern kernel is available here: https://github.com/rimwall/npkern/tree/ssm_test with a pre-compiled kernel under /pre-compiled called ssmk_SH7055_02fxt_18.bin
- the modified nisprog is available here: https://github.com/rimwall/nisprog/tree/ssm_test. This needs to be compiled on your platform for use.
- testing has so far only been successful in the car. Testing on the bench has used the minimal connections (power, k-line, ground) but hasn't yet worked - there must be one or two additional connections required that exist when the ECU is in the car.

Testing requested:
Code:
- Test the two additional commands in nisprog:
    - spconn02fxt - provides access to normal SSM commands such as ECU init.
    - testing sequence would be:
         1. run 'nisprog -f ssmprog.ini' with ignition already on (engine not running)
         2. enter 'spconn02fxt'. ECU ID should be reported.
         3. try an SSM command such as 'diag sr 0xBF' which is ECU Init command. ECU response should be reported
   - sprunk02fxt - provides access to ECU load / run kernel sequence
   - testing sequence would be:
         1. run 'nisprog -f ssmprog.ini' with ignition off
         2. enter 'sprunk02fxt ssmk_SH7055_02fxt_18.bin'
         3. turn ignition on (don't start car) and apply 218ms pulse to LEC2 as per required timing
         4. try a ROM dump command to the kernel such as 'dm TestDump.bin 0 0'
         5. try a ROM flash command to the kernel such as 'flrom newROM.bin'


Other contribution requested:
- a schematic for a simple circuit to provide the 218ms pulse on LEC2 for example using a 555 timer
- working out what additional pins to connect to get it working for an ECU on the bench

Enjoy!


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Sat Jul 30, 2022 5:38 am 
Offline
Experienced
User avatar

Joined: Sun Aug 18, 2019 12:10 pm
Posts: 278
Location: Russia, Ulan-Ude (Near Lake Baikal)
rimwall Great job!

MiikaS wrote:
I will look out pins and make some system for triggering.


Hello, can you show how it looks? I want to try it)

_________________
Subaru Outback BR9 EDM 2010 EJ253 CVT... Subaru Impreza GG2 JDM 2001 EJ152 AT...
Some Hitachi ROM's modifications...


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Sat Jul 30, 2022 7:05 am 
Offline
Experienced

Joined: Tue Jun 06, 2017 6:11 pm
Posts: 215
SergArb wrote:
rimwall Great job!

MiikaS wrote:
I will look out pins and make some system for triggering.


Hello, can you show how it looks? I want to try it)

Hi!

ECU will accept kernel download with similar to wrx02 method in ecuflash so it needs to only trigger line end check 2 and send command to jump to bootloader, but ECU needs to be in car. I haven't found yet how it can be get work on the bench because ECU refuses to jump to bootloader when not in car.

I did write my own simple qt gui software with code based on nisprog kernels and code to test it and added dtr signal to control line end check 2 and also soldered wire from ftdi chip dtr-pin to obd-pin that is connected to line end check 2. Code for writing is not yet ready, but I will complete it when I have time to test it in my car. And as OP1.3 cable is based purely on ftdi chip, my code will work with it too. I might also add OP2 support at some point.

As far as I know, fenugrec will also add dtr control to nisprog code at some point.. And while my testing is based on nisprog code, nisprog should work straight if you can pulse line end check 2 (approx. 212ms pulse, could be done with 555 circuit or with arduino etc. if you have one) just before running kernel upload.


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Sat Jul 30, 2022 8:58 am 
Offline
Experienced
User avatar

Joined: Sun Aug 18, 2019 12:10 pm
Posts: 278
Location: Russia, Ulan-Ude (Near Lake Baikal)
Great info! I have it on the bench, without car( Can you show, what pin on ecu need to be triggered?

_________________
Subaru Outback BR9 EDM 2010 EJ253 CVT... Subaru Impreza GG2 JDM 2001 EJ152 AT...
Some Hitachi ROM's modifications...


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Sat Jul 30, 2022 9:13 am 
Offline
Experienced

Joined: Tue Jun 06, 2017 6:11 pm
Posts: 215
Pdf shows in top connector, line end check 2 in bottom row and second from left.


Attachments:
SG5 Forester CS_XT Pinout (Public).pdf [52.76 KiB]
Downloaded 122 times
Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Sat Jul 30, 2022 9:41 am 
Offline
Experienced
User avatar

Joined: Sun Aug 18, 2019 12:10 pm
Posts: 278
Location: Russia, Ulan-Ude (Near Lake Baikal)
Thank you)
rimwall Can you share compiled version for Win32?

_________________
Subaru Outback BR9 EDM 2010 EJ253 CVT... Subaru Impreza GG2 JDM 2001 EJ152 AT...
Some Hitachi ROM's modifications...


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Sat Jul 30, 2022 11:53 am 
Offline
Experienced

Joined: Fri Aug 21, 2020 10:05 am
Posts: 321
SergArb thanks for offering to help, that's great.

It will be much faster for debugging if you can compile nisprog on your own platform. I would suggest working through the instructions on how to compile nisprog. They are in one of the readme / doc files under nisprog / npkern.

To get started, I have attached what compiles on my platform - hopefully this works for you.

As MiikaS noted, it wouldn't work on the bench because one of the ECU connections must be important (guesses: neutral switch, security system etc). Better to try in the car first.


Attachments:
nisprog.zip [229.37 KiB]
Downloaded 101 times
Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Sat Jul 30, 2022 12:26 pm 
Offline
Experienced

Joined: Tue Jun 06, 2017 6:11 pm
Posts: 215
I have now tried with neutral and some other switches connected, with all power/gnd lines I know but still doesn't want to jump to bootloader on bench.


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Sat Jul 30, 2022 2:05 pm 
Offline
Experienced
User avatar

Joined: Sun Aug 18, 2019 12:10 pm
Posts: 278
Location: Russia, Ulan-Ude (Near Lake Baikal)
May be we can disconnect some B-plugs from ECU in a car, and try jump to bootloader?
It will be more easy to find at what plug it could be? I think so.

_________________
Subaru Outback BR9 EDM 2010 EJ253 CVT... Subaru Impreza GG2 JDM 2001 EJ152 AT...
Some Hitachi ROM's modifications...


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Sat Jul 30, 2022 2:38 pm 
Offline
Experienced

Joined: Tue Jun 06, 2017 6:11 pm
Posts: 215
Yes, I will try that next time.


Top
 Profile  
 
 Post subject: Re: nisprog open-source reflash utility (for Subarus too!)
PostPosted: Mon Aug 01, 2022 7:27 am 
Offline
Experienced

Joined: Tue Jun 06, 2017 6:11 pm
Posts: 215
Tested today and middle plug is the only one that can be left unconnected. So within the three other plugs there is something that needs to be connected to be able to access bootloader.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 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