Search found 512 matches

by tvrfan
Fri Dec 18, 2020 8:06 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

This kind of thing goes on all the time.....We all think some issue/functionality/.../etc has been settled, until a new discovery is made or someone asks a detail question, and then we find out more facts. Despite the docs, there is still quite a lot of little detail unknowns in the software and har...
by tvrfan
Mon Dec 14, 2020 5:24 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

LOS = L imited O peration S trategy (aka limp home mode) It could be that in these early ECU's the tickling of LSO Port bit 6 is for LOS control. On EFI-VM115 hardware LSO#6 connects to a 74001MC IC which also connects to the CPU's /reset line. The 74001MC also connects to some of the hybrid circui...
by tvrfan
Sun Dec 13, 2020 11:49 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

I do not think that LSO Port bit 6 is hardware related to the watchdog timer. For example, in the CBAZA and GHAJ0 strategies LSO Port bit 6 appears to be only used for controlling the aircon cutout relay. Why the bit gets tickled in the AA binary is a mystery to me as the watchdog timer gets reset ...
by tvrfan
Sun Dec 13, 2020 7:56 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

'Wraps" - if you count in a limited space, say 16 bits............ start at 0 and go to 65534, 65535 and add another 1, what happens ?? The result goes back to zero, and 'overflow' condition is set in the CPU. (For us geeks, I'm ignoring further details..). This is what I meant by 'wraps'. This also...
by tvrfan
Fri Dec 11, 2020 5:48 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

Checksums - these are used all over the place in software designs, everything from verification of something, to signatures, to indexes of data. Checksums can be simple additions through to complicated maths tricks, depending what is required. For the EEC boxes, the entire contents of the ROM (0x200...
by tvrfan
Fri Dec 11, 2020 1:01 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

It IS in the hardware manual , page 6-84, WATCHDOG TIMER. CPU_OK (bit 6 register 2) The idea is that if something goes wrong and the system locks up (hardware or software) then the watchdog timer forces a hardware reset, and a restart. So every er.... (it's in there somewhere...) 65,000 ? clock cycl...
by tvrfan
Wed Dec 02, 2020 12:57 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

Just to confirm, early bins/boxes had no CAN or OBDII or any external info bus at all. They had a single 'test' input (which was grounded for one second) and a single very low speed error output, designed for a buzzer or lamp, and error codes were groups of pulses which could be counted by eye/ear. ...
by tvrfan
Tue Dec 01, 2020 8:48 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

I meant when I have a bug (like the banks not being seen in SAD) , then the bare file is neatly laid out in binary, so I can see if file looks OK...
by tvrfan
Tue Dec 01, 2020 5:37 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

Probst Book - if it's the dark blue one, I had this for a while. It doesn't give much at all on how the innards and communication protocols work, it does give some sensor data, but only really from a view of 'external tuning' (i.e. fiddling with the sensors). So not a lot of use for EEC internals. I...
by tvrfan
Wed Nov 18, 2020 10:16 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

I've found a jump calculation error in the check for the interrupt vectors, where a 'negative' value (top bit set) causes the wrong answer, but it only happens when there is no ROMBANK prefix. So now I know why. This has been hiding for a long time. I haven't changed this code, even for the RZAS bin...
by tvrfan
Sun Nov 15, 2020 5:01 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

Huh ??? Don't understand...... SAD doesn't assume any order or conventions, as you rightly say, there's "no standards". If there is a fourth bank in that file (which I haven't checked in detail yet) then there's a bug in my 'bank finder' code. SAD first scans the bin file for 'fingerprint' bank star...
by tvrfan
Sun Nov 15, 2020 2:02 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

Guys, To let you all know, SAD doesn't work on these bins as they only have 3 detectable banks. I coded SAD to reject a 3 bank bin as it can't possibly be valid (1 bank select bit = 2 banks, 2 bits = 4 banks). [NB. But I must check if there's a bug causing 4th bank to be missed] Reason is that Hardw...
by tvrfan
Tue Nov 03, 2020 12:35 am
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

I can't remember if heads are plain hex, or the 'star' pattern.... ? Maybe I'm confusing with something else....maybe Euro vs US boxes ? Have a good look with a magnifier to confirm.... Hex driver will easily chew up a star head and then it gets REALLY hard to undo. Been there.....(not on an EEC box...
by tvrfan
Sun Nov 01, 2020 2:28 pm
Forum: EECGeeks
Topic: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU
Replies: 77
Views: 4839

Re: Project on Reverse Engineering binaries, assembly, coding and learning more about the ECU

Welcome to the world of geek................... I've been doing this FAR TOO LONG, and people like jsa WON'T LET ME ESCAPE !! (just joking). Seriously, welcome, and we are all of a similar aim, to try to get a full decode of all EEC-IV and V binaries. For me personally, I no longer own any qualifyin...
by tvrfan
Fri Jul 24, 2020 12:58 am
Forum: EECGeeks
Topic: I've got the EEC Software Manual and Custom IC Hardware Architecture Reference
Replies: 18
Views: 6863

Re: I've got the EEC Software Manual and Custom IC Hardware Architecture Reference

BUMP.

This deserves to be at the top for a while longer !!
by tvrfan
Fri Jul 24, 2020 12:55 am
Forum: EECGeeks
Topic: quick question about indexed ops
Replies: 11
Views: 3315

Re: quick question about indexed ops

and there is this gem in A9L, which shows a word wraparound.......... but again signed/unsigned makes no difference, I reckon. it is really weird to do it this way though - I still wonder if it's correct..............why not stb, R42, [R0+9b] or a straight stb R42, R9B ??? # Diagnostic Proc Table D ...
by tvrfan
Thu Jul 23, 2020 3:37 pm
Forum: EECGeeks
Topic: quick question about indexed ops
Replies: 11
Views: 3315

Re: quick question about indexed ops

I can only say that disassembly works perfectly (as far as I can tell) with byte = signed, long = unsigned. So I agree with Bob. However, I think it's true that nearly all of the long indexes you see are based on R0, so in a 16 bit field, it would actually make no difference. If you feed a signed ne...
by tvrfan
Thu Jul 23, 2020 3:21 pm
Forum: EECGeeks
Topic: I've got the EEC Software Manual and Custom IC Hardware Architecture Reference
Replies: 18
Views: 6863

Re: I've got the EEC Software Manual and Custom IC Hardware Architecture Reference

F-A-N-T-A-S-T-I-C !!!!! I've scanned the'software' one and it contains EVERYTHING, including details about some of those nagging little questions we had about edge conditions, odd stuff found in bin code etc. Wonderful. The handbook was brilliant, this is a step above that. Great. I now don't have t...
by tvrfan
Wed Jul 01, 2020 8:53 pm
Forum: EECGeeks
Topic: SAD 4.0.6 in Github
Replies: 2
Views: 1147

Re: SAD 4.0.6 in Github

TrainWreck ?? Not really............. If it was the "RSAZ" ones, it was that they have a 'short bank' in the middle of the file, (Bank 1 is 0x2000-0xdfff) and I had not allowed for this in SAD. It's fixed in next version (4.0.7.1) in GitHub 'daily' subdiv where the tests go. These bins also seem to ...
by tvrfan
Tue Jun 23, 2020 7:12 pm
Forum: Lounge
Topic: EXPIRED CERTIFICATE
Replies: 6
Views: 2118

EXPIRED CERTIFICATE

WHEN ARE YOU GOING TO SORT OUT THE EXPIRED CERTIFICATE ???

Yes, I deliberately shouted. This has been faulty for many months.

Does anyone actually care any more ??
by tvrfan
Tue Jun 23, 2020 7:11 pm
Forum: EECGeeks
Topic: SAD 4.0.6 in Github
Replies: 2
Views: 1147

SAD 4.0.6 in Github

Released latest SAD to github. Has a BIG list of fixes - thanks to jsa for all his testing to help get here. It's still not perfect, and I was sent some newer .bin files which don't work, so 4.0.7 will be in the daily updates today or tomorrow..... Eventually I'll get to version 4 as a full proper w...
by tvrfan
Fri Jun 05, 2020 8:42 pm
Forum: Hardware Discussions
Topic: Need the EEC ARCHITECTURE AND HARDWARE REFERENCE MANUAL
Replies: 8
Views: 5224

Re: Need the EEC ARCHITECTURE AND HARDWARE REFERENCE MANUAL

Also don't forget the OPEN EEC PROJECT on GITHUB, which has copies of tom cloud's doc and lots of other stuff. https://github.com/OpenEEC-Project This is where we are still trying to decode and understand the actual CPU binary code. Simpler ones done, and A9L which was a very common early US box, ha...
by tvrfan
Sat Mar 07, 2020 9:57 pm
Forum: EECGeeks
Topic: feedback please - moving to SQLite database files
Replies: 23
Views: 6354

Re: feedback please - moving to SQLite database files

I could not think of a good reply, so instead I have posted a DB version of what SAD uses for its internal data structures when disassembling. Of course this is quite different to an 'information database' which will have a lot more comments and user based items than a plain disassembly would. SAD c...
by tvrfan
Tue Mar 03, 2020 3:42 pm
Forum: EECGeeks
Topic: feedback please - moving to SQLite database files
Replies: 23
Views: 6354

Re: feedback please - moving to SQLite database files

86GT - Thanks for that. I started off by suggesting the SQLite system because it's available on almost every platform, and it allows the binary itself to be stored within that same database. Therefore only ONE file could hold everything for everyone. It's a worry already though that the Linux versio...
by tvrfan
Mon Mar 02, 2020 5:56 pm
Forum: EECGeeks
Topic: feedback please - moving to SQLite database files
Replies: 23
Views: 6354

Re: feedback please - moving to SQLite database files

Right - I'll do this backwards, JSA first. Remember that a Primary Key can be multiple fields. Scratch registers - I'm assuming you mean different NAMES/SYMBOLS, but anyway (Register_addr + Range) is then a primary key. Again, MAP (or its equivalent register whatever) becomes (address+Unit type) for...
by tvrfan
Mon Mar 02, 2020 1:49 pm
Forum: EECGeeks
Topic: feedback please - moving to SQLite database files
Replies: 23
Views: 6354

Re: feedback please - moving to SQLite database files

Pym, thank you for taking my comment in a positive way. My DB experience - I did quite a few database designs for various systems (Police, govt ministries, commercial product tracking). This had different design aims, but all stored the various kinds of information, text (= comments), semi-formatted...
by tvrfan
Mon Mar 02, 2020 3:36 am
Forum: EECGeeks
Topic: feedback please - moving to SQLite database files
Replies: 23
Views: 6354

Re: feedback please - moving to SQLite database files

Oh damn..........., I don't know how to say this gently, so I will not.... I HATE, HATE, HATE, DATABASE TRIGGERS. THEY ARE THE INVENTION OF THE DEVIL. THEY VIOLATE THE KISS PRINCIPLE. THEY NEARLY ALWAYS EXIST TO COVER UP BAD DESIGN. Truly, I don't understand why you need them at all for a simple DB,...
by tvrfan
Sun Mar 01, 2020 2:22 pm
Forum: EECGeeks
Topic: feedback please - moving to SQLite database files
Replies: 23
Views: 6354

Re: feedback please - moving to SQLite database files

Pym, My extract of the original DB file left out some fields I think. So my extra fields comments are wrong. The text one is much better.... thanks. I seem to be getting an error with " Skip BOOLEAN DEFAULT (False) " in the create table in the linux versions of SQlite tools. "Error: default value of...
by tvrfan
Sat Feb 29, 2020 6:31 pm
Forum: EECGeeks
Topic: feedback please - moving to SQLite database files
Replies: 23
Views: 6354

Re: feedback please - moving to SQLite database files

I just want to be clear here, so there is no misunderstanding. It doesn't actually matter how you choose to store your data internally (hey, it's YOUR program after all). I am only aiming for a shared db format which is as simple as possible (KISS principle), for the easy sharing of the DECODED CALI...
by tvrfan
Fri Feb 28, 2020 2:28 pm
Forum: EECGeeks
Topic: feedback please - moving to SQLite database files
Replies: 23
Views: 6354

Re: feedback please - moving to SQLite database files

My answer from a disassembly point of view - I agree that the simplest universal address system would be to use 5 hex digits. The CPU itself is only a 16 bit unit. It expands by keeping the top 4 bits of its address banks in separate places, and adding them by default to the 16 bit address operation...