|
RomRaider
Documentation
Community
Developers
|
| Author |
Message |
|
n00bz
|
Post subject: Re: nisprog reflash utility Posted: Tue Feb 15, 2022 2:18 am |
|
 |
| RomRaider Donator |
Joined: Wed Feb 08, 2017 8:10 pm Posts: 60
|
Didnt know where else to put this reply, I still need to go and get codes for what is going on. I extended my obd2 cable because the location is annoying and hits my leg while logging. I purchased one of these. https://www.jaycar.com.au/1m-obd-ii-extension-cable/p/LA9037For some reason now nisprog is having a dummyspit. When i disconnect the extension cable i can connect so it isn't any other issue there. However what is likely to be occurring here? Im guessing its a timing issue but its only an extra 1m of wire can that make such a difference?
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: nisprog reflash utility Posted: Tue Feb 15, 2022 12:05 pm |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
n00bz wrote: nisprog is having a dummyspit I don't know what that means. If it's having problems after starting the kernel, it could be due to the higher speed (62.5kbps with the kernel, vs 10.4kbps for regular comms). The added capacitance of the cable slows down the edges, especially the rising edge. Depending on the design of the transceiver in your usb-obd adapter, this could be enough to cause issues. Different cables will behave differently. If you're having trouble even with the initial connection, there's not much I can suggest. Your obd adpater should have a 510ohm resistor between K and V+ (battery voltage); if they used a higher resistance that could also explain it. WIthout seeing an oscilloscope capture, all of the above is pure speculation.
_________________ If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/ For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net
|
|
| Top |
|
 |
|
Talonstsi
|
Post subject: Re: nisprog reflash utility Posted: Sun Apr 10, 2022 12:54 pm |
|
 |
| Newbie |
Joined: Thu Dec 24, 2020 6:20 pm Posts: 36
|
fenugrec wrote: sotiris wrote: No matter what I try I keep getting this "wrong kernel for silicon.." message , tried both sh7055_35 and sh7055_18 with the latest nisprog 1.04 version Try the kernels included in the 1.04 release, they should be version 115 (your screenshot shows 107). I'm having the same issue right now but mine doesnt say 107 its 60507 or something.
You do not have the required permissions to view the files attached to this post.
|
|
| Top |
|
 |
|
Talonstsi
|
Post subject: Re: nisprog reflash utility Posted: Sun Apr 10, 2022 1:11 pm |
|
 |
| Newbie |
Joined: Thu Dec 24, 2020 6:20 pm Posts: 36
|
|
Got it to work I swapped the 18 bin for 35.
|
|
| Top |
|
 |
|
biela
|
Post subject: Re: nisprog reflash utility Posted: Wed May 11, 2022 9:49 am |
|
 |
| Newbie |
Joined: Wed Mar 11, 2015 8:13 am Posts: 13 Location: Spain
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: nisprog reflash utility Posted: Wed May 11, 2022 10:11 am |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
biela wrote: But it is a 384 kb ROM from SH7054 CPU. Interesting. We haven't seen many 7054 dumps. No, there is currently no kernel for 7052/7054, so it's not possible to reflash.
_________________ If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/ For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: nisprog reflash utility Posted: Thu Jun 16, 2022 1:33 pm |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
|
New release : nisprog 1.05
See first post for download links.
****** 1.05-2523639_20220616
-Support reflashing Subaru 7055 / 7058 over Kline , contributed by rimwall. Status is Alpha, experimental. -added a bunch of ecukeys -bump freediag for misc CLI fixes -note : kernels are now in kernels/ instead of npkern/. You may need to update your .ini files
_________________ If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/ For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net
|
|
| Top |
|
 |
|
darkhalf
|
Post subject: Re: nisprog reflash utility Posted: Thu Nov 03, 2022 5:03 pm |
|
 |
| Newbie |
Joined: Sun Jun 08, 2014 10:55 am Posts: 40
|
|
@fenugrec
I've checked out the GIT project (and associated subprojects) and required some suggested fixes to get this working with building under MINGW
cli_utils/md5/md5.c -#include <md5.h> +#include "md5.h"
cli_utils/nislib.c void sum32(const uint8_t *buf, u32 siz, uint32_t *sum, uint32_t *xor)
Rename xor to something else (eg. xornum) since xor is a reserved token in later C versions
Also warning: nisrom_keyfinders.c: In function 'keysearch_literal_cb': nisrom_keyfinders.c:111:19: warning: 'needle' may be used uninitialized [-Wmaybe-uninitialized] 111 | bool rv = find_key_literal(lss->buf, lss->siz, needle, lss->thorough);
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: nisprog reflash utility Posted: Fri Nov 04, 2022 1:29 pm |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
darkhalf wrote: required some suggested fixes to get this working with building under MINGW Thanks. If you're on github anyway, I prefer people to file issues there instead : easier to keep track, than misc posts sprinkled around a forum... Quote: cli_utils/md5/md5.c -#include <md5.h> +#include "md5.h"
What compiler are you using ? I wanted to avoid modifying the md5 lib to keep it identical to its source (libmd) but will think about options. Quote: Rename xor to something else (eg. xornum) since xor is a reserved token in later C versions Can you elaborate ? Only reference I see from C99 to C23 drafts is in <iso646.h> . Not that it's a problem to change but I want to know what complains about this... Quote: nisrom_keyfinders.c:111:19: warning: 'needle' may be used uninitialized [-Wmaybe-uninitialized] 111 | bool rv = find_key_literal(lss->buf, lss->siz, needle, lss->thorough); That one is an annoying false positive - some analysis tools don't understand that assert(0) interrupts code flow, so this warning is spurious. Let me know more about your build sys and workflow (preferably on github) and I'll see what I can do. Thanks for the comments.
_________________ If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/ For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net
|
|
| Top |
|
 |
|
darkhalf
|
Post subject: Re: nisprog reflash utility Posted: Sat Nov 05, 2022 2:39 am |
|
 |
| Newbie |
Joined: Sun Jun 08, 2014 10:55 am Posts: 40
|
|
I've put it up on Github. Version : g++.exe (Rev4, Built by MSYS2 project) 12.2.0
First error also with gcc (12.2.0) but XOR one only with later C++ versions. I'm working on decoding later versions of DAT in C++ rather C
|
|
| Top |
|
 |
|
Yury123
|
Post subject: Re: nisprog reflash utility Posted: Mon Dec 12, 2022 4:05 pm |
|
 |
| Newbie |
Joined: Mon Dec 12, 2022 3:02 pm Posts: 2
|
|
Hello. Please help me figure out why kernel 7051, nissan maxima 2.0 is not loading. What could be the problem?
You do not have the required permissions to view the files attached to this post.
|
|
| Top |
|
 |
|
Micharl2831
|
Post subject: Re: nisprog reflash utility Posted: Sun Feb 12, 2023 12:02 pm |
|
 |
| Newbie |
 |
Joined: Wed Jan 25, 2023 1:42 pm Posts: 11 Location: Koktebell Russia
|
|
I just read the Nissan Cefiro SH 7051 ECU using this ini file #This is just an example .ini file to show some of the possible commands. set #Customize this to your hardware port \\.\COM9
#This should always be OK dumbopts 0x48
# No need to touch these unless you know what they are l2protocol iso14230 initmode fast testerid 0xfc destaddr 0x10 addrtype phys
# now connect up nc
setdev 0 runkernel C:\nisprog\kernels\npk_SH7051.bin
up
help
##Enable read/write debugging output #debug l1 0x8c
##watchmode #watch 0xffff90bc
##Reduce delay between requests (faster dumps) #npconf p3 0
##Extend read timeouts (in ms) (if you're getting read errors) #npconf rxe 40
##connect #nc
#Note, the old "setdev 0" etc. syntax is deprecated. Try "setdev ?" to show supported devices #setdev 7055
##guess keys, if the suggested keyset doesn't work #gk
#runkernel D:\dev\nis_kernels\npkern\npkern.bin
#stopkernel #npdisc #quit
|
|
| Top |
|
 |
|
Micharl2831
|
Post subject: Re: nisprog reflash utility Posted: Sun Feb 12, 2023 12:13 pm |
|
 |
| Newbie |
 |
Joined: Wed Jan 25, 2023 1:42 pm Posts: 11 Location: Koktebell Russia
|
|
10 min before Im read Cefiro ECU w this ini. But used not correct sidkey ECU read OK. Log attached
You do not have the required permissions to view the files attached to this post.
|
|
| Top |
|
 |
|
Micharl2831
|
Post subject: Re: nisprog reflash utility Posted: Sun Feb 12, 2023 12:30 pm |
|
 |
| Newbie |
 |
Joined: Wed Jan 25, 2023 1:42 pm Posts: 11 Location: Koktebell Russia
|
Yury123 wrote: Hello. Please help me figure out why kernel 7051, nissan maxima 2.0 is not loading. What could be the problem? Nao finished reading. 2 dumps no differents
You do not have the required permissions to view the files attached to this post.
|
|
| Top |
|
 |
|
fenugrec
|
Post subject: Re: nisprog reflash utility Posted: Thu Feb 16, 2023 12:48 pm |
|
 |
| Experienced |
 |
Joined: Wed Jan 08, 2014 11:07 pm Posts: 652
|
@ Yury123 The error is literally in the screenshot you posted. "Cannot open .../npk_sh7051" . You specified a bad path @ Micharl2831 There are multiple errors, did you not read them ? 1- Code: Invalid device, see list with "setdev ?" setting proper device will be necessary for reflash. Also convenient for dumping , means you don't need to specify ROM size since nisprog will know. 2- Code: nisprog> setkeys 0x7B472BD1 Now using SID27 key=7B472BD1, SID36 key1=8F7577FC nisprog> 0x7B472BD1 Unrecognized command. Try "help" You formatted the setkeys command wrong. So of course SID27 fails and it falls back to the "slow" dump method.
_________________ If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/ For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net
|
|
| Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
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
|
|