|
RomRaider
Documentation
Community
Developers
|
| Author |
Message |
|
MiikaS
|
Post subject: Re: K-line open-source reflash utilities Posted: Wed Jan 18, 2023 6:50 pm |
|
 |
| Experienced |
Joined: Tue Jun 06, 2017 6:11 pm Posts: 215
|
san4ezzx wrote: hello everyone, today I managed to read the firmware from my forester cs using a vag kkl cable(ch340). but it turned out only fastecu, subaru bootloader from the first post gives an error. win7 32 fastecu write test - ok tomorrow I'll try to write it down, today I was afraid to block the ecu
where can i find defs for romraider?
Thanks for your work, it's a big job Hmmm... how did you exactly read ROM from ECU? Using which software and do you have modified cable? Bootloader test software was early testing only for Forester CS. With FastECU software --> https://github.com/miikasyvanen/fastecu-oem you should be able to read and write that ECU and you can tune with it using EcuFlash definition file for it. Compiled software with definitions found on 'precompiled' folder. It works with modded OBD cable or tactrix cable for Forester CS.
|
|
| Top |
|
 |
|
groovygreg10
|
Post subject: Re: K-line open-source reflash utilities Posted: Wed Jan 18, 2023 9:21 pm |
|
 |
| Newbie |
Joined: Tue Jan 10, 2023 1:04 pm Posts: 11
|
MiikaS wrote: groovygreg10 wrote: Recently tried to get nisprog running with my 2004 EZ30 Liberty (SH7055), however I always get a set of errors whilst using a Tactrix cable, and yet to read if anyone has had any luck connecting using a Tactrix. Do you guys reckon these errors are related to the Tactrix? If so I'll go grab a cheap VAG-COM and try that, but just want to confirm it's most likely the Tactrix before I go get one. Linked is the text file of my log and errors. Cheers As far as I understand, nisprog doesn't support tactrix cable. Why not just test my software? It works with tactrix cable. Ahhh bugger I must have missed this, thankyou, I'll give your software a shot now. However, my main objective of all this was to read and write the ECU EEPROM (need to setup a new ecu) as seen from rimwall's excellent discovery ( viewtopic.php?f=40&t=19937), is there anyway of integrating this method with your software? Massive thanks to everyone on this thread, so interesting to read through!
|
|
| Top |
|
 |
|
MiikaS
|
Post subject: Re: K-line open-source reflash utilities Posted: Wed Jan 18, 2023 9:39 pm |
|
 |
| Experienced |
Joined: Tue Jun 06, 2017 6:11 pm Posts: 215
|
groovygreg10 wrote: MiikaS wrote: groovygreg10 wrote: Recently tried to get nisprog running with my 2004 EZ30 Liberty (SH7055), however I always get a set of errors whilst using a Tactrix cable, and yet to read if anyone has had any luck connecting using a Tactrix. Do you guys reckon these errors are related to the Tactrix? If so I'll go grab a cheap VAG-COM and try that, but just want to confirm it's most likely the Tactrix before I go get one. Linked is the text file of my log and errors. Cheers As far as I understand, nisprog doesn't support tactrix cable. Why not just test my software? It works with tactrix cable. Ahhh bugger I must have missed this, thankyou, I'll give your software a shot now. However, my main objective of all this was to read and write the ECU EEPROM (need to setup a new ecu) as seen from rimwall's excellent discovery ( viewtopic.php?f=40&t=19937), is there anyway of integrating this method with your software? Massive thanks to everyone on this thread, so interesting to read through! Plan is to add EEPROM read and write capabilities to software. I have few ECUs to test it, but not sure exact timeline to do it.
|
|
| Top |
|
 |
|
san4ezzx
|
Post subject: Re: K-line open-source reflash utilities Posted: Thu Jan 19, 2023 3:20 am |
|
 |
| Newbie |
Joined: Fri Sep 30, 2022 6:05 am Posts: 16
|
MiikaS wrote: san4ezzx wrote: hello everyone, today I managed to read the firmware from my forester cs using a vag kkl cable(ch340). but it turned out only fastecu, subaru bootloader from the first post gives an error. win7 32 fastecu write test - ok tomorrow I'll try to write it down, today I was afraid to block the ecu
where can i find defs for romraider?
Thanks for your work, it's a big job Hmmm... how did you exactly read ROM from ECU? Using which software and do you have modified cable? Bootloader test software was early testing only for Forester CS. With FastECU software --> https://github.com/miikasyvanen/fastecu-oem you should be able to read and write that ECU and you can tune with it using EcuFlash definition file for it. Compiled software with definitions found on 'precompiled' folder. It works with modded OBD cable or tactrix cable for Forester CS. I read using FastECU-Win7-32bit downloaded from your link. I soldered the DTR in the cable to pin 9 of the OBD. I can set some options in fastecu, but some are replaced with "." and when choosing maps, the program sometimes crashes can't find ecuflash definitions for this calibration. maybe I'm doing something wrong? I am an auto electrician, not a programmer and not a tuner)
|
|
| Top |
|
 |
|
MiikaS
|
Post subject: Re: K-line open-source reflash utilities Posted: Thu Jan 19, 2023 4:35 am |
|
 |
| Experienced |
Joined: Tue Jun 06, 2017 6:11 pm Posts: 215
|
san4ezzx wrote: I read using FastECU-Win7-32bit downloaded from your link. I soldered the DTR in the cable to pin 9 of the OBD.
I can set some options in fastecu, but some are replaced with "." and when choosing maps, the program sometimes crashes
can't find ecuflash definitions for this calibration. maybe I'm doing something wrong? I am an auto electrician, not a programmer and not a tuner) What ROM you are using when it crashes?
|
|
| Top |
|
 |
|
san4ezzx
|
Post subject: Re: K-line open-source reflash utilities Posted: Thu Jan 19, 2023 4:51 am |
|
 |
| Newbie |
Joined: Fri Sep 30, 2022 6:05 am Posts: 16
|
MiikaS wrote: san4ezzx wrote: I read using FastECU-Win7-32bit downloaded from your link. I soldered the DTR in the cable to pin 9 of the OBD.
I can set some options in fastecu, but some are replaced with "." and when choosing maps, the program sometimes crashes
can't find ecuflash definitions for this calibration. maybe I'm doing something wrong? I am an auto electrician, not a programmer and not a tuner) What ROM you are using when it crashes? downloaded from car ecu download/file.php?id=40702some maps I can edit, and some crash when I select them for example, when choosing target idle, program is crashed
|
|
| Top |
|
 |
|
MiikaS
|
Post subject: Re: K-line open-source reflash utilities Posted: Thu Jan 19, 2023 5:10 am |
|
 |
| Experienced |
Joined: Tue Jun 06, 2017 6:11 pm Posts: 215
|
|
Thanks, I will check that out!
|
|
| Top |
|
 |
|
san4ezzx
|
Post subject: Re: K-line open-source reflash utilities Posted: Thu Jan 19, 2023 5:26 pm |
|
 |
| Newbie |
Joined: Fri Sep 30, 2022 6:05 am Posts: 16
|
|
now I have successfully uploaded the configured ROM to the ECU several times, everything went well. however , the ECU is recorded if you download the ROM from the ECU and do not turn off the ignition . if you turn off the ignition, press write, turn it on after the countdown, it will not write. is this how it should be?
it turns out that writing, you need to read it first. it's about FastEcu
|
|
| Top |
|
 |
|
MiikaS
|
Post subject: Re: K-line open-source reflash utilities Posted: Thu Jan 19, 2023 6:19 pm |
|
 |
| Experienced |
Joined: Tue Jun 06, 2017 6:11 pm Posts: 215
|
san4ezzx wrote: now I have successfully uploaded the configured ROM to the ECU several times, everything went well. however , the ECU is recorded if you download the ROM from the ECU and do not turn off the ignition . if you turn off the ignition, press write, turn it on after the countdown, it will not write. is this how it should be?
it turns out that writing, you need to read it first. it's about FastEcu Writing should work without reading first. Did you noticed in which step it fails if you try to write without reading? It uses exactly the same functions for bootloader entry and kernel upload. I fixed the map problem and check that there is everything ok in writing procedure before uploading it to github.
|
|
| Top |
|
 |
|
MiikaS
|
Post subject: Re: K-line open-source reflash utilities Posted: Thu Jan 19, 2023 8:02 pm |
|
 |
| Experienced |
Joined: Tue Jun 06, 2017 6:11 pm Posts: 215
|
|
Ok, I found the cause of failed write attempt. In definitions there is flash method set to 'sti04' because these are made for use with ecuflash (that has no capability to flash these ecus) to read/write modded roms. So it automatically changes flash method to 'sti04' everytime you close map or do some other things. Removed unnessessary checks and changed flash method to defs so writing should work now without reading first.
Fixed and uploaded new version to github. Please use 'read' and 'test write' before actual write. Just to make sure I haven't broke anything on the way.
|
|
| Top |
|
 |
|
rimwall
|
Post subject: Re: K-line open-source reflash utilities Posted: Fri Jan 20, 2023 2:50 am |
|
 |
| Experienced |
Joined: Fri Aug 21, 2020 10:05 am Posts: 321
|
|
Great work MiikaS, it's good to see FastECU getting better and better.
Work on Uinta JECS WA12212920/30/40/70 is going well (access / flash method almost fully understood), so it will be good to see that capability added, hopefully soon.
On groovygreg10's question, EEPROM read / write could be added. FastECU would need a couple of extra commands, and it would need to use the EEPROM enhanced kernels. The complication is how consistent the EEPROM code is across the car models and generations - port pins, SCI channels, EEPROM type and EEPROM size can all change. I haven't looked into this closely yet. Too many other things to do...
|
|
| Top |
|
 |
|
san4ezzx
|
Post subject: Re: K-line open-source reflash utilities Posted: Fri Jan 20, 2023 4:49 pm |
|
 |
| Newbie |
Joined: Fri Sep 30, 2022 6:05 am Posts: 16
|
MiikaS wrote: Fixed and uploaded new version to github. Please use 'read' and 'test write' before actual write. Just to make sure I haven't broke anything on the way.
I tested the updated version. the program now does not crash when selecting calibration cards. but writing the ROM to the ECU only after reading, and so it remained
|
|
| Top |
|
 |
|
MiikaS
|
Post subject: Re: K-line open-source reflash utilities Posted: Fri Jan 20, 2023 5:28 pm |
|
 |
| Experienced |
Joined: Tue Jun 06, 2017 6:11 pm Posts: 215
|
san4ezzx wrote: MiikaS wrote: Fixed and uploaded new version to github. Please use 'read' and 'test write' before actual write. Just to make sure I haven't broke anything on the way.
I tested the updated version. the program now does not crash when selecting calibration cards. but writing the ROM to the ECU only after reading, and so it remained Can you send copy of log screen on write fail.
|
|
| Top |
|
 |
|
san4ezzx
|
Post subject: Re: K-line open-source reflash utilities Posted: Fri Jan 20, 2023 6:01 pm |
|
 |
| Newbie |
Joined: Fri Sep 30, 2022 6:05 am Posts: 16
|
MiikaS wrote: san4ezzx wrote: MiikaS wrote: Fixed and uploaded new version to github. Please use 'read' and 'test write' before actual write. Just to make sure I haven't broke anything on the way.
I tested the updated version. the program now does not crash when selecting calibration cards. but writing the ROM to the ECU only after reading, and so it remained Can you send copy of log screen on write fail. 3% battery on a laptop, so I took a photo)
| Attachments: |

B3506F1E-89ED-4716-A3C3-C55906A5211C.jpeg [ 46.71 KiB | Viewed 4831 times ]
|
|
|
| Top |
|
 |
|
MiikaS
|
Post subject: Re: K-line open-source reflash utilities Posted: Fri Jan 20, 2023 6:15 pm |
|
 |
| Experienced |
Joined: Tue Jun 06, 2017 6:11 pm Posts: 215
|
san4ezzx wrote: 3% battery on a laptop, so I took a photo) Ok, it shows that it uses 04 32-bit bootloader as it should use 02 32-bit bootloader. Can you check that you have flash method set to 'fxt02' in your definitions? There is two relevant definition files, A8AK210A and A8AK212A and they should be in '~/FastECU_OEM/definitions/ecuflash/rommetadata/subaru/Forester CS' by default
|
|
| Top |
|
 |
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
|
|