Pages: [1]
Author Topic: Useful way to Disassemble ME7 (C167) BIN files.  (Read 24845 times)
carlossus
Sr. Member
****

Karma: +38/-0
Offline Offline

Posts: 394

Leon Curpa Stg1+


« on: January 26, 2011, 07:22:02 AM »

I'm new to all this, so maybe this can help others like me.

Download the uVision Demo... https://www.keil.com/demo/eval/c166.htm

Download HxD Hex editor... http://mh-nexus.de/en/downloads.php?product=HxD

Load your ME7 BIN file in HxD then File>Export>32 Bit Intel HEX   (name & save  it appropriately)

Run uVision selecting C167xx as your target device (you can also change this later in Edit>Config)

Start the debugger Debug>Start/Stop Debug session.

In the disassemby window, right click and "Load Hex or Object File".

Browse to and select your Intel hex file and voila.

You can check the instruction set here http://www.keil.com/dd/chip/2906.htm.
« Last Edit: January 26, 2011, 08:04:25 AM by carlossus » Logged
Tony@NefMoto
Administrator
Hero Member
*****

Karma: +132/-4
Offline Offline

Posts: 1389


2001.5 Audi S4 Stage 3


« Reply #1 on: January 26, 2011, 07:13:40 PM »

If you want to disassemble code, then IDA is the best tool to use.

If you want to simulate the ECU in uVision, then you need to emulate a lot of the external devices like flash, serial eeprom, etc before the simulated ECU will boot happily.
Logged

Remember you have to log in if you want to see the file attachments!
Info or questions, please add to the wiki: http://www.nefariousmotorsports.com/wiki
Follow NefMoto developments on Twitter: http://twitter.com/nefmoto
automan001
Full Member
***

Karma: +47/-0
Offline Offline

Posts: 153


« Reply #2 on: October 17, 2012, 03:45:08 AM »

ADIS16X from the Infineon site is also handy disassembler. It's good for small blocks of code. There is no need in compilers, linkers, etc to create some short function from scratch and add it into bin or to analyze some already integrated patch in big binary. Of course with help of hexeditor (for example Hexplorer). You can copy paste blocks of code bigger bin into smaller bin and then analyse/modify them and paste back.
Logged
Cloudforce
Full Member
***

Karma: +5/-13
Offline Offline

Posts: 106


« Reply #3 on: September 23, 2014, 12:01:59 PM »

To get rid off filling out that formular, heres a direct link:

http://www18.zippyshare.com/v/46827478/file.html
« Last Edit: September 24, 2014, 12:23:11 PM by Cloudforce » Logged
Khendal
Full Member
***

Karma: +9/-8
Offline Offline

Posts: 226


« Reply #4 on: December 18, 2016, 03:19:15 PM »

If you want to disassemble code, then IDA is the best tool to use.

If you want to simulate the ECU in uVision, then you need to emulate a lot of the external devices like flash, serial eeprom, etc before the simulated ECU will boot happily.

Could you help me to disassembly my ecu with IDA? Smiley
Logged
dokalanyi
Full Member
***

Karma: +4/-1
Offline Offline

Posts: 119


« Reply #5 on: January 18, 2017, 04:46:11 AM »

ADIS16X from the Infineon site is also handy disassembler. It's good for small blocks of code. There is no need in compilers, linkers, etc to create some short function from scratch and add it into bin or to analyze some already integrated patch in big binary. Of course with help of hexeditor (for example Hexplorer). You can copy paste blocks of code bigger bin into smaller bin and then analyse/modify them and paste back.

Is there a simple guide to disassemble hexcode using this? Or assemble assembly to hexcode? I've failed to figure it out. Just freezes when I load my bin.
Logged
dragon187
Full Member
***

Karma: +13/-15
Offline Offline

Posts: 106


« Reply #6 on: August 26, 2017, 11:14:48 AM »

Is there a simple guide to disassemble hexcode using this? Or assemble assembly to hexcode? I've failed to figure it out. Just freezes when I load my bin.

Need same to know.
How can I create hex file from code if I write for example in notepad++ ?
Regards
Logged
gt-innovation
Sr. Member
****

Karma: +60/-91
Offline Offline

Posts: 449


« Reply #7 on: August 26, 2017, 12:56:57 PM »

You don`t need to write in notepad. Use the uvision editor..

Write your code in C then disassemble with ida to see how it works.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.02 seconds with 17 queries. (Pretty URLs adds 0s, 0q)