RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 4:01 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 48 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: MS43 - Finding maps in IDA Pro?
PostPosted: Wed Oct 29, 2014 3:14 pm 
Offline
Experienced

Joined: Wed Aug 27, 2014 7:57 am
Posts: 259
Hello guys,

i don´t want to threadjack mrf´s thread about voltage compensation injector correction, so i thought i´d open a new thread.

As maybe a few already know, i´m dealing with the exact same problem like you, just i´m using MS43 and i´m really lucky to have a damos file. Nevertheless theres more then enough work to do and i´m currently stuck at disassembling.

I don´t know much about assembler, nor processor technology, but i´m working as hard as i can.

What i know:
MS43 uses C167CR-LM Processor which is supported by IDA. I know all of the important stuff is in the flash, no IROM file needed. I know its using a 29F400BB-55SI (512kb file) and i have dozens of them.

What i don´t know:
How do i find maps in IDA Pro?

Lets say we use the example of battery voltage compensation, at MS43 i have the axis description at 0x74288 (512kb) or at 0x4288 (64kb) when using just the map portion of the flash.

I know that axis description is used at different maps:

Attachment:
2014-10-29_195609.jpg


If i do a hex-search for either "88 42" or "42 88" i´ll get several links, but none of them is in the calibration file (0x7****), they are all located in the full flash file (<0x7000) :|


You do not have the required permissions to view the files attached to this post.

_________________
MS43 wiki

MS42 wiki


Last edited by Cloudforce on Tue Feb 17, 2015 3:43 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Fri Feb 06, 2015 4:08 am 
Offline
Experienced

Joined: Sat Mar 15, 2014 6:46 pm
Posts: 276
Location: Belarus
let me help you.
at address 74288h i can see 6 bytes axis table, not 8. all in your screenshot is 8.
can you give me your definitions file? i have MS43-V07b_(75181111)

Code:
ROM:00074288                 db 6
ROM:00074289                 db  0Eh, 17h, 32h, 45h, 60h, 73h


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Fri Feb 06, 2015 1:28 pm 
Offline
Experienced

Joined: Wed Aug 27, 2014 7:57 am
Posts: 259
Thanks for having a look :)

I´m sorry, i think i used Damos for MS430066 whereas you probably use the version for MS430056 (the original A2L file for MS43 available on the internet.

Lets stick with MS430056 as there is less conversion errors.

http://www12.zippyshare.com/v/VCVlXyNK/file.html
http://www12.zippyshare.com/v/Q9yS6Tt1/file.html

In case of MS430056, this is the correct position of the axis description:

Attachment:
MS430056_axis_battery-voltage_0x7426F.jpg


So in Ols it looks like this:

Attachment:
MS430056_axis_battery-voltage_0x7426F_ols.jpg


lets pick a map where that axis is used:

Attachment:
MS430056_ip_ti_add_dly.jpg


Direct in front of that map is another map (with different axis and size) and the same goes for the map later.

I don´t see anything how siemens managed to referenced between map and axis :shock:


You do not have the required permissions to view the files attached to this post.

_________________
MS43 wiki

MS42 wiki


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Fri Feb 06, 2015 2:05 pm 
Offline
Senior Member

Joined: Fri Feb 10, 2006 7:04 pm
Posts: 2661
Location: RIP
There could be a section of just axis and map descriptors somewhere else in the file that point to the beginning address of the map etc.

_________________
MS41 Project Leader & Co-Developer (2012 - 2023)
MS41.3 https://sites.google.com/site/openms41/custom-code---ms41-3
MS41 ECU Portal https://sites.google.com/site/openms41/ms41-ecu-portal


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Fri Feb 06, 2015 2:26 pm 
Offline
Experienced

Joined: Wed Aug 27, 2014 7:57 am
Posts: 259
Something like: Use 0x**** at 0x****?

Shouldn´t one be able to find that in the disassembly?

I just don´t get my head around IDA. I bet it has something to do with this memory layout.

Attachment:
Memory_Layout.jpg


You do not have the required permissions to view the files attached to this post.

_________________
MS43 wiki

MS42 wiki


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Tue Feb 17, 2015 1:49 pm 
Offline
Experienced

Joined: Thu Dec 04, 2014 6:37 pm
Posts: 139
Bump. Id like to help with Ida. Is there any Ida for dummy guides?


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Tue Feb 17, 2015 3:42 pm 
Offline
Experienced

Joined: Wed Aug 27, 2014 7:57 am
Posts: 259
Ive been told this:

Quote:
Hi Daniel.
You only need FULL FLASh. There are all of the program code in the flash...

1.Load IDA -> new disassemble
2.Choose c166 processor
3. Defaults for memory...
4. Choose c167CR-SL type

That's all )


About "entry point". Entry point will be find automaticaly.
This is "reset_handler" in IDA project.


Just don´t know what to do with that reset_handler.

_________________
MS43 wiki

MS42 wiki


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Tue Feb 17, 2015 5:48 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Cloudforce wrote:
Ive been told this:

Quote:
Hi Daniel.
You only need FULL FLASh. There are all of the program code in the flash...

1.Load IDA -> new disassemble
2.Choose c166 processor
3. Defaults for memory...
4. Choose c167CR-SL type

That's all )


About "entry point". Entry point will be find automaticaly.
This is "reset_handler" in IDA project.


Just don´t know what to do with that reset_handler.

It's more complicated than that. First off, the default memory map is not applicable for the MS43 configuration. IDA will only partially decode the first segment (64kB). And a copy of the Flash has to be converted to linear memory as the CPU would see it.


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Wed Feb 18, 2015 1:50 am 
Offline
Experienced

Joined: Wed Aug 27, 2014 7:57 am
Posts: 259
So you´re talking about doing similar to this?

download/file.php?id=23545&mode=view

_________________
MS43 wiki

MS42 wiki


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Wed Feb 18, 2015 10:40 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Yes, which requires a custom cfg file for IDA.

Can you provide high res photos of the MS43 circuit board?


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Wed Feb 18, 2015 10:51 am 
Offline
Experienced

Joined: Wed Aug 27, 2014 7:57 am
Posts: 259
Shure, any special place? I have no problem doing a trace route, too ;)

_________________
MS43 wiki

MS42 wiki


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Wed Feb 18, 2015 10:59 am 
Offline
Experienced

Joined: Thu Dec 04, 2014 6:37 pm
Posts: 139
this is getting exciting!


Top
 Profile  
 
 Post subject: MS43 - mapping
PostPosted: Mon Feb 23, 2015 5:18 pm 
Offline
Newbie

Joined: Tue Mar 18, 2014 6:23 am
Posts: 31
dschultz wrote:
Can you provide high res photos of the MS43 circuit board?


Yes sir. Here are very high quality photographs of front and rear MS43 board with processor and eeprom removed:
http://s25.postimg.org/ns86hjlwt/Ms43board_front.jpg
http://s25.postimg.org/4oev1792l/Ms43board_back.jpg


I would like to add that I traced EWS anti theft signal from pin 33 on connector X60004 to processor pin number #79, which indicates P3.12/BHE/WRH, external memory high byte enable signal and write strobe.

Image


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Mon Feb 23, 2015 8:13 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Thanks. I have a memory map about 99% sorted out for use in IDA. I'll post it soon along with the required customized IDA files.


Top
 Profile  
 
 Post subject: Re: MS43 - Finding maps in IDA Pro?
PostPosted: Tue Feb 24, 2015 12:31 pm 
Offline
Experienced

Joined: Thu Dec 04, 2014 6:37 pm
Posts: 139
dschultz wrote:
Thanks. I have a memory map about 99% sorted out for use in IDA. I'll post it soon along with the required customized IDA files.


:shock:

your awesome!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 48 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


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

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl