pgmfi.org

Hacking up Honda's ECU
It is currently Thu Mar 28, 2024 4:47 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: ECU Debugger
PostPosted: Mon Oct 31, 2005 9:59 pm 
Offline

Joined: Tue Jul 27, 2004 2:25 am
Posts: 1163
Location: San Francisco CA
I want to know the program flow through the ecu code. I think it would help a TON with code development. Maybe this is a really dumb idea but how could we monitor the program counter?

I thought of using some mechanism in the rom code (serial interrupt or something we could call often) but when it got executed to send me the PC word, it would be the PC word for the serial sending code. Even with a serial interrupt, we would not be getting every instruction executed. And if the ecu was streaming this info, the serial port probably couldnt keep up.

Does anyone have any ideas? I suppose I could take some snapshots of memory (the entire memory space) and go through the program flow like that, but I want the PC data.

Ben


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 01, 2005 5:02 pm 
Offline

Joined: Tue Jul 27, 2004 3:03 am
Posts: 1235
Location: Salem, OR
Could this be done externally? I remember from my days of using Borland Turbo Pascal and others that they had a step through feature where it would go to the next instruction each time you hit the F8 key (I think). It would also allow you to keep track of Variable values for each step. Of course, implementing this would be taxing, as you'd need to essentially write a 66xxx emulator from scratch. It would definitely be worth it though. It would allow those of us who are not gifted coders to follow everything more easily.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 01, 2005 10:22 pm 
Offline

Joined: Tue Jul 27, 2004 3:01 am
Posts: 2945
Location: Tampa bay, Florida
We know what each command is... we should be able to create a software application that simulates the processor.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 01, 2005 11:35 pm 
Offline

Joined: Tue Jul 27, 2004 3:03 am
Posts: 1235
Location: Salem, OR
Is it possible that Oki already has this? :shock: It would make sense for them to have written it at some point...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 01, 2005 11:42 pm 
Offline

Joined: Tue Jul 27, 2004 2:25 am
Posts: 355
I don't know S*-t about what you guys are talking but I think that you could use the trace function of the Romulator sotware to see the processor working.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Nov 02, 2005 2:47 pm 
Offline

Joined: Tue Jul 27, 2004 3:03 am
Posts: 1235
Location: Salem, OR
peluca wrote:
I don't know S*-t about what you guys are talking but I think that you could use the trace function of the Romulator sotware to see the processor working.

:shock: :roll: :lol: Yeah, probably... :D


Top
 Profile  
Reply with quote  
 Post subject: Re: ECU Debugger
PostPosted: Mon Mar 29, 2010 12:15 am 
Offline

Joined: Sat Jul 14, 2007 1:36 pm
Posts: 137
Location: Middlesbrough, UK
I know this is an old thread but does anybody have a program that logs address hits from an ostrich? I would write one, but dont really have time at the minute?


Top
 Profile  
Reply with quote  
 Post subject: Re: ECU Debugger
PostPosted: Mon Mar 29, 2010 11:40 am 
Offline
PGMFI Elf

Joined: Tue Jul 27, 2004 2:17 am
Posts: 1419
Location: Phoenix, AZ
Not publicly, you'd have to write one.


Top
 Profile  
Reply with quote  
 Post subject: Re: ECU Debugger
PostPosted: Thu Apr 08, 2010 3:48 pm 
Offline

Joined: Sat Apr 09, 2005 9:53 am
Posts: 625
was wondering what the hell that trace function was for... :oops:

http://www.moates.net/zips/firmware/protocols/Moates%20Hardware%20Protocols%20v19.zip

if your looking to see if specific sections of code are used, it might be easier to create a datalogging variable and poll that...


Top
 Profile  
Reply with quote  
 Post subject: Re: ECU Debugger
PostPosted: Tue Jan 04, 2011 5:36 pm 
Offline

Joined: Sat Jul 14, 2007 1:36 pm
Posts: 137
Location: Middlesbrough, UK
I've started writing an address tracer for the ostrich V2. it record rom access location within a given range and outputs the code at that rom location from a dasm'd rom.

I'll upload the program once its finished (not long now ;))

More info here -> http://www.hondamod.co.uk/free-stuff/moates-ostrich-v2-rom-tracer


Top
 Profile  
Reply with quote  
 Post subject: Re: ECU Debugger
PostPosted: Wed Jan 05, 2011 1:09 am 
Offline
PGMFI Elf

Joined: Tue Jul 27, 2004 2:17 am
Posts: 1419
Location: Phoenix, AZ
Neat program!


Top
 Profile  
Reply with quote  
 Post subject: Re: ECU Debugger
PostPosted: Wed Jan 05, 2011 1:38 am 
Offline

Joined: Tue Jan 12, 2010 1:32 pm
Posts: 229
ya cant wait till its done


Top
 Profile  
Reply with quote  
 Post subject: Re: ECU Debugger
PostPosted: Wed Jan 12, 2011 8:25 pm 
Offline

Joined: Wed Sep 01, 2010 8:47 pm
Posts: 102
man. you guys must be NEO bloodline ... :mrgreen:


Top
 Profile  
Reply with quote  
 Post subject: Re: ECU Debugger
PostPosted: Fri Jan 14, 2011 3:28 am 
Offline
PGMFI Elf

Joined: Tue Jul 27, 2004 2:17 am
Posts: 1419
Location: Phoenix, AZ
RicardoNC wrote:
man. you guys must be NEO bloodline ... :mrgreen:


Or common sense and the ability to read directions. It's all documented pretty well. :)


Top
 Profile  
Reply with quote  
 Post subject: Re: ECU Debugger
PostPosted: Mon Nov 28, 2011 10:58 pm 
Offline

Joined: Wed Jan 19, 2011 8:00 pm
Posts: 30
Qemu can do it but it would be a shit-ton of work to implement all the virtual hardware.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

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

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group