nisprog reflashing kernel
See "doc/COMPILING.txt", and "doc/USING.txt", for details.
In this document:
Project presentation: http://www.romraider.com/forum/viewtopic.php?f=45&t=12999
Original crowdfunding campaign: https://www.crowdsupply.com/nisprog/reflashing-kernel
This is open-source, thanks to all the campaign backers. See "SPONSORS.txt" !
This project completes an entirely open-source solution for reflashing Nissan/Infiniti ECUs over a K-line communications link.
Most gasoline Nissan / Infiniti ECUs from ~ 2002 onwards share very similar ECU hardware, based on SuperH microcontrollers manufactured by Renesas (previously Hitachi). This project supports ECUs that use the OBD-II K line signal for diagnostics communications.
The process is carried out entirely over the OBD-II K Line serial communications link through an undocumented set of manufacturer-defined extensions to the standard ISO14230 protocol. Recently, the necessary commands have been reverse-engineered revealing the required steps:
The basic kernel is an implementation of an ISO14230-compliant protocol with extensions; it implements the following requests:
There are several important points to be aware of when using Nisprog:
The ECU is a safety-critical system in a car. Reflashing an ECU can void warranties, reduce the vehicle's reliability, and cause a whole variety of undesirable consequences. Use of this project and any associated tools (freediag, Nisprog, etc) is of course entirely at the user's risk. Standard disclaimers apply.
Reflashing an ECU may be illegal in some areas. Responsibility in this matter lies again with the user.
Diesel ECUs are not supported, the reflashing process is entirely different.
Tuning and modifying ROMs are complex skills that can only be acquired through significant investments of time and effort!
These SH705* ICs are typically rated for about hundred re-write cycles, beyond which Flash retention may degrade. Experience seems to indicate the actual endurance can be significantly higher, but as with any Flash memory, excessive re-writes should be avoided (for example, live-tuning applications)
precompiled/ : kernels compiled with the latest source release (possibly not as up-to-date as the git repo) reg_defines/ : includes for peripheral register address definitions
cmd_parser : command parser and dispatcher for the iso14230 communications over K line eep_funcs : onboard EEPROM access helpers / functions functions.h : helpers for low-level SuperH intrinsics (setting special registers etc) intprg, ivect : interrupt vectors and handlers isocmds.h : definitions for supported ISO commands / SIDs lkr : linker script, this defines where the kernel will be compiled + loaded in RAM main.c : main platf : this is to split the CPU (platform)-specific code from the generic code. plflash: platform-specific reflash back-end etc. start_705x.s : initial self-loader code, this is the first thing that runs at the RAMjump step. stypes.h : shorthand for common types
(WIP)
This project and its source code is licensed under the GPLv3
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.