Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

disassemble c166

0 views
Skip to first unread message

ro...@rogndeb.us

unread,
Oct 13, 2005, 7:44:46 PM10/13/05
to
I'm using the TASKING EDE C166 tools and need to disassemble a pure
binary image. What would be the best way to proceeed? I tried the
normal disassembler but it only disassembles obj output files.

Jan Homuth

unread,
Oct 14, 2005, 5:33:32 AM10/14/05
to
Very simple:
convert the binary image into a hex file (google search: srecord)
and then use the Crossview Pro Debugger Simulator.
It also has a dump disassembly function.

grtnx
/jan
<ro...@rogndeb.us> schrieb im Newsbeitrag
news:1129247086....@z14g2000cwz.googlegroups.com...

roger

unread,
Oct 17, 2005, 9:00:01 PM10/17/05
to
It appears the debugger still wants an obj input file.... I have a hex
file from the binary file but when loading this file the EDE says
"Cannot download from given format". I used -Ascii_Hex as output format
from command line in srecord.

Jan Homuth

unread,
Oct 18, 2005, 6:08:56 AM10/18/05
to

You will have to start Crossview Pro and then select "Download Application".
Crossview Pro does load hex files.
You will have to disable the options:
Verify download
Use map file for memory map

grtnx
/jan


roger

unread,
Oct 18, 2005, 3:08:31 PM10/18/05
to
I originally tried unchecking verify and use map checkboxes.

Maybe you have a tiny hex file that I can try to load ?

My target processor is Infineon C166S.

roger

unread,
Oct 20, 2005, 8:08:55 PM10/20/05
to
I get 'invalid imagefile' message.

The starting content of hex file looks like:

(02 as binary) fa 02 70 2d 00 00 00 00 00 00 00 00 00 00 00 00 32
35 2e 31 30 2e 30 32 31 35 3a 31 39 3a 31..............

the hext content matches the binary image, I assume the leading 02
binary
is a spec for the HEX content format.

Is this format correct ?

Henk-Piet Glas

unread,
Oct 21, 2005, 5:48:27 AM10/21/05
to
roger wrote:

> I get 'invalid imagefile' message.
>

> The starting (...)

Doesn't look like Intel-HEX. Each record should start with
a semicolon (see 'Intel-Hex format' appendix in assembler
manual). If you're using srec_cat as advised by Jan then
try this:

srec_cat hello.bin -binary -output hello.hex -intel

This should result in a proper hex file.

Regards,
--
Henk-Piet Glas Support Engineer
-----------------------------------------------------------
E-mail: suppo...@altium.nl Altium Software BV
Voice: +31-33-455 85 84 Saturnus 2
Fax: +31-33-455 55 03 3824 ME Amersfoort
WWW: http://www.altium.com The Netherlands
-------[ Altium -- Making Electronics Design Easier ]------

roger

unread,
Oct 21, 2005, 8:04:31 PM10/21/05
to
That one worked.... Thanks.

roger

unread,
Oct 24, 2005, 8:18:01 PM10/24/05
to
I need to save the disassembly into an assembler source file, and don't
see any easy way of doing this.

Regards,

R Dunn

Henk-Piet Glas

unread,
Oct 26, 2005, 4:07:25 AM10/26/05
to
roger wrote:

> I need to save (...)

You can do so by logging the output from CrossView Pro's
command window:

(1) >> disassembly.txt
(2) dis 0x2f4,#10
(3) >> c

In here (1) enables redirection to disassembly.txt, (2)
does the disassembly and (3) closes disassembly.txt.

0 new messages